No sound through HDMI and Nvidia audio driver missing

Getting your soundcard to work, using Debian on non-i386 hardware, etc

No sound through HDMI and Nvidia audio driver missing

Postby bmickey » 2018-01-21 05:40

Hello

Now that my external monitor is working I thought the hard part was over but I've come to find out that routing sound through hdmi is even more difficult and my Nvidia audio driver is missing.
My Nvidia audio driver works fine in Windows and shows up in device manager.

You can see that my Nvidia sound card doesn't even show up for audio,
Code: Select all
aplay -L

Output ---> https://pastebin.com/5j3SBtpq

and there's no Nvidia audio device,
lspci -H1
00:00.0 Host bridge: Intel Corporation Device 5910 (rev 05)
00:01.0 PCI bridge: Intel Corporation Skylake PCIe Controller (x16) (rev 05)
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 05)
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-H Thermal subsystem (rev 31)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-H Serial IO I2C Controller #0 (rev 31)
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-H Serial IO I2C Controller #1 (rev 31)
00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31)
00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA Controller [AHCI mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #1 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #5 (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #6 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #9 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
00:1f.3 Audio device: Intel Corporation Device a171 (rev 31)
00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
01:00.0 VGA compatible controller: NVIDIA Corporation GP106M [GeForce GTX 1060] (rev a1)
3b:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
3c:00.0 Network controller: Intel Corporation Device 24fd (rev 78)
3d:00.0 Non-Volatile memory controller: Toshiba America Info Systems Device 0116


Here's some information about my computer,
System: Host: debian Kernel: 4.9.0-5-amd64 x86_64 (64 bit)
Desktop: Gnome 3.22.3 Distro: Debian GNU/Linux 9 (stretch)
Machine: Device: laptop System: Dell product: Inspiron 7577
Mobo: Dell model: 0J8HMF v: A00
UEFI: Dell v: 1.3.2 date: 12/12/2017
Graphics: Card-1: Intel Device 591b
Card-2: NVIDIA GP106M [GeForce GTX 1060]
Display Server: X.Org 1.19.2 driver: N/A
Resolution: 1920x1080
GLX Renderer: Mesa DRI Intel Kabylake GT2
GLX Version: 3.0 Mesa 13.0.6
Audio: Card Intel Device a171 driver: snd_hda_intel
Sound: Advanced Linux Sound Architecture v: k4.9.0-5-amd64


The lack of hdmi audio and the missing Nvidia sound card appear to be a bug which I read about here,

https://devtalk.nvidia.com/default/topic/1003631/no-hdmi-sound-no-nvidia-sound-card-found/

and below I attached a proposed solution that I found but I'm nervous about running a script I don't understand and that isn't specific to my system.

https://devtalk.nvidia.com/default/topic/1024022/linux/gtx-1060-no-audio-over-hdmi-only-hda-intel-detected-azalia/

I haven't been able to find any other answers out there except for Ubuntu but their solutions didn't apply.

If anyone has any experience with figuring out this sort of problem or has any suggested reading material on the subject, all help would be greatly appreciated.
bmickey
 
Posts: 15
Joined: 2018-01-20 20:42

Re: No sound through HDMI and Nvidia audio driver missing

Postby dotlj » 2018-01-29 08:43

What is the output from
Code: Select all
lsmod | grep hdmi


also
Code: Select all
lsmod | grep nvidia


Are you using nouveau, nvidia, bumblebee or which driver?
Any modifications to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub ?
User avatar
dotlj
 
Posts: 599
Joined: 2009-12-25 17:21

Re: No sound through HDMI and Nvidia audio driver missing

Postby bmickey » 2018-01-31 01:47

Hi thanks for responding!

dotlj wrote:Are you using nouveau, nvidia, bumblebee or which driver?
Any modifications to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub ?

I installed the package bumblebee-nvidia and primus, which uses the proprietary Nvidia driver with bumblebee. And I have made no changes to my grub file.


To get the screen to show up on my external monitor I've had to custom configure some settings in my /etc/bumblebee/xorg.conf.nvidia file though.
I changed the options "AutoAddDevices", "AutoAddGPU", and "UseEDID" to true, and I commented out "UseDisplayDevice" and added "AllowEmptyInitialConfiguration".
I also added this section to the end of the same file.
Section "Screen"
Identifier "Screen0"
Device "DiscreteNvidia"
EndSection


And I had to add the file /usr/share/X11/xorg.conf.d/20-intel.conf which contains
Section "Device"
Identifier "IntelGPU"
Driver "intel"
BusID "PCI:00:02:0"
EndSection

After all that my external monitor still only works when I type "intel-virtual-output".
----------------------------------------------------------------------------------------------------------------------------------------------------
But I only mentioned all that incase it affects everything else cause idk.

dotlj wrote:What is the output from
Code: Select all
lsmod | grep hdmi
Output
lsmod | grep hdmi
snd_hda_codec_hdmi 49152 1
snd_hda_codec 135168 4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core 81920 5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_pcm 110592 4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd 86016 20 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_pcm

dotlj wrote:also
Code: Select all
lsmod | grep nvidia
I didn't get any output from this.
Last edited by bmickey on 2018-02-03 04:09, edited 3 times in total.
bmickey
 
Posts: 15
Joined: 2018-01-20 20:42

Re: No sound through HDMI and Nvidia audio driver missing

Postby bmickey » 2018-02-03 03:39

So I want to post an update because I have made a little bit of progress.

One Ubuntu website suggested killing pulseaudio
Code: Select all
pulseaudio -k
and seeing if the Nvidia hdmi audio option showed up in the sound settings and it did although it has since gone away after rebooting my computer.

However my Nvidia audio controller is showing up when I run lspci and it wasn't before.
Code: Select all
lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GP106M [GeForce GTX 1060 Mobile] (rev ff)
01:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev ff)


