Fresh install - No sounds Nvidia HDMI

Hi.

I’m new to Manjaro. I installed this two days ago, and have been fussing ever since. Everything seems good except the sound. The sound is going out the HDMI on the back of my nvidia card.

I’ve read a lot of posts. I’ve disabled pipewire, I’ve ensured pulse is running, I set up an /etc/pulse/asound.conf file. I’ve confirmed that all channels are unmuted in alsamixer. Nothing is working.

I installed pavucontrol, but it never seems to be able to connect to the pulse server (even though I see it running in the background). It is almost like something else has the sound monopolized… but with pipewire out of the way, I don’t know what that could be.

I have tried using aplay, the only hardware device the responds is 0:3, but no sound comes out – it just locks up, and I cannot kill it. The interesting thing is, when I do that, Plasma suddenly “sees” the hdmi sound card – but I cannot do anything with it.

I know it is not hardware related, because the sound was working under KDE Neon with problems.

Thanks for any help.

Some info about my system:
I’m running KDE plasma, on a Manjaro system that claims to be up to date.

Linux HTPC 5.13.11-1-MANJARO #1 SMP PREEMPT Sun Aug 15 13:15:18 UTC 2021 x86_64 GNU/Linux
lspci                                                                     ✔ 
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) I/O Memory Management Unit
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Kaveri P2P Bridge for GFX PCIe Port [1:0]
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 09)
00:10.1 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 09)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 16)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 5
01:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)



aplay -l  :heavy_check_mark:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
Subdevices: 1/1
Subdevice #0: subdevice #0


 ps -ef |grep -i pipewire                                                  ✔  
myuser       6029    2163  0 16:15 pts/3    00:00:00 grep -i pipewire
` ps -ef |grep -i pulse                                                     ✔  
myuser        873     837 94 Aug19 ?        19:39:15 /usr/bin/pulseaudio --daemonize=no --log-target=jou
rnal
myuser        892     873  0 Aug19 ?        00:00:00 /usr/lib/pulse/gsettings-helper
myuser       6087    2163  0 16:25 pts/3    00:00:00 grep -i pulse`
 pacman -Qs nvidia                                                         ✔ 
local/lib32-libvdpau 1.4-1
    Nvidia VDPAU library
local/lib32-nvidia-utils 470.63.01-1
    NVIDIA drivers utilities (32-bit)
local/libvdpau 1.4-1
    Nvidia VDPAU library
local/linux513-nvidia 470.63.01-3 (linux513-extramodules)
    NVIDIA drivers for linux.
local/mhwd-nvidia 470.63.01-1
    MHWD module-ids for nvidia 470.63.01
local/mhwd-nvidia-390xx 390.144-1
    MHWD module-ids for nvidia 390.144
local/nvidia-utils 470.63.01-1
    NVIDIA drivers utilities

Happy to provide anything else that might be needed. Thanks again.

I’ve no experience with nvidia hdmi audio, but recently read this:

Check if any udev rules disable/remove hdmi-audio for nvidia on your system

Yep. Read that too. I have no udev rules defined whatsoever…

But thanks for the thought.

I suggest you delete that file, reboot system and check if you have package pulseaudio-alsa installed

ALSA configuration file asound.conf probably would not work from within PulseAudio system folder. But Manjaro does not need an asound.conf (or ~/.asoundrc) . pulseaudio-alsa creates a file to configure ALSA to use PulseAudio as system default

/etc/alsa/conf.d/99-pulseaudio-default.conf

Default to PulseAudio

pcm.!default {
type pulse
fallback “sysdefault”
hint {
show on
description “Default ALSA Output (currently PulseAudio Sound Server)”
}
}

ctl.!default {
type pulse
fallback “sysdefault”
}

Please post system information

inxi -SMAa

and information about Pulseaudio configuration

pacmd dump && pacmd list-cards

Hi. Thanks Nik.

inxi -SMAa                                                               ✔ 
System:    Host: HTPC Kernel: 5.13.11-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.13-x86_64 
           root=UUID=8e7f635c-d35f-4f1a-9b4f-ea8fd068d78c rw quiet apparmor=1 security=apparmor 
           resume=UUID=86589e51-519b-48e5-b806-2b6099a46999 udev.log_priority=3 
           Desktop: KDE Plasma 5.22.4 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
           Distro: Manjaro Linux base: Arch Linux 
