Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Ubuntu 10.10 on my laptop using an external monitor. The monitor is connected by a HDMI cable. The external monitor does not have boxes, it does have an audio exit for a headphone/.. .

Now when I plug in my external monitor, I want to keep using my laptops boxes. Now it automatically sends the sound through the HDMI port instead.

I can easily change the appropriate settings in the sound configuration menu: I go to hardware and can select the device I want to use: Analog Surround 4.0 Output, instead of the HDMI one. This works and I can hear sound through my laptop boxes.

But I have to change this setting every time again when I plug in my external monitor, when I wake my laptop from the suspended state, etc.

How can I make this the default setting, without having to reset it all the time?


share|improve this question
up vote 3 down vote accepted

Ubuntu 10.10 is somehow not really up-to-date which makes it a bit hard to confirm the default pulseaudio installation there. However it may be worth to see if you have the module-switch-on-port-available loaded.

In case it is there, then try to disable it by commenting out (#) the following line in your /etc/pulse/

# load-module module-switch-on-port-available

After the next restart of the pulseaudio server (e.g. with pulseaudio -k in a terminal) we should no longer switch to a different audio port when this becomes available (e.g. by plugging in your HDMI cable).

share|improve this answer
Ok thanks @Takkat that's exactly what I was looking for! – user1254962 Dec 13 '12 at 13:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.