Skip to main content
DARKPC.NET

Route Desktop Audio to an HDMI Display

Identify the desktop audio sink serving a TV and test whether the default and the already-playing stream use the same output.

Difficulty Beginner

Prerequisites

Use a Kali XFCE session, a connected HDMI display with speakers and a known working local audio file. You can use XFCE's audio controls without the command line. The commands use pactl with PulseAudio or an active PipeWire PulseAudio-compatible server.

Identify the intended output

Power on the TV, choose its HDMI input and open the audio mixer from the panel. Under Configuration, look for an HDMI-capable profile on the display audio device. Then look under Output Devices for the matching HDMI sink.

pactl info
pactl get-default-sink
pactl list short sinks

The short list gives a number and internal sink name. Record the old default. Use HDMI labels and test playback to distinguish two similar outputs. If pactl cannot connect, run it as the logged-in desktop user and inspect the active audio service for that session.

Set the default and check the running stream

Pick the HDMI sink in the mixer, then start a new playback stream. If an app that was already playing still uses another output, use the mixer Playback tab to move that stream. The equivalent commands accept the internal sink name copied from the active sink list and the input number from the stream list.

pactl set-default-sink 'REPLACE_WITH_HDMI_SINK_NAME'
pactl list short sink-inputs
pactl move-sink-input REPLACE_WITH_STREAM_NUMBER 'REPLACE_WITH_HDMI_SINK_NAME'

Replace the example values before running either modifying command. Use a low television volume for the first test.

Troubleshooting and practice

If a display turns off and the sink vanishes, switch back to the correct TV input and check the sink list again. Test a local media player before diagnosing a single browser tab. If the sink exists with silence, check the television volume, mute controls and output port. Try sending one playing stream back to the old sink while leaving HDMI as the default. This demonstrates the difference between existing stream routing and the output used for new streams.

References and related reading