Machine:   Type: Desktop System: Gigabyte product: N/A v: N/A serial: <superuser required> Chassis: 
           type: 3 serial: <superuser required> 
           Mobo: Gigabyte model: F2A88XM-D3H v: x.x serial: <superuser required> 
           UEFI: American Megatrends v: F6 date: 05/28/2014 
Audio:     Device-1: NVIDIA GP107GL High Definition Audio vendor: Micro-Star MSI 
           driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:0fb9 class-ID: 0403 
           Sound Server-1: ALSA v: k5.13.11-1-MANJARO running: yes 
           Sound Server-2: JACK v: 1.9.19 running: no 
           Sound Server-3: PulseAudio v: 15.0 running: yes 
           Sound Server-4: PipeWire v: 0.3.33 running: no 
pacmd dump && pacmd list-cards~                                        1 ✘ 
Daemon not responding.
cat 99-pulseaudio-default.conf                                           ✔ 
# Default to PulseAudio

pcm.!default {
    type pulse
    fallback "sysdefault"
    hint {
        show on
        description "Default ALSA Output (currently PulseAudio Sound Server)"
    }
}

ctl.!default {
    type pulse
    fallback "sysdefault"
}

It is probably also worthy of note that the pulse daemon seems to be perpetually hogging 99% of the CPU.

Thanks.

