Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Last year I purchased a Dell Inspiron 5315 laptop shipping with Windows 7 preinstalled. I installed Ubuntu 10.10 alongside it with dual-booting. On upgrading to Ubuntu 11.10, I was upset to find I now get less than one hour of battery life! Windows 7 gives me 2.5 hours of running time.

Is there any possible explanation why my battery is running out faster with Ubuntu? Can anybody tell me better power options?

share|improve this question

4 Answers

up vote 12 down vote accepted

There is a reasonably well known kernel issue with power management on PCI Express systems.

Try editing your boot-up grub entry to include pcie_aspm=force to the kernel parameters, and seeing if that improves your power consumption.

share|improve this answer
1  
Is this answer really correct? packages.ubuntu.com shows that Ubuntu Linux 10.10 (Maverick) have Linux kernel 2.6.35.31.40, while according to the Phoronix website, that power issue started in Linux kernel 2.6.38, and first found on a Ubuntu Linux 11.04 (Natty). See packages.ubuntu.com/maverick/linux and phoronix.com/… – Arnel A. Borja Jan 11 '12 at 6:37
@ArnelA.Borja - The OP mentioned that they noticed the issue in 11.10, so unless it was fixed between 11.04 and 11.10, it makes sense the issue is now occurring. – Shauna Feb 26 at 21:01

If you want to get the best out of your battery life you should go for a lightweight setup. Also kernel 3.2 is known to have bettered some of the regressions that happened in earlier kernels.

These are the kernel options I use:

pcie_aspm=force i915.i915_enable_rc6=1 acpi_osi=Linux acpi_backlight=vendor, the acpi_osi=Linux may or may not be relevant on your dell system.

i915_enable_rc6 enables sleep on idle for the cpu.

pcie_aspm was already explained.

Now to the low power setup. What you could do is take lxde or razor qt desktop environment or you do it as I do. Take some lightweight wm, and the components out of xfce that you need.

I'm up to 7 hours of battery time with my laptop when i turn off wifi.

Now on to laptop-mode. Make sure you have cpufreq installed, then in /etc/laptop-mode/conf.d/cpufreq.conf make sure the battery governor is powersave, BATT_CPU_GOVERNOR=powersave.

cpufreq-info tells you on which governor you are right now.

share|improve this answer

You may want to either upgrade to Precise (the development version that will become 12.04LTS when it's released in April), which seems to have improved battery lifetime on my computers. You can also install 10.04LTS and upgrade when 12.04LTS becomes available. 10.04LTS had far better battery life.

share|improve this answer
3  
Not sure if upgrading to currently alpha release distro is the best advice you can give a user without knowing his level of knowlege. This is rather dangerous and should be avoided (imho). – Bruno Pereira Jan 8 '12 at 15:28
1  
I normally would never do that, but things have changed with Precise. It's supposed to be usable all the way through the cycle, if I understand correctly. Except for a small inconvenience with the upgrade manager, I haven't had a single issue with it so far. But you're right. I did recommend installing 10.04 and upgrading when 12.04 is released. – Jo-Erlend Schinstad Jan 8 '12 at 20:31
Alpha release nonetheless. – Uri Herrera Jan 8 '12 at 20:37
Sure, but not like earlier alpha versions. But again, I recommended 10.04, which is anything but alpha. The point I was trying to make, was that this isn't really about Ubuntu in general, but a special and temporary situation. – Jo-Erlend Schinstad Jan 8 '12 at 20:47
Sounds fair, +1. – Bruno Pereira Jan 8 '12 at 21:11

It's claimed that Windows 7 provides better battery life than Ubuntu, I haven't compared it on my laptops though. That said there are many approaches to increase it. Here are those I've found the most effective:

  1. Install package laptop-mode-tools. It switches your laptop to a "laptop mode" whenever it's on the battery, hard disks are spun down, power saving mode is turned on for peripherals/devices etc.
  2. Use task manager to find the most intensive processes and disable them (check PowerTOP as well). Also disable boot services you don't need (apt-get install bum) and services started by your graphical window manager.
  3. Check that your CPU frequency is scaled down dynamically (cat /proc/cpuinfo).
  4. Reduce screen brightness (display consumes the most power).
  5. Some random tips might help, i.e. see this answer.
share|improve this answer
2  
All reports I've seen, says that Ubuntu LTS-es have provided better battery life than Windows. Recent versions of Ubuntu has had power regressions, for several known reasons, and there may be others. On my laptop, this seems to be radically improved in Precise (the development version that will be released in April). Probably coincidentally, this also happens to be an LTS. – Jo-Erlend Schinstad Jan 7 '12 at 23:54
Watch out for issues like the mouse cutting out when on battery when installing tools like laptop-mode-tools – jeshurun Jul 24 '12 at 16:44

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.