Sound card not detected on Lenovo T410s with Ubuntu Lucid

Bug #538383 reported by Thomas Korber
84
This bug affects 13 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Lucid by Jimi Rønberg

Bug Description

Hi,

The sound card on a Lenovo 410s is not detected.

uname -a:
Linux rivendell 2.6.32-16-generic #25-Ubuntu SMP Tue Mar 9 16:33:12 UTC 2010 x86_64 GNU/Linux

cat /proc/version_signature:
Ubuntu 2.6.32-16.25-generic

relevant output of lspci -vnvn:

00:1b.0 Audio device [0403]: Intel Corporation Device [8086:3b57] (rev 06)
        Subsystem: Lenovo Device [17aa:215e]
        Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin B routed to IRQ 11
        Region 0: Memory at f2520000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
                Address: 0000000000000000 Data: 0000
        Capabilities: [70] Express (v1) Root Complex Integrated Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
                        ExtTag- RBE- FLReset+
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 128 bytes, MaxReadReq 128 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
                LnkCap: Port #0, Speed unknown, Width x0, ASPM unknown, Latency L0 <64ns, L1 <1us
                        ClockPM- Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed unknown, Width x0, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [130] Root Complex Link <?>

Regards,
Thomas
---
AlsaDevices:
 total 0
 drwxr-xr-x 2 root root 60 2010-04-27 08:01 by-path
 crw-rw----+ 1 root audio 116, 4 2010-04-27 08:01 controlC29
 crw-rw----+ 1 root audio 116, 3 2010-04-27 08:01 seq
 crw-rw----+ 1 root audio 116, 2 2010-04-27 08:01 timer
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
AplayDevices:
 aplay: device_list:244: snd_ctl_pcm_next_device
 **** List of PLAYBACK Hardware Devices ****
Architecture: amd64
ArecordDevices:
 arecord: device_list:244: snd_ctl_pcm_next_device
 **** List of CAPTURE Hardware Devices ****
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/controlC29', '/dev/snd/seq', '/dev/snd/timer', '/dev/sequencer2', '/dev/sequencer'] failed with exit code 1:
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw 6UHT27WW-1.08'
   Mixer name : 'ThinkPad EC 6UHT27WW-1.08'
   Components : ''
   Controls : 1
   Simple ctrls : 1
Card29.Amixer.values:
 Simple mixer control 'Console',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [off]
DistroRelease: Ubuntu 10.04
HibernationDevice: RESUME=UUID=07d75090-ec8c-4444-9aef-842393b10942
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100223.2)
MachineType: LENOVO 29123AG
Package: linux (not installed)
ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.32-21-generic root=/dev/mapper/vg_system-lv_root ro quiet splash
ProcEnviron:
 PATH=(custom, user)
 LANG=de_DE.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Regression: No
RelatedPackageVersions: linux-firmware 1.34
Reproducible: Yes
Tags: lucid audio needs-upstream-testing
Uname: Linux 2.6.32-21-generic x86_64
UserGroups: adm admin cdrom dialout dip libvirtd lpadmin plugdev pulse pulse-access sambashare video
WifiSyslog:
 Apr 28 07:44:20 rivendell NetworkManager: <info> (wlan0): supplicant connection state: completed -> group handshake
 Apr 28 07:44:20 rivendell NetworkManager: <info> (wlan0): supplicant connection state: group handshake -> completed
 Apr 28 08:14:14 rivendell NetworkManager: <info> (wlan0): supplicant connection state: completed -> group handshake
 Apr 28 08:14:14 rivendell NetworkManager: <info> (wlan0): supplicant connection state: group handshake -> completed
dmi.bios.date: 03/25/2010
dmi.bios.vendor: LENOVO
dmi.bios.version: 6UET33WW (1.11 )
dmi.board.name: 29123AG
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:bvr6UET33WW(1.11):bd03/25/2010:svnLENOVO:pn29123AG:pvrThinkPadT410s:rvnLENOVO:rn29123AG:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 29123AG
dmi.product.version: ThinkPad T410s
dmi.sys.vendor: LENOVO

tags: added: kernel-series-unknown
Revision history for this message
Jimi Rønberg (jimirn) wrote :

It looks like it is just the pci id that is not recognized by the kernel driver - running latest ubuntu lucid build from yesterday:

kernel 2.6.32-16.25

I got sound for my Lenovo T410s to work by just adding it temporarely here:

cd '/sys/bus/pci/drivers/HDA Intel'
echo '8086 3b57' > new_id

