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 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?

EDIT:

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

3 Answers 3

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 bios look for something like "always restart on power failure"

in ubuntu, edit /etc/default/grub and add

GRUB_RECORDFAIL_TIMEOUT=5

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).

then run

update-grub

share|improve this answer

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

You might want to look here : http://www.apcupsd.com/ for a recommendation.

share|improve this answer

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.