summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2018-09-10 19:50:04 +0200
committerSven Eden <yamakuzure@gmx.net>2018-09-10 19:50:04 +0200
commitaca0f9571ce7cd205f20c979eba5754a4f1321e1 (patch)
treea6690ab56b9145aeae159b152eb331919ff7d5b7
parentb9b098e8388d0157588bf1a65e7ddaed296e4b36 (diff)
Revert "logind: relax udev rules matching devices logind watches for"
This reverts commit 964a6d9fb555cc86528eb1cc1f6d044f85584842. Bug: https://github.com/elogind/elogind/issues/51 elogind doesn't respond to lid events with eudev-3.2.5
-rw-r--r--src/login/70-power-switch.rules9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/login/70-power-switch.rules b/src/login/70-power-switch.rules
index d69e65b3d..91ecd1d24 100644
--- a/src/login/70-power-switch.rules
+++ b/src/login/70-power-switch.rules
@@ -9,7 +9,12 @@
ACTION=="remove", GOTO="power_switch_end"
-SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT_SWITCH}=="1", TAG+="power-switch"
-SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT_KEY}=="1", TAG+="power-switch"
+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*", ATTRS{name}=="tps65217_pwr_but", TAG+="power-switch"
+SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="* WMI hotkeys", TAG+="power-switch"
+SUBSYSTEM=="input", KERNEL=="event*", \
+ SUBSYSTEMS=="platform", DRIVERS=="gpio-keys", ATTRS{keys}=="*,116|116,*|116|*,116,*", TAG+="power-switch"
LABEL="power_switch_end"