Browse Source

Fix elogind being non-reactive to laptop lid events.

Revert "logind: relax udev rules matching devices logind watches for"

This reverts commit 964a6d9fb5 and adds
the new ENV{} mechanism to 70-power-switch.rules, but leave out gpio.

Bug: https://github.com/elogind/elogind/issues/51

elogind doesn't respond to lid events with eudev-3.2.5

Closes: https://github.com/elogind/elogind/issues/51
Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
upstream/latest
Sven Eden 3 years ago
parent
commit
30a67f833e
  1. 5
      src/login/70-power-switch.rules

5
src/login/70-power-switch.rules

@ -11,5 +11,10 @@ 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"
LABEL="power_switch_end"

Loading…
Cancel
Save