Comment 8 for bug 477154

Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 477154] Re: When headphones are plugged in, the speaker does not get muted automatically.

Yes, echo hp_detect=1 to /sys/class/sound/hwC0D0/hints, then echo 1 to
/sys/class/sound/hwC0D0/reconfig. Keep in mind that you must stop all
apps that are using the audio device before echoing the value to
reconfig, which likely means configuring PA not to autospawn then
killing other apps (see sudo fuser -v /dev/dsp* /dev/snd/* /dev/seq*).