Audio codec draining power when not in use

Bug #877560 reported by Laurynas Biveinis
376
This bug affects 78 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

in 12.04 no draining power when not in use, but also displays in powertop 100% usege.
in 12.10 this is bug works, also as down (but usage ~4W always)
(This problem is not ubuntu, but the kernel in general. I learned forums and there is this problem a lot of people (including gentoo Andes archlinux). Most of those who have HDA Intel, I suspect that you need to complain to them.)

With no sound playing, powertop reports "Audio codec hwC0D0: Conexant" and "Audio codec hwC0D1: Conexant" drawing 1.64W of power each and being used 100% of time both. All powertop suggestions have been followed.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: linux-image-3.0.0-12-generic 3.0.0-12.20
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: laurynas 3548 F.... pulseaudio
 /dev/snd/controlC0: laurynas 3548 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf2420000 irq 45'
   Mixer name : 'Conexant CX20585'
   Components : 'HDA:14f15069,17aa214c,00100302 HDA:14f12c06,17aa2122,00100000'
   Controls : 8
   Simple ctrls : 5
Card1.Amixer.info:
 Card hw:1 'NVidia'/'HDA NVidia at 0xcdefc000 irq 17'
   Mixer name : 'Nvidia GPU 0b HDMI/DP'
   Components : 'HDA:10de000b,10de0101,00100200'
   Controls : 16
   Simple ctrls : 4
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw 6IHT42WW-1.17'
   Mixer name : 'ThinkPad EC 6IHT42WW-1.17'
   Components : ''
   Controls : 1
   Simple ctrls : 1
Card29.Amixer.values:
 Simple mixer control 'Console',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Date: Tue Oct 18 18:34:58 2011
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=32cc5650-fb08-427e-b09e-328a51f32549
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MachineType: LENOVO 2537CA0
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-12-generic root=UUID=fc971aad-34b1-4f27-82aa-1a923cb63155 ro quiet splash pcie_aspm=force vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-12-generic N/A
 linux-backports-modules-3.0.0-12-generic N/A
 linux-firmware 1.60
SourcePackage: linux
StagingDrivers: mei
UpgradeStatus: Upgraded to oneiric on 2011-10-17 (0 days ago)
dmi.bios.date: 07/15/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 6IET79WW (1.39 )
dmi.board.name: 2537CA0
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr6IET79WW(1.39):bd07/15/2011:svnLENOVO:pn2537CA0:pvrThinkPadT410:rvnLENOVO:rn2537CA0:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 2537CA0
dmi.product.version: ThinkPad T410
dmi.sys.vendor: LENOVO
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: laurynas 3548 F.... pulseaudio
 /dev/snd/controlC0: laurynas 3548 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf2420000 irq 45'
   Mixer name : 'Conexant CX20585'
   Components : 'HDA:14f15069,17aa214c,00100302 HDA:14f12c06,17aa2122,00100000'
   Controls : 8
   Simple ctrls : 5
Card1.Amixer.info:
 Card hw:1 'NVidia'/'HDA NVidia at 0xcdefc000 irq 17'
   Mixer name : 'Nvidia GPU 0b HDMI/DP'
   Components : 'HDA:10de000b,10de0101,00100200'
   Controls : 16
   Simple ctrls : 4
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw 6IHT42WW-1.17'
   Mixer name : 'ThinkPad EC 6IHT42WW-1.17'
   Components : ''
   Controls : 1
   Simple ctrls : 1
Card29.Amixer.values:
 Simple mixer control 'Console',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
