+5W power consumption when playing audio on X201 with Linux
+5W power consumption when playing audio on X201 with Linux
Hi folks!
My Thinkpad X201’s power consumption raises from ~12W to ~17W when playing any kind of audio. It seems that the additional power consumption is not caused by interrupts or CPU usage of alsa or pulseaudio. The problem does not occur on Windows XP where the consumption only increases slightly by about half a watt.
I’m using Fedora 15 x86_64 with kernel v2.6.40 (a renamed v3.0 kernel for compatibility reasons) but I’ve also tried a live cd (run from SD-Card) of Bodhi (a minimal Ubuntu derivative which seems to omit PulseAudio) where the problem occurs too.
Since this problem is very annoying I’m highly interested in a solution — any ideas?
Thanks in advance
Michael
€dit: Just wondering if this thread would better fit in the “Thinkpad - General HARDWARE/SOFTWARE questions” subforum. Could an admin please move it if I’m correct?
My Thinkpad X201’s power consumption raises from ~12W to ~17W when playing any kind of audio. It seems that the additional power consumption is not caused by interrupts or CPU usage of alsa or pulseaudio. The problem does not occur on Windows XP where the consumption only increases slightly by about half a watt.
I’m using Fedora 15 x86_64 with kernel v2.6.40 (a renamed v3.0 kernel for compatibility reasons) but I’ve also tried a live cd (run from SD-Card) of Bodhi (a minimal Ubuntu derivative which seems to omit PulseAudio) where the problem occurs too.
Since this problem is very annoying I’m highly interested in a solution — any ideas?
Thanks in advance
Michael
€dit: Just wondering if this thread would better fit in the “Thinkpad - General HARDWARE/SOFTWARE questions” subforum. Could an admin please move it if I’m correct?
Last edited by Mike42 on Sun Sep 25, 2011 8:49 am, edited 1 time in total.
-
Volker
- Junior Member

