baumi's blog

baumi's personal blog … Linux, OS X, Windows, Random things, …

GNU/Linux on Thinkpad X250 X260 X270 X280 T470s T460s T450s: no audio output on HDMI with ALSA and PULSEAUDIO

try:

aplay -l

to list all devices, then for each available device, try:

speaker-test -c 2 -r 48000 -D hw:,
#e.g. tested and working for Thinkpad X260 and X270:
speaker-test -c 2 -r 48000 -D hw:0,7

This should bring up HDMI audio for at least one of the devices.

In my case, for SAMSUNG LED TV UE55Bxxxx: when the samplerate is 48000, it will play audio via HDMI, but if the sample rate is different, it won’t. Seems like the default rate is NOT 48000 that was why no audio was playing.

Solution:
aplay -l and speaker-test to find out which device plays back on your HDMI device, add the following at the end of your /etc/pulse/default.pa:

load-module module-alsa-sink device=hw:0,7 channels=2 rate=48000 sink_properties=device.description=HDMI

where hw:0,7 would be HDMI output that had been working with speakers-test …

then

killall pulseaudio
pulseaudio --check

You may need to comment out the lines with “load-module module-udev-detect” and “load-module module-detect”. I personally kept the detection modules and simply added my working HDMI device on top …

Comments are currently closed.