DistroRelease: Ubuntu 11.10
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
NonfreeKernelModules: nvidia
Package: alsa-base 1.0.24+dfsg-0ubuntu2
PackageArchitecture: all
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Tags: oneiric running-unity
Uname: Linux 3.0.0-12-generic x86_64
UpgradeStatus: Upgraded to oneiric on 2011-10-17 (0 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare vboxusers
dmi.bios.date: 07/15/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 6IET79WW (1.39 )
dmi.board.name: 2537CA0
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr6IET79WW(1.39):bd07/15/2011:svnLENOVO:pn2537CA0:pvrThinkPadT410:rvnLENOVO:rn2537CA0:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 2537CA0
dmi.product.version: ThinkPad T410
dmi.sys.vendor: LENOVO

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Powertop output. For some reason it show 1W for the codecs, while GUI shows 1.67W consistently.

tags: added: apport-collected
description: updated
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : AlsaDevices.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : AplayDevices.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : BootDmesg.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Card0.Codecs.codec.1.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Card1.Amixer.values.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Card1.Codecs.codec.0.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Card1.Codecs.codec.1.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Card1.Codecs.codec.2.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Card1.Codecs.codec.3.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : Dependencies.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : PciMultimedia.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : ProcEnviron.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : PulseSinks.txt

apport information

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote : PulseSources.txt

apport information

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the release candidate kernel versus the daily build. Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

tags: added: needs-upstream-testing
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

I have done the following:
1) Removed the proprietary nvidia drivers
2) Installed RC and daily kernels from http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.1-rc10-oneiric/ and http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/
3) For each of these ran powertop on idle system. The reported wattage varies 1.4W-1.7W (originally was 1.6W), in all cases the codecs are shown as being used 100% of time. I am attaching the powertop reports. The reports always shows 1W while GUI shows 1.4-1.7, I include the GUI value in the file name.

I didn't re-run appport for these kernels, please let me know if I should. I am keeping them around should I do any other testing with them.

laurynas@laurynas-ThinkPad-T410:~/Downloads$ ls -l *.deb
-rw-rw-r-- 1 laurynas laurynas 11298080 2011-10-18 20:29 linux-headers-3.1.0-0301rc10_3.1.0-0301rc10.201110181253_all.deb
-rw-rw-r-- 1 laurynas laurynas 897630 2011-10-18 20:29 linux-headers-3.1.0-0301rc10-generic_3.1.0-0301rc10.201110181253_amd64.deb
-rw-rw-r-- 1 laurynas laurynas 11295418 2011-10-18 20:33 linux-headers-3.1.0-999_3.1.0-999.201110171146_all.deb
-rw-rw-r-- 1 laurynas laurynas 898358 2011-10-18 20:32 linux-headers-3.1.0-999-generic_3.1.0-999.201110171146_amd64.deb
-rw-rw-r-- 1 laurynas laurynas 37052966 2011-10-18 20:27 linux-image-3.1.0-0301rc10-generic_3.1.0-0301rc10.201110181253_amd64.deb
-rw-rw-r-- 1 laurynas laurynas 37008344 2011-10-18 20:33 linux-image-3.1.0-999-generic_3.1.0-999.201110171146_amd64.deb

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Powertop report with the RC kernel

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Powertop report with the daily kernel

tags: removed: needs-upstream-testing
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

I have installed a custom kernel for an unrelated issue and applied all the released package updates and the powertop report has changed.

The kernel is from bug 844957 : http://people.canonical.com/~ogasawara/lp844957/

Now the powertop reports 0 mW for the sound codec, and the overall battery drain reported is lower too (although not by 3.3W lower).

OTOH meanwhile I have found bug 834725, so I am not sure how much powertop reports can be trusted.

Later I will reboot back to official kernel to check if it is kernel or package updates that have caused this change.

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

I have to take back my last comment. After the reboots to the official kernel and back I still get 100% and >1W reports. Must be something then.

Revision history for this message
Scott Moore (scottbomb) wrote :

Powertop reporting 5.47 watts (!) at 100% on Thinkpad T60. Running Xubuntu with kernel 3.0.0-12-generic

Revision history for this message
Scott Moore (scottbomb) wrote :

Sorry that was incorrect. Unable to delete comment.

Revision history for this message
Matt Price (matt-price) wrote :

powertop 1.97 reporting 4.17 watts and 100% usage on codec hwc0d0, on a thinkpad t410, running ubuntu oneiric. Powertop 1.13 doesn't seem to see it (though there's a large category for 'rescheduling wakeups', not sure if htat's related)

