No Sound or Sound Card when Resuming from Sleep

Hi folks.

For some odd reason, when I resume my laptop from sleep, my audio card doesn’t seem to exist and the sound is instantly disabled. I can resolve this by logging off/on, then all is fine again. If I run the command pacmd list-cards It will list 0 cards available. The expected out put is below. Any ideas how I can fix this? Thank you!

pacmd list-cards
1 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic>
        driver: <module-alsa-card.c>
        owner module: 6
                alsa.card = "0"
                alsa.card_name = "sof-hda-dsp"
                alsa.long_card_name = "HP-HPSpectrex360Convertible13_aw0xxx--86F9"
                alsa.driver_name = "snd_soc_skl_hda_dsp"
                device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
                device.bus = "pci"
       = "8086"
       = "Intel Corporation"
       = "34c8"
       = "Ice Lake-LP Smart Sound Technology Audio Controller"
                device.string = "0"
                device.description = "Ice Lake-LP Smart Sound Technology Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"

Try installing sof-firmware. Also post the output of inxi -Fazy, and run pa-info | curl -F 'file=@-' and post the link you get.

1 Like

Thanks for the reply. sof-firmware is already installed.

pa-info | curl -F 'file=@-'                                                                                                           ✔ 
cat: '/sys/module/snd_soc_skl_hda_dsp/parameters/*': No such file or directory
/usr/bin/ line 661: tree: command not found
dmesg: read kernel buffer failed: Operation not permitted

And in sudo

Connection failure: Connection refused
pa_context_connect() failed: Connection refused
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
lsof: WARNING: can't stat() fuse.portal file system /run/user/1000/doc
      Output information may be incomplete.
cat: '/sys/module/snd_soc_skl_hda_dsp/parameters/*': No such file or directory
/usr/bin/ line 661: tree: command not found

It could just be coincidence, but I think this started happening when I updated to the latest kernel.

  Kernel: 5.16.2-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.16-x86_64
    root=UUID=5c7e6414-c04a-474b-8dcc-d95acc04d8dd rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: KDE Plasma 5.23.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
  Type: Convertible System: HP product: HP Spectre x360 Convertible 13-aw0xxx
    v: N/A serial: <superuser required> Chassis: type: 31
    serial: <superuser required>
  Mobo: HP model: 86F9 v: 87.74 serial: <superuser required> UEFI: AMI
    v: F.28 date: 03/04/2021
  ID-1: BAT0 charge: 56.6 Wh (100.0%) condition: 56.6/60.8 Wh (93.1%)
    volts: 17.4 min: 15.4 model: HP Primary type: Li-ion serial: <filter>
    status: Full cycles: 14
  Device-1: hid-0018:04F3:29F9.0001-battery model: ELAN2514:00 04F3:29F9
    serial: N/A charge: N/A status: N/A
  Device-2: sony_controller_battery_84:17:66:83:74:b6 model: N/A serial: N/A
    charge: N/A status: Charging
  Info: model: Intel Core i5-1035G4 bits: 64 type: MT MCP arch: Ice Lake
    family: 6 model-id: 0x7E (126) stepping: 5 microcode: 0xA6
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 320 KiB desc: d-4x48 KiB; i-4x32 KiB L2: 2 MiB desc: 4x512 KiB L3: 6 MiB
    desc: 1x6 MiB
  Speed (MHz): avg: 1300 high: 1301 min/max: 400/3700 scaling:
    driver: intel_pstate governor: powersave cores: 1: 1300 2: 1300 3: 1300
    4: 1300 5: 1301 6: 1300 7: 1300 8: 1300 bogomips: 23968
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
  Device-1: Intel Iris Plus Graphics G4 vendor: Hewlett-Packard driver: i915
    v: kernel bus-ID: 00:02.0 chip-ID: 8086:8a5a class-ID: 0300
  Device-2: Chicony HP True Vision HD Camera type: USB driver: uvcvideo
    bus-ID: 3-5:3 chip-ID: 04f2:b6a4 class-ID: 0e02 serial: <filter>
  Display: x11 server: compositor: kwin_x11 driver:
    loaded: modesetting alternate: fbdev,vesa resolution: <missing: xdpyinfo>
  OpenGL: renderer: Mesa Intel Iris Plus Graphics (ICL GT1.5)
    v: 4.6 Mesa 21.3.4 direct render: Yes
  Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Hewlett-Packard
    driver: sof-audio-pci-intel-icl
    alternate: snd_hda_intel,snd_sof_pci_intel_icl bus-ID: 00:1f.3
    chip-ID: 8086:34c8 class-ID: 0401
  Sound Server-1: ALSA v: k5.16.2-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.43 running: yes
  Device-1: Intel Ice Lake-LP PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:34f0 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 3-10:6 chip-ID: 8087:0026 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
    v: 3.0 port: 3060 bus-ID: 00:17.0 chip-ID: 8086:282a rev: N/A class-ID: 0104
  Local Storage: total: 469.5 GiB used: 154.52 GiB (32.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WD Blue SN570 500GB size: 465.76 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 234100WD temp: 27.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 type: USB model: USB DISK 2.0 size: 3.73 GiB
    block-size: physical: 512 B logical: 512 B type: N/A serial: <filter>
    rev: PMAP scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
  ID-1: / raw-size: 120.86 GiB size: 118.4 GiB (97.97%)
    used: 55.65 GiB (47.0%) fs: ext4 dev: /dev/nvme0n1p6 maj-min: 259:6
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 55.5 MiB (57.8%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.25 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p7 maj-min: 259:7
  System Temperatures: cpu: 47.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 0 fan-2: 0
  Processes: 317 Uptime: 32m wakeups: 20 Memory: 7.45 GiB
  used: 5.2 GiB (69.8%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.1.0 clang: 13.0.0 Packages: 1392 pacman: 1389 lib: 429 flatpak: 3
  Shell: Zsh v: 5.8 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.12

Any ideas what could be causing this? It is very intermittent. Even logging out and back in again sometimes doesn’t resolve it. I might roll back to the previous kernel to see if that fixes it.