The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 2,853     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: November 24, 2022    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:

Instead of rebooting you can use pulseaudio -k to reload the configuration changes.

⇧ Can I uninstall Ubuntu Software-Centre from 18.04? Updating content of a zenity window  ⇩