Using PulseAudio on HDMI
A practical guide to configuring PulseAudio for audio output over HDMI on Linux, using pavucontrol to move games, videos and music to the right device.
After migrating to PulseAudio, I had a problem trying to use the laptop's HDMI output. Games, videos, and music were not playing through the HDMI output.
Solution
Install pavucontrol.
$ pacman -S pavucontrol
Then open pavucontrol, navigate to where your HDMI device is, and click the activate button.
Now it's the default audio output device. :)
This article was translated from Portuguese with the help of an LLM. The original version may contain nuances not fully captured in this translation.