pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.44k stars 87 forks source link

Cannot detect input device after updating to Pop!_OS 22.04 LTS #3139

Closed isdanni closed 1 year ago

isdanni commented 1 year ago

Distribution (run cat /etc/os-release):

~$ cat /etc/os-release
NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME): Input device/microphone

Issue/Bug Description: After a system upgrade to 22.04, I got "dummy output" to the output device(i.e. cannot detect audio/no sound), I fixed it by adding options snd-hda-intel dmic_detect=0 to /etc/modprobe.d/alsa-base.conf.

However, the system still cannot detect any input device:

Screenshot from 2023-09-18 15-59-06

Steps to reproduce (if you know):

Expected behavior: The system should be able to detect a built-in microphone.

Other Notes:

$ lspci -v | grep -A6 Audio
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
    Subsystem: Lenovo Device 22c0
    Flags: bus master, fast devsel, latency 0, IRQ 17, IOMMU group 2
    Memory at ae000000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
~$ lspci
00:00.0 Host bridge: Intel Corporation 10th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 02)
00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 02)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Comet Lake PCH Thermal Controller
00:14.0 USB controller: Intel Corporation Comet Lake USB 3.1 xHCI Host Controller
00:14.2 RAM memory: Intel Corporation Comet Lake PCH Shared SRAM
00:14.3 Network controller: Intel Corporation Comet Lake PCH CNVi WiFi
00:16.0 Communication controller: Intel Corporation Comet Lake HECI Controller
00:16.3 Serial controller: Intel Corporation Comet Lake Keyboard and Text (KT) Redirection
00:1c.0 PCI bridge: Intel Corporation Device 06b8 (rev f0)
00:1c.7 PCI bridge: Intel Corporation Device 06bf (rev f0)
00:1d.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #9 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device 068e
00:1f.3 Multimedia audio controller: Intel Corporation Comet Lake PCH cAVS
00:1f.4 SMBus: Intel Corporation Comet Lake PCH SMBus Controller
00:1f.5 Serial bus controller: Intel Corporation Comet Lake PCH SPI Controller
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
04:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:01.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:02.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:04.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
06:00.0 System peripheral: Intel Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 4C 2018] (rev 06)
2c:00.0 USB controller: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 4C 2018] (rev 06)
54:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
55:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
~$ ps aux | grep pulse
danni       2108  0.0  0.0 124172 15756 ?        S<sl 15:58   0:00 /usr/bin/pipewire-pulse
danni       5892  0.0  0.0  19012  2432 pts/0    S+   16:11   0:00 grep --color=auto pulse
~$ lsmod | grep snd_hda_intel
snd_hda_intel          61440  2
snd_intel_dspcfg       32768  3 snd_hda_intel,snd_sof,snd_sof_intel_hda_common
snd_hda_codec         200704  6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hda_core          139264  9 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_pcm               188416  12 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pcm_dmaengine
snd                   131072  24 snd_ctl_led,snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,thinkpad_acpi,snd_soc_core,snd_pcm,snd_rawmidi
~$ pacmd list-cards
No PulseAudio daemon running, or not running as session daemon.
~$ inxi -Fxz
System:
  Kernel: 6.4.6-76060406-generic x86_64 bits: 64 compiler: N/A
    Desktop: GNOME 42.5 Distro: Pop!_OS 22.04 LTS base: Ubuntu 22.04 LTS Jammy
Machine:
  Type: Laptop System: LENOVO product: 20TK001GUS
    v: ThinkPad X1 Extreme Gen 3 serial: <superuser required>
  Mobo: LENOVO model: 20TK001GUS v: SDK0J40697 WIN
    serial: <superuser required> UEFI: LENOVO v: N2VET42W (1.27 )
    date: 01/03/2023
Battery:
  ID-1: BAT0 charge: 67.4 Wh (95.5%) condition: 70.6/80.0 Wh (88.2%)
    volts: 16.3 min: 15.4 model: Celxpert 5B10X19050 status: Not charging
