Inaudible sound on fresh boot with ThinkPad X60 using AD1981HD codec

Bug #42361 reported by Chris Howells
54
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Medium
Ubuntu Audio Team

Bug Description

I am running Kubuntu dapper with the latest -21 kernel on a Lenovo ThinkPad X60s.

Sound does not work on first boot on the X60s. This problem was also reported in the forums here:

http://www.ubuntuforums.org/showthread.php?t=156146

Basically if I attempt to use any sound I get an error message such as:

chris@thinky:/usr/share/sounds$ aplay /usr/share/sounds/pop.wav
ALSA lib pcm_direct.c:783:(snd_pcm_direct_initialize_slave) snd_pcm_hw_params_any failed
ALSA lib pcm_dmix.c:831:(snd_pcm_dmix_open) unable to initialize slave
aplay: main:544: audio open error: Invalid argument

If I 'rmmod snd_hda_intel; modprobe snd_hda_intel' then sound starts working.

On IRC crimsun walked me through blacklisting the snd_hda_intel and then manually 'modprobe snd_hda_intel' after boot; sound still fails to work until the module is rmmod'ed and modprobe'd.

Revision history for this message
Chris Howells (chris-chrishowells) wrote :
Download full text (6.7 KiB)

lspci -nv output as requested by crimsun:

0000:00:00.0 0600: 8086:27a0 (rev 03)
 Subsystem: 17aa:2017
 Flags: bus master, fast devsel, latency 0
 Capabilities: [e0] #09 [5109]

0000:00:02.0 0300: 8086:27a2 (rev 03)
 Subsystem: 17aa:201a
 Flags: bus master, fast devsel, latency 0, IRQ 201
 Memory at ee100000 (32-bit, non-prefetchable) [size=512K]
 I/O ports at 1800 [size=8]
 Memory at d0000000 (32-bit, prefetchable) [size=256M]
 Memory at ee200000 (32-bit, non-prefetchable) [size=256K]
 Capabilities: [90] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-
 Capabilities: [d0] Power Management version 2

0000:00:02.1 0380: 8086:27a6 (rev 03)
 Subsystem: 17aa:201a
 Flags: fast devsel
 Memory at ee180000 (32-bit, non-prefetchable) [size=512K]
 Capabilities: [d0] Power Management version 2

0000:00:1b.0 0403: 8086:27d8 (rev 02)
 Subsystem: 17aa:2010
 Flags: bus master, fast devsel, latency 0, IRQ 66
 Memory at ee240000 (64-bit, non-prefetchable) [size=16K]
 Capabilities: [50] Power Management version 2
 Capabilities: [60] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
 Capabilities: [70] #10 [0091]

0000:00:1c.0 0604: 8086:27d0 (rev 02)
 Flags: bus master, fast devsel, latency 0
 Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
 I/O behind bridge: 00002000-00002fff
 Memory behind bridge: ee000000-ee0fffff
 Capabilities: [40] #10 [0141]
 Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+
 Capabilities: [90] #0d [0000]
 Capabilities: [a0] Power Management version 2

0000:00:1c.1 0604: 8086:27d2 (rev 02)
 Flags: bus master, fast devsel, latency 0
 Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
 I/O behind bridge: 00003000-00004fff
 Memory behind bridge: ec000000-edffffff
 Prefetchable memory behind bridge: 00000000e4000000-00000000e4000000
 Capabilities: [40] #10 [0141]
 Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+
 Capabilities: [90] #0d [0000]
 Capabilities: [a0] Power Management version 2

0000:00:1c.2 0604: 8086:27d4 (rev 02)
 Flags: bus master, fast devsel, latency 0
 Bus: primary=00, secondary=04, subordinate=0b, sec-latency=0
 I/O behind bridge: 00005000-00006fff
 Memory behind bridge: e8000000-e9ffffff
 Prefetchable memory behind bridge: 00000000e4100000-00000000e4100000
 Capabilities: [40] #10 [0141]
 Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+
 Capabilities: [90] #0d [0000]
 Capabilities: [a0] Power Management version 2

0000:00:1c.3 0604: 8086:27d6 (rev 02)
 Flags: bus master, fast devsel, latency 0
 Bus: primary=00, secondary=0c, subordinate=13, sec-latency=0
 I/O behind bridge: 00007000-00008fff
 Memory behind bridge: ea000000-ebffffff
 Prefetchable memory behind bridge: 00000000e4200000-00000000e4200000
 Capabilities: [40] #10 [0141]
 Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+
 Capabilities: [90] #0d [0000]
 Capabilities: [a0] Power Management version 2

0000:00:1d.0 0c03: 8086:27c8 (rev 02)
 Subsystem: 17aa:200a
 Flags: bus master, medium devsel, latency 0, IRQ 201
 I/O ports at 1820 [size=32]

0000:00:1d.1 0c...

Read more...

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

