Pinebook Pro (i3 WM): Confirm Shutdown on Power Button
I recently purchased the Pine Book Pro, and for the most part, I've really been enjoying it. However, I was wondering if there's a way to customize the behavior when the power button is pressed.

I'm running Manjaro (the i3 WM variant), and when the power button is pressed, it immediately shuts the system down. While this would normally be fine, the power button is unfortunately where the delete key is on my other machines, so I've hit it by mistake more than once.

Is there a way to configure the power button such that, when pressed, there's some confirmation, instead of an immediate power down?

Thank you for any help in this matter.
I'm sorry, but I have to tell you, you are on wrong forum. This is the pinebook (the ancestor of pinebook pro) forum.

Try your question here:
assuming a mod moves this...

disable the power button in systemd, then map the button in your i3 config.

i use wlogout on sway mapped to bindsym + shift + e inetead of the default and my power button does nothing. i keep pushing it by mistake...
This is how I solved this in sway (wayland). I wanted power button to open be/dmenu with common actions (lock, suspend...).

1. Disable power button handling in logind.


2. Handle power button in sway.

input "gpio-key-power" xkb_model "pc105"

bindsym XF86PowerOff exec seat

3. Add seat script to your path.


cmd=`echo -e "lock\nlogout\nsuspend\npoweroff" | bemenu -l 10 -p 'seat>'`

case "$cmd" in


        loginctl lock-session 



        loginctl terminate-session $XDG_SESSION_ID



        systemctl suspend



        systemctl poweroff



5. For loginctl lock-session to work, you also need something like this (mainly the lock part).

exec swayidle -w \
          timeout 300 'swaylock -f -c 000000' \
          timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
          before-sleep 'swaylock -f -c 000000' \
          lock 'swaylock -f -c 000000'

Possibly Related Threads…
Thread Author Replies Views Last Post
  Slarm64 on Pinebook [Slackware Arm - 64 bit] KRT 23 6,714 01-04-2021, 12:23 PM
Last Post: chris-justExploded
Question Ran apt update on my Pinebook.. ford442 0 235 12-25-2020, 04:40 PM
Last Post: ford442
  DietPi OS for Pinebook MichaIng 0 253 12-15-2020, 06:05 AM
Last Post: MichaIng
Information Manjaro ARM for Pinebook erchache2000 88 26,956 11-29-2020, 04:36 PM
Last Post: Mr.Fermer
  Pinebook is going the way of Betamax? trigger 10 3,716 11-01-2020, 02:02 PM
Last Post: leperotero
  Manjaro sway profile for pinebook e-minguez 3 1,190 07-21-2020, 03:25 PM
Last Post: jezek
  Reset User or Factory Reset PineBook Linux 11.6" pittman64 1 1,277 07-07-2020, 11:26 PM
Last Post: tllim
  pinebook black screen when booting with "different power mode than last used" penzoiders 12 5,083 04-27-2020, 06:27 AM
Last Post: tophneal
  Kali Linux for the Pinebook Luke 1 1,494 03-03-2020, 05:01 AM
Last Post: e-minguez
  Anyway to run Teamviewer for ARM/Pinebook? Ekkaia 8 6,473 01-16-2020, 08:51 PM
Last Post: dhosh

Forum Jump:

Users browsing this thread: 1 Guest(s)