03-24-2020, 12:54 PM
(03-24-2020, 11:36 AM)bsammon Wrote: So, this is the first laptop I've had with the power button amid the main buttons, and it's driving me crazy because I accidentally hit it quite often.There does seem to be an /etc/acpi directory (I'm on a Manjaro build, so on a mainline kernel), but also you can check /etc/systemd/logind.conf. where you have the ability to specify what HandlePowerKey does. By default, there, is sends a poweroff command. If you have a desktop, it (XFCE4 in my case) will handle power control through its power manager, but it seems you are looking to run without a desktop?
So... what apps/daemons are people using to control/configure what the power button does? I know Mate in the default install comes with something that handles it, but when I uninstalled Mate, that functionality went away. Now when I accidentally hit the power button, the computer immediately powers off.
Is there a desktop-environment-independent system for this? Debian docs refer to ACPI for this, but it appears there isn't ACPI on ARM.