Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

After some upgrade, my headless lubuntu 12.04 stopped shutting down on power button press. I tried to edit ~/.config/openbox/lubuntu-rc.xml without success. Nowhere docs on possible alternative to lubuntu-logout (XF86PowerOff event).

There is another way to shutdown immediately?

Could I set a timeout to logout GUI panel?

share|improve this question

1 Answer 1

First of all I'm slightly confused at your question regarding the GUI panel on a headless server. So I'm going to ignore it and refer to the "headless server" part.

Check the /etc/acpi/events/powerbtn script:

event=button[ /]power

You can try editing the /etc/acpi/powerbtn.sh script to simply shutdown.

If you make changes to these files, make sure you issue

sudo service acpid restart

Before trying them.

A potentially helpful thread: http://ubuntuforums.org/showthread.php?t=2020630

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.