Possible Duplicate:
Why does my computer get less battery life with Ubuntu compared to Windows?
I am running Ubuntu 10.10 on my Dell Studio XPS 1640 and have about one hour of battery life in it, compared to about 2.5 hours running on Windows 7.
This is with wireless and bluetooth on, but still, the difference seems incredible.
What could be causing such a difference and is there a way to close the gap without losing core functionality?
EDIT: here's some output from powertop. This is with bluetooth turned off and Wifi turned on. The output seems pretty normal to me, but as indicated, this is about 1 hour of battery life on a full battery...
Wakeups-from-idle per second : 476.2 interval: 10.0s
Power usage (ACPI estimate): 2.5W (1.2 hours)
Top causes for wakeups:
30.0% (167.2)D chrome
21.0% (117.3) [extra timer interrupt]
13.9% ( 77.4) [kernel scheduler] Load balancing tick
3.4% ( 18.9)D xchat
7.1% ( 39.8) [iwlagn] <interrupt>
5.9% ( 32.9) AptanaStudio3
3.9% ( 21.6)D java
2.7% ( 14.9) [TLB shootdowns] <kernel IPI>
2.5% ( 14.1) docky
1.8% ( 10.0) nautilus
1.6% ( 9.0) thunderbird-bin
1.0% ( 5.5) [ahci] <interrupt>
0.9% ( 5.0) syndaemon
0.8% ( 4.3) [kernel core] hrtimer_start (tick_sched_timer)
EDIT: after changing /proc/sys/vm/laptop_mode
to 5
(it was set to 0
), wakeups seem to have decreased, although usage still seems far too high:
Wakeups-from-idle per second : 263.8 interval: 10.0s
Power usage (ACPI estimate): 2.6W (0.9 hours)
EDIT: I seem to have discovered the main cause: I was using the open source ATI Drivers. I recently installed the official ATI drivers and laptop battery life seems to have doubled since.
EDIT: last edit. The previous 'solution' of installing the official ATI drivers turns out to be a non-solution. Although it does increase battery life, my laptop resolution is maxed out at 1200x800 after a reboot. (Please note that this problem does not need answering in this question as it is a seperate case)
EDIT & SOLUTION:
After more trial and error I finally found a custom PPA that patches Maverick's 2.6.35 kernel. My wakeups have now decreased from 450-1100 to a maximum of 120 (!).
Wakeups-from-idle per second : 110,2 interval: 15,0s
Power usage (ACPI estimate): 2,7W (0,7 hours)
Top causes for wakeups:
19,2% ( 25,7) [extra timer interrupt]
17,0% ( 22,7) java
13,9% ( 18,6) [kernel scheduler] Load balancing tick
10,5% ( 14,0) docky
8,8% ( 11,7) [iwlagn] <interrupt>
7,5% ( 10,0) nautilus
4,3% ( 5,7) [kernel core] hrtimer_start (tick_sched_timer)
3,7% ( 5,0) syndaemon
3,0% ( 4,1) [ahci] <interrupt>
3,0% ( 4,1) ksoftirqd/1
0,1% ( 0,2)D flush-8:0
1,6% ( 2,2) mysqld
1,2% ( 1,7) python
0,7% ( 1,0) [kernel core] iwl_bg_monitor_recover (iwl_bg_monitor_recover)
use powertop and see where the power goes
powertop is awesome tool, and if you have intel hardware check this out http://www.lesswatts.org http://www.lesswatts.org/projects/powertop/known.php
It sounds like your laptop's ACPI support is poor. this happens when the laptop manufacturer doesn't document all the quirks in the power saving features. The outcome is that Ubuntu can not make parts of the laptop go to sleep, and worse the cores can't be switched off when not required.
What I think you should do is switch off bluetooth, see how that effects the battery and the load. Then turn off wifi and see if that effects it. Check your bios settings for compatibility ACPI support and see if you have anything running which is constantly checking the disk.
Also check to see what brightness your screen is set to, lots of energy burns away with the screen.
The Ubuntu Power Management Wiki says a system should be waking up about 40 times per second. Yours is 476!
That said, here is my output:
What I find interesting:
2.5W
- that sounds suspiciously lowFirst obvious thing to try. Run this from a bash prompt:
It should print 5.
After that, maybe others have some ideas, or read the Wiki to see if that helps.