- Posts: 482
- Joined: Fri Oct 01, 2004 10:21 am
- Location: Dublin, Ireland
- Contact:
Re: +5W power consumption when playing audio on X201 with Linux
Let me start with the obvious... is the Audio power management enabled? E.g. run powertop -> Tunables -> Enable Audio codec power management.
Re: +5W power consumption when playing audio on X201 with Linux
Yes.Volker wrote:Let me start with the obvious... is the Audio power management enabled? E.g. run powertop -> Tunables -> Enable Audio codec power management.
Code: Select all
[root@hal ~]# cat /sys/module/snd_hda_intel/parameters/power_save
1
[root@hal ~]# cat /sys/module/snd_hda_intel/parameters/power_save_controller
Y
Re: +5W power consumption when playing audio on X201 with Linux
*push* the Problem still exists and is as anoying as ever.
Re: +5W power consumption when playing audio on lenov with Linux
This is also affecting lenovo g470 , even on idle I donno if this is related to pulseaudio or alsa
Note, I reported this bug on various boards :
http://rzr.online.fr/q/lenovo
Note, I reported this bug on various boards :
http://rzr.online.fr/q/lenovo
http://rzr.online.fr/q/lenovo# Lenovo G470 | Model Name : 20078 | M fg Date: 11/03/23 | BIOS: 40CN23WW(V2.09) 06/20/2011 | OS:GNU/Linux/Debian
http://forum.thinkpads.com/viewtopic.php?f=41&t=100355# Please help to fix : Fan, Acpi, Dsdt, Aspm ...
http://forum.thinkpads.com/viewtopic.php?f=41&t=100355# Please help to fix : Fan, Acpi, Dsdt, Aspm ...
Re: +5W power consumption when playing audio on X201 with Linux
I just tried Ubuntu 12.04 beta with XFCE. The problem still remains. With everything turned off I can get power consumption as low as 7.5W but as soon as I play any music it raises to 13.2W.
It seems to be somehow CPU/RAM-related. If I stress the CPU with mprime’s Blend-test the power consumption goes up to 42W (what a coincidence
) and barely rises by maybe 0.5W (hard to measure because mprime’s load is not really constant) as soon as I play music. Those 0.5W could be inevitable caused by DACs, amplifiers etc. and would be quite okay.
Can anyone confirm this problem? I don’t want to open a bug report in bugzilla.kernel.org without some backing.
Edit: Just did some more testing with 4 instances of md5sum /dev/zero. As you can see in this picture the power consumption raises from 34W to 35W after I start gmpc+mpd at ~30 seconds: http://www.abload.de/image.php?img=cpu36fc7.png
I used to record the power consumption. Used kernel is Linux hal 3.2.1-3.fc16.x86_64 #1 SMP Mon Jan 23 15:36:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux.
It seems to be somehow CPU/RAM-related. If I stress the CPU with mprime’s Blend-test the power consumption goes up to 42W (what a coincidence
Can anyone confirm this problem? I don’t want to open a bug report in bugzilla.kernel.org without some backing.
Edit: Just did some more testing with 4 instances of md5sum /dev/zero. As you can see in this picture the power consumption raises from 34W to 35W after I start gmpc+mpd at ~30 seconds: http://www.abload.de/image.php?img=cpu36fc7.png
I used
Code: Select all
while true; do bc -l <<< "$(cat /sys/class/power_supply/BAT0/current_now)/10^6*$(cat /sys/class/power_supply/BAT0/voltage_now)/10^6" | tee -a powerlog.txt; sleep 1; doneRe: +5W power consumption when playing audio on X201 with Linux
Wait, so it's actually just +1W due to audio?
Well... yeah, that seems pretty reasonable actually.
My bet is that the audio player(s) that you're using are keeping the CPU out of the deeper C-states. Have you tried checking with powertop to see if that's the case? I know you said that they're not generating too many interrupts, but perhaps they're still keeping the CPU out of C6 et al. Recent Intel chips are *very* efficient in their deepest sleep states, but the challenge is often to get them to stay there...
Well... yeah, that seems pretty reasonable actually.
My bet is that the audio player(s) that you're using are keeping the CPU out of the deeper C-states. Have you tried checking with powertop to see if that's the case? I know you said that they're not generating too many interrupts, but perhaps they're still keeping the CPU out of C6 et al. Recent Intel chips are *very* efficient in their deepest sleep states, but the challenge is often to get them to stay there...
Need help with Linux or FreeBSD? Catch me on IRC: I'm ThinkRob on FreeNode and EFnet.
Code: Select all
Current laptop: X1 Carbon 3
Current workstation: noneRe: +5W power consumption when playing audio on X201 with Linux
Very good point!ThinkRob wrote:Wait, so it's actually just +1W due to audio?
Well... yeah, that seems pretty reasonable actually.
My bet is that the audio player(s) that you're using are keeping the CPU out of the deeper C-states. Have you tried checking with powertop to see if that's the case? I know you said that they're not generating too many interrupts, but perhaps they're still keeping the CPU out of C6 et al. Recent Intel chips are *very* efficient in their deepest sleep states, but the challenge is often to get them to stay there...
Take a look:
Without music everything’s fine:
http://www.abload.de/image.php?img=2012 ... 84txlg.png
With music the C3 and C6 values are dropping and in “package” they are dropping to a steady 0.
http://www.abload.de/image.php?img=2012 ... 8dbaf6.png
Especially the “package” values are outstanding. I don’t know what they mean with “package” exactly, but something’s apparently preventing it from sleeping.
Re: +5W power consumption when playing audio on X201 with Linux
I believe that "package" refers to the CPU package, i.e. the complete CPU (as opposed to the individual cores.) This would be useful since threads can (and will) shift around from core-to-core. [1]Mike42 wrote: Especially the “package” values are outstanding. I don’t know what they mean with “package” exactly, but something’s apparently preventing it from sleeping.
I don't know what player, codec, bitrate, etc. was used for your test, but what you posted doesn't really seem abnormal. Using the CPU will indeed keep it awake more.
Music playback is actually one of those things that people tend to forget about, but which can be rather bad for power savings. It requires constant CPU activity, and depending on your OS's process scheduler, thread/core scheduling, frequency scaling algorithms, etc. can make for some interesting edge cases.
[1] When discussing modern Intel CPUs in detail, we're *rapidly* veering out of my realm of expertise. Most of the processors that I grok at a low level are old enough that "superscalar" was a hot new term when they were new...
Need help with Linux or FreeBSD? Catch me on IRC: I'm ThinkRob on FreeNode and EFnet.
Code: Select all
Current laptop: X1 Carbon 3
Current workstation: noneRe: +5W power consumption when playing audio on X201 with Linux
Well, that would include PCI Express, DMI and Memory Controller too, since those have been integrated into the Nehalem (Core i) Microarchitecture.ThinkRob wrote: I believe that "package" refers to the CPU package, i.e. the complete CPU (as opposed to the individual cores.) This would be useful since threads can (and will) shift around from core-to-core. [1]
I’ve tried several different players, codecs and pluseaudio or plain alsa.I don't know what player, codec, bitrate, etc. was used for your test,
Yes of course, but apparently the cores themself are not the problem (since their Sleep-States only worsen slightly).but what you posted doesn't really seem abnormal. Using the CPU will indeed keep it awake more.
But but but in WindowsXP it only causes a small increase in power consumption! So there has to be some driver issue somewhere.Music playback is actually one of those things that people tend to forget about, but which can be rather bad for power savings. It requires constant CPU activity, and depending on your OS's process scheduler, thread/core scheduling, frequency scaling algorithms, etc. can make for some interesting edge cases.
-
spuhpointer
- Posts: 1
- Joined: Mon Feb 03, 2014 8:16 am
- Location: Riga, Latvia
Re: +5W power consumption when playing audio on X201 with Li
Hi Folks,
Any news about this? Mike42 did you manage to fix this?
Seems kernel developers blames some Alsa shared libraries.
I am getting the same issue +5 watt on Linux mint 16, 64bit, kernel 3.11 when playing musing on my lenovo x201.
This really makes the battery to drain two times faster!
Thanks
Any news about this? Mike42 did you manage to fix this?
Seems kernel developers blames some Alsa shared libraries.
I am getting the same issue +5 watt on Linux mint 16, 64bit, kernel 3.11 when playing musing on my lenovo x201.
This really makes the battery to drain two times faster!
Thanks
-
- Similar Topics
- Replies
- Views
- Last post
-
-
W530 Audio issue - Speakers not working, Audio jack ok
by TaffyBoy » Mon Apr 24, 2017 5:15 pm » in Thinkpad - General HARDWARE/SOFTWARE questions - 1 Replies
- 607 Views
-
Last post by TaffyBoy
Mon May 01, 2017 4:13 am
-
-
-
Audio driver driving me nuts!
by sktn77a » Tue Jan 31, 2017 11:11 am » in ThinkPad T430/T530 and later Series - 4 Replies
- 518 Views
-
Last post by Thinkpad4by3
Sun May 14, 2017 9:17 pm
-
-
-
Does the T410/420s non S pass hdmi audio in Win7 & 10?
by TonyJZX » Sat Feb 04, 2017 4:10 am » in ThinkPad T400/410/420 and T500/510/520 Series - 6 Replies
- 981 Views
-
Last post by dr_st
Sun Feb 05, 2017 3:13 am
-
-
-
How to improve audio on a Thinkpad T530 under Ubuntu?
by wrybread » Sun Mar 05, 2017 2:14 am » in Linux Questions - 1 Replies
- 1192 Views
-
Last post by wrybread
Fri Apr 07, 2017 5:38 pm
-
Who is online
Users browsing this forum: No registered users and 0 guests




