diff options
| author | 2026-05-13 13:43:33 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:33 +0100 | |
| commit | 04894b00ff99f3aff184dbaffdd4d5b1edb7dcf9 (patch) | |
| tree | 1053cbde681529639ba43bb1eec49428497484a3 /etc | |
| parent | 120ee3a0712594fb0c4fdf99c04f0e9d8874335d (diff) | |
| download | dotfiles-04894b00ff99f3aff184dbaffdd4d5b1edb7dcf9.tar.gz dotfiles-04894b00ff99f3aff184dbaffdd4d5b1edb7dcf9.tar.bz2 dotfiles-04894b00ff99f3aff184dbaffdd4d5b1edb7dcf9.zip | |
refactor(logind): drop device-specific rationale from power-key drop-in
The drop-in is generic policy, not tied to one device. Reword the
comment to reflect that any USB device emitting spurious KEY_POWER
(headsets, KVM switches, cheap keyboards) is covered.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/systemd/logind.conf.d/10-ignore-power-key.conf | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/etc/systemd/logind.conf.d/10-ignore-power-key.conf b/etc/systemd/logind.conf.d/10-ignore-power-key.conf index b5d5e34..6f01dc0 100644 --- a/etc/systemd/logind.conf.d/10-ignore-power-key.conf +++ b/etc/systemd/logind.conf.d/10-ignore-power-key.conf @@ -1,11 +1,8 @@ [Login] -# Ignore single-tap KEY_POWER from any source. The Shokz OpenMeet dongle -# (3511:2EF2) emits KEY_POWER on USB enumeration and on headset power -# transitions, which would otherwise immediately shut the host down. An -# hwdb scancode remap was attempted but the kernel does not honor -# EVIOCSKEYCODE for this device's HID consumer-page mapping. -# -# Long-press (>=5s) still triggers poweroff, preserving the real -# hardware-power-button safety net. +# Ignore single-tap KEY_POWER from any source. Misbehaving USB devices +# (cheap keyboards, KVM switches, headset dongles) sometimes emit +# KEY_POWER on enumeration or for unrelated buttons, which would +# otherwise shut the host down. A long-press (>=5s) still triggers +# poweroff, preserving the real hardware-power-button safety net. HandlePowerKey=ignore HandlePowerKeyLongPress=poweroff |
