summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2018-09-10 19:54:59 +0200
committerSven Eden <yamakuzure@gmx.net>2018-09-10 19:54:59 +0200
commit0af8158f8d08aab023d6a848a993af19be5d8480 (patch)
treeeacd63942e4c7bd72b7ee42865cfed66029e02fa
parentaca0f9571ce7cd205f20c979eba5754a4f1321e1 (diff)
Prep v239: Re-Add the new ENV{} mechanism to 70-power-switch.rules, but leave out gpio.
-rw-r--r--src/login/70-power-switch.rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/70-power-switch.rules b/src/login/70-power-switch.rules
index 91ecd1d24..f569ab50c 100644
--- a/src/login/70-power-switch.rules
+++ b/src/login/70-power-switch.rules
@@ -9,12 +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"