No sound, and sound card not found

Asked by Patrick

This started after unplugging an audio cable from my computer. I've tried everything in https://help.ubuntu.com/community/SoundTroubleshootingProcedure and a few other things. I know the speakers and sound card work because they work fine when I'm using Windows. When I open pavucontrols, the output tab only shows a dummy device with a dB bar that fluctuates when I play music.

Output of alsa-info.sh:

!!################################
!!ALSA Information Script v 0.5.0
!!################################

!!Script ran on: Mon Jul 19 02:52:25 UTC 2021

!!Linux Distribution
!!------------------

Ubuntu 20.04.2 LTS \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS" NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.2 LTS" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=focal

!!DMI Information
!!---------------

Manufacturer: System manufacturer
Product Name: System Product Name
Product Version: System Version
Firmware Version: 1302
System SKU: SKU
Board Vendor: ASUSTeK COMPUTER INC.
Board Name: STRIX Z270E GAMING

!!ACPI Device Status Information
!!---------------

/sys/bus/acpi/devices/ACPI000C:00/status 15
/sys/bus/acpi/devices/INT33A1:00/status 15
/sys/bus/acpi/devices/INT340E:00/status 15
/sys/bus/acpi/devices/INT3F0D:00/status 15
/sys/bus/acpi/devices/LNXPOWER:01/status 1
/sys/bus/acpi/devices/LNXPOWER:02/status 1
/sys/bus/acpi/devices/LNXPOWER:03/status 1
/sys/bus/acpi/devices/LNXPOWER:04/status 1
/sys/bus/acpi/devices/LNXPOWER:05/status 1
/sys/bus/acpi/devices/LNXPOWER:06/status 1
/sys/bus/acpi/devices/LNXPOWER:07/status 1
/sys/bus/acpi/devices/LNXPOWER:08/status 1
/sys/bus/acpi/devices/LNXPOWER:09/status 1
/sys/bus/acpi/devices/LNXPOWER:0a/status 1
/sys/bus/acpi/devices/LNXPOWER:0b/status 1
/sys/bus/acpi/devices/LNXPOWER:0c/status 1
/sys/bus/acpi/devices/LNXPOWER:0d/status 1
/sys/bus/acpi/devices/LNXPOWER:0e/status 1
/sys/bus/acpi/devices/LNXPOWER:0f/status 1
/sys/bus/acpi/devices/LNXPOWER:10/status 1
/sys/bus/acpi/devices/LNXPOWER:11/status 1
/sys/bus/acpi/devices/LNXPOWER:12/status 1
/sys/bus/acpi/devices/LNXPOWER:13/status 1
/sys/bus/acpi/devices/LNXPOWER:14/status 1
/sys/bus/acpi/devices/LNXPOWER:15/status 1
/sys/bus/acpi/devices/LNXPOWER:16/status 1
/sys/bus/acpi/devices/PNP0103:00/status 15
/sys/bus/acpi/devices/PNP0501:00/status 15
/sys/bus/acpi/devices/PNP0C02:02/status 15
/sys/bus/acpi/devices/PNP0C02:04/status 3
/sys/bus/acpi/devices/PNP0C02:06/status 3
/sys/bus/acpi/devices/PNP0C04:00/status 31
/sys/bus/acpi/devices/PNP0C0C:00/status 15
/sys/bus/acpi/devices/PNP0C0E:00/status 11
/sys/bus/acpi/devices/PNP0C0F:00/status 9
/sys/bus/acpi/devices/PNP0C0F:01/status 9
/sys/bus/acpi/devices/PNP0C0F:02/status 9
/sys/bus/acpi/devices/PNP0C0F:03/status 9
/sys/bus/acpi/devices/PNP0C0F:04/status 9
/sys/bus/acpi/devices/PNP0C0F:05/status 9
/sys/bus/acpi/devices/PNP0C0F:06/status 9
/sys/bus/acpi/devices/PNP0C0F:07/status 9
/sys/bus/acpi/devices/device:72/status 15
/sys/bus/acpi/devices/device:81/status 11

!!Kernel Information
!!------------------

Kernel release: 5.11.0-22-generic
Operating System: GNU/Linux
Architecture: x86_64
Processor: x86_64
SMP Enabled: Yes

!!ALSA Version
!!------------

