You are not logged in.
Pages: 1
Is there a way to set the default Pulseaudio output to headphones instead of speakers, even if they are not present? Whenever I log in I have to launch pavucontrol and switch this setting
Last edited by budkin (2015-07-25 03:08:56)
Offline
Are you trying to have sound always pointing to an unplugged device or are you having problems where it does not switch to Headphones when you plug them in ?
Offline
the former
Offline
to see what output you can set as default
pacmd list-source-outputs | grep source
example command to set new default
pacmd set-default-sink alsa_output.Headphones
Offline
Keep in mind that pulse uses a Fallback feature to switch new streams to available outputs
You could disable it using the following, but i've never tried this
in your default.pa
load-module module-stream-restore restore_device=false
Last edited by Malkymder (2015-07-24 14:48:19)
Offline
pacmd list-source-outputs | grep source
only displays one source and it's neither headphones nor speakers
1 source output(s) available.
source: 0 <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
module-stream-restore.id = "source-output-by-application-name:ALSA plug-in [SoundWireServer]"
I played with pacmd a little and found this command
pacmd set-sink-port alsa_output.pci-0000_00_1b.0.analog-stereo analog-output-headphones
adding it to .xinitrc did not help, I assume pulseaudio starts after it. I've also tried to add it in the Application autostart in Xfce. Any ideas?
load-module module-stream-restore restore_device=false
this doesn't help either
Offline
This goes in either your '.config/pulse/default.pa' or your '/etc/pulse/default.pa'
load-module module-stream-restore restore_device=false
The pacmd can be called in a autostart script ....
Personally i would just plug in headphones ... set it to default for my apps and mute the speakers output... whenever headphones are plugged back in, it should switch to them by default.
Then again i'm not entirely sure i understand why you need it that way
Offline
module-stream restore won't help in this case, the device is correct the port isn't, which isn't covered in this case.
what you can do is add the set-sink command (without the pacmd) at the end of your /etc/default.pa (or ~/.config/default.pa) which should work
Last edited by V1del (2015-07-24 19:37:34)
Offline
Thank you, adding the line to default.pa solved it
This goes in either your '.config/pulse/default.pa' or your '/etc/pulse/default.pa'
load-module module-stream-restore restore_device=false
The pacmd can be called in a autostart script ....
Personally i would just plug in headphones ... set it to default for my apps and mute the speakers output... whenever headphones are plugged back in, it should switch to them by default.
Then again i'm not entirely sure i understand why you need it that way
The reason I don't do this is because I don't plug in my headphones. I use this program called SoundWire which transfers sound from my laptop to my android phone (my headphones input jack is not working)
Offline
Ah!! ... makes more sense now ...
Thanks for the info
Offline
Pages: 1