Thinkpad T440s - Sound muted when docked to docking station

Bug #1462977 reported by Fabian Franzen on 2015-06-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ALSA driver
Unknown
Unknown
alsa-driver (Ubuntu)
Undecided
Unassigned

Bug Description

Hi everyone,

when I dock my Thinkpad T440s to my docking station, the sound channel for the speakers connected to the docking station audio jack are muted by default. If I run the following command after docking

amixer --card 1 sset 'Speaker+LO' 100%

the sound starts working. Unfortunatly I have to run this command every time I am docking the system to the docking station. Furthermore there is specific volume slider is not shown in the audio setttings of Unity. So this command could only be a temporary workaround... The internal speakers and the headphones jack of my laptop does not have these problems.

It would be really nice if the audio output of the docking stations stays unmuted, when i connect the laptop to the docking station.

Maybe this bug is related to https://bugzilla.redhat.com/show_bug.cgi?id=1101386, but the workaround proposed there does not work for me.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.19.0-18.18-generic 3.19.6
Uname: Linux 3.19.0-18-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/pcmC1D0p: fabian 2170 F...m pulseaudio
 /dev/snd/controlC1: fabian 2170 F.... pulseaudio
CurrentDesktop: Unity
Date: Mon Jun 8 12:50:20 2015
InstallationDate: Installed on 2015-04-28 (40 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
JournalErrors: Error: command ['journalctl', '-b', '--priority', 'warning'] failed with exit code 1: No journal files were found.
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_Card: Internes Audio - HDA Intel PCH
Symptom_PulseAudioLog:

Symptom_Type: Volume slider, or mixer problems
Title: [HDA-Intel - HDA Intel PCH, playback] volume slider problem
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/10/2013
dmi.bios.vendor: LENOVO
dmi.bios.version: GJET67WW (2.17 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20AQS00600
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvrGJET67WW(2.17):bd12/10/2013:svnLENOVO:pn20AQS00600:pvrThinkPadT440s:rvnLENOVO:rn20AQS00600:rvrNotDefined:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 20AQS00600
dmi.product.version: ThinkPad T440s
dmi.sys.vendor: LENOVO

Fabian Franzen (fabfranzen) wrote :
Raymond (superquad-vortex2) wrote :

[ 22.685811] sound hdaudioC1D0: autoconfig: line_outs=1 (0x16/0x0/0x0/0x0/0x0) type:line
[ 22.685814] sound hdaudioC1D0: speaker_outs=1 (0x14/0x0/0x0/0x0/0x0)
[ 22.685816] sound hdaudioC1D0: hp_outs=1 (0x15/0x0/0x0/0x0/0x0)
[ 22.685817] sound hdaudioC1D0: mono: mono_out=0x0
[ 22.685818] sound hdaudioC1D0: inputs:
[ 22.685820] sound hdaudioC1D0: Dock Mic=0x19
[ 22.685821] sound hdaudioC1D0: Mic=0x1a
[ 22.685823] sound hdaudioC1D0: Internal Mic=0x12
[ 22.709087] input: HDA Intel PCH Dock Mic as /devices/pci0000:00/0000:00:1b.0/sound/card1/input13
[ 22.709144] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card1/input14
[ 22.709194] input: HDA Intel PCH Dock Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card1/input15
[ 22.709569] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card1/input16

seem driver change dock headphone to line out

you have to file upstream bug report

Node 0x15 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Jack", index=0, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x0321101f: [Jack] HP Out at Ext Left
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c 0x0d*
Node 0x16 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Line Out Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Dock Headphone Jack", index=0, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=02, enabled=1
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c* 0x0d

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Fabian Franzen (flammi88-3) wrote :

>> you have to file upstream bug report

And where?

Raymond (superquad-vortex2) wrote :

https://bugzilla.kernel.org/enter_bug.cgi?product=Drivers

sound/alsa

if node 0x16 is dock headphone jack, the playback switch should not be line out

https://bugs.freedesktop.org/enter_bug.cgi?product=PulseAudio

seem missing dock-headphone.conf when there is dock-mic.conf

http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths

Raymond (superquad-vortex2) wrote :

ports:
  analog-input-internal-mic: Internes Mikrofon (priority 8900, latency offset 0 usec, available: unknown)
   properties:
    device.icon_name = "audio-input-microphone"
  analog-input-dock-mic: Docking Station Mikrofon (priority 7800, latency offset 0 usec, available: no)
   properties:
    device.icon_name = "audio-input-microphone"
  analog-input-mic: Mikrofon (priority 8700, latency offset 0 usec, available: no)
   properties:
    device.icon_name = "audio-input-microphone"
  analog-output-speaker: Lautsprecher (priority 10000, latency offset 0 usec, available: no)
   properties:
    device.icon_name = "audio-speakers"
  analog-output-headphones: Analoge Kopfhörer (priority 9000, latency offset 0 usec, available: yes)
   properties:
    device.icon_name = "audio-headphones"

what is the output jack at docking station ?

dock headphone jack or dock line out jack

Raymond (superquad-vortex2) wrote :

control.18 {
  iface CARD
  name 'Dock Mic Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.19 {
  iface CARD
  name 'Mic Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.20 {
  iface CARD
  name 'Internal Mic Phantom Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.21 {
  iface CARD
  name 'Dock Headphone Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.22 {
  iface CARD
  name 'Headphone Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.23 {
  iface CARD
  name 'Speaker Phantom Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }

dock headphone jack is plugged

Fabian Franzen (fabfranzen) wrote :

> if node 0x16 is dock headphone jack, the playback switch should not be line out

> what is the output jack at docking station ?
> dock headphone jack or dock line out jack

Okay... How can I check this? I am sorry, but I am pretty new to the internals alsa / pulseaudio... I am not sure how can I help you best there to narrow down the issue...

Raymond (superquad-vortex2) wrote :
Raymond (superquad-vortex2) wrote :

which dock station are you using ?

http://support.lenovo.com/us/en/documents/pd014572

Fabian Franzen (fabfranzen) wrote :

I am using the ThinkPad Pro Dock (Type 40A1). That should be this one from the lenovo support page: http://support.lenovo.com/us/en/documents/pd027981

Fabian Franzen (fabfranzen) wrote :

And the speakers are connected to the "1x Stereo/Mic Combo Audio Port" mentioned in the device specification of Lenovo. Nothing is connected to the audio port directly at the laptop (that works fine by the way).

Raymond (superquad-vortex2) wrote :

http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/mixer/paths/analog-output-headphones.conf?id=aec811798cd883a454b9b5cd82c77831906bbd2d

the dirty workaound without recompiled driver is to remove volume=off in [Element Speaker+LO] in headphones.conf

[Element Speaker+LO]
switch = off
-volume = off

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

Other bug subscribers

Remote bug watches

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