From fc8413a769592de11f60f01cc0801efb8203d072 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Wed, 17 Nov 2010 23:33:10 +0800 Subject: [PATCH] add poweroff.conf for triggerhappy --- .../files/etc/triggerhappy/triggers.d/poweroff.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 data/qi_lb60/files/etc/triggerhappy/triggers.d/poweroff.conf diff --git a/data/qi_lb60/files/etc/triggerhappy/triggers.d/poweroff.conf b/data/qi_lb60/files/etc/triggerhappy/triggers.d/poweroff.conf new file mode 100755 index 000000000..3e2648a16 --- /dev/null +++ b/data/qi_lb60/files/etc/triggerhappy/triggers.d/poweroff.conf @@ -0,0 +1,13 @@ +# This is an example configuration for the triggerhappy daemon (thd) +# please note that every file to be processed must end in ".conf" +# +# To view a list of supported event codes, use "thd --listevents" or +# "thd --dump /dev/input/event*" +# +# Format: +# +# +# values for key events are 1 (pressed), 0 (released) or 2 (held) +# +## control an mpd instance +KEY_POWER 1 /sbin/poweroff