eventlircd: add acpi powerbutton handling

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-12-30 20:11:02 +01:00
parent c634a539d8
commit bf06a26a69
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# Power Button (ACPI)
KEY_POWER = KEY_POWER

View File

@ -57,6 +57,13 @@ SUBSYSTEMS=="rc", \
ENV{eventlircd_enable}="true", \
ENV{eventlircd_evmap}="ircore.evmap"
#-------------------------------------------------------------------------------
# Ask eventlircd to handle power button.
#-------------------------------------------------------------------------------
SUBSYSTEMS=="acpi", ATTRS{hid}=="LNXPWRBN", \
ENV{eventlircd_enable}="true", \
ENV{eventlircd_evmap}="power.evmap"
#-------------------------------------------------------------------------------
# Ask eventlircd to handle USB HID devices that show up as event devices and are
# known to be remote controls. For simplicity, the event map file names have the