Revision history for this message
Colin Ian King (colin-king) wrote :

So the basic issues here are that we need to get accurate and consistent power measurements that we know are reliable. I suggest running powerstat from my PPA: https://launchpad.net/~colin-king/+archive/powermanagement

* Make sure the machine is not running any unnecessary power sucking applications (like webpages with flash) etc
* Run powerstat - it will take ~8 minutes so that we can get a long battery capacity change to get a more accurate measurement.

..and then we can start looking seeing if this is really as bad as powertop reports.

Revision history for this message
Guilherme Salgado (salgado) wrote :

I think it might be that powertop is on crack here. I see that at the top of powertop's overview all the time (with only a few terminals open), but on powertop-1 it never shows up. Here's a snapshot of both, taken at the same time (on precise):

powertop:
                Usage Events/s Category Description
             2316 rpm Device Laptop fan
            100.0% Device Audio codec hwC0D0: Conexant
             16.3 ms/s 85.9 Process /usr/bin/X :0 -auth /var/run/lightdm/root/:0 vt7 -novtswitch -background
             16.9 ms/s 59.5 Process compiz

powertop-1:
Top causes for wakeups:
  29.5% (136.3) [Rescheduling interrupts] <kernel IPI>
  17.0% ( 78.7) [i915] <interrupt>
  11.5% ( 53.0) compiz
   8.1% ( 37.7) [ehci_hcd:usb2] <interrupt>

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :
Download full text (3.7 KiB)

It's been a while since I reported this, now this machine has received kernel/BIOS/RAM/rest of ubuntu package upgrades, and I cannot reproduce the apparent audio codec power hog with powertop. OTOH, now it's fixated on unused ethernet card, reporting that it is taking 15-16W. Of course all powertop suggestions were followed.

I run powerstat anyway:
Running for 300 seconds (30 samples at 10 second intervals).
ACPI battery power measurments will start in 180 seconds time

  Time User Nice Sys Idle IO Run Ctxt/s IRQ/s Fork Exec Exit Watts
18:51:50 2.7 0.1 0.2 97.0 0.0 1 432 363 0 0 0 13.45
18:52:00 2.5 0.0 0.1 96.8 0.6 1 430 361 0 0 0 13.14
18:52:10 2.8 0.1 0.2 97.0 0.0 2 437 368 0 0 0 13.10
18:52:20 2.4 0.0 0.2 97.1 0.4 1 424 365 0 0 0 13.08
18:52:30 2.5 0.0 0.2 97.3 0.0 1 440 374 0 0 0 13.02
18:52:40 2.1 0.0 0.2 96.8 0.9 1 389 331 0 0 0 12.95
18:52:50 2.8 0.0 0.2 96.7 0.1 1 462 389 2 2 2 13.08
18:53:00 2.6 0.0 0.3 96.8 0.3 2 465 382 4 4 4 13.57
18:53:10 2.7 0.0 0.2 97.1 0.0 1 418 345 0 0 0 13.90
18:53:20 2.3 0.0 0.2 97.6 0.0 1 399 337 0 0 0 14.34
18:53:30 2.8 0.1 0.2 96.2 0.8 2 454 385 0 0 0 14.73
18:53:40 2.1 0.0 0.2 97.7 0.0 1 374 309 0 0 0 15.09
18:53:50 2.4 0.1 0.2 97.4 0.0 1 429 369 1 0 0 15.48
18:54:00 2.0 0.0 0.2 97.1 0.8 2 412 355 0 0 0 15.11
18:54:10 2.8 0.0 0.2 96.8 0.2 2 437 366 0 0 0 14.56
18:54:20 2.4 0.0 0.1 97.6 0.0 2 408 344 0 0 0 14.13
18:54:30 2.7 0.0 0.3 96.3 0.8 1 435 353 0 0 0 13.82
18:54:40 2.3 0.0 0.2 97.3 0.2 1 394 338 0 0 0 13.58
18:54:50 2.8 0.1 0.3 96.7 0.2 1 439 385 0 0 0 13.76
18:55:00 2.4 0.0 0.1 96.8 0.8 1 433 375 0 0 0 14.33
18:55:10 4.4 0.0 0.2 95.4 0.0 3 447 400 0 0 0 14.95
18:55:20 2.2 0.0 0.3 97.4 0.2 1 391 333 0 0 0 15.56
18:55:30 2.8 0.0 0.3 96.9 0.1 1 465 401 0 0 0 15.87
18:55:40 2.0 0.0 0.1 97.9 0.0 2 411 353 0 0 0 15.63
18:55:50 3.0 0.1 0.3 96.7 0.0 1 512 431 2 2 5 15.34
18:56:00 2.5 0.0 0.3 96.3 0.9 1 461 376 4 4 5 15.22
18:56:10 2.7 0.1 0.3 97.0 0.0 2 406 325 0 0 0 14.59
18:56:20 2.4 0.0 0.2 97.5 0.0 1 371 303 0 0 0 14.08
18:56:30 3.0 0.0 0.3 95.4 1.3 2 439 353 0 0 1 13.68
18:56:40 2.1 0.0 0.3 97.6 0.0 1 388 316 1 0 0 13.34
-------- ----- ----- ----- ----- ----- ---- ------ ------ ---- ---- ---- ------
 Average 2.6 0.0 0.2 96.9 0.3 1.4 426.7 359.5 0.5 0.4 0.6 14.22
  StdDev 0.4 0.0 0.1 0.6 0.4 0.5 30.5 28.3 1.1 1.1 1.4 0.90
