Change power button to 'Ask' in Xubuntu 13.10

Posted by Gully.Moy on Ask Ubuntu See other posts from Ask Ubuntu or by Gully.Moy
Published on 2013-10-26T19:35:59Z Indexed on 2013/10/26 22:15 UTC
Read the original article Hit count: 354

Filed under:
|
|
|
|

I have recently installed Xubuntu 13.10 on my Vaio vpcea making me a Linux beginner. The problem is that laptop's power button is right on the edge of the bezel making it far too easy to press accidentally, in my opinion a design fault by Sony.

At present, when I press the power button it shuts down strait away and as you can imagine, when I'm accidentally pressing it all the time it gets very annoying! So I planned to change it to ask what I would like to do when I press it or at least ask if I'm sure.

So I went through the xfce GUI options "Settings Manager" - "Power Manager" to the field "When power button is pressed", but it was already set to "Ask". So I did some digging and found a thread telling me to navigate to /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml where it said to find power-button-action and check that value="3". It already did.

So I looked some more and found this thread which focuses on acpi scripts. I tried solution 1 & 2 using sudoedit to change the files accordingly (I have made executable bash shell scripts already so I think I followed them correctly), but still no difference.

I also found this thread which instructed me to edit /etc/systemd/logind.conf so that HandlePowerKey=ignore. Still no luck.

I even tried my own approach to completely disable /etc/acpi/powerbtn.sh by renaming it powerbtn.sh.bak hoping for at least no response from the power button... and I have done many reboots in between... but still it shuts down!

I have also read that some people have the file /etc/acpi/events/power_button, but I do not.

So does anyone have any other ideas? What else could be executing the shutdown sequence Is there something I'm missing?

I haven't undone any of these actions so every one of the above files is currently edited on my computer, with the exception that "Solution 2" automatically undone "Solution 1" above.

Thanks guys.

© Ask Ubuntu or respective owner

Related posts about xubuntu

Related posts about power-management