Score:0

Can't hear audio over HDMI

ma flag

At first, Ubuntu 22.04 wasn't detecting an HDMI cable at all. I fixed that by copying /usr/share/X11/xorg.conf.d/nvidia.conf to /etc/X11/xorg.conf/nvidia.conf and editing the file.

My laptop uses both an Intel GPU and a Nvidia GPU. I made the Nvidia the primary GPU and everything worked.

Here is the config:

DO NOT EDIT. AUTOMATICALLY GENERATED BY gpu-manager
Section "OutputClass"

     Identifier "nvidia"
     MatchDriver "nvidia-drm"
     Driver "nvidia"
     Option "AllowEmptyInitialConfiguration"
     Option "SLI" "Auto"
     Option "BaseMosaic" "on"
     Option "PrimaryGPU" "yes"
EndSection 

Section "ServerLayout"

    Identifier "layout"
    Option "AllowNVIDIAGPUScreens"
    Option "PrimaryGPU" "yes"
EndSection

The problem is that I can't hear audio. Do I need to add more lines in the configuration file?

I am testing this on a TV, not a smart one. I think it's a 7 year old TV.

How do I fix the audio?

Score:0
in flag

Make sure the TV is actually directly connected via hdmi and not an adapter chain that drops the audio (such as DVI).

Likely you also will need to switch the system default audio output from the current default device (motherboard sound card?) to the appropriate HDMI audio device in sound settings.

Note that in the default ubuntu sound configuration, plugging in USB sound cards and headphones automatically switches the default audio device to the new device, and unplugging them doesn't necessarily switch back to the same previous audio device.

Stykle Sty avatar
ma flag
thank you, ill i needed to do was change system default audio output,
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.