Auto-switch audio to HDMI when HDMI monitor/receiver plugged into laptop

In Ubuntu 11.10 pulseaudio will recognize when you plug hdmi (or phone jack) and will make the switch automatically.

See this:

http://voices.canonical.com/david.henningsson/?p=15


I had the same problem but its easy to fix in kubuntu...go to system settings, screen and you will find both your internal and hdmi screen...choose your settings and in the bottom choose hdmi as your default output and save your profile at the bottom...every time you log into kde it will use your hdmi screen as default and your sound output will be auto set by phonon...


In ubuntu 11.10, automatic switching still does not work. Apparently the features are not implemented yet. I am using a script to switch the sound card profile to HDMI and back.

pacmd "set-card-profile output:hdmi-stereo-extra1"

Assigned a short-cut key, life is now better. Read more about it here.