Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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: img12.imageshack.us/img12/5827/zrzutekranuz20120814221.png) 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 (pastebin.ubuntu.com) 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
    
pastebin.ubuntu.com/1149199 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
add comment

Your Answer

 
discard

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.