1

I can't configure my laptop to sleep when I press the physical power button.

I chose that option in the "Battery Monitor Settings" GUI (for all power states), but it still turns off whenever I press it.

The sleep option in the kickstarter menu works fine, though.

(I also chose the "do nothing" option for when I close the lid. This works fine, so it's not like everything in the GUI is just not having an effect...)

1 Answer 1

0

Found the answer:

https://askubuntu.com/a/378795/46331

sudo nano /etc/acpi/powerbtn.sh

and change the last line

/sbin/shutdown -h now "Power button pressed"

to

:: /sbin/shutdown -h now "Power button pressed"

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .