Lenovo X61 - regular sound clicking with power_save_controller=Y

Bug #440540 reported by Alexander Sack
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Fix Released
High
Luke Yelavich

Bug Description

when turning off/on audio using hot key I get a clicking on my speakers. Not sure if that is a bug.

This bug is about getting the same clicking without changing the volume at all. Sometimes it clicks every two minutes, sometimes every few seconds.

Seems to be a powering off/on clicking.

ProblemType: Bug
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: asac 2730 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf8220000 irq 17'
   Mixer name : 'Analog Devices AD1984'
   Components : 'HDA:11d41984,17aa20d6,00100400'
   Controls : 30
   Simple ctrls : 19
Date: Fri Oct 2 14:19:13 2009
DistroRelease: Ubuntu 9.10
Package: alsa-base 1.0.20+dfsg-1ubuntu4
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US.UTF-8
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
SourcePackage: alsa-driver
Uname: Linux 2.6.31-11-generic i686
UserAsoundrc:
 pcm.headset {
        type bluetooth
        device "00:1A:45:83:CB:D5"
        profile "voice"
 }

Revision history for this message
Alexander Sack (asac) wrote :
Revision history for this message
Alexander Sack (asac) wrote :

this started when i upgraded my system a few days ago. before that i didnt upgrade for a week iirc. so regression window seems to be ~Oct 23 - 30

Changed in alsa-driver (Ubuntu):
importance: Undecided → High
assignee: nobody → Luke Yelavich (themuso)
milestone: none → ubuntu-9.10
Revision history for this message
Tony Espy (awe) wrote :

I know sometime during this cycle, we enabled power-save in the ALSA HDA kernel code. This could be causing the amp to be power-cycled un-cleanly causing clicking sounds.

Revision history for this message
Alexander Sack (asac) wrote :

Very good idea ...

I read the alsa/powersave.txt kernel doc and found out about power_save and power_save_controller. So i tried this:

First disabling "power_save" (did not fix it) ...

 cat /sys/module/snd_hda_intel/parameters/power_save
   => 10
 echo 0 > /sys/module/snd_hda_intel/parameters/power_save

Resetting power_save back to default:

 echo 10 > /sys/module/snd_hda_intel/parameters/power_save

Next I checked power_save_controller and disabled it:

 cat /sys/module/snd_hda_intel/parameters/power_save_controller
   => Y
 echo N > /sys/module/snd_hda_intel/parameters/power_save_controller

... and yes! that fixed it!!

Revision history for this message
Alexander Sack (asac) wrote :

for the record, online version of the powersave.txt doc is here: http://www.mjmwired.net/kernel/Documentation/sound/alsa/powersave.txt

reading the last paragraph (line #37+) i wonder if just power_save would be enough? do we know the win we get from using power_save_controller?

summary: - Lenovo X61 - strange sound clicking every minute or two
+ Lenovo X61 - regular sound clicking with power_save_controller=Y
Alexander Sack (asac)
Changed in alsa-driver (Ubuntu):
status: New → Triaged
Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 440540] Re: Lenovo X61 - regular sound clicking with power_save_controller=Y

(Should be changed to affect linux, not alsa-driver)

We should just iterate over the pinctls for low-power state. Is there a data
sheet handy for this codec?

On Oct 7, 2009 6:00 AM, "Alexander Sack" <email address hidden> wrote:

** Changed in: alsa-driver (Ubuntu)
      Status: New => Triaged

--
Lenovo X61 - regular sound clicking with power_save_controller=Y
https://bugs.launchpad.net/bugs/440540
You received this bug notification because you are a member of Ubuntu
Audio Team, which is subscribed to alsa-driver in ubuntu.

Status in “alsa-driver” package in Ubuntu: Triaged

Bug description:
when turning off/on audio using hot key I get a clicking on my speakers. Not
sure if that is a bug.

This bug is about getting the same clicking without changing the volume at
all. Sometimes it clicks every two minutes, sometimes every few seconds.

Seems to be a powering off/on clicking.

ProblemType: Bug
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: asac 2730 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf8220000 irq 17'
  Mixer name : 'Analog Devices AD1984'
  Components : 'HDA:11d41984,17aa20d6,00100400'
  Controls : 30
  Simple ctrls : 19
Date: Fri Oct 2 14:19:13 2009
DistroRelease: Ubuntu 9.10
Package: alsa-base 1.0.20+dfsg-1ubuntu4
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US.UTF-8
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
SourcePackage: alsa-driver
Uname: Linux 2.6.31-11-generic i686
UserAsoundrc:
 pcm.headset {
       type bluetooth
       device "00:1A:45:83:CB:D5"
       profile "voice"
 }

Revision history for this message
Alexander Sack (asac) wrote :

> We should just iterate over the pinctls for low-power state. Is there a data
> sheet handy for this codec?

Daniel, do you think that the real fix is realistic in karmic timeframe still? I would think everything that needs to get fixed in linux is unlikely to happen :/ ... maybe we can come up with a power_save_controller workaround in the meantime?

Revision history for this message
Daniel T Chen (crimsun) wrote :

Possible. I won't have free cycles until this weekend to look. In the
meantime, someone can take a look at the data sheet and see if anything
additional needs to be done for your codec.

At the worst, one can just revert the change in
/etc/modprobe.d/alsa-base.conf.

On Oct 7, 2009 7:21 AM, "Alexander Sack" <email address hidden> wrote:

> We should just iterate over the pinctls for low-power state. Is there a
data > sheet handy for thi...
Daniel, do you think that the real fix is realistic in karmic timeframe
still? I would think everything that needs to get fixed in linux is
unlikely to happen :/ ... maybe we can come up with a
power_save_controller workaround in the meantime?

--

Lenovo X61 - regular sound clicking with power_save_controller=Y
https://bugs.launchpad.net/bugs/440...

Revision history for this message
Daniel T Chen (crimsun) wrote :

Alexander, can you please test the alsa-base and linux-sound-base binary
packages in the ubuntu-audio-dev PPA? Make sure you confirm with a full
shutdown and power cycle.

On Oct 8, 2009 9:10 AM, "Launchpad Bug Tracker" <email address hidden>
wrote:

** Branch linked: lp:~crimsun/alsa-driver/ubuntu.new

--

Lenovo X61 - regular sound clicking with power_save_controller=Y

https://bugs.launchpad.net/bugs/440540 You received this bug notification
because you are a member o...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package alsa-driver - 1.0.20+dfsg-1ubuntu5

---------------
alsa-driver (1.0.20+dfsg-1ubuntu5) karmic; urgency=low

  * debian/rules: Don't reset the controller upon power-save
    (LP: #440540, #445135, #446987, #447602)

 -- Daniel T Chen <email address hidden> Thu, 08 Oct 2009 09:00:58 -0400

Changed in alsa-driver (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Cimali (cimali) wrote :

I have installed Ubuntu 9.10 Karmic and alsa-driver - 1.0.20+dfsg-1ubuntu5, but the problem persists, I solved by installing the new version of ALSA (1.0.21). I also tried to reinstall the existing package (1.0.20) without result.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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