Power button behavior doesn't change

I have tried many times changing “power button behavior” into Nothing as user, but when I change into another option in setting, and get back to power setting, the “power button behavior” dosen’t change. Can I change it by force with terminal? or there are another way to change it?

(as Root i can change it but as user it cannot, sorry I’m new using manjoro)

Hi @ray1, and welcome!

According to this page:

systemd can handle this. I think this is what you need:

Open the /etc/systemd/logind.conf (manual):

  • HandlePowerKey: action on power key is pressed;
  • HandleSuspendKey: action on suspend key is pressed.
  • HandleHibernateKey: action on hibernate key is pressed.
  • HandleLidSwitch: action when the lid is closed.

The action can be one of ignore, poweroff, reboot, halt, suspend, hibernate or kexec.

If no configuration, default values used:

  • HandlePowerKey=poweroff
  • HandleSuspendKey=suspend
  • HandleHibernateKey=hibernate
  • HandleLidSwitch=suspend

Hope this helps!

It works, thx @Mirdarthos

1 Like

Got a similar issue but with the screensaver setting stock on 5 min and no chance to change it. Can’t find the line in logind.conf or system.conf.