Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message
+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.
-
- 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 ) 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
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; done
Re: +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? PM or catch me on IRC: I'm ThinkRob on FreeNode and EFnet.
Laptop: X270, running Fedora
Desktop: Intellistation 285 (currently dead)
Workstation: owned by my employer
Toy: Miata!
Laptop: X270, running Fedora
Desktop: Intellistation 285 (currently dead)
Workstation: owned by my employer
Toy: Miata!
Re: +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? PM or catch me on IRC: I'm ThinkRob on FreeNode and EFnet.
Laptop: X270, running Fedora
Desktop: Intellistation 285 (currently dead)
Workstation: owned by my employer
Toy: Miata!
Laptop: X270, running Fedora
Desktop: Intellistation 285 (currently dead)
Workstation: owned by my employer
Toy: Miata!
Re: +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.
Re: +5W power consumption when playing audio on X201 with Linux
Someone confirmed my Bugreport
Now we only need a Fix
Now we only need a Fix
-
- 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
-
-
ThinkPad T530 Very little power, Will not power on
by ThinkPad560X » Sun Mar 10, 2024 12:42 am » in ThinkPad T430-T490 / T530-T590 Series - 2 Replies
- 220 Views
-
Last post by ThinkPad560X
Sun Mar 10, 2024 12:57 pm
-
-
-
Thinkpad T400 Audio issues
by Flameboi420 » Thu Oct 19, 2023 12:59 am » in ThinkPad T400/T410/T420 and T500/T510/T520 Series - 3 Replies
- 2177 Views
-
Last post by RealBlackStuff
Thu Nov 02, 2023 7:10 am
-
-
- 6 Replies
- 1198 Views
-
Last post by johnmsch
Wed Feb 07, 2024 9:37 pm
-
-
T460s - No 3.5mm jack audio output, but working speakers and jack detection
by Sanras » Mon Jan 29, 2024 1:50 pm » in ThinkPad T430-T490 / T530-T590 Series - 10 Replies
- 1293 Views
-
Last post by axur-delmeria
Sun Mar 24, 2024 1:57 am
-
Who is online
Users browsing this forum: No registered users and 22 guests