Jimi Rønberg (jimirn)
tags: added: lucid
tags: removed: kernel-series-unknown
Revision history for this message
Jimi Rønberg (jimirn) wrote :

Here is my relevant output from lspci -vvxxx about the Intel audio:

00:1b.0 Audio device: Intel Corporation Device 3b57 (rev 06)
        Subsystem: Lenovo Device 215e
        Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin B routed to IRQ 11
        Region 0: Memory at f2520000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
00: 86 80 57 3b 02 01 10 00 06 00 03 04 10 00 00 00
10: 04 00 52 f2 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 aa 17 5e 21
30: 00 00 00 00 50 00 00 00 00 00 00 00 0b 02 00 00

Please say if you need anything else.

Revision history for this message
map7 (map7777) wrote :

I've got the same problem on my T410s but I'm running kernel 2.6.32.18 and don't have a HDA Intel directory.

Here are the directories I have in my /sys/bus/pci/drivers directory:
 agpgart-intel asiliantfb ata_piix ehci_hcd imsttfb langwell_gpio pata_acpi pcieport serial
ahci ata_generic e1000e i915 iwlagn ohci_hcd pata_sis pdc_adma uhci_hcd

Revision history for this message
Jimi Rønberg (jimirn) wrote :

map7: sorry forgot to write that you need to run 'modprobe snd-hda-intel' - then the directory will appear

Revision history for this message
tomx (tom-xitio) wrote :

The fix works, but has to be executed after reboot again.
a sudo'ed script with

#/bin/sh
modprobe snd-hda-intel
cd /sys/bus/pci/drivers/HDA\ Intel/
echo '8086 3b57' > new_id

doesn't have the desired effect. Is there a way to set this without having to execute these command after every boot?

Revision history for this message
map7 (map7777) wrote :

tomx that script worked for me.

You were missing the ! after the hash character.

#!/bin/sh
modprobe snd-hda-intel
cd /sys/bus/pci/drivers/HDA\ Intel/
echo '8086 3b57' > new_id

Also did you do the following commands
# chmod +x <script name>
# update-rc.d <script name> defaults

Revision history for this message
tomx (tom-xitio) wrote :

@map7: thanks, that helpded, sound is now available automatically after boot.

Revision history for this message
madbiologist (me-again) wrote :

The just-released ALSA 1.0.23 may help.

From the changelog:

HDA Codec driver

    - ALSA: hda - Add initial support for Thinkpad T410s HDA codec
    attached please find a patch that adds support for at least the T410s
    HDA codec. Most likely it will also add support for the T410 and T510
    based models.
    The patch was derived from Ideapad support. Support for the laptop's and
    docking-station output connectors as well as the docking-station microphone
    connector and the laptops internal devices has been tested. Since it has been
    developed without a data-sheet available, support for digital outputs and the
    laptop's microphone input may well be incorrect.
    Microphone mute functionality is not included:
    The microphone mute button seems to be reported through thinkpad_acpi key
    0000101b. The mute button LED seems to be wired to thinkpad_acpi led
    number 15.

Ubuntu 10.04 "Lucid Lynx" is currently carrying ALSA 1.0.22.1+dfsg-0ubuntu3.

Revision history for this message
Jimi Rønberg (jimirn) wrote :

@madbiologist

Very well, the question is when Ubuntu Lucid will use the new version of ALSA.
Do you know where/who to ask about this ?

Revision history for this message
madbiologist (me-again) wrote :

As Lucid is now in final freeze it won't be getting this version of ALSA.

With luck this version of ALSA will be included in a PPA for Lucid. I suggest monitoring the page at https://launchpad.net/ubuntu/+source/alsa-driver - click the "Other versions of 'alsa-driver' in untrusted archives." link at the bottom.

Revision history for this message
madbiologist (me-again) wrote :

@ Jimi - You may be interested in comment 18 at bug 522982. Note that the linux-alsa-driver-modules-xxx in that ppa does not remain frozen at 1.0.23, but is update daily, which means there is the possibility to introduce new bugs in the form of regressions or instability.

You may also be interested in the comments at bug 557742 - Jerone Young is pushing to try and get this into the alsa-backports package in 10.04. He has also created a dkms package to resolve this issue however he has subsequently advised not to use the dkms package, but wait for alsa-backports, as apparently the dkms package conflicts with the thinkpad-acpi module.

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi Thomas,

Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http://cdimage.ubuntu.com/releases/ . If the issue remains, please run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux 538383

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . 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.

    [This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kernel-sound
tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Thomas Korber (thomas-korbernet) wrote : BootDmesg.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Thomas Korber (thomas-korbernet) wrote : CRDA.txt

apport information

Revision history for this message
Thomas Korber (thomas-korbernet) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Thomas Korber (thomas-korbernet) wrote : IwConfig.txt

apport information

Revision history for this message
Thomas Korber (thomas-korbernet) wrote : Lspci.txt

apport information

Revision history for this message
Thomas Korber (thomas-korbernet) wrote : Lsusb.txt

apport information

Revision history for this message
Thomas Korber (thomas-korbernet) wrote : PciMultimedia.txt

apport information

Revision history for this message
Thomas Korber (thomas-korbernet) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Thomas Korber (thomas-korbernet) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Thomas Korber (thomas-korbernet) wrote : ProcModules.txt

apport information

Revision history for this message
Thomas Korber (thomas-korbernet) wrote : RfKill.txt

apport information

Revision history for this message
Thomas Korber (thomas-korbernet) wrote : UdevDb.txt

apport information

Revision history for this message
Thomas Korber (thomas-korbernet) wrote : UdevLog.txt

apport information

Revision history for this message
Ben Dodson (bjdodson) wrote : apport information

AlsaDevices:
 total 0
 drwxr-xr-x 2 root root 60 2010-05-05 10:12 by-path
 crw-rw----+ 1 root audio 116, 4 2010-05-05 10:12 controlC29
 crw-rw----+ 1 root audio 116, 3 2010-05-05 10:12 seq
 crw-rw----+ 1 root audio 116, 2 2010-05-05 10:12 timer
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
AplayDevices:
 aplay: device_list:244: snd_ctl_pcm_next_device
 **** List of PLAYBACK Hardware Devices ****
Architecture: amd64
ArecordDevices:
 arecord: device_list:244: snd_ctl_pcm_next_device
 **** List of CAPTURE Hardware Devices ****
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/controlC29', '/dev/snd/seq', '/dev/snd/timer', '/dev/sequencer2', '/dev/sequencer'] failed with exit code 1:
CRDA: Error: [Errno 2] No such file or directory
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw 6UHT24WW-1.05'
   Mixer name : 'ThinkPad EC 6UHT24WW-1.05'
   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 10.04
HibernationDevice: RESUME=UUID=5a340a95-8aac-48ff-aba9-e81a210727b5
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
MachineType: LENOVO 291253U
Package: linux (not installed)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-21-generic root=UUID=672c27fd-017a-4c7b-bfb1-4547e8d5145d ro quiet splash
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Regression: No
RelatedPackageVersions: linux-firmware 1.34
Reproducible: Yes
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
Tags: lucid audio needs-upstream-testing
Uname: Linux 2.6.32-21-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 01/14/2010
dmi.bios.vendor: LENOVO
dmi.bios.version: 6UET27WW (1.05 )
dmi.board.name: 291253U
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:bvr6UET27WW(1.05):bd01/14/2010:svnLENOVO:pn291253U:pvrThinkPadT410s:rvnLENOVO:rn291253U:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 291253U
dmi.product.version: ThinkPad T410s
dmi.sys.vendor: LENOVO

Revision history for this message
Ben Dodson (bjdodson) wrote : BootDmesg.txt

apport information

Revision history for this message
Ben Dodson (bjdodson) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Ben Dodson (bjdodson) wrote : IwConfig.txt

apport information

Revision history for this message
Ben Dodson (bjdodson) wrote : Lspci.txt

apport information

Revision history for this message
Ben Dodson (bjdodson) wrote : Lsusb.txt

apport information

Revision history for this message
Ben Dodson (bjdodson) wrote : PciMultimedia.txt

apport information

Revision history for this message
Ben Dodson (bjdodson) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Ben Dodson (bjdodson) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Ben Dodson (bjdodson) wrote : ProcModules.txt

apport information

Revision history for this message
Ben Dodson (bjdodson) wrote : UdevDb.txt

apport information

Revision history for this message
Ben Dodson (bjdodson) wrote : UdevLog.txt

apport information

Revision history for this message
Ben Dodson (bjdodson) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
AmenophisIII (amenophisiii) wrote :

this was fixed in vanilla with commit http://git.kernel.org/linus/c602c8ad45d6ee6ad91fc544513cc96f70790983 please include it in a lucid update

tags: added: patch
removed: needs-kernel-logs needs-upstream-testing
tags: added: trivial
Revision history for this message
madbiologist (me-again) wrote :

@AmenophisIII - The fix you mentioned has not been cc'd to the stable kernel branch, which is where Lucid is getting it's kernel updates from. Maybe try contacting Takashi Iwai (his email address is in the commit you linked) and asking him nicely if he can send this to the stable branch for review.

Revision history for this message
AmenophisIII (amenophisiii) wrote :

just for the record: the "correct" behavior (according to the stable maintainer http://www.kroah.com/log/linux/stable-status-01-2010.html) is: "If ... you have found a patch written by someone else that you wish to have applied to the stable trees, email the git commit id of the patch as it shows up in Linus's tree to the <email address hidden> email address."

done (with cc to takashi)

Revision history for this message
AmenophisIII (amenophisiii) wrote :

the patch is queued for 2.6.32.14 and 2.6.33.5 now.

Revision history for this message
madbiologist (me-again) wrote :

Thanks AmenophisIII.

In the meantime Jerone Young has created a new dkms package which does not conflict with the thinkpad-acpi module - see comments 8 and 9 in bug 557742.

Changed in linux (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Darren Daley (djdaley) wrote :

I am experimenting with Linux, ubuntu 10.04, for my first time. I have a Lenovo T410s 64-bit machine.

I'm quite excited about trying something different than windows for the first time. Problem is the sound isn't functioning. I saw a couple previous posts that address this issue, but I'm not very good with computers beyond being a normal graduate student user. Could somebody give me a step by step guide, in fourth-grader language, on how to resolve this issue, perhaps developing the suggestions around posts 5 and 6? Or am I in over my head, and should go running back to windows 7?

Thank you in advance!

Revision history for this message
AmenophisIII (amenophisiii) wrote :

hello darren

you need to create a script, (that has to be run after every reboot,) that persuades the system that your sound card is supported.
to do this, open a text editor (applications/accessories/ then gedit or mousepad (dunno what is installed per default on lucid).
paste the following lines (without the ==....marker) into a new document...
===========
#!/bin/bash
modprobe snd-hda-intel
echo '8086 3b57' > '/sys/bus/pci/drivers/HDA Intel/new_id'
===========

save it (e.g. as /home/<your username>/audio.sh).
open a terminal (applications/accessories/terminal) (this is quite similar to a dos box).
you can output the script file with cat <filename> (e.g. "cat audio.sh" (if you saved the script in your home directory).
to tell the system, that the script can be executed, type "chmod u+x <filen ame>" and hit <enter>
than you can try if it works with "sudo ./<filen ame>" (it will ask your password, because sudo gives you admin power).
you should then be able to hear audio in music and music players etc. (dont forget to adjust the volume settings, they could be muted).

if that worked you can tell the system, that it should execute that script whenever your system is booted, otherwise you would have to execute after every (re)boot (by opening a terminal and executing "sudo ./<filen ame>" like in the last step).
id suggest, that you wait for the kernel update, that fixes the problem (in a few weeks).
if you want to configure it anyway please read http://www.debian-administration.org/article/Making_scripts_run_at_boot_time_with_Debian or ask in the ubuntuforums

hope that helps

Revision history for this message
AmenophisIII (amenophisiii) wrote :

2.6.32.14 was released. i'm not sure how to get canonicals attention correctly... lets try assigning them :)

Changed in linux (Ubuntu):
assignee: nobody → Canonical Kernel Team (canonical-kernel-team)
Revision history for this message
Bonne Eggleston (bonne) wrote :

Can anyone confirm whether the microphone works with the suggested fix?

Revision history for this message
Thomas Korber (thomas-korbernet) wrote : Re: [Bug 538383] Re: Sound card not detected on Lenovo T410s with Ubuntu Lucid

Hi,

Bonne Eggleston <email address hidden> writes:

> Can anyone confirm whether the microphone works with the suggested fix?

Confirmed. That one can be closed.

Regards,
Thomas

--
Grüße, | <http://www.korber.org> +++++++ <mailto:<email address hidden>>
       Thomas | Linux User Group Ingolstadt: <http://www.lug-in.de>
PGP-ID: 0x4603A0E3 | A4B3 BA2A DDC8 B771 8084 CD4D BE14 5C3E 4603 A0E3

Revision history for this message
RxS (rajeshxsankaran) wrote :

Hi,

> Can anyone confirm whether the microphone works with the suggested fix?
   I am running Linux it 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 08:03:28 UTC 2010 x86_64 GNU/Linux

The two microphones on the laptop (T410s) work, but the sound card will not accept sound from a combination mic/audio
headset when plugged in. The audio is available through the headset and the system will input audio only from the built in mic.

Thanks!
Rajesh

Changed in linux (Ubuntu):
status: Fix Committed → Fix Released
assignee: Canonical Kernel Team (canonical-kernel-team) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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