Announcement

Collapse
No announcement yet.

No sound after 20.04 upgrade HDMI / dummy output / snd-hda-intel

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

    [SOLVED] No sound after 20.04 upgrade HDMI / dummy output / snd-hda-intel

    Hi,

    After upgrade to 20.04 LTS, my soundcard 0 disappeard. This was the HDMI audio output. HDMI audio output was working with 18.04 LTS
    Also, it seems that Plasma/PulseAudio switch to exclusively the "Dummy output" when there's no card at index 0:

    Code:
    $pacmd list-cards
    0 card(s) available.
    ==> PulseAudio has no card.

    Code:
    $sudo alsamixer 
    cannot open mixer: No such device
    
    $sudo aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 1: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    
    $sudo cat /proc/asound/cards
    1 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7d10000 irq 33
    ==> So, I have at least one sound card, the Analog one. It's good to have it in index 1 since anyway I use HDMI output, and HDMI should be at index 0 (but missing)
    Code:
    $sudo alsamixer -c 1
    ==>Works on the analog sound card.
    Code:
    $lspci -v | grep -A6 -i audio
    00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
    Subsystem: Micro-Star International Co., Ltd. [MSI] Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
    Flags: fast devsel, IRQ 16
    Memory at f7d14000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
    
    --
    00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
    Subsystem: Micro-Star International Co., Ltd. [MSI] 8 Series/C220 Series Chipset High Definition Audio Controller
    Flags: bus master, fast devsel, latency 0, IRQ 33
    Memory at f7d10000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
    ==> So I have 2 sound cards, best guess is that one of the 2 is the HDMI output. Both have the driver loaded.
    Code:
    $cat /proc/asound/card*/codec* | grep Codec
    Codec: Realtek ALC892
    I did try:
    Code:
    $sudo apt remove --purge alsa-base pulseaudio
    $sudo apt install alsa-base pulseaudio
    $sudo alsa force-reload
    But problem is still there. Dummy output and no HDMI sound card.

    Any idea ?

    Thanks,
    Last edited by pivert; Nov 03, 2020, 06:16 PM.

    #2
    These links have the most common fixes to this issue.
    As you have an ALC892 the first link may be the most useful
    https://www.linuxuprising.com/2018/0...-issue-in.html
    Read the whole thing, there are a couple of options to try when editing the file as shown.

    This is somewhat similar but has some other things to look at.
    https://medium.com/@aaro.alhainen/ho...e-eaa525838e0d

    Another:
    https://itsfoss.com/fix-sound-ubuntu-1304-quick-tip/
    Option 5 is again similar to the above links, but shows another option when editing the conf file.

    I lean toward the first one, with its two options.

    Comment


      #3
      Thanks claydoh, definitely valuable links.

      The first link did not work as is, I'll continue investigating.
      This makes me discover this inxi excellent command.

      Also, a second problem that I'll try to fix first, since it significantly slower the resolution process:
      After upgrade to 20.04 / Kernel 5.4.0, the computer does not shutdown or reboot any more, but hangs at shutdown.

      Interesting:

      Code:
      root@homer:~# tail /var/log/kern.log | grep snd_hda_intel
      Nov  4 01:55:46 homer kernel: [   76.552265] snd_hda_intel 0000:00:03.0: couldn't bind with audio component
      Nov  4 01:55:46 homer kernel: [   76.552285] snd_hda_intel 0000:00:03.0: HSW/BDW HD-audio HDMI/DP requires binding with gfx driver
      HW info:
      Code:
      root@homer:~# inxi -x -A -CGSM -y 160
      root@homer:~# inxi -x -A -CGSM -y 160
      System:    Host: homer Kernel: 5.4.0-52-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Console: tty 3 Distro: Ubuntu 20.04.1 LTS (Focal Fossa) 
      Machine:   Type: Desktop Mobo: MSI model: Z87-G43 (MS-7816) v: 1.0 serial: N/A BIOS: American Megatrends v: 1.6 date: 11/27/2013 
      CPU:       Topology: Quad Core model: Intel Core i7-4770S bits: 64 type: MT MCP arch: Haswell rev: 3 L2 cache: 8192 KiB 
               flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 49599 
               Speed: 2300 MHz min/max: 800/3900 MHz Core speeds (MHz): 1: 2300 2: 2296 3: 2300 4: 2300 5: 2303 6: 2300 7: 2301 8: 2300 
      Graphics:  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics vendor: Micro-Star MSI driver: N/A bus ID: 00:02.0 
               Display: server: X.org 1.20.8 driver: vesa unloaded: fbdev,modesetting tty: 171x43 
               Message: Advanced graphics data unavailable in console for root. 
      Audio:     Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 00:03.0 
               Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
               Sound Server: ALSA v: k5.4.0-52-generic
      Investigation ongoing...

      Comment


        #4
        Hi,

        First my reboot / shutdown problem. It seems to be fixed by replacing /etc/default/grub with the package maintainer's version. The only difference, is that I had the following additional settings in the previous file:
        Code:
        GRUB_GFXMODE=1280x720
        GRUB_GFXPAYLOAD_LINUX=1280x720
        The HDMI output:
        I can see my card1 as analog. Did not test it. But the HDMI output is still missing. And I think the following lines are very relevant to my problem:
        Code:
        grep -E "(HDMI|snd_hda)" /var/log/kern.log
        Nov  4 11:39:23 homer kernel: [    0.140968] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
        Nov  4 11:39:23 homer kernel: [   20.574552] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC892: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line
        Nov  4 11:39:23 homer kernel: [   20.574553] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
        Nov  4 11:39:23 homer kernel: [   20.574554] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
        Nov  4 11:39:23 homer kernel: [   20.574555] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
        Nov  4 11:39:23 homer kernel: [   20.574555] snd_hda_codec_realtek hdaudioC1D0:    inputs:
        Nov  4 11:39:23 homer kernel: [   20.574556] snd_hda_codec_realtek hdaudioC1D0:      Front Mic=0x19
        Nov  4 11:39:23 homer kernel: [   20.574557] snd_hda_codec_realtek hdaudioC1D0:      Rear Mic=0x18
        Nov  4 11:39:23 homer kernel: [   20.574558] snd_hda_codec_realtek hdaudioC1D0:      Line=0x1a
        Nov  4 11:39:23 homer kernel: [   80.964909] snd_hda_intel 0000:00:03.0: couldn't bind with audio component
        Nov  4 11:39:23 homer kernel: [   80.964915] snd_hda_intel 0000:00:03.0: HSW/BDW HD-audio HDMI/DP requires binding with gfx driver
        So, it seems related to the video driver. (My computer has nothing to do with Lenovo)
        But which video driver am I supposed to use for this Intel card ?

        Code:
        00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06) (prog-if 00 [VGA controller])
              DeviceName:  Onboard IGD
              Subsystem: Micro-Star International Co., Ltd. [MSI] Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
              Flags: bus master, fast devsel, latency 0, IRQ 11
              Memory at f7800000 (64-bit, non-prefetchable) [size=4M]
              Memory at e0000000 (64-bit, prefetchable) [size=256M]
              I/O ports at f000 [size=64]
              Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
              Capabilities: <access denied>
              Kernel modules: i915
        Not sure why, but it used by default fbdev which was super slow. So, I removed it : apt remove xserver-xorg-video-fbdev
        Then it falls back to vesa driver :
        Code:
        Graphics:  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics driver: N/A 
                 Display: x11 server: X.Org 1.20.8 driver: vesa unloaded: modesetting resolution: 1920x1080~N/A 
                 OpenGL: renderer: llvmpipe (LLVM 10.0.0 256 bits) v: 3.3 Mesa 20.0.8
        So why is Kubuntu 20.04 not finding and using the intel driver, as it's being reported as an i915 by lspci ?
        Last edited by pivert; Nov 04, 2020, 11:23 AM.

        Comment


          #5
          i915 is the Intel driver, for most all intel graphics chips.

          fbdev is a driver for the console (pre-boot and non-gui bits)

          Comment


            #6
            Hi,

            The problem is fixed. Thanks to the section
            No sound through HDMI on a Haswell CPU in this link:
            https://wiki.archlinux.org/index.php/intel_graphics

            In my case this was just about setting the GRUB_CMDLINE_LINUX_DEFAULT to "intel_iommu=on,igfx_off":
            Code:
            root@homer:~# grep ^GRUB_CMD /etc/default/grub
            GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on,igfx_off"
            GRUB_CMDLINE_LINUX=""
            After reboot, all inputs from the sound card were immediately available in PulseAudio/Plasma, including the HDMI ones.

            I also noticed that after this kernel parameters change, the X display driver changed to modesetting:
            Code:
            root@homer:~# inxi -G
            Graphics:  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics driver: i915 v: kernel 
                      Display: server: X.org 1.20.8 driver: modesetting unloaded: vesa tty: 172x43 
                      Message: Advanced graphics data unavailable in console for root.
            Last edited by pivert; Nov 04, 2020, 04:24 PM.

            Comment

            Working...
            X