Part of my focus this cycle is to see where we can make power saving improvements for Ubuntu Precise 12.04 LTS. There has been a lot of anecdotal evidence of specific machines or power saving features behaving poorly over the past few cycles. So, armed with a 6.5 digit precision multimeter from Fluke I've been measuring the power consumption on various laptops in different test scenarios to try and answer some outstanding questions:* Is it safe to enable Matthew Garrett's PCIe ASPM fix?
* Are the power savings suggested by PowerTop useful and can we reliably enabled any of these in pm-utils?
* How accurate are the ACPI battery readings to estimate power consumption?
* Do the existing pm-utils power.d scripts still make sense?
* Which is better for power saving: i386, i386-pae or amd64?
* How much power does the laptop backlight really use?
* Does halving the mouse input rate really save that much more power?
* Should we re-enable Aggressive Link Power Management (ALPM)?
* Are there any misbehaving applications that are consuming too much power?
* What are the root causes of HDD wake-ups
* Which applications and daemons are creating unnecessary wake events?
* How much does the MSR_IA32_ENERGY_PERF_BIAS save us?
..and many more besides!
From some of the analysis and "crowd sourcing" tests it is clear that the PCIe ASPM fix works well, so we've already incorporated that into Precise.
Aggressive Link Power Management (ALPM) is a mechanism where a SATA AHCI controller can put the SATA link that connects to the disk into a very low power mode during periods of zero I/O activity and into an active power state when work needs to be done. Tests show that this can save around 0.5-1.5 Watts of power on a typical system. However, it has been known in the past to not work on some devices, so I've put a call for testing of ALPM out to the community so we can get a better understanding of the power savings vs reliability.
Some of the PowerTop analysis has shown we can save another 1-2 Watts of power by putting USB and PCI controllers of devices like Webcams, SD card controllers, Wireless, Ethernet and Bluetooth into a lower power state. Again, we would like to understand the range of power savings across a large set of hardware and to see how reliable this is, so another crowd sourced call for testing has been also set up.
So, if you want to contribute to the testing, please visit the above links and spend just a few tens of minutes to see we can extend the battery life of your laptop or netbook. And periodically visit https://wiki.ubuntu.com/Kernel/PowerManagement to see if there any new tests you can participate in.
[UPDATE]
I've written some brief notes on power saving tweaks and also some simple recommendations for application developers to follow too.
The thread continues here (part 2)
Thank you for your work on this! Improving battery life issues on Ubuntu will make it that much more appealing of an OS for both existing and new users.
ReplyDeleteGood Job!
ReplyDeleteSaving energy is good for Mother Earth & for our wallet!
You might also want to have a look at
ReplyDeletehttps://github.com/linrunner/TLP/wiki/TLP-Linux-Advanced-Power-Management
which is made for Thinkpads but runs well on other systems too. If there would be a gui integration for it in Ubuntu (and Kubuntu too) that would be great.
Thank you so much for the effort. The long awaited LTS release finally addressing an issue I'm actually passionate about.
ReplyDeleteHDD wakeups causing massive load cycle count increase (or ridiculously high temperatures of HDD if APM is lowered) is what keeps me from using Ubuntu or linux in general. I'm stuck with Windows 7 where it JUST WORKS. I hope you'll sort this bug out.
ReplyDeleteMy battery life is 2-3 minutes because as soon as I unplug, Ubuntu thinks my battery is dead and goes to hibernate - even if I plug it back in time. It's be great if I can use my laptop again as a laptop.
ReplyDelete(https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/838543)
Install Jupiter in Precise, problem solved.
ReplyDeleteHopefully this release will not have Unity. If it does I'll go to another desktop.
ReplyDelete@Anonymous 20:24
ReplyDeleteIf you don't like Unity... Use Gnome Shell, it's fantastic. I love it. Here's a screenshot.
http://twitter.com/#!/RoatanCyberCafe/status/147220467445530624/photo/1
install instructions here...
http://www.howtoforge.com/install-gnome-3-with-mint-gnome-shell-extensions-or-mate-on-ubuntu-11.10-oneiric-ocelot
I had actually run across many posts about the power consumption of Ubuntu as it is, but on my laptop I don't think I experience it. Whereas my system has a "estimated life" of 3.5 hours, I can usually get 4 hours. Would these new changes affect me as well, or only certain systems that happen to have problems? I would NOT complain about more battery life!
ReplyDeleteMessage has arrived!
ReplyDeleteHi,
ReplyDeleteWindows 7 having a longer battery life for most of the notebooks means a big deal for Ubuntu. Reverting this fact so that Ubuntu has superior battery life would be a huge thing.
Cheers,
Matyas
Power Management cannot be divorced from Suspend and Hibernate behavior. For each feature you turn on you must ensure that it has no impact on Suspend/Hibernate, otherwise it is useless.
ReplyDeleteWhat about more serious power consumption issue on Intel Sandy Bridge laptops?
ReplyDeletehttps://bugs.launchpad.net/ubuntu/+source/linux/+bug/818830
It seemed like we had a fix for this for Precise however there are classes of Sandybridge hardware where the fix caused a hard lockup and the fix had to be reverted, see:
Deletehttp://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=ebbd857e6b9a92c0aff4aacd1b1d2361d888633e
Meanwhile, users can use the workaround i915.i915_enable_rc6=1 for hardware where this works reliably.
Thanks Colin for your answer. i915.i915_enable_rc6=1 seems to work for mine, but is what you mean that the fix won't work for some models of Sandy Bridge?
Deletethans, this very informatif post...
ReplyDelete(http://sandybridgelaptops.blogspot.com/)
I can't wait for the latest release for Ubuntu. Just tried it out a few days ago, and it is very impressive. Will use this on computers that have trouble booting Windows, etc., as well as for personal use.
ReplyDeleteAlso, have you ever heard of Disqus, the comment system? I suggest you really check it out. It is really great, and use it on my blog.
www.disqus.com.