the pulse daemon seems to be perpetually hogging 99% of the CPU.`

I suggest you clear PulseAudio databases in home folder:

if PulseAudio command still shows Daemon not responding, please post reponse to this command

systemctl --user -l --no-pager status pulseaudio*

rm ~/.config/pulse/*.tdb ~/.config/pulse/cookie

Yes, I have done this as well, numerous times. I have googled the death out of this, and I have already picked the low-hanging fruit. There is something going on here at a more fundamental level. I think it is something peculiar to Manjaro, because, as I stated before, it worked under other distros just fine. I don’t remember struggling at all with it, in fact.

When I run

systemctl --user -l --no-pager status pulseaudio*

The command just hangs, and I cannot break out of it. That is true for aplay attempts as well: I cannot break out once the command is issued. A ‘kill -9’ just yields a defunct process.

In fact, I cannot even kill the pulseaudio running in the background. A command like:

systemctl --user stop pulseaudio.service

Winds up hanging as well. The “–kill” switch to pulseaudio doesn’t work either. Again, using a ‘kill -9’ just gives me a defunct process, and nothing improves.

I looked in my pulse configuration file for the system, and that definitely has autospawn set to ‘no’… yet there it is… I don’t have anything configured in .pulse or .config/pulse now… so I do not even know what is spawning it…

Any other thoughts?

Hmm… I just removed all traces of pulse… And the problem persists. It looks like pulse was a symptom, and not cause. So something must be wrong with ALSA… aplay still hangs indefinitely. I’ll keep knocking away at this… but if anyone has any insights, I’d love to hear from you…

Thanks.

Do you see anything in the kernel message buffer? journalctl -b0 -k -p 4? You could also try running journalctl -kf and start aplay (or something else) and see if any errors/warnings pop up.

Well, the -kf option didn’t yield anything… BUT… the other option did:

journalctl -b0 -k -p 4
Aug 21 16:09:21 HTPC kernel: ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has valid Le>
Aug 21 16:09:21 HTPC kernel: pci 0000:00:00.2: can't derive routing for PCI INT A
Aug 21 16:09:21 HTPC kernel: pci 0000:00:00.2: PCI INT A: not connected
Aug 21 16:09:21 HTPC kernel: ata1.00: supports DRM functions and may not be fully accessible
Aug 21 16:09:21 HTPC kernel: ata1.00: NCQ Send/Recv Log not supported
Aug 21 16:09:21 HTPC kernel: ata1.00: supports DRM functions and may not be fully accessible
Aug 21 16:09:21 HTPC kernel: ata1.00: NCQ Send/Recv Log not supported
Aug 21 16:09:21 HTPC kernel: nvidia: loading out-of-tree module taints kernel.
Aug 21 16:09:21 HTPC kernel: nvidia: module license 'NVIDIA' taints kernel.
Aug 21 16:09:21 HTPC kernel: Disabling lock debugging due to kernel taint
Aug 21 16:09:21 HTPC kernel: 
Aug 21 16:09:21 HTPC kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  470.63.01  Tue Aug  3 20:>
Aug 21 16:09:21 HTPC kernel: iommu ivhd0: AMD-Vi: Event logged [INVALID_DEVICE_REQUEST device=00:00.1 >
Aug 21 16:09:22 HTPC kernel: resource sanity check: requesting [mem 0x000c0000-0x000fffff], which span>
Aug 21 16:09:22 HTPC kernel: caller _nv000722rm+0x1ad/0x200 [nvidia] mapping multiple BARs

So… something is going on… it is kind of reminiscent of an old IRQ conflict or something… But all that “resource”, “drm” and “IOMMU” stuff doesn’t sound good. I’m not sure how to proceed here…

Can you run the command with --no-pager added to the arguments because some parts of certain lines have been cut?

Sure:

journalctl -b0 -k -p 4 --no-pager
-- Journal begins at Wed 2021-08-18 18:56:55 EDT, ends at Sat 2021-08-21 16:41:02 EDT. --
Aug 21 16:36:12 HTPC kernel: ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has valid Length but zero Address: 0x0000000000000000/0x1 (20210331/tbfadt-615)
Aug 21 16:36:12 HTPC kernel: pci 0000:00:00.2: can't derive routing for PCI INT A
Aug 21 16:36:12 HTPC kernel: pci 0000:00:00.2: PCI INT A: not connected
Aug 21 16:36:12 HTPC kernel: ata1.00: supports DRM functions and may not be fully accessible
Aug 21 16:36:12 HTPC kernel: ata1.00: NCQ Send/Recv Log not supported
Aug 21 16:36:12 HTPC kernel: ata1.00: supports DRM functions and may not be fully accessible
Aug 21 16:36:12 HTPC kernel: ata1.00: NCQ Send/Recv Log not supported
Aug 21 16:36:13 HTPC kernel: nvidia: loading out-of-tree module taints kernel.
Aug 21 16:36:13 HTPC kernel: nvidia: module license 'NVIDIA' taints kernel.
Aug 21 16:36:13 HTPC kernel: Disabling lock debugging due to kernel taint
Aug 21 16:36:13 HTPC kernel: 
Aug 21 16:36:13 HTPC kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  470.63.01  Tue Aug  3 20:44:16 UTC 2021
Aug 21 16:36:13 HTPC kernel: iommu ivhd0: AMD-Vi: Event logged [INVALID_DEVICE_REQUEST device=00:00.1 pasid=0x00000 address=0xfdf8010020 flags=0x0a00]
Aug 21 16:36:14 HTPC kernel: resource sanity check: requesting [mem 0x000c0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000c0000-0x000dffff window]
Aug 21 16:36:14 HTPC kernel: caller _nv000722rm+0x1ad/0x200 [nvidia] mapping multiple BARs
Aug 21 16:36:14 HTPC kernel: snd_hda_intel 0000:01:00.1: azx_get_response timeout, switching to polling mode: last cmd=0x000f0000
Aug 21 16:36:15 HTPC kernel: kauditd_printk_skb: 37 callbacks suppressed
Aug 21 16:36:21 HTPC kernel: kauditd_printk_skb: 17 callbacks suppressed

thank you.

This is probably relevant.

Hmm…

Yeah, but I cannot seem to find how that is being loaded… I cannot find anything in my /etc directory that seems to reference it… yet I see several intel modules loaded when I do an lsmod:

tintel                32768  1 btusb
bluetooth             733184  37 btrtl,btintel,btbcm,bnep,btusb,rfcomm
ghash_clmulni_intel    16384  0
aesni_intel           380928  0
snd_hda_intel          57344  4
crypto_simd            16384  1 aesni_intel
cryptd                 28672  2 crypto_simd,ghash_clmulni_intel
snd_intel_dspcfg       28672  1 snd_hda_intel
snd_intel_sdw_acpi     20480  1 snd_intel_dspcfg
snd_hda_codec         176128  2 snd_hda_codec_hdmi,snd_hda_intel
snd_hda_core          110592  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_pcm               147456  5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd                   114688  13 snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm
crc32c_intel           24576  4

Why did the installer put them there? There isn’t an intel audio device on the system… How do I correct this?

The system will not even let me remove them on the fly… it either tells me it is in use, or it hangs…

The nvidia gpu presents itself as multiple PCI devices, one of the is an audio device. As far as I know these audio devices are supported by the Intel HDA drivers. In my case, it also uses the snd_hda_intel driver, so there is probably nothing you need to correct there.

And yet, I still have no sound…

I honestly do not recall what drivers it was using before under Neon… but Neon has its own problems right now (well, they are problems with Ubuntu, really), and I cannot reinstall it. All I know is it wasn’t a fight to get sound going (which is why I didn’t really pay attention to what driver the installer picked).

This situation makes no sense to me… I’ve been using Linux for 20 years now, and do not recall having such a hard time with sound… we are missing something fundamental here. It is either a Manjaro/Arch thing or it is some sort of change in sound architecture that I don’t know about… or maybe even some kind of a bug in the newer kernels (which manjaro happens to use).

I do know this: I don’t want a system that I’m going to have to tweak heck out of. I’m not OK with compiling drivers and going outside the stable branch of an OS… this is for home – for relaxing, it is not for work. I already have too many systems to manage as it is. I was hoping for a one-and-done fix.

I was really hoping that someone bumped into this before… I really appreciate your help to date, but I’m not sure where to turn now…

Do you have a windows installation? Can you try it on there? Can you try an Ubuntu/Manjaro/etc. live system and see if audio works there?

Like I was saying, there is a problem with Ubuntu right now, but I KNOW that neon worked – with sound. The problem I had with neon/ubuntu did not involve sound. It had to do with the latest versions locking up completely (even the installation media). The card is good. The hardware is good. Manjaro is fine – except that I have no sound… but as this is my HTPC – that is a big deal. Ubunutu/Neon only works under older kernel versions (with sound). This graphics card is brand new – a trouble-shooting attempt on my part (an unsuccessful and expensive one). I’m thinking this is related to the newer kernels… and them not liking the architecture of my motherboard somehow… It is feeling increasingly like a bug… but I don’t know for sure if it involves support for my motherboard, nvidia cards, or with my cpu.

The interesting thing is that I tried a KNOPPIX disk yesterday, and the sound didn’t work on that either. That surprised me. I’ve never seen this happen before in Linux, but I’m starting to think that it’s evolutionary path has left my system behind somehow – or I have a bug that affects so few people, that is invisible to developers/maintainers. All my systems have Nvidia cards of some type, running proprietary drivers with no problems. My primary box is an intel Gentoo box, and it runs fine. My wife’s system is an intel Neon box, and it runs fine… my sound studio is an intel/neon box, and it runs fine… I have two laptops, one gentoo, one neon – both working fine. I have two other desktop systems running debian and they work fine… it is just this one computer that is cranky… it is the only athlon system in the house right now… is that a coincidence? I also have several Xen virtual machines running on a Debian Xen server (no graphics to speak of)… with no problems.

I’ve been struggling with this one system for 3 months now under Neon, I was hoping I’d do better with Manjaro…but maybe I need to bite the bullet here and get some new hardware… I would like to be able to watch movies (with sound) and listen to music again…

Again, I sincerely appreciate your input, but I’m losing patience with this issue.

I have had many a good tune played on an old Athlon for many years
My wife still has an Athlon II x3 on an old AM3 motherboard with a ALC887-VB onboard audio
(earlier version of the ALC887-VD on your motherboard)
I have a GT730 GPU that is running no problem with latest nVidia driver so your Pascal GPU should be no problem
There are not many discussions on here about audio issues with nVidia, but that might be due to limited numbers using HDMI audio output

I suggest you check with Gigabyte support for any BIOS updates. I don’t think think it very likely to help but it might be that overlooked ‘something fundamental’ thing

If that does not help, get ALSA information to check if everything is detected correctly without errors

sudo alsa-info.sh --upload

What device is audio supposed to be playing to over HDMI?
Does it have a jack socket or optical S/PDIF input available to work around the HDMI connection ?
Does it require a specific audio format? it might not like 44100Hz and need 48000Hz, or maybe it does not like raw PCM audio and needs DTS