PINE64
power button - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114)
+--- Thread: power button (/showthread.php?tid=9507)



power button - bsammon - 03-24-2020

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.

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.


RE: power button - belfastraven - 03-24-2020

(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.

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.
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?


RE: power button - xmixahlx - 03-24-2020

i set the power button to ignore as described above in logind.conf, then use wlogout with sway for selection with mod+shift+e.


RE: power button - bsammon - 03-25-2020

(03-24-2020, 11:19 PM)xmixahlx Wrote: then use wlogout with sway for selection with mod+shift+e.

I have no idea what this is, or even whether it is something I would be interested in.