Announcement

Collapse
No announcement yet.

Sound though HDMI/Displayport not working - nVidia audio

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Sound though HDMI/Displayport not working - nVidia audio

    I got a new toy monitor this week with built-in speakers. The monitor has no way to get audio except through the HDMI/Displayport. Previously, the monitor I was using did not have speakers so I used the headphone out jack from the PC to provide a sound connection. This worked perfectly. I have never attempted to use the nVidia audio prior to this so I had it disabled in system settings.

    The monitor appears to be correctly configured - the Audio settings show volume at 77%, DTS On (I've tried Off also). There is no independent source selection option so I assume the Audio input changes when you change video input.

    After connecting the monitor, I selected the nVidia sound card and selected HDMI/DisplayPort as the connector, but I get no sound. Hardware details are in my sig image. My motherboard also has built-in audio which is enabled - I use it to power my wireless headphones.

    There are errors in dmesg, but I've been unsuccessful in finding any references that are pertinent to my issue:
    Code:
    [FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ dmesg |grep audio[/COLOR]
    [Wed May 31 16:54:10 2017] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo [COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000] client[/COLOR]
    [Wed May 31 16:54:10 2017] snd_hda_codec_realtek hd[COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000]C0D0: ALC1150: SKU not ready 0x00000000[/COLOR]
    [Wed May 31 16:54:10 2017] snd_hda_codec_realtek hd[COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000]C0D0: autoconfig for ALC1150: line_outs=3 (0x14/0x15/0x16/0x0/0x0) type:line[/COLOR]
    [Wed May 31 16:54:10 2017] snd_hda_codec_realtek hd[COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000]C0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)[/COLOR]
    [Wed May 31 16:54:10 2017] snd_hda_codec_realtek hd[COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000]C0D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)[/COLOR]
    [Wed May 31 16:54:10 2017] snd_hda_codec_realtek hd[COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000]C0D0:    mono: mono_out=0x0[/COLOR]
    [Wed May 31 16:54:10 2017] snd_hda_codec_realtek hd[COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000]C0D0:    dig-out=0x1e/0x0[/COLOR]
    [Wed May 31 16:54:10 2017] snd_hda_codec_realtek hd[COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000]C0D0:    inputs:[/COLOR]
    [Wed May 31 16:54:10 2017] snd_hda_codec_realtek hd[COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000]C0D0:      Front Mic=0x19[/COLOR]
    [Wed May 31 16:54:10 2017] snd_hda_codec_realtek hd[COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000]C0D0:      Rear Mic=0x18[/COLOR]
    [Wed May 31 16:54:10 2017] snd_hda_codec_realtek hd[COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000]C0D0:      Line=0x1a[/COLOR]
    [Wed May 31 16:54:10 2017] usbcore: registered new interface driver snd-usb-[COLOR=#FF5454][B]audio[/B][/COLOR]
    [Wed May 31 16:54:14 2017] snd_hda_codec_hdmi hd[COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000]C2D0: HDMI: [B]invalid ELD data byte 1[/B][/COLOR]
    [Wed May 31 18:57:19 2017] snd_hda_codec_hdmi hd[COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000]C2D0: HDMI: [B]invalid ELD data byte 0[/B][/COLOR]
    [Wed May 31 18:57:19 2017] snd_hda_codec_hdmi hd[COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000]C2D0: HDMI: [B]invalid ELD data byte 0[/B][/COLOR]
    [Wed May 31 18:57:20 2017] snd_hda_codec_hdmi hd[COLOR=#FF5454][B]audio[/B][/COLOR][COLOR=#000000]C2D0: HDMI: [B]invalid ELD data byte 1[/B][/COLOR]
    [/FONT]
    From lshw:
    Code:
    [FONT=monospace][COLOR=#000000]  *-multimedia[/COLOR]
           description: Audio device
           product: GK110 HDMI Audio
           vendor: NVIDIA Corporation
           physical id: 0.1
           bus info: pci@0000:01:00.1
           version: a1
           width: 32 bits
           clock: 33MHz
           capabilities: pm msi pciexpress bus_master cap_list
           configuration: driver=snd_hda_intel latency=0
           resources: irq:17 memory:de080000-de083fff
    [/FONT]
    From aplay -l:
    Code:
    [FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ aplay -l                       [/COLOR]
    **** List of PLAYBACK Hardware Devices ****
    card 0: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    
    [/FONT]
    Clearly, the soundcard is detected, but the ELD data byte (whatever that is) errors might be a clue.
    cat /proc/asound/card2/eld#0.2shows this:
    Code:
    monitor_present         1
    eld_valid               1
    monitor_name            Acer XR382CQK
    connection_type         DisplayPort
    eld_version             [0x2] CEA-861D or below
    edid_version            [0x3] CEA-861-B, C or D
    manufacture_id          0x7204
    product_id              0x566
    port_id                 0x1000
    support_hdcp            0
    support_ai              0
    audio_sync_delay        0
    speakers                [0x1] FL/FR
    sad_count               1
    sad0_coding_type        [0x1] LPCM
    sad0_channels           2
    sad0_rates              [0xe0] 32000 44100 48000
    sad0_bits               [0xe0000] 16 20 24
    so the monitor is detected also.

    This may be the problem - from lspci -nnk:
    Code:
    [FONT=monospace][COLOR=#000000]01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK110 [GeForce GTX 780] [10de:1004] (rev a1)[/COLOR]
            Subsystem: eVga.com. Corp. GK110B [GeForce GTX 780 Dual FTW w/ ACX Cooler] [3842:1784]
            Kernel driver in use: nvidia
            Kernel modules: nvidiafb, nouveau, nvidia_378_drm, nvidia_378
    01:00.1 Audio device [0403]: NVIDIA Corporation GK110 HDMI Audio [10de:0e1a] (rev a1)
            Subsystem: eVga.com. Corp. GK110 HDMI Audio [3842:1784]
        [B]    Kernel driver in use: snd_hda_intel
            Kernel modules: snd_hda_intel[/B]
    [/FONT][FONT=monospace][/FONT]
    Note the nVidia card Audio is using the Intel sound driver. This seems wrong to me but I can't find any info about it.

    Anyone have any ideas?

    Please Read Me

    #2
    The driver thing and the eld error look like they might be red herrings:
    Code:
    [FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]/etc/modprobe.d[/B][/COLOR][COLOR=#000000]$ aplay -l[/COLOR]
    **** List of PLAYBACK Hardware Devices ****
    card 0: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    [COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]/etc/modprobe.d[/B][/COLOR][COLOR=#000000]$ grep eld_valid /proc/asound/card2/eld#0.*                      [/COLOR]
    [COLOR=#B218B2]/proc/asound/card2/eld#0.0[/COLOR][COLOR=#18B2B2]:[/COLOR][COLOR=#FF5454][B]eld_valid[/B][/COLOR][COLOR=#000000]            0[/COLOR]
    [COLOR=#B218B2]/proc/asound/card2/eld#0.1[/COLOR][COLOR=#18B2B2]:[/COLOR][COLOR=#FF5454][B]eld_valid[/B][/COLOR][COLOR=#000000]            0[/COLOR]
    [COLOR=#B218B2]/proc/asound/card2/eld#0.2[/COLOR][COLOR=#18B2B2]:[/COLOR][COLOR=#FF5454][B]eld_valid[/B][/COLOR][COLOR=#000000]            1[/COLOR]
    [COLOR=#B218B2]/proc/asound/card2/eld#0.3[/COLOR][COLOR=#18B2B2]:[/COLOR][COLOR=#FF5454][B]eld_valid[/B][/COLOR][COLOR=#000000]            0[/COLOR]
    
    [/FONT]
    From the above output, it appears the card is using HDMI 2 /device 8. Since these all start counting at 0, I assume the correct selection in System Settings is "HDMI 3" as 3 would correspond to 2 if you start counting at 1 instead of 0.

    I also found a post stating the snd_intel driver was correct for nVidia sound, but that was a post from 2010. I can't find anything very recent.

    Still no sound at this point. I think I need to find another audio source to test the monitor just to be sure it's not the hardware.

    Please Read Me

    Comment


      #3
      @hear on Neon-lts and using the nouveau driver I get this

      Code:
      vinny@vinny-Bonobo-Extreme:~$ aplay -l
      **** List of PLAYBACK Hardware Devices ****
      card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
      card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
      card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
      card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
      and from the lspci -nnk
      Code:
      01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK104M [GeForce GTX 860M] [10de:119a] (rev a1)
          Subsystem: CLEVO/KAPOK Computer GK104M [GeForce GTX 860M] [1558:0376]
          Kernel driver in use: nouveau
          Kernel modules: nvidiafb, nouveau
      01:00.1 Audio device [0403]: NVIDIA Corporation GK104 HDMI Audio Controller [10de:0e0a] (rev a1)
          Subsystem: CLEVO/KAPOK Computer GK104 HDMI Audio Controller [1558:0376]
          Kernel driver in use: snd_hda_intel
          Kernel modules: snd_hda_intel
      and sound plays through the HDMI on the TV ,,,,I have no monitor with speakers to try on,,,,,,,and during this output from konsole it is not attached .

      I'll be right back with the 16.04-with neon-/dev/stable added to sources.list

      <time ticker>

      OK ,,,,,,, one more set

      from lspci -nnk

      Code:
      01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK104M [GeForce GTX 860M] [10de:119a] (rev a1)
            Subsystem: CLEVO/KAPOK Computer GK104M [GeForce GTX 860M] [1558:0376]
            Kernel driver in use: nvidia
            Kernel modules: nvidiafb, nouveau, nvidia_381, nvidia_381_drm
      01:00.1 Audio device [0403]: NVIDIA Corporation GK104 HDMI Audio Controller [10de:0e0a] (rev a1)
            Subsystem: CLEVO/KAPOK Computer GK104 HDMI Audio Controller [1558:0376]
            Kernel driver in use: snd_hda_intel
            Kernel modules: snd_hda_intel
      and

      Code:
      vinny@vinny-Bonobo-Extreme:~$ aplay -l
      **** List of PLAYBACK Hardware Devices ****
      card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
      card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
      card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
      card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
      are you sure the audio is being directed to the HDMI ,,,,,,,,,, you can click the volume control in the system tray ,,,click the applications tab ,,,start dragging the applications icon and the audio devices will show ,,,drop it on the HDMI .

      VINNY
      Last edited by vinnywright; Jun 01, 2017, 03:59 PM. Reason: add info from other OS
      i7 4core HT 8MB L3 2.9GHz
      16GB RAM
      Nvidia GTX 860M 4GB RAM 1152 cuda cores

      Comment


        #4
        Yeah, the sound is directed through HDMI/DP. pavucontrol even shows "connected" and a sound level indicator when playing a music file - no audio though. More searching reveals some options I
        I'm trying.

        This:

        options snd-hda-intel enable_msi=1 bdl_pos_adj=1,64 snoop=0

        causes an occasional scratchy "burp" from the speakers periodically while playing audio, so at least it a move in the right direction. I tried:

        options snd-hda-intel enable_msi=1 bdl_pos_adj=1,64 snoop=0 index=2,8

        since aplay -l shows this as card 2, device 8 - thinking the index would point to the correct card, but same results as before.

        Please Read Me

        Comment


          #5
          Changing enable_msi=1 to =0 results in more "burping" - I can even tell it's music. The answer is there somewhere.

          Please Read Me

          Comment


            #6
            yes this sounds like a situation where the device is not reporting the correct/or expected information ,,,,,,,, like a display not reporting the correct xrender info .

            VINNY
            i7 4core HT 8MB L3 2.9GHz
            16GB RAM
            Nvidia GTX 860M 4GB RAM 1152 cuda cores

            Comment


              #7
              So I booted to live Manjaro and the sound worked perfectly. I'm going to pour over the configs in that distro and see what I can do to fix this one.

              The biggest difference I noticed is like 25ish sound "devices" on the Neon install but only a dozen or so on the Manjaro. This might be because it used the free Nouveau driver instead of the nVidia driver.

              Please Read Me

              Comment


                #8
                I always have this trouble. My solution: https://www.kubuntuforums.net/showth...l=1#post337397

                Comment


                  #9
                  I've seen similar posts, but for whatever reason, sometimes my nVidia card is hw:1 and sometimes hw:2. I didn't think relying on a hw definition would be a good idea.

                  Please Read Me

                  Comment


                    #10
                    So, interesting thing happened - Manjaro has the option, when booting to the Live USB, to select "free" or "non-free" drivers. The first time I booted to Manjaro I left it on free and the sound worked. The second time I booted to it, I selected non-free and sound did not work. Apparently, the issue is at least partially the driver.

                    Sidebar: Manjaro boots quick and looks pretty good. It's based on Arch and I know nothing about it, but it might be worth playing with. It even installs to btrfs using subvolumes like *buntu's do, which would be a deal breaker for me if not.

                    Please Read Me

                    Comment


                      #11
                      SO I uninstalled the nVidia drivers and installed the nouveau driver and audio instantly started working with no other changes.

                      nVidia used to have such good drivers. Downside is the nouveau drivers lockup rather regularly.

                      Maybe it's time to dump nVidia and just use the Intel on-board instead.

                      Please Read Me

                      Comment


                        #12
                        I found an updated driver PPA with cutting edge versions. No more lockups so far. Fingers crossed...

                        Please Read Me

                        Comment


                          #13
                          NVidia PPA?
                          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                          – John F. Kennedy, February 26, 1962.

                          Comment


                            #14
                            No luck with the nvidia drivers at all. I upgraded to 381 from 372 and still no audio. I didn't try downgrading. With Manjaro I get the same results except the nouveau driver doesn't freeze like it does in KDEneon. I don't know what they did differently. Currently, I'm running Manjaro for the stability and audio functionality. There's a lot different from Kubuntu but I'm getting there - one item at a time.

                            BTW GG - Manjaro installs like *buntu's do to btrfs - with @ and @home subvols to an existing btrfs file systems. Now if we could get the ability to name the subvols during the install that would be great!

                            Please Read Me

                            Comment


                              #15
                              Originally posted by oshunluvr View Post
                              .....

                              BTW GG - Manjaro installs like *buntu's do to btrfs - with @ and @home subvols to an existing btrfs file systems. Now if we could get the ability to name the subvols during the install that would be great!
                              Good to know! (Based on Arch, should be an interesting learning curve?)
                              "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                              – John F. Kennedy, February 26, 1962.

                              Comment

                              Working...
                              X