[Thinkpad X201] audio no longer work from the HDMI/Display port

Bug #973704 reported by Anmar Oueja
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
PulseAudio
Invalid
Medium
linux (Ubuntu)
Incomplete
Medium
Unassigned
pulseaudio (Ubuntu)
Invalid
Low
Canonical Desktop Team

Bug Description

Repro steps:

pre-requisites:
 - Laptop with working speakers. i am using Thinkpad X201
- Display with HDMI or Display port
- Speakers plugged into the Display

Steps:
- Ensure laptop is not connected to the display
- Play an audio file using Rhythmbox or Totem
- Audio should play fine from the laptop speakers
- Plug in screen and open the sound preferences. Notice the presence of Analog and HDMI/Display port outputs under the "output" tab.
- Analog should be selected

- Plug in screen via the HDMI or the Disiplay pot (I am using display port)
- Ensure speakers are plugged into the screen
- Swtich audio output to HDMI/Display port.
- Sounds no longer there

Expecte Results"

- Sound to come out of the speakers when HDMI/Dislplay port is selected as an output device.

Please note that this used to work fine 2 or so weeks ago on the same laptop, cable, screen and speakers.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: pulseaudio 1:1.1-0ubuntu14
ProcVersionSignature: Ubuntu 3.2.0-22.35-generic 3.2.14
Uname: Linux 3.2.0-22-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0-0ubuntu4
Architecture: amd64
Date: Wed Apr 4 15:48:35 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120328)
ProcEnviron:
 LANGUAGE=en_CA:en
 TERM=xterm
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: pulseaudio
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/01/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 6QET68WW (1.38 )
dmi.board.name: 32492HU
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:bvr6QET68WW(1.38):bd12/01/2011:svnLENOVO:pn32492HU:pvrThinkPadX201:rvnLENOVO:rn32492HU:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 32492HU
dmi.product.version: ThinkPad X201
dmi.sys.vendor: LENOVO
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu5
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/controlC0: anmar 1827 F.... pulseaudio
 /dev/snd/pcmC0D0p: anmar 1827 F...m pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf2520000 irq 45'
   Mixer name : 'Intel IbexPeak HDMI'
   Components : 'HDA:14f15069,17aa2155,00100302 HDA:80862804,17aa21b5,00100000'
   Controls : 14
   Simple ctrls : 6
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw 6QHT33WW-1.14'
   Mixer name : 'ThinkPad EC 6QHT33WW-1.14'
   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 12.04
HibernationDevice: RESUME=UUID=b4d9b4e1-2c4a-4539-bcac-2f26dc3fc09a
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120328)
MachineType: LENOVO 32492HU
Package: pulseaudio 1:1.1-0ubuntu15
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=en_CA:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-23-generic root=UUID=ca9fa933-73f9-4f5d-92c1-902c730bbdb7 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-23-generic N/A
 linux-backports-modules-3.2.0-23-generic N/A
 linux-firmware 1.79
StagingDrivers: mei
Tags: precise staging precise
Uname: Linux 3.2.0-23-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 12/01/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 6QET68WW (1.38 )
dmi.board.name: 32492HU
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:bvr6QET68WW(1.38):bd12/01/2011:svnLENOVO:pn32492HU:pvrThinkPadX201:rvnLENOVO:rn32492HU:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 32492HU
dmi.product.version: ThinkPad X201
dmi.sys.vendor: LENOVO

Revision history for this message
In , colo (johannes-truschnigg) wrote :

Created attachment 59450
This makes HDMI audio work on Linux 3.2.x (0 <= x < 6).

My initial report of this issue can be found at https://bugs.freedesktop.org/show_bug.cgi?id=43947#c7 - this entry should take note of the fact that it happens for me on SNB, and not GM45.

I used to use a custom patch, baked for me by danvet, to make things work from 3.2.0 to 3.2.5. After switching to 3.3.0, I had to make use of another one, effectively pasting my old, working version over the current incarnation of intel_hdmi.c. I'll attached both patches to this bug for sake of completeness.

Revision history for this message
In , colo (johannes-truschnigg) wrote :

Created attachment 59452
This is the fix I use on 3.3.0.

Revision history for this message
Anmar Oueja (anmar) wrote :
Changed in pulseaudio (Ubuntu):
importance: Undecided → High
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 973704] Re: audio no longer work from the HDMI/Display port

Please get a log from PulseAudio, as per https://wiki.ubuntu.com/PulseAudio/Log.

Revision history for this message
Launchpad Janitor (janitor) wrote : Re: audio no longer work from the HDMI/Display port

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pulseaudio (Ubuntu):
status: New → Confirmed
Revision history for this message
Bernie Innocenti (codewiz) wrote :

Probably this bug: https://bugs.freedesktop.org/show_bug.cgi?id=48266

If confirmed, component should be changed to kernel.

Revision history for this message
In , Bernie Innocenti (codewiz) wrote :

(In reply to comment #1)
> Created attachment 59452 [details] [review]
> This is the fix I use on 3.3.0.

I tested this on a custom compile of the Ubuntu kernel 3.2.0-23-generic, which is based on vanilla 3.2.14.

I didn't notice any difference in behavior: sound works on the analog output, but not on any of the 3 HDMI outputs. This is with a DisplayPort cable on a Lenovo X200 (Sandybridge).

Revision history for this message
In , colo (johannes-truschnigg) wrote :

The Lenovo/IBM Thinkpad X200 contains a GM45 IGP, not a SNB one. I know, because I am sitting in front of one right now :)

It' feels good to read that I'm not alone with the problem though. Apparently, the problem isn't limited to one gen of IGPs.

Revision history for this message
In , Daniel-ffwll (daniel-ffwll) wrote :

Johannes, to avoid further such goof-ups, can you please attach the full dmesg with drm.debug=0xe on the kernel cmdline?

Revision history for this message
David Henningsson (diwic) wrote :

Lowering severity since this seems to be a hardware dependent problem, not a generic one.

summary: - audio no longer work from the HDMI/Display port
+ [Thinkpad X201] audio no longer work from the HDMI/Display port
Changed in pulseaudio (Ubuntu):
importance: High → Low
status: Confirmed → Incomplete
Revision history for this message
Anmar Oueja (anmar) wrote :

I understand the importance lowering but why mark it as incomplete? what else do you need to make it "complete"?

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

I believe what's missing is the PulseAudio logs, as requested by Luke; see http://wiki.ubuntu.com/PulseAudio/Log.

I'm linking the related freedesktop bug, and since it contains a kernel patch it probably belongs being looked at by the kernel team as well.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Kernel Team: As mentioned above, please see the related pulseaudio bug, it contains a possible patch that might help mitigate the issue, though it doesn't appear to have received review from upstream kernel.

Revision history for this message
In , Paulo Zanoni (pzanoni) wrote :

Hi

Could please try the 9 patches from the following link: https://bugs.freedesktop.org/attachment.cgi?id=60529 ?

I believe patch 1 should fix the problem. If you have some time, you could do
two tests:
- one test containing only patch 1 applied
- another test containing all the patches applied

If patch 1 fixes the bug by itself, the plan is to submit only patch 1 to
stable, but submit all the 9 patches to the development branch.

Thank you,
Paulo

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 973704

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Anmar Oueja (anmar) wrote : AcpiTables.txt

apport information

tags: added: apport-collected staging
description: updated
Revision history for this message
Anmar Oueja (anmar) wrote : AlsaDevices.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : AplayDevices.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : BootDmesg.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : CRDA.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : Card0.Codecs.codec.3.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : Dependencies.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : IwConfig.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : Lspci.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : Lsusb.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : PciMultimedia.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : ProcModules.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : PulseList.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : RfKill.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : UdevDb.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : UdevLog.txt

apport information

Revision history for this message
Anmar Oueja (anmar) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: kernel-da-key kernel-key
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I built a precise test kernel with patch 1 from the upstream bug[0]. It would be great if folks affected by this bug can test the kernel, which can be downloaded from:
http://people.canonical.com/~jsalisbury/lp973704/

[0] https://bugs.freedesktop.org/show_bug.cgi?id=48266

Changed in pulseaudio:
importance: Unknown → Medium
status: Unknown → In Progress
Revision history for this message
In , Daniel-ffwll (daniel-ffwll) wrote :

Ok, given that this bug is also about gm45 (and not snb as I've originally thought), I presume it's also fixed by the gen4 infoframe fix merged into drm-intel-fixes:

commit c3e897d603e9b0c19c2c65a3ab1cf07fe87da583
Author: Paulo Zanoni <email address hidden>
Date: Wed May 2 22:55:43 2012 -0300

    drm/i915: enable dip before writing data on gen4

    While testing with the intel_infoframes tool on gen4, I see that when
    video DIP is disabled, what we write to the DATA memory is not exactly
    what we read back later.

    This regression has been introduce in

    commit 64a8fc0145a1d0fdc25fc9367c2e6c621955fb3b
    Author: Jesse Barnes <email address hidden>
    Date: Thu Sep 22 11:16:00 2011 +0530

        drm/i915: fix ILK+ infoframe support

    That commit was setting VIDEO_DIP_CTL to 0 when initializing, which
    caused the problem.

    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43947
    Cc: <email address hidden>
    Tested-by: Yang Guang <email address hidden>
    Signed-off-by: Paulo Zanoni <email address hidden>
    [danvet: Pimped commit message by using the usual commit citation
    layout.]
    Signed-off-by: Daniel Vetter <email address hidden>

Please reopen this bug if this is not the case, and thanks a lot for reporting this issue.

*** This bug has been marked as a duplicate of bug 43947 ***

Changed in pulseaudio:
status: In Progress → Invalid
Revision history for this message
Sebastien Bacher (seb128) wrote :

upstream has a fix commited:

" drm/i915: enable dip before writing data on gen4

    While testing with the intel_infoframes tool on gen4, I see that when
    video DIP is disabled, what we write to the DATA memory is not exactly
    what we read back later."

Changed in linux (Ubuntu):
status: Incomplete → New
Changed in pulseaudio (Ubuntu):
status: Incomplete → New
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Changed in pulseaudio (Ubuntu):
status: New → Invalid
Revision history for this message
Julian Wiedmann (jwiedmann) wrote :

Anmar,
please test the latest kernel from precise-updates (3.2.0-25.40) and see if this issue persists.

(hopefully fixed with 'drm/i915: enable dip before writing data on gen4')

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: removed: kernel-key
To post a comment you must log in.