The Cookie Machine - Click here to drag window

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

Views: 3,830β€…    Votes:  3β€…
Tag : sound  
Link: πŸ” See Original Answer on Ask Ubuntu πŸ”—

URL: https://askubuntu.com/q/1171617
Title: Output channel for audio resets after every reboot
ID: /2019/09/07/Output-channel-for-audio-resets-after-every-reboot
Created: September 7, 2019    Edited:  September 8, 2019
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


You can have pulse audio stay on the last selected output source no matter what:

sudo -H gedit /etc/pulse/default.pa

Find this line:

load-module module-switch-on-port-available

and change it to:

# load-module module-switch-on-port-available

An additional step is needed as listed in:

We need to add the line:

set-sink-port <name|index>  analog-output-headphones

The name or index of the active sink, and available ports can be displayed with pactl list sinks. The way I spelled analog-output-lineout may be incorrect.

Save the file and exit.

Restart pulse audio with:

pulseaudio -k

In your sound settings select β€œLine Out” and it will always stay connected even if you physically unplug it.

⇧ Can I automatically generate a command-line for xrandr based on the current set-up? List gsettings changes from default  β‡©