Driver version:
Library version: 1.2.2
Utilities version: 1.2.2

!!Loaded ALSA modules
!!-------------------

!!Sound Servers on this system
!!----------------------------

Pulseaudio:
      Installed - Yes (/usr/bin/pulseaudio)
      Running - Yes

!!Soundcards recognised by ALSA
!!-----------------------------

!!PCI Soundcards installed in the system
!!--------------------------------------

00:1f.3 Audio device [0403]: Intel Corporation 200 Series PCH HD Audio [8086:a2f0]
 Subsystem: ASUSTeK Computer Inc. 200 Series PCH HD Audio [1043:8723]
02:00.1 Audio device [0403]: NVIDIA Corporation GP102 HDMI Audio Controller [10de:10ef] (rev a1)
 Subsystem: ASUSTeK Computer Inc. GP102 HDMI Audio Controller [1043:85f1]

!!Modprobe options (Sound related)
!!--------------------------------

snd_pcsp: index=-2
snd_usb_audio: index=-2
snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2
snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2
snd_usb_audio: index=-2
snd_usb_caiaq: index=-2
snd_usb_ua101: index=-2
snd_usb_us122l: index=-2
snd_usb_usx2y: index=-2
snd_cmipci: mpu_port=0x330 fm_port=0x388
snd_pcsp: index=-2
snd_usb_audio: index=-2

!!Loaded sound module options
!!---------------------------

!!Sysfs card info
!!---------------

!!Card: /sys/class/sound/card*
Driver:
Tree:

!!ALSA Device nodes
!!-----------------

crw-rw---- 1 root audio 116, 1 Jul 18 19:41 /dev/snd/seq
crw-rw---- 1 root audio 116, 33 Jul 18 19:41 /dev/snd/timer

!!ALSA configuration files
!!------------------------

!!System wide config file (/etc/asound.conf)

pcm.!default {
type plug slave.pcm {
type hw card 1 device 3
}
}

!!Aplay/Arecord output
!!--------------------

APLAY

aplay: device_list:276: no soundcards found...

ARECORD

arecord: device_list:276: no soundcards found...

!!Amixer output
!!-------------

!!Alsactl output
!!--------------

--startcollapse--
--endcollapse--

!!All Loaded Modules
!!------------------

acpi_pad
aesni_intel
ahci
aufs
autofs4
binfmt_misc
bpfilter
br_netfilter
bridge
cec
crc32_pclmul
crct10dif_pclmul
cryptd
crypto_simd
drm
drm_kms_helper
e1000e
efi_pstore
fb_sys_fops
ghash_clmulni_intel
glue_helper
hid
hid_generic
input_leds
ip_tables
iptable_filter
iptable_nat
libahci
libcrc32c
llc
lp
nf_conntrack
nf_conntrack_netlink
nf_defrag_ipv4
nf_defrag_ipv6
nf_nat
nfnetlink
nls_iso8859_1
nvidia
nvidia_drm
nvidia_modeset
nvidia_uvm
overlay
parport
parport_pc
ppdev
rc_core
sch_fq_codel
stp
syscopyarea
sysfillrect
sysimgblt
uas
usb_storage
usbhid
video
x_tables
xfrm_algo
xfrm_user
xhci_pci
xhci_pci_renesas
xt_MASQUERADE
xt_addrtype
xt_conntrack

!!ALSA/HDA dmesg
!!--------------

[ 0.148889] ACPI: Added _OSI(Linux-Dell-Video)
[ 0.148889] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[ 0.148889] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)

!!Packages installed
!!--------------------

ii alsa-topology-conf 1.2.2-1 all ALSA topology configuration files
ii alsa-ucm-conf 1.2.2-1ubuntu0.8 all ALSA Use Case Manager configuration files
ii alsa-utils 1.2.2-1ubuntu2.1 amd64 Utilities for configuring and using ALSA

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu alsa-driver Edit question
Assignee:
No assignee Edit question
Solved by:
Patrick
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Quote from your output:

!!ALSA Version
!!------------

Driver version:
Library version: 1.2.2
Utilities version: 1.2.2

End of quote

You do not have a driver loaded for your audio device.

What output do you receive if you issue the commands

sudo lshw -C multimedia
sudo modprobe -v snd_hda_intel
sudo lshw -C multimedia

