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
  DietPi OS for Pinebook MichaIng 3 5,905 03-11-2024, 05:02 PM
Last Post: oxoocoffee
  Slarm64 on Pinebook [Slackware Arm - 64 bit] KRT 46 65,965 09-26-2023, 03:18 PM
Last Post: mara
  Broke pinebook GUI, what to do, fix or install new? acruhl 2 1,198 07-13-2023, 05:43 PM
Last Post: acruhl
  Orignal PineBook jwp1000 1 925 07-10-2023, 07:44 AM
Last Post: tophneal
  Pinebook no longer boots rjtanner 12 4,450 04-13-2023, 01:09 PM
Last Post: tophneal
  Stock Debian on original Pinebook moonwalkers 1 3,466 01-29-2022, 10:37 PM
Last Post: cel
  Write image to eMMC - Pinebook 11.6" irongarment 4 4,201 01-04-2022, 09:22 PM
Last Post: irongarment
  E: The repository ' bionic Release' no longer has a Release pixelpaperyarn 3 5,510 05-07-2021, 10:20 AM
Last Post: tophneal no longer has release file?? supermassive 1 3,967 01-20-2021, 11:18 AM
Last Post: tophneal
Question Ran apt update on my Pinebook.. ford442 0 2,961 12-25-2020, 04:40 PM
Last Post: ford442

Forum Jump:

Users browsing this thread: 1 Guest(s)