Views:
18,324β
Votes: 12β
Tags:
sound
18.04
pulseaudio
hdmi
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/1053094
Title:
18.04 Sound Through hdmi
ID:
/2018/07/07/18.04-Sound-Through-hdmi
Created:
July 7, 2018
Edited: June 12, 2020
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
Simple Solution
When signal is lost to HDMI (during sleep) Pulse Audio is automatically configured to active source (your laptopβs speakers). Upon resume the sound device is still your laptop. 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.
Complex Solution
Before I learned of the simple solution, I used a more complex solution based on systemd
suspend/resume hook:
An even more complex solution for when HDMI TV is unplugged and replugged is based on udev
rule:
Extensive Forum Thread
In Linux Mint forum there is an extensive thee page thread on this topic: