chiark / gitweb /
logind: filter out input devices that have none of the keys/switche we care about
[elogind.git] / src / login / 70-power-switch.rules
index a6997f7788fc5d8e7bec7a7a44492f51f8c1ec6c..394a80f1f8ffce7050093b0233d4945d5fb60f30 100644 (file)
@@ -7,8 +7,7 @@
 
 ACTION=="remove", GOTO="power_switch_end"
 
-SUBSYSTEM=="input", KERNEL=="event*", SUBSYSTEMS=="acpi", TAG+="power-switch"
-SUBSYSTEM=="input", KERNEL=="event*", KERNELS=="thinkpad_acpi", TAG+="power-switch"
-SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="twl4030_pwrbutton", TAG+="power-switch"
+SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT_SWITCH}=="1", TAG+="power-switch"
+SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT_KEY}=="1", TAG+="power-switch"
 
 LABEL="power_switch_end"