Quantcast
Viewing all articles
Browse latest Browse all 4862

Raspberry Pi OS • Re: Disable Keyboard Power Button

I have a keyboard with a power button. Since Bookworm I can't disable the power button any more, as it used to work by setting

[Login]
HandlePowerKey=ignore

/etc/systemd/logind.conf

I don't want wo accidentally shut down the Pi by pressing the power button (twice)
if you read "man logind.conf", it says:
A different application may disable logind's handling of system power and sleep keys and the lid switch by taking a low-level inhibitor lock ("handle-power-key", "handle-suspend-key", "handle-hibernate-key", "handle-lid-switch", "handle-reboot-key"). This is
most commonly used by graphical desktop environments to take over suspend and hibernation handling, and to use their own configuration mechanisms. If a low-level inhibitor lock is taken, logind will not take any action when that key or switch is triggered and
the Handle*= settings are irrelevant.
in this case, that "different application" is wayfire

Statistics: Posted by cleverca22 — Fri Feb 02, 2024 5:30 pm



Viewing all articles
Browse latest Browse all 4862

Trending Articles