Ubuntu: How can I enable the power button on my server?


The power button on my headless 11.10 server appears to do nothing unless I hold it in for 5 seconds or so, in which case it switches the machine off instantly.

What I'd like it to do if I press it briefly is a normal shutdown (shutdown -P now). How can I allow this?

I have seen this question but it is for desktop installations.


I believe you might need acpi-support. Check out the links below for more info on how to manipulate the power button press event.




You just need to install acpid package (sudo apt-get install acpid), its just one package, nothing more and it will handle all powerbutton events (acpi-support contains more additional packages). Tested on ubuntu server 11.10


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »