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

I want a machine that loses power to automatically reboot when power is available. I've looked around and haven't found a solution that works for 11.04.

Purportedly at one point you could do:

echo 'server_mode=1' > /proc/pmu/options

However, my install doesn't have a /proc/pmu folder. I assume this is still possible, where is the setting available?


If this isn't possible from the OS, is there a way to script these sorts of changes to BIOS or is this something that requires physical access to the machine on boot to manually edit the settings?.

share|improve this question
up vote 5 down vote accepted

That's not something you can control in your operating system. That's what the BIOS is for. In most BIOS setups there'll be an option like After power loss with possible values like Power off and Reboot.

share|improve this answer

In the BIOS, look for something like "always restart on power failure"

In Ubuntu, edit /etc/default/grub.

sudo nano /etc/default/grub

and add


Then run:

sudo update-grub

This will make your machine display the boot options for 5 seconds before it boot the default option (instead of waiting forever for you to choose one).

share|improve this answer

You would need a Uninterruptible Power Supply - Soft shutdown with an auto boot.

You might want to look here : for a recommendation.

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.