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 have damaged jack input and my system thinks I have headphones plugged in. On a Windows machine I was able to manually switch from headphones to speakers permanently.

How i can do this in Ubuntu ?

share|improve this question
I think this is not possible in Ubuntu although in Debian it was possible... – Dawid Aug 26 '12 at 1:13

You can try asking pulseaudio to select a different port for the sink (sink is pulseaudio parlance for something where audio "goes").

I suggest you install pavucontrol, it will let you select a specific port, instead of just relying on what the kernel auto-selects for you.

This could potentially be automated by adding a short script with pactl to your startup programs list, the script would do something like:

pactl set-sink-port 0 analog-output-speaker
share|improve this answer
installed pavucontrol and it's strange but when I select speakers and unplug headphones there is still no sound but when I have headphones plugged in and change to speakers the sound in headphones gets louder. What's more sound control displays only HDMI port and Headphones (image link: And that command gave me this: dawid@phoenix:~$ pactl set-sink-port 0 analog-output-speakers Failure: No such entity dawid@phoenix:~$ – Dawid Aug 14 '12 at 20:15
The command may be different based on your sink configuration, if you like you can run pactl list sinks and put the output in a pastebin ( and I can give you an updated version. It will potentially do the same as pavucontrol so I can't guarantee it'll work :( – roadmr Aug 15 '12 at 13:20 But what interests me is the State: SUSPENDED – Dawid Aug 15 '12 at 17:45
ok pactl set-sink-port 0 analog-output-speaker should work. State: SUSPENDED just means the sink is not playing any audio at the moment, start watching a youtube video and you'll see that change to RUNNING. – roadmr Aug 15 '12 at 18:34
pavucontrol shows speakers... but still no sound :/ only in headphones – Dawid Aug 15 '12 at 20:30

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.