After running the dmesg command I did notice that there are error messages about hda codecs which were not there before and I've copied what I think is important.
I also noticed in the first few lines that the intel audio driver appears to enable my Nvidia audio controller and then disables interrupts.
It does mention something about "vga_switcheroo audio client" which is promising cause thats one of the power managment options
for the bumblebee package however I'm going to have to read more about it because the bumblebee wiki says its not recommended. In the file /etc/bumblebee/bumblebee.conf
for pmmethod I have it set to auto as of right now but it defaults to bbswitch as you can see below.
Code: Select all
 dmesg | egrep -i "snd_hda.*|ACPI Warning|NVidia|HDA|bbswitch"
[    0.000000] ACPI: SSDT 0x0000000068588060 000141 (v02 INTEL  HdaDsp   00000000 INTL 20160422)
[    2.093125] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    2.094012] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[    2.094097] snd_hda_intel 0000:01:00.1: Disabling MSI
[    2.094105] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    2.547036] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    2.647705] bbswitch: version 0.8
[    2.647710] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[    2.647716] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[    2.647729] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160831/nsarguments-95)
[    2.647842] bbswitch: detected an Optimus _DSM function
[    2.647954] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[    2.648594] bbswitch: disabling discrete graphics
[    2.648602] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160831/nsarguments-95)
[    2.679140] snd_hda_codec_hdmi hdaudioC1D0: rates == 0 (nid=0xa, val=0x0, ovrd=1)
[    2.679151] snd_hda_codec_hdmi hdaudioC1D0: rates == 0 (nid=0xb, val=0x0, ovrd=1)
[    2.679157] snd_hda_codec_hdmi hdaudioC1D0: rates == 0 (nid=0xc, val=0x0, ovrd=1)
[    2.679163] snd_hda_codec_hdmi hdaudioC1D0: rates == 0 (nid=0xd, val=0x0, ovrd=1)
[    2.679469] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1
[    2.680982] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input18
[    2.699265] snd_hda_codec_hdmi hdaudioC1D0: Unable to sync register 0x7f0800. -5
[    2.699280] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1
[    2.711713] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC3246: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    2.711716] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    2.711718] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    2.711720] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    2.711721] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    2.711724] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x19
[    2.711726] snd_hda_codec_realtek hdaudioC0D0:      Headphone Mic=0x1a
[    2.711728] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
[    2.733133] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
[    2.734409] input: HDA Intel PCH Headphone Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20
[    2.734527] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input21
[    2.734646] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input22
[    2.734802] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input23
[    3.015184] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1
[    3.335130] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1
[    3.655155] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1
[    3.975195] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1
[    4.295217] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1
[    4.615267] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1
[    4.935195] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1
[    5.255229] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD buf size -1

I'm not sure what a lot of the above means so if someone can help me that'd be great but I'm going to keep researching in the meantime.

Because my hdmi is wired into my Nvidia card and it appears the intel driver disabled interrupts for my Nvidia audio controller I wonder if thats why
no hdmi option shows up in the sound settings. Although when I plug in my external monitor that only works with "intel-virtual-output" so its not like the VGA Nvidia controller
is detecting a connection either.
bmickey
 
Posts: 15
Joined: 2018-01-20 20:42


Return to Hardware

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable