12th July 2014

HDMI Audio on Intel NUC

I struggled somewhat in getting audio via HDMI on Intel NUC. The following commands in .xsession solved the problem for me:

/usr/bin/pulseaudio -D
echo set-default-sink 0 | /usr/bin/pacmd
exec /usr/bin/firefox

The trick is to set the default sink in pulseaudio.

I use Firefox on the NUC because Google Chrome does not correctly repaint the screen.

Alternatively you can set

set-default-sink 0

in /etc/pulse/default.pa.

Added 30-May-2015: For hearing output on both channels, i.e., HDMI and earphone, set

load-module module-combine-sink sink_name=combined

in /etc/pulse/default.pa.