CPU:
  Info: 6-core model: Intel Core i7-10850H bits: 64 type: MT MCP
    arch: Comet Lake rev: 2 cache: L1: 384 KiB L2: 1.5 MiB L3: 12 MiB
  Speed (MHz): avg: 2238 high: 2700 min/max: 800/5100 cores: 1: 2700
    2: 2700 3: 2700 4: 2700 5: 880 6: 2700 7: 807 8: 2700 9: 2700 10: 880
    11: 2700 12: 2700 bogomips: 64797
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] vendor: Lenovo driver: i915
    v: kernel bus-ID: 00:02.0
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] vendor: Lenovo
    driver: nvidia v: 470.199.02 bus-ID: 01:00.0
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo
    bus-ID: 1-8:3
  Display: x11 server: X.Org v: 1.21.1.4 driver: X:
    loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa gpu: i915
    resolution: 3840x2160~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2)
    v: 4.6 Mesa 23.1.3-1pop0~1689084530~22.04~0618746 direct render: Yes
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3
  Device-2: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel
    bus-ID: 01:00.1
  Sound Server-1: ALSA v: k6.4.6-76060406-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: no
  Sound Server-3: PipeWire v: 0.3.79 running: yes
Network:
  Device-1: Intel Comet Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3
  IF: wlp0s20f3 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-14:5
  Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter>
    bt-v: 3.0 lmp-v: 5.2
Drives:
  Local Storage: total: 953.87 GiB used: 82.99 GiB (8.7%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB1T0HBLR-000L7
    size: 953.87 GiB temp: 42.9 C
Partition:
  ID-1: / size: 470.9 GiB used: 82.73 GiB (17.6%) fs: ext4
    dev: /dev/nvme0n1p7
  ID-2: /boot/efi size: 998 MiB used: 267.5 MiB (26.8%) fs: vfat
    dev: /dev/nvme0n1p4
Swap:
  ID-1: swap-1 type: partition size: 7.81 GiB used: 0 KiB (0.0%)
    dev: /dev/dm-0 mapped: cryptswap
  ID-2: swap-2 type: zram size: 16 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 44.0 C mobo: N/A
  Fan Speeds (RPM): fan-1: 2767 fan-2: 2525
Info:
  Processes: 374 Uptime: 19m Memory: 30.97 GiB used: 5.74 GiB (18.5%)
  Init: systemd runlevel: 5 Compilers: gcc: 11.4.0 Packages: 2210 Shell: Bash
  v: 5.1.16 inxi: 3.3.13
~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC285 Analog [ALC285 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  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
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
isdanni commented 1 year ago

alsamixer: Screenshot from 2023-09-18 16-17-09

pavucontrol: Screenshot from 2023-09-18 16-18-08

isdanni commented 1 year ago

Some sound device check outputs:

~$  systemctl status --user pipewire
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2023-09-18 15:58:19 PDT; 5h 45min ago
TriggeredBy: ● pipewire.socket
   Main PID: 2102 (pipewire)
      Tasks: 3 (limit: 37908)
     Memory: 12.4M
        CPU: 6.674s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─2102 /usr/bin/pipewire

Sep 18 15:58:19 pop-os systemd[2092]: Started PipeWire Multimedia Service.
~$ grep snd /var/log/dmesg
[    5.757076] kernel: snd_hda_intel 0000:00:1f.3: dmic_detect option is deprecated, pass snd-intel-dspcfg.dsp_driver=1 option instead
[    5.757107] kernel: snd_hda_intel 0000:00:1f.3: enabling device (0004 -> 0006)
[    5.759203] kernel: snd_hda_intel 0000:01:00.1: dmic_detect option is deprecated, pass snd-intel-dspcfg.dsp_driver=1 option instead
[    5.759026] kernel: snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    5.759353] kernel: snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[    5.765709] kernel: snd_hda_intel 0000:01:00.1: Disabling MSI
[    5.765749] kernel: snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    5.809177] kernel: snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC285: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    5.809187] kernel: snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    5.809192] kernel: snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    5.809197] kernel: snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    5.809200] kernel: snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    5.809203] kernel: snd_hda_codec_realtek hdaudioC0D0:      Mic=0x19
[    6.033561] kernel: usbcore: registered new interface driver snd-usb-audio
isdanni commented 1 year ago

My kernel should be the latest version

~$ uname -r
6.4.6-76060406-generic
isdanni commented 1 year ago

I tried all the solutions I could find online but still no luck. Finally a fresh erase and install did the trick for me. Here's the input/output device screenshot after the audio issues are fixed:

Screenshot from 2023-09-18 23-11-00