----...

Read more...

Revision history for this message
suso_thatsucks (mw-sensotech) wrote :

I'm also having this Issue with the last nightly of precise pangolin.

   Usage Events/s Category Description
100.0% Device Audio codec hwC0D1: Conexant

Revision history for this message
David Ayers (ayers) wrote :

I have just upgraded from Maverick to Natty to Oneiric, since Maverick just lost security support. My fan is running at high speed blowing hot air. I have now removed my battery from my laptop and I'm strictly running on AC power. Powertop shows:
Summary: 355,9 wakeups/second, 0,0 GPU ops/second and 0,0 VFS ops/sec

                Usage Events/s Category Description
            100,0% Device Audio codec hwC0D0: IDT
              3,8 ms/s 86,3 Timer hrtimer_wakeup
             28,9 ms/s 69,3 Process /usr/lib/firefox-11.0/firefox
              2,9 ms/s 46,3 Timer tick_sched_timer
             22,8 ms/s 33,0 Process compiz
             10,7 ms/s 31,8 Process /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp v
              1,5 ms/s 21,2 Interrupt [44] radeon
             14,3 ms/s 8,2 Process /usr/lib/unity/unity-panel-service
             11,1 ms/s 3,0 Process //bin/dbus-daemon --fork --print-pid 5 --print-address 7 --s
            179,1 µs/s 7,2 kWork ieee80211_iface_work
              0,9 ms/s 6,5 Interrupt [6] tasklet(softirq)
             33,9 µs/s 4,2 kWork console_callback
...

Revision history for this message
David Ayers (ayers) wrote :

Today after just a few minutes uptime and only using Unity and terminal I get:
ayers@schiefer:~$ uptime
 07:03:34 up 18 min, 2 users, load average: 0.01, 0.09, 0.20
ayers@schiefer:~$ sudo sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +75.0°C

k10temp-pci-00c3
Adapter: PCI adapter
temp1: +74.0°C (high = +70.0°C)
                       (crit = +115.5°C, hyst = +110.5°C)

(starting firefix [without flash installed on the system and simply typing this report] this soon rises to
ayers@schiefer:~$ uptime && sudo sensors
 07:05:37 up 20 min, 2 users, load average: 0.20, 0.11, 0.19
acpitz-virtual-0
Adapter: Virtual device
temp1: +76.0°C

k10temp-pci-00c3
Adapter: PCI adapter
temp1: +75.5°C (high = +70.0°C)
                       (crit = +115.5°C, hyst = +110.5°C)

another two minutes:
ayers@schiefer:~$ uptime && sudo sensors
 07:07:42 up 22 min, 2 users, load average: 0.04, 0.08, 0.17
acpitz-virtual-0
Adapter: Virtual device
temp1: +77.0°C

k10temp-pci-00c3
Adapter: PCI adapter
temp1: +76.6°C (high = +70.0°C)
                       (crit = +115.5°C, hyst = +110.5°C)

Revision history for this message
David Ayers (ayers) wrote :

I rebooted and before loging in (i.e. only the greeter was running) I switched to the console and only monitored the system for a bit with sesnors and top... and 8 minutes later:

 07:18:55 up 8 min, 1 user, load average: 0.01, 0.34, 0.28
acpitz-virtual-0
Adapter: Virtual device
temp1: +80.0°C

k10temp-pci-00c3
Adapter: PCI adapter
temp1: +79.6°C (high = +70.0°C)
                       (crit = +115.5°C, hyst = +110.5°C)

then login and file this report:
 07:22:46 up 12 min, 2 users, load average: 0.28, 0.56, 0.41
acpitz-virtual-0
Adapter: Virtual device
temp1: +85.0°C

k10temp-pci-00c3
Adapter: PCI adapter
temp1: +83.5°C (high = +70.0°C)
                       (crit = +115.5°C, hyst = +110.5°C)

(Under maverick I used this system to run 2 vm simultaniously and surf with about 12 tabs and the fan only got to this level if one oof the vm was compiling or some WebM Video was playing)

Revision history for this message
Lauris Smilga (lauris-smilga) wrote :

This bug is still present in precise. However, the following workaround works for me:
* log in
* echo 1 | sudo tee /sys/module/snd_hda_intel/parameters/power_save
* echo Y | sudo tee /sys/module/snd_hda_intel/parameters/power_save_controller
* pkill pulseaudio
* log out & log in again (so pulseaudio gets restarted)

However just inserting "options snd-hda-intel power_save=1 power_save_controller=Y" in /etc/modprobe.d/alsa-base.conf doesn't work. Why?

Revision history for this message
Philippe Coval (rzr) wrote :
Revision history for this message
Maxim Kim (habamax) wrote :

The workaround provided by Lauris Smilga works for me too.
My X220 reports battery life increase from 3 hours to 5.30.

How can we set those options permanently?

Revision history for this message
austin (bang-a-rang) wrote :

I am in the same boat as Lauris and Smilga,

running 12.04 amd64 on a thinkpad X200, setting the options suggested have given me huge(1.5hrs) battery increases and reduced overall heat. But I am at a loss on how to make perminant.

attempted setting in modprobe.d, rc.local, and sysfs.conf to no avail

Revision history for this message
ultimatebuster (ultimatebusta) wrote :

Lauris Smilga's solution doesn't help me. I'm still seeing the audio codec usage, at 2W

Thinkpad T420

Revision history for this message
ultimatebuster (ultimatebusta) wrote :

Hm the workaround seems to work after I put the computer to sleep and reactivated it.

Revision history for this message
Lars Schütze (lschuetze) wrote :

The workaround from Lauris Smilga works for me (Samsung Series 7 Chronos 700Z3A-S02DE). However I dont find it appreaciate to log-out and log back in to get this fixed. powertop estimates 1.14W usage.

uname -a
Linux ck 3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

lspci -mvknn | grep Audio -B8
Device: 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [1c2d]
SVendor: Samsung Electronics Co Ltd [144d]
SDevice: Device [c0b3]
Rev: 04
ProgIf: 20
Driver: ehci_hcd

Device: 00:1b.0
Class: Audio device [0403]
Vendor: Intel Corporation [8086]
Device: 6 Series/C200 Series Chipset Family High Definition Audio Controller [1c20]

description: updated
description: updated
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

Here is a status of this problem on my laptop with the latest quantal updates. I have attached powertop's HTML output. What I find confusing is that audio devices are listed both at 100% and 0% usage in the same powertop run:

100.0% PCI Device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller
100.0% PCI Device: Advanced Micro Devices [AMD] nee ATI RV635 HDMI Audio [Radeon HD 3600 Series]
[...]
0.0% Audio codec hwC0D0: Analog Devices
0.0% Audio codec hwC0D1: LSI

Can somebody explain this ?

Revision history for this message
Tomas Pospisek (tpo-deb) wrote :

I'm having the same issue but with Debian's kernel linux-image-3.2.0-4-amd64.

None of the tips provided here worked for me except the one by dfsmith:

https://bugs.launchpad.net/ubuntu/+source/powertop/+bug/536631/comments/13

This seems to be an ALSA problem to me. Do the ALSA people and Intel know about this?

Revision history for this message
Tomas Pospisek (tpo-deb) wrote :

I've reported this issue up on alsa-devel. Here's the relevant thread:

   http://article.gmane.org/gmane.linux.alsa.devel/102984

Revision history for this message
Tomas Pospisek (tpo-deb) wrote :

After installing the 3.7-rc5 kernel, the excessive power consumption/heating problem went away here.

Revision history for this message
Hubert Hesse (hubx) wrote :

Is fixed for me in 3.7-rc8. Thanks Tomas for the hint.

Revision history for this message
Mehdi (mehdi-ti) wrote :

I am experiencing this bug on Ubuntu 13.04 with kernel 3.8.0-22-generic. PowerTOP shows "Audio codec hwC0D1: Conexant" consumes 100% in power consumption summery.

Revision history for this message
khink (kees-fmf) wrote :

Another "me too":

$ sudo powertop
Summary: 461.2 wakeups/second, 57.9 GPU ops/seconds, 0.0 VFS ops/sec and 10.0% CPU use
                Usage Events/s Category Description
             36.3 ms/s 242.7 Process /usr/lib/firefox/firefox
            100.0% Device Audio codec hwC0D3: Intel
            100.0% Device Audio codec hwC0D0: Realtek

$ uname -a
Linux zeno 3.8.0-21-generic #32-Ubuntu SMP Tue May 14 22:16:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

$ lspci | grep audio
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)

The workaround
$ echo 1 | sudo tee /sys/module/snd_hda_intel/parameters/power_save
$ echo Y | sudo tee /sys/module/snd_hda_intel/parameters/power_save_controller
$ pkill pulseaudio
worked, even without logging out and in (but not using audio).

Side note: using pm-powersave was a much bigger improvement on battery usage, 22W down to 13W.

Revision history for this message
luojie-dune (luojie-dune) wrote :

confirmed on my HP 2730P

found this issue from PowerTOP 2.3

Revision history for this message
Jan Ask (janaskhoej-gmail) wrote :

Confirmed on Lenovo x121e.

Powertop reports 100% usage of Audio codec hwC0D0: Conexant (pulseaudio )

Revision history for this message
penalvch (penalvch) wrote :

Laurynas Biveinis, this bug report is being closed due to your last comment https://bugs.launchpad.net/ubuntu/+source/linux/+bug/877560/comments/32 regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

tags: added: bios-outdated-1.45
Changed in linux (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Gioele Barabucci (gioele) wrote :

Please reopen this bug. The original reported stated that this problem is fixed on his computer, but the problem persists on many other models. Problems have been reported with up-to-date 3.8 kernel on 13.04 installations.

Revision history for this message
penalvch (penalvch) wrote :

Gioele Barabucci, if you have a bug in Ubuntu, the Ubuntu Kernel team, Ubuntu Bug Control team, and Ubuntu Bug Squad would like you to please file a new report by executing the following in a terminal while booted into a Ubuntu repository kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices
Ubuntu Community: https://wiki.ubuntu.com/ReportingBugs

When opening up the new report, please feel free to subscribe me to it.

Please note, not filing a new report would delay your problem being addressed as quickly as possible.

Thank you for your understanding.

Revision history for this message
Gioele Barabucci (gioele) wrote :

For all the people that are still affected by this bug about 100% usage of audio codecs, I filed a new bug at https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1213719

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.