• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

No Sound through docking station headphone jack

nickednamed

Active Member

Thanks: 28
Messages: 186

#1
Hi all.

I have a laptop (Lenovo X220) plugged into a docking station and I would like to have sound played through the speakers which are plugged into the headphone port at the back of the docking station. At the moment, when I plug my speakers into the dock, I get nothing.

Generally the sound works well (as do all other functions of the dock). When my laptop is not in the dock, sound plays normally through the laptop speakers, and when I plug the speakers into the laptop (not dock) it plays normally through the speakers, over HDMI, etc...

But when the laptop is in the dock, I can use only either the built-in laptop speakers or my external speakers (if plugged into the headphone port on the laptop).

I'd really like to just plug my speakers into the dock, and not have to keep messing around with the cables.

Can anyone point me in the right direction?

When I plug the speakers into the laptop headphone port:
dmesg
Code:
hdaa0: Pin sense: nid=25 sense=0xffffffff (connected)
pcm0: Redirect output to: headphones
pcm0: Playback channel set is: Front Left, Front Right,
pcm0: Playback channel matrix is: 2.0 (connected)
When I plug into the headphones port at the back of the dock:
dmesg
Code:
pcm0: Redirect output to: main
pcm0: Playback channel set is: Front Left, Front Right,
pcm0: Playback channel matrix is: 2.0 (unknown)
sysctl dev.hdac.0.pindump=1 && dmesg
Code:
hdaa0: Dumping AFG pins:
hdaa0: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa0: 25 0421101f 1  15 Headphones    Jack  1/8     Right      Black   0
hdaa0:     Caps:    OUT HP           Sense: 0xffffffff (connected)
hdaa0: 26 61a19050 5  0  Mic           None  1/8     Ext-Rear   Pink    0 DISA
hdaa0:     Caps: IN             VREF Sense: 0x7fffffff (disconnected)
hdaa0: 27 04a1102f 2  15 Mic           Jack  1/8     Right      Black   0
hdaa0:     Caps: IN OUT    EAPD VREF Sense: 0x7fffffff (disconnected)
hdaa0: 28 6121401f 1  15 Headphones    None  1/8     Ext-Rear   Green   0 DISA
hdaa0:     Caps:    OUT              Sense: 0x7fffffff (disconnected)
hdaa0: 29 40f001f0 15 0  Other         None  Unknown 0x00       Unknown 1 DISA
hdaa0:     Caps: IN OUT    EAPD      Sense: 0xffffffff (connected)
hdaa0: 30 40f001f0 15 0  Other         None  Unknown 0x00       Unknown 1 DISA
hdaa0:     Caps: IN                  Sense: 0xffffffff (connected)
hdaa0: 31 90170110 1  0  Speaker       Fixed Analog  Internal   Unknown 1
hdaa0:     Caps:    OUT             
hdaa0: 32 40f001f0 15 0  Other         None  Unknown 0x00       Unknown 1 DISA
hdaa0:     Caps:    OUT             
hdaa0: 34 40f001f0 15 0  Other         None  Unknown 0x00       Unknown 1 DISA
hdaa0:     Caps:    OUT             
hdaa0: 35 90a60120 2  0  Mic           Fixed Digital Internal   Unknown 1
hdaa0:     Caps: IN                 
hdaa0: NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdaa0:  GPIO0: disabled
hdaa0:  GPIO1: disabled
hdaa0:  GPIO2: disabled
hdaa0:  GPIO3: disabled
hdaa1: Dumping AFG pins:
hdaa1: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa1:  5 18560010 1  0  Digital-out   Jack  Digital 0x18       Unknown 0
hdaa1:     Caps:    OUT              Sense: 0x40000000 (disconnected, ELD valid)
hdaa1:  6 18560020 2  0  Digital-out   Jack  Digital 0x18       Unknown 0
hdaa1:     Caps:    OUT              Sense: 0x40000000 (disconnected, ELD valid)
hdaa1:  7 18560030 3  0  Digital-out   Jack  Digital 0x18       Unknown 0
hdaa1:     Caps:    OUT              Sense: 0x40000000 (disconnected, ELD valid)
hdaa1: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0

cat /dev/sndstat
Code:
Installed devices:
pcm0: <Conexant CX20590 (Analog 2.0+HP/2.0)> (play/rec) default
pcm1: <Intel Cougar Point (HDMI/DP 8ch)> (play)
pcm2: <Intel Cougar Point (HDMI/DP 8ch)> (play)
pcm3: <Intel Cougar Point (HDMI/DP 8ch)> (play)
No devices installed from userspace.
ls /dev/dsp*
Code:
/dev/dsp0.0
 

aragats

Aspiring Daemon

Thanks: 345
Messages: 870

#2
Have you tried changing the default unit?
Code:
sysctl hw.snd.default_unit
E.g. I have 4 of them in my T430.
 

nickednamed

Active Member

Thanks: 28
Messages: 186

#3
To be honest, I haven't tried since updating to FreeBSD 11-RELEASE.

I tried with FreeBSD 10.3 but it didn't make any difference. I'm not at home now, so I'll try when I get back and update this thread.

EDIT:

The command sysctl hw.snd.default_unit=X doesn't work (with or without acpi_dock() loaded).

I'm guessing the dock headphone jack is not one of the following devices:
cat /dev/sndstat
Code:
Installed devices:
pcm0: <Conexant CX20590 (Analog 2.0+HP/2.0)> (play/rec) default
pcm1: <Intel Cougar Point (HDMI/DP 8ch)> (play)
pcm2: <Intel Cougar Point (HDMI/DP 8ch)> (play)
pcm3: <Intel Cougar Point (HDMI/DP 8ch)> (play)
Plugging and unplugging the speakers seems to make no difference. There is no change in dmesg, for example.
 

akripo

Member

Thanks: 8
Messages: 22

#4
Same issue here with no sound from the docking station port, no matter what sysctl tunables I tried..

Laptop: Lenovo Thinkpad T410
Docking station: Lenovo Mini Dock Plus Series 3 (4338-10U)
OS: FreeBSD 12.0-CURRENT #3 r333874

Edit: Furthermore, the docking station does not work with the acpi_dock kernel module at all, e.g. none acpi event it is generated while docking / undocking laptop to it...
 

shepper

Aspiring Daemon

Thanks: 229
Messages: 679

#5
FreeBSD groups the pins (nid's in the pindump above) into associations (as=). Associations are either input or output - not both. PIns are assigned by interrogation during boot and usually grouped by location. Unless specified, pcm0 is the default and likely includes your laptop speaker jack (side location). The dock connections are likely in a different pcm assignment (back location). You can check by comparing the pin dumps between booting w/o dock vs booting w/ dock.

I suspect the above pin dump is w/o dock as a group of pins are disconnected.
 

Trihexagonal

Daemon

Thanks: 497
Messages: 1,017

#6
I don't dock my Thinkpads anymore.

The first T61 I acquired was in pristine condition. I loved that laptop... I had it docked compiling ports and unplugged the USB mouse from the docking station since it would not be needed for a while and I wanted to use it. When I unplugged it the screen froze. I waited patiently till it became appartent it wasn't going to pick back up and the only way I could reboot it was to do a hard shutdown by holding in the power button till it reset.

Bye bye, laptop. It went to Heaven before my eyes and there might have been tears in them when it did.
 
Top