Please attach (don't comment inline ;-) dmesg output after reloading snd_hda_intel, thanks.

Changed in linux-source-2.6.15:
status: Unconfirmed → Needs Info
Revision history for this message
Chris Howells (chris-chrishowells) wrote : Re: Inaudible sound on fresh boot with ThinkPad X60 that use AD1981 codec

Here it is. Apologies for attaching inline before.

schris@thinky:~$ sudo rmmod snd_hda_intel
Password:
chris@thinky:~$ sudo modprobe snd_hda_intel
chris@thinky:~$ dmesg > dmesg.out

dmesg.out is attached.

Revision history for this message
Chris Howells (chris-chrishowells) wrote : dmesg output

dmesg output after unloading and loading sound

Revision history for this message
Chris Howells (chris-chrishowells) wrote : Re: Inaudible sound on fresh boot with ThinkPad X60 that use AD1981 codec

Kernel -22 doesn't help, unfortunately.

Revision history for this message
Scott Norris (scottie-z) wrote :

Is this a different chip than the plain old x60 (which has HDA 82801G)? I've got that, which seems to be working okay.

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

@Scott Norris: What's the output from ``tail -2 /proc/asound/oss/sndstat''?

Revision history for this message
Daniel T Chen (crimsun) wrote :
Changed in linux-source-2.6.15:
status: Needs Info → Fix Committed
Revision history for this message
Scott Norris (scottie-z) wrote :

@Daniel Chen:

~$ tail -2 /proc/asound/oss/sndstat
Mixers:
0: Analog Devices AD1981

Hmm ... lspci shows "0000:00:1b.0 0403: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)." I thought 82801G referred to the sound chip somehow, but I see that almost everything on this laptop, as listed by lspci, has 82801G somewhere in the description, so it must be something Intel made up.

Revision history for this message
Chris Howells (chris-chrishowells) wrote :

Scott:

See:

http://en.wikipedia.org/wiki/AC97

The AD1981 is the AC97 Codec, the 82801G is the audio controller.

Changed in linux-source-2.6.15:
status: Fix Committed → Fix Released
Revision history for this message
Chris Howells (chris-chrishowells) wrote :

Upgraded to kernel -23 and it still didn't work (exactly same symptoms). So I had a fiddle in the BIOS. The option to disable the modem also disabled sound (or at least breaks it).

This is fully working for me now, so as far as I'm concerned the bug can be closed.

Thanks.

Revision history for this message
OMEN (anabolic0omen) wrote :

T60P - lspci detects the high definition audio controller. after enabling the modem in the bios, nothing changes, still no sound.

Changed in linux-source-2.6.15:
status: Fix Released → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote : This bug is now reported against the 'linux' package

Beginning with the Hardy Heron 8.04 development cycle, all open Ubuntu kernel bugs need to be reported against the "linux" kernel package. We are automatically migrating this linux-source-2.6.15 kernel bug to the new "linux" package. We appreciate your patience and understanding as we make this transition. Also, if you would be interested in testing the upcoming Intrepid Ibex 8.10 release, it is available at http://www.ubuntu.com/testing . Please let us know your results. Thanks!

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

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

(Should be resolved in 8.10 alpha 6+)

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Per Daniel's last comment I'm marking this Fix Released for Intrepid. If this is not the case when someone is able to test Intrepid, feel free to set the status back to New. Thanks.

Changed in linux:
status: Confirmed → Fix Released
Revision history for this message
Florian Hars (hars) wrote :

There is still no sound on an X60t after updating to the final intrepid. It used to work fine before, but now the only sound I can produce is the system beep (Ctrl-G) on the console.
The symptoms are slightly different than described here, I get no error messages when I call aplay, the rmmod/modprobe dance has no effect, devices and everything are there and every program pretends that everything is working fine, but I don't get any sound.

00:1b.0 0403: 8086:27d8 (rev 02)
 Subsystem: 17aa:2010
 Flags: bus master, fast devsel, latency 0, IRQ 17
 Memory at ee240000 (64-bit, non-prefetchable) [size=16K]
 Capabilities: [50] Power Management version 2
 Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
 Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
 Capabilities: [100] Virtual Channel <?>
 Capabilities: [130] Root Complex Link <?>
 Kernel driver in use: HDA Intel
 Kernel modules: snd-hda-intel

Changed in linux:
status: Fix Released → New
Revision history for this message
Florian Hars (hars) wrote :

In my case, the cause was that during or shortly after the update some program seems to have muted the PCM channel without beng told to do so.

Revision history for this message
arno_b (arno.b) wrote :

Set to confirm since the problem seems to be still here on Intreprid.

Changed in linux:
status: New → Confirmed
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

For those of you still having issue and running Intrepid, can you run the alsa-info.sh script - http://alsa-project.org/alsa-info.sh - and attach the resulting alsa-info.txt file:

./alsa-info.sh --no-upload

Thanks

Changed in linux:
status: Confirmed → Incomplete
Revision history for this message
Sebastian Bergmann (sb-sebastian-bergmann) wrote :
Changed in linux:
assignee: nobody → ubuntu-audio
status: Incomplete → Triaged
Revision history for this message
Sebastian Bergmann (sb-sebastian-bergmann) wrote :

Is there any other information I can provide to expedite the process of fixing this bug? I would really like to have sound working on my notebook :-/

Revision history for this message
Sebastian Bergmann (sb-sebastian-bergmann) wrote :

I booted with the latest Jaunty Jackalope LiveCD and with that I have working sound after boot.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Sebastian,

Thanks for testing Jaunty and the feedback. Sounds promising.

@Chris Howells, since you are the original bug reporter, care to give us any feedback regarding Intrepid's final release as well as the Jaunty Alpha LiveCD? Thanks.

Changed in linux:
status: Triaged → Incomplete
Revision history for this message
akaposi (ambrus.kaposi) wrote :

I had no sound after installing Intrepid on my X60s and found that the cause was that the PCM channel was muted by default. I was able to turn it on in alsamixer and know everything works fine.

Revision history for this message
Jim Lieb (lieb) wrote :

Reports indicate that recent releases have fixed this problem. This bug is closed. If this recurs with recent Jaunty kernels, please file a new bug against that release.

Changed in linux (Ubuntu):
status: Incomplete → Won't Fix
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.