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.

I would like to turn off my server by pressing the power button. The problem is if I am in the login screen (I haven't logged in yet). Pressing the power button will not shutdown my server. How can I solve this problem ?

share|improve this question
1  
DO NOT DO WHAT @Sam IS SUGGESTING HERE. You will very likely corrupt your filesystem and lose data irrecoverably if you make a habit of this. –  Jim Salter Nov 26 '12 at 1:34
add comment

1 Answer

up vote 2 down vote accepted

sudo apt-get update ; sudo apt-get install acpid

That should be all you need to do; after that, the server will catch the ACPI event caused by a short power button press and respond by shutting down cleanly.

share|improve this answer
add comment

Your Answer

 
discard

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.