From a9c2eedc7126e6a59feebabb1a9a161b2e1688fa Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 27 Apr 2022 20:33:39 +0200 Subject: [PATCH] Handle long-press system keys only (#1874) Only handle long-press system power, reboot and sleep keys. --- .../rootfs-overlay/etc/systemd/logind.conf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/buildroot-external/rootfs-overlay/etc/systemd/logind.conf b/buildroot-external/rootfs-overlay/etc/systemd/logind.conf index 0a13ffd21..36a0cfc09 100644 --- a/buildroot-external/rootfs-overlay/etc/systemd/logind.conf +++ b/buildroot-external/rootfs-overlay/etc/systemd/logind.conf @@ -18,9 +18,14 @@ #KillOnlyUsers= #KillExcludeUsers=root #InhibitDelayMaxSec=5 -#HandlePowerKey=poweroff -#HandleSuspendKey=suspend -#HandleHibernateKey=hibernate +HandlePowerKey=ignore +HandlePowerKeyLongPress=poweroff +HandleRebootKey=ignore +HandleRebootKeyLongPress=reboot +HandleSuspendKey=ignore +HandleSuspendKeyLongPress=suspend +HandleHibernateKey=ignore +HandleHibernateKeyLongPress=hibernate HandleLidSwitch=ignore HandleLidSwitchExternalPower=ignore HandleLidSwitchDocked=ignore