I recently upgraded my media center computer from Ubuntu 15.04 to 16.04 (in-place upgrade, via 15.10). One new problem has been introduced:
I use the HDMI output for audio. When the screen goes to sleep for power saving, Pulseaudio switches the output to the internal sound (laptop speakers/mini jack), and when I wake the screen (by interacting with Kodi, the media center software) the audio remains output to internal sound, so I don't get audio on the TV to which the media center PC is connected. I have to switch to the pavucontrol window to switch back to HDMI, every time.
It didn't use to be like this, oh no. Back in Ubuntu 15.4 audio remained at the HDMI output even after a monitor (TV) sleep and wake cycle.
Is there a way to fix this, say by forcing the output to remain at HDMI despite the monitor going to sleep?
pulseaudio --kill; pulseaudio --startis the saver for Ubuntu 20.04. – Yuki Jan 30 '21 at 21:09pulseaudio -kautomatically, but there is usually no activity on the com.canonical.Unity or org.freedesktop.login1 dbuses when I bump the mouse or otherwise turn on the display. My default source and sink change to auto_null when the monitor turns off. This is very frustrating. – Curt Feb 11 '22 at 07:40