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'm using a laptop with lubunut on it for a project I'm working on in a remote location. I chose a laptop because of the batter already attached and the frequent power outages. Most power outages are only for an hour or so, which the laptop will be fine on. But occasionally there are power outages that can last an entire day.

I would like the laptop to be able to boot automatically when it has AC power attached (such as if the battery completely died). Unfortunately, it's a cheap laptop Toshiba NB 200 and the Pheonix Bios does not have any settings for Boot After Power Failure. I could not find a BIOS update, but it seems silly that a laptop bios would be built in with this feature.

So, my question is, "Does this have to be a bios setting or is there some software for Ubunutu that would handle this?" Such as: "If the system shuts down, automatically boot the computer at 6:00am the next day."

The other thought I had was to hook some wires up to the power button switch and use a relay to "push" the button when it has AC power.

Thanks for the advice!

share|improve this question


edit /etc/grub.d/00_header to resemble:

if [ "${recordfail}" = 1 ]; then
  set timeout=0     # <----edit this integer so that it is 0 [zero]
  set timeout=3

the default for set timeout is -1 which of course is "wait forever".

share|improve this answer
Its working great way with my system. perfect solution – user1635700 Dec 12 '13 at 7:24

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.