Revision history for this message
Patrick (patreeceeo) said :
#2

Output from the above commands:

*-multimedia UNCLAIMED
       description: Audio device
       product: GP102 HDMI Audio Controller
       vendor: NVIDIA Corporation
       physical id: 0.1
       bus info: pci@0000:02:00.1
       version: a1
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: memory:df080000-df083fff
  *-multimedia UNCLAIMED
       description: Audio device
       product: 200 Series PCH HD Audio
       vendor: Intel Corporation
       physical id: 1f.3
       bus info: pci@0000:00:1f.3
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list
       configuration: latency=32
       resources: memory:df640000-df643fff memory:df620000-df62ffff
modprobe: FATAL: Module snd_hda_intel not found in directory /lib/modules/5.11.0-22-generic
  *-multimedia UNCLAIMED
       description: Audio device
       product: GP102 HDMI Audio Controller
       vendor: NVIDIA Corporation
       physical id: 0.1
       bus info: pci@0000:02:00.1
       version: a1
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: memory:df080000-df083fff
  *-multimedia UNCLAIMED
       description: Audio device
       product: 200 Series PCH HD Audio
       vendor: Intel Corporation
       physical id: 1f.3
       bus info: pci@0000:00:1f.3
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list
       configuration: latency=32
       resources: memory:df640000-df643fff memory:df620000-df62ffff

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

modprobe: FATAL: Module snd_hda_intel not found in directory /lib/modules/5.11.0-22-generic

It seems that you are missing the driver package with among others the sound drivers, probably linux-modules-extra-5.11.0-22-generic

How did you install this version of the kernel?

Revision history for this message
Patrick (patreeceeo) said :
#4

it must have been installed when I was following the steps in https://help.ubuntu.com/community/SoundTroubleshootingProcedure

Revision history for this message
Patrick (patreeceeo) said :
#5

Installed linux-modules-extra-5.11.0-22-generic and (prompted by of the output from that command) linux-headers-5.11.0-22-generic. Copying the output from both commands in case it helps, and for my own reference.

$ sudo apt install linux-modules-extra-5.11.0-22-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-lato javascript-common libjs-jquery libsbc1 ruby-minitest ruby-net-telnet ruby-power-assert ruby-test-unit ruby-xmlrpc rubygems-integration
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  linux-modules-extra-5.11.0-22-generic
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 42.1 MB of archives.
After this operation, 218 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-modules-extra-5.11.0-22-generic amd64 5.11.0-22.23~20.04.1 [42.1 MB]
Fetched 42.1 MB in 2s (20.3 MB/s)
Selecting previously unselected package linux-modules-extra-5.11.0-22-generic.
(Reading database ... 228112 files and directories currently installed.)
Preparing to unpack .../linux-modules-extra-5.11.0-22-generic_5.11.0-22.23~20.04.1_amd64.deb ...
Unpacking linux-modules-extra-5.11.0-22-generic (5.11.0-22.23~20.04.1) ...
Setting up linux-modules-extra-5.11.0-22-generic (5.11.0-22.23~20.04.1) ...
Processing triggers for linux-image-5.11.0-22-generic (5.11.0-22.23~20.04.1) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.11.0-22-generic
Error! Your kernel headers for kernel 5.11.0-22-generic cannot be found.
Please install the linux-headers-5.11.0-22-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 5.11.0-22-generic cannot be found.
Please install the linux-headers-5.11.0-22-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 5.11.0-22-generic cannot be found.
Please install the linux-headers-5.11.0-22-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
Error! Your kernel headers for kernel 5.11.0-22-generic cannot be found.
Please install the linux-headers-5.11.0-22-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.11.0-22-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.11.0-22-generic
Found initrd image: /boot/initrd.img-5.11.0-22-generic
Found linux image: /boot/vmlinuz-5.8.0-59-generic
Found initrd image: /boot/initrd.img-5.8.0-59-generic
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings
done

