Ubuntu on the GoUbuntu’s battery life has been a bone of contention with me ever since making the switch from Windows a while ago, and it seemed that there was no real fix for this. But perhaps there is.

My trusty HP zt3000 has been able to consistently give me an hour and a half when running under any flavour of Windows XP, but never more than 50 minutes under Ubuntu. I’ve tried everything from running with maximum powersave enabled, turning the processor down as much as it would go, putting the LCD on the absolute lowest setting, and even praying to whatever diety might hear my case. All to no avail … 50 minutes was the most I could expect under Ubuntu 7.10.

But something happened recently and I’m now able to consistently get over an hour and a half of life while running the Human-friendly version of Linux. How did I do this? I’m glad you asked.

Power Management Preferences (Ubuntu)One of the things that has really annoyed me is Ubuntu’s insistence that I shut down when there is 5% of battery remaining. I’ve always found this number to be a rather pessimistic view of actual battery life, so I shut the notifications off. In the Power Management Preferences screen, this involves telling Ubuntu to do nothing when the battery power is critically low.

From here, I simply let the unthinkable happen … I let the battery run dry, starving the notebook of power :???:

This was completely accidental, too. Someone had unplugged my power adapter from the wall and I didn’t notice. After getting right into the middle of a conversation on IRC and checking out a few websites, my notebook completely died on me. I looked to see if the power was still coming to my machine, but all the LEDs were off. It wasn’t receiving power from the socket. I had been using the computer for at least an hour before the power completely died, too.

Now the interesting part. Later in the afternoon I decided to run from battery in the other room and made my way over. From there I watched three episodes of a TV program (each 22 minutes in length), read through my RSS feeds, chatted with some friends on IRC, read through a dozen emails, and wrote this blog post. As of right now, I’ve been on battery for an hour and fourty minutes, with 29% battery life remaining.

“Wow” does not convey just how important this find is to me.  Does the Ubuntu battery problem exist only because of a misreading of the battery charge level?  Can it be spontaneously corrected just by running a battery right to the very end so that Ubuntu can get an accurate measure of just how low it will go?  While I doubt the coding geniuses who make Ubuntu possible would allow an easy solution like this to go undocumented, I won’t complain about the results.

Not only will I regain my semi-mobility with this notebook, but I’ll gain at least an extra 20 minutes of battery life when on the go. I can’t wait to get the word out and see if other people find the same results. Perhaps I should have written this post without the story, but who wants to read a post that just says:

  1. disable the auto-shutdown when battery power is critically low
  2. let the machine run dry
  3. re-charge and test your battery life

Sounds kinda boring :P

Do you run Ubuntu? Have you tried anything like this and found favourable results? I’d be interested in hearing if this was just a fluke.