Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Ubuntu 10.04 while at the login screen (gdm), when the computer's physical power button was pressed a screen popped up that offered options on shutting down the system (shutdown, restart, cancel, ...) along with a 60 second countdown that when elapsed would shutdown the computer.

This is useful if you have a system that you use mainly as a server and occasionally as a desktop. When used as a server, one could press the computer's physical power button and 60 seconds later the system powered down,

Is there a way turn this behavior on or emulate it in lightdm? Or is it a bug ACPI events to shutdown/reboot don't generate a popup like after logging in?

I found a work around, Use PC's power button while screen is locked. However this is more heavy handed that what I am looking for. It shuts down the system immediately after the computer's physical power button is pressed in all cases, logged in or not. It also does not give the option to abort the pending shutdown in the case the computer's power button was pressed accidentally.

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.