Views:
3,774
Votes: 2
✅ Solution
Tags:
command-line
sound
pulseaudio
hdmi
Link:
🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
URL:
https://askubuntu.com/q/1066655
Title:
How do I edit PulseAudio configuration through a script?
ID:
/2018/08/18/How-do-I-edit-PulseAudio-configuration-through-a-script_
Created:
August 18, 2018
Edited: June 12, 2020
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
Each time you reboot Pulse Audio resets sound device to HDMI
. In order for it to keep the setting at HDMI3
you need to tell it to stop automatically switching.
Disable automatic device switching
When signal is lost to during sleep or shutdown, Pulse Audio is automatically configured to activate the default source (your HDMI). Upon resume or restart the sound device is still on HDMI. To override this setting, tell Pulse Audio to never switch sound devices automatically:
- edit the file
/etc/pulse/default.pa
- find the line
load-module module-switch-on-port-available
- insert a
#
at the beginning of the line to disable automatic port switching - save the file and reboot.
Instead of rebooting you can use pulseaudio -k
to reload the configuration changes.