$ sudo apt install linux-headers-5.11.0-22-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-lato javascript-common libjs-jquery libsbc1 ruby-minitest ruby-net-telnet ruby-power-assert ruby-test-unit ruby-xmlrpc rubygems-integration
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-hwe-5.11-headers-5.11.0-22
The following NEW packages will be installed:
  linux-headers-5.11.0-22-generic linux-hwe-5.11-headers-5.11.0-22
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.2 MB of archives.
After this operation, 90.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-hwe-5.11-headers-5.11.0-22 all 5.11.0-22.23~20.04.1 [11.7 MB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-headers-5.11.0-22-generic amd64 5.11.0-22.23~20.04.1 [1,531 kB]
Fetched 13.2 MB in 1s (12.1 MB/s)
Selecting previously unselected package linux-hwe-5.11-headers-5.11.0-22.
(Reading database ... 233789 files and directories currently installed.)
Preparing to unpack .../linux-hwe-5.11-headers-5.11.0-22_5.11.0-22.23~20.04.1_all.deb ...
Unpacking linux-hwe-5.11-headers-5.11.0-22 (5.11.0-22.23~20.04.1) ...
Selecting previously unselected package linux-headers-5.11.0-22-generic.
Preparing to unpack .../linux-headers-5.11.0-22-generic_5.11.0-22.23~20.04.1_amd64.deb ...
Unpacking linux-headers-5.11.0-22-generic (5.11.0-22.23~20.04.1) ...
Setting up linux-hwe-5.11-headers-5.11.0-22 (5.11.0-22.23~20.04.1) ...
Setting up linux-headers-5.11.0-22-generic (5.11.0-22.23~20.04.1) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.11.0-22-generic

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=5.11.0-22-generic KERNEL_VERSION=5.11.0-22-generic all...
Signing module:
 - /var/lib/dkms/hid-magicmouse-dkms/4.18+magictrackpad2/5.11.0-22-generic/x86_64/module/hid-magicmouse.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

hid-magicmouse.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.11.0-22-generic/updates/dkms/

depmod...

Backing up initrd.img-5.11.0-22-generic to /boot/initrd.img-5.11.0-22-generic.old-dkms
Making new initrd.img-5.11.0-22-generic
(If next boot fails, revert to initrd.img-5.11.0-22-generic.old-dkms image)
update-initramfs......

DKMS: install completed.

Kernel preparation unnecessary for this kernel. Skipping...
applying patch disable_fstack-clash-protection_fcf-protection.patch...patching file Kbuild
Hunk #1 succeeded at 82 (offset 11 lines).

Building module:
cleaning build area...
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'make' -j8 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=5.11.0-22-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/5.11.0-22-generic/build LD=/usr/bin/ld.bfd modules...........
Signing module:
 - /var/lib/dkms/nvidia/460.80/5.11.0-22-generic/x86_64/module/nvidia-uvm.ko
 - /var/lib/dkms/nvidia/460.80/5.11.0-22-generic/x86_64/module/nvidia-drm.ko
 - /var/lib/dkms/nvidia/460.80/5.11.0-22-generic/x86_64/module/nvidia.ko
 - /var/lib/dkms/nvidia/460.80/5.11.0-22-generic/x86_64/module/nvidia-modeset.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

nvidia.ko:
Running module version sanity check.

Good news! Module version 460.80 for nvidia.ko
exactly matches what is already found in kernel 5.11.0-22-generic.
DKMS will not replace this module.
You may override by specifying --force.

nvidia-modeset.ko:
Running module version sanity check.

Good news! Module version 460.80 for nvidia-modeset.ko
exactly matches what is already found in kernel 5.11.0-22-generic.
DKMS will not replace this module.
You may override by specifying --force.

nvidia-drm.ko:
Running module version sanity check.

Good news! Module version 460.80 for nvidia-drm.ko
exactly matches what is already found in kernel 5.11.0-22-generic.
DKMS will not replace this module.
You may override by specifying --force.

nvidia-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.11.0-22-generic/updates/dkms/

depmod...

DKMS: install completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=5.11.0-22-generic KERNEL_DIR=/lib/modules/5.11.0-22-generic/build all...
Signing module:
 - /var/lib/dkms/v4l2loopback/0.12.3/5.11.0-22-generic/x86_64/module/v4l2loopback.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

v4l2loopback.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.11.0-22-generic/updates/dkms/

depmod...

DKMS: install completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=5.11.0-22-generic KVERSION=5.11.0-22-generic...
Signing module:
 - /var/lib/dkms/xpad/0.4/5.11.0-22-generic/x86_64/module/xpad.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

xpad.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.11.0-22-generic/updates/dkms/

depmod...

DKMS: install completed.
   ...done.

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

I do not see any step in https://help.ubuntu.com/community/SoundTroubleshootingProcedure which would instruct installing the 5.11.0 version of the kernel.

What do you now receive for

dpkg -l | grep ' linux-'
sudo modprobe -v snd_hda_intel
sudo lshw -C multimedia

Revision history for this message
Patrick (patreeceeo) said (last edit ):
#7

Does step #1C do that by including linux-image-`uname -r` in the list of packages to install? Not sure to be honest.

Here's the output from those commands:

$ dpkg -l | grep ' linux-'
ii linux-base 4.5ubuntu3.6 all Linux image base package
ii linux-firmware 1.187.15 all Firmware for Linux kernel drivers
ii linux-generic-hwe-20.04 5.8.0.59.66~20.04.42 amd64 Complete Generic Linux kernel and headers
ii linux-headers-5.11.0-22-generic 5.11.0-22.23~20.04.1 amd64 Linux kernel headers for version 5.11.0 on 64 bit x86 SMP
ii linux-headers-5.4.0-42 5.4.0-42.46 all Header files related to Linux kernel version 5.4.0
ii linux-headers-5.4.0-42-generic 5.4.0-42.46 amd64 Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
ii linux-headers-5.8.0-59-generic 5.8.0-59.66~20.04.1 amd64 Linux kernel headers for version 5.8.0 on 64 bit x86 SMP
ii linux-headers-generic-hwe-20.04 5.8.0.59.66~20.04.42 amd64 Generic Linux kernel headers
ii linux-hwe-5.11-headers-5.11.0-22 5.11.0-22.23~20.04.1 all Header files related to Linux kernel version 5.11.0
ii linux-hwe-5.8-headers-5.8.0-59 5.8.0-59.66~20.04.1 all Header files related to Linux kernel version 5.8.0
ii linux-image-5.11.0-22-generic 5.11.0-22.23~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.4.0-42-generic 5.4.0-42.46 amd64 Signed kernel image generic
rc linux-image-5.8.0-41-generic 5.8.0-41.46~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-45-generic 5.8.0-45.51~20.04.1+1 amd64 Signed kernel image generic
rc linux-image-5.8.0-48-generic 5.8.0-48.54~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-49-generic 5.8.0-49.55~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-50-generic 5.8.0-50.56~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-53-generic 5.8.0-53.60~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-55-generic 5.8.0-55.62~20.04.1 amd64 Signed kernel image generic
ii linux-image-5.8.0-59-generic 5.8.0-59.66~20.04.1 amd64 Signed kernel image generic
ii linux-image-generic-hwe-20.04 5.8.0.59.66~20.04.42 amd64 Generic Linux kernel image
ii linux-libc-dev:amd64 5.4.0-77.86 amd64 Linux Kernel Headers for development
ii linux-modules-5.11.0-22-generic 5.11.0-22.23~20.04.1 amd64 Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
rc linux-modules-5.4.0-42-generic 5.4.0-42.46 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-41-generic 5.8.0-41.46~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-45-generic 5.8.0-45.51~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-48-generic 5.8.0-48.54~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-49-generic 5.8.0-49.55~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-50-generic 5.8.0-50.56~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-53-generic 5.8.0-53.60~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-55-generic 5.8.0-55.62~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
ii linux-modules-5.8.0-59-generic 5.8.0-59.66~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
ii linux-modules-extra-5.11.0-22-generic 5.11.0-22.23~20.04.1 amd64 Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
rc linux-modules-extra-5.4.0-42-generic 5.4.0-42.46 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-41-generic 5.8.0-41.46~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-45-generic 5.8.0-45.51~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-48-generic 5.8.0-48.54~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-49-generic 5.8.0-49.55~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-50-generic 5.8.0-50.56~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-53-generic 5.8.0-53.60~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-55-generic 5.8.0-55.62~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
ii linux-modules-extra-5.8.0-59-generic 5.8.0-59.66~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
ii linux-modules-nvidia-460-5.11.0-22-generic 5.11.0-22.23~20.04.1+1 amd64 Linux kernel nvidia modules for version 5.11.0-22
rc linux-modules-nvidia-460-5.8.0-41-generic 5.8.0-41.46~20.04.1 amd64 Linux kernel nvidia modules for version 5.8.0-41
rc linux-modules-nvidia-460-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64 Linux kernel nvidia modules for version 5.8.0-43
rc linux-modules-nvidia-460-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64 Linux kernel nvidia modules for version 5.8.0-44
rc linux-modules-nvidia-460-5.8.0-45-generic 5.8.0-45.51~20.04.1+1 amd64 Linux kernel nvidia modules for version 5.8.0-45
rc linux-modules-nvidia-460-5.8.0-48-generic 5.8.0-48.54~20.04.1 amd64 Linux kernel nvidia modules for version 5.8.0-48
rc linux-modules-nvidia-460-5.8.0-49-generic 5.8.0-49.55~20.04.1+1 amd64 Linux kernel nvidia modules for version 5.8.0-49
rc linux-modules-nvidia-460-5.8.0-50-generic 5.8.0-50.56~20.04.1+1 amd64 Linux kernel nvidia modules for version 5.8.0-50
rc linux-modules-nvidia-460-5.8.0-53-generic 5.8.0-53.60~20.04.1 amd64 Linux kernel nvidia modules for version 5.8.0-53
ii linux-modules-nvidia-460-generic-hwe-20.04-edge 5.11.0-22.23~20.04.1+1 amd64 Extra drivers for nvidia-460 for the generic-hwe-20.04-edge flavour
ii linux-objects-nvidia-460-5.11.0-22-generic 5.11.0-22.23~20.04.1+1 amd64 Linux kernel nvidia modules for version 5.11.0-22 (objects)
rc linux-objects-nvidia-460-5.8.0-49-generic 5.8.0-49.55~20.04.1+1 amd64 Linux kernel nvidia modules for version 5.8.0-49 (objects)
rc linux-objects-nvidia-460-5.8.0-50-generic 5.8.0-50.56~20.04.1+1 amd64 Linux kernel nvidia modules for version 5.8.0-50 (objects)
rc linux-objects-nvidia-460-5.8.0-53-generic 5.8.0-53.60~20.04.1 amd64 Linux kernel nvidia modules for version 5.8.0-53 (objects)
ii linux-signatures-nvidia-5.11.0-22-generic 5.11.0-22.23~20.04.1+1 amd64 Linux kernel signatures for nvidia modules for version 5.11.0-22-generic
ii linux-sound-base 1.0.25+dfsg-0ubuntu5 all base package for ALSA and OSS sound systems

$ sudo modprobe -v snd_hda_intel

$ sudo lshw -C multimedia
  *-multimedia
       description: Audio device
       product: GP102 HDMI Audio Controller
       vendor: NVIDIA Corporation
       physical id: 0.1
       bus info: pci@0000:02: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:18 memory:df080000-df083fff
  *-multimedia
       description: Audio device
       product: 200 Series PCH HD Audio
       vendor: Intel Corporation
       physical id: 1f.3
       bus info: pci@0000:00:1f.3
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list
       configuration: driver=snd_hda_intel latency=32
       resources: irq:148 memory:df640000-df643fff memory:df620000-df62ffff

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

The command with linux-image-`uname -r` only re-installs the version of the kernel that is already installed at that time and does not install a new one.

Anyway, does sound work now?

Revision history for this message
Patrick (patreeceeo) said :
#9

Yes, thanks for your guidance!

Do you think that adding the snd_hda_intel kernel module (with modprobe) is what fixed it?

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

"Do you think that adding the snd_hda_intel kernel module (with modprobe) is what fixed it?"

The cause of your problem was that you did not have the complete set of kernel packages installed. The linux-modules-extra-* package was missing, but the sound driver is contained in that package. The solution was installing that package and after installation the module had to be loaded (with the modprobe command). After a reboot that module will hopefully be automatically loaded, so repeating this command should not be necessary.

Revision history for this message
Patrick (patreeceeo) said :
#11

Well, the problem began when I unplugged a speaker from my computer's audio out AUX port. It was working fine just before that, and I wasn't messing with the kernel until the problem started. The action of unplugging may not have directly caused the kernel packages/modules issue, that may have been the result of my attempts to fix the audio myself before coming to this forum. Just wanted to point this out in case this happens again and someone knows how the seemingly harmless action of unplugging speakers could cause Linux sound issues.