Robert Mihaly wrote:
Hi everyone,
I have an external monitor connected via HDMI which has better sounding
speakers than the internal ones. Sometimes I leave the machine idle while
keep playing audio on it, but shortly after the lock screen kicks the
external monitor is turned off (power saving I guess) and the audio
switches back to the internal speakers. I use Fedora Workstation 31, Gnome
3.34.1, PulseAudio 13.0, Kernel 5.3.11.
Does anyone know about a way to prevent turning off the external monitor
when audio is being played through the HDMI port?
Yes, there's a well-known API to inhibit power-management for media players.
What application are you using to play audio?
For example, I know that vlc supports the api for when video is playing, but
apparently not for audio-only unfortunately.
Reference:
https://forum.videolan.org/viewtopic.php?t=144664
-- Rex