I got an HP 8530w Elitebook laptop which is in a docking station quite often. When it's in the docking station, I'd like to be able to choose if sound comes from my built-in laptop speakers (for watching a quick video) or from the audio out jack in the back of the docking station, which is connected to my stereo (for movies and music listening). I can switch by physically unplugging the audio cable in the docking station, but that's neither elegant nor convenient.
I know this is possible hardware-wise, because up until about 9.04 or so, this worked with a little trick (pressing the hardware-mute button while hovering the speaker icon in the gnome-panel changed between speaker and dock output). I knew then that this must have been a bug. After some upgrade (no way to tell which) this stopped working.
I only see one output device (Internal Audio Analogue Stereo) in either sound preferences or in pavucontrol
.
There's no jack sense entry in alsamixer
. There's a "dock" entry where I can mute the output out of the dock connector, but the internal speakers stay silent.
My hardware (touch) mute button has no effect (though it changes colour), doesn't bother me though. The hardware volume adjust buttons work as expected.
output of aplay -l
:
List of PLAYBACK Hardware Devices
card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
output of head -n 1 /proc/asound/card*/codec#*
:
==> /proc/asound/card0/codec#0 <==
Codec: Analog Devices AD1984A
==> /proc/asound/card0/codec#1 <==
Codec: LSI ID 1040
Audio device (output of lspci -nn|egrep 'ultimedia|udio|sound|AC97|ac97|EMU'
)
00:1b.0 Audio device [0403]: Intel Corporation 82801I (ICH9 Family) HD Audio Controller [8086:293e] (rev 03)
Any ideas?