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?
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:
apt-get install bum
) and services started by your graphical window manager.cat /proc/cpuinfo
).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.For 13.04
There are quite a lot of myths about battery life. Essentially, what kills batteries on the long run is heat. What kills them on the short run are unnecessary services and processes. Windows is fairly good at limiting power use because a lot of collaboration with hardware vendors has gone into optimizing hardware power limitations.
You want to try and make sure your computer heats as little as possible when working on battery. On Ubuntu 13.04 you can use TLP. It has the following functions (non exhaustive list):
There is a full answer here explaining in great detail how to use and configure it. The answer here might also help you to make sure your (possibly tweaked) settings apply whenever you boot on battery.
As for the difference between windows and ubuntu, there are a few questions you should ask yourself:
The advantage of Ubuntu over and against Windows is that you could also choose another desktop manager (Unity is quite CPU intensive). Better configuration (even with unity) can allow you to double your battery life. Mileage may (and will) vary.
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.
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
, theacpi_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.