The Cookie Machine - Click here to drag window

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

Views: 18,232β€…    Votes:  12β€…
Tags: sound   18.04   pulseaudio   hdmi  
Link: πŸ” See Original Answer on Ask Ubuntu πŸ”—

Title: 18.04 Sound Through hdmi
ID: /2018/07/07/18.04-Sound-Through-hdmi
Created: July 7, 2018    Edited:  June 12, 2020
Upload: November 24, 2022    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:

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:

⇧ How do I install Guest Additions in a VirtualBox VM? Every time I change networks, DNS cache has the wrong IP. How to fix automatically every time?  β‡©