aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc/systemd/logind.conf.d/10-ignore-power-key.conf
blob: b5d5e3405711c3931e5473ace877fcdbe3f11924 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
[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.
HandlePowerKey=ignore
HandlePowerKeyLongPress=poweroff