pulseaudio HDMI audio output only works with some TVs (Ubuntu 18.04) [SOLVED]

Sven Lotus

New Member
Joined
Nov 17, 2022
Messages
1
Reaction score
4
Credits
38
I have a HP EliteBook 745 G4 running Ubuntu 18.04 and I have a DisplayPort to HDMI cable connected to a 50" ONN non-smart TV. With this combination when I fire up pavucontrol I see two output types, "Built-in Audio Analog Stereo" and "Built-in Audio Digital Stereo (HDMI 3)" and I am able to use mpv to play a video file where I can select the HDMI audio output in pavucontrol to get the sound output to go to the TV.

I can also use the following command to directly specify a particular audio output device with mpv:

~$ mpv --audio-device=pulse/alsa_output.pci-0000_00_1.1.hdmi-stereo-extra2 ./Videos/Tour.de.France.2022.Stage.01.720p.h264-NX.mkv

Just in case anyone is interested or feels that it might provide additional important information the mpv version I am using is:

~$ mpv --version
mpv 0.34.0-563-g806dddc7d9-dirty Copyright © 2000-2022 mpv/MPlayer/mplayer2 projects
built on Thu Nov 3 11:47:36 EDT 2022
FFmpeg library versions:
libavutil 57.40.100
libavcodec 59.51.101
libavformat 59.34.101
libswscale 6.8.112
libavfilter 8.49.101
libswresample 4.9.100
FFmpeg version: N-108921-g0957d62fb0

However recently I have been struggling to get the same thing working at another location where there is a Samsung 75" smart TV (model # QN75Q80AA). When I go there with the exact same laptop and DP to HDMI cable, the only audio output that shows up in pavucontrol is the "Built-in Audio Analog Stereo". The video displays just fine to the TV but nothing I do will get the additional digital audio output selection to appear in pavucontrol.

Since it works at my house with the non-smart TV, with everything else being the same I had to conclude there was some unknown difference between the two TVs that is affecting the ability for Ubuntu to see the Samsung TV as a valid digital audio output.

Since posting a question about this problem on another forum I have gone back to the other location with the Samsung TV and tried various different HDMI ports on the TV since some are labeled as "HDMI" but one is labeled as "HDMI (eARC)" but connecting to different HDMI ports seems to have made no difference.

While I was there I also ran the command "pactl list" and redirected the output to a file so I could compare this output with output from the same command at my home office where the ONN TV works fine.

I found there were definite differences in this pactl output from one location to the other but I still have no clue what is causing it or how to fix the problem.

With the ONN TV where sound works fine I see two Sinks listed in the pactl output:

Sink #0
Name: alsa_output.pci-0000_00_01.1.hdmi-stereo-extra2

Sink #1
Name: alsa_output.pci-0000_00_09.2.analog-stereo

and two audio cards are listed:

Card #0
Name: alsa_card.pci-0000_00_01.1
alsa.card_name = "HDA ATI HDMI"
Profiles:
output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5200, available: yes)
output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: yes)
Active Profile: output:hdmi-stereo-extra2

Card #1
Name: alsa_card.pci-0000_00_09.2
alsa.card_name = "HD-Audio Generic"
Profiles:
input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 60, available: yes)
output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6060
Active Profile: output:analog-stereo+input:analog-stereo

(this is not the complete output from "pactl list. It has been trimmed down to only show the important bits.)

but at the location with the Samsung TV with no sound I only see one Sink listed:

Sink #0
Name: alsa_output.pci-0000_00_09.2.analog-stereo

but there still are two audio cards listed:

Card #0
Name: alsa_card.pci-0000_00_01.1
alsa.card_name = "HDA ATI HDMI"
Profiles:
output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5200, available: no)
output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
Active Profile: off

Card #1
Name: alsa_card.pci-0000_00_09.2
alsa.card_name = "HD-Audio Generic"
Profiles:
input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 60, available: yes)
output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6060, available: yes)
Active Profile: output:analog-stereo+input:analog-stereo`

So at the location with the Samsung TV with no audio output the HDA ATI HDMI card has no active profile and with the ONN TV with the working audio output the HDA ATI HDMI card does have an active profile.

At this point I was still very puzzled since as I said it worked fine with one HD TV (ONN non-smart) but the same configuration did not work with the other HD TV (Samsung smart TV, model # QN75Q80AA)

Finally in complete desperation I decided to try a different cable that I had lying around.
I used the different cable to connect from the displayport of the laptop to the HDMI input on the Samsung TV and now sound works! Yahoo!

The original non-working cable was a single continuous cable I got off of ebay for around $10 for a 10ft cable that went directly from the DP connector to HDMI on the other end.

The other cable I tried that ended up working was a regular HDMI to HDMI cable that plugs into a short pigtail conversion cable that went from DP to HDMI.

So if you run into a similar issue and you have already followed all of the standard troubleshooting for audio problems, try a different cable! It might just help.
 


Nice and thanks for taking the time/making the effort to share that. It's even well formatted!

You make the web a better place by doing so.
 

Members online


Latest posts

Top