No sound after boot (Dummy output), delete + cancel in yast2 audio to get the sound

After login there is no sound. Happend 1st time under Leap 15.4. Upgrade to 15.5 didn’t change.
pactl shows Dummy output.

To get the sound the workaround is Yast2 sound.
delete the sound card >> cancel the deletion >> exit Yast2 >> sound works

What is going on here? Seem to be a configuration issue. Any idea?

inxi -Aa

Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: ASRock
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a170
    class-ID: 0403
  Device-2: Razer USA Kiyo X driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:3 chip-ID: 1532:0e06
    class-ID: 0102 serial: 01.00.00
  API: ALSA v: k5.14.21-150500.55.31-default status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.12 status: off tools: jack_control
  Server-2: PipeWire v: 0.3.64 status: off with: wireplumber status: active
    tools: pw-cat,pw-cli,wpctl
  Server-3: PulseAudio v: 15.0 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl,pavucontrol

hwinfo --sound

13: PCI 1f.3: 0403 Audio device                                 
  [Created at pci.386]
  Unique ID: nS1_.X3IjhGzvKcF
  SysFS ID: /devices/pci0000:00/0000:00:1f.3
  SysFS BusID: 0000:00:1f.3
  Hardware Class: sound
  Model: "Intel 100 Series/C230 Series Chipset Family HD Audio Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0xa170 "100 Series/C230 Series Chipset Family HD Audio Controller"
  SubVendor: pci 0x1849 "ASRock Incorporation"
  SubDevice: pci 0x1283 
  Revision: 0x31
  Driver: "snd_hda_intel"
  Driver Modules: "snd_hda_intel"
  Memory Range: 0xdf140000-0xdf143fff (rw,non-prefetchable)
  Memory Range: 0xdf120000-0xdf12ffff (rw,non-prefetchable)
  IRQ: 125 (98 events)
  Module Alias: "pci:v00008086d0000A170sv00001849sd00001283bc04sc03i00"
  Driver Info #0:
    Driver Status: snd_hda_intel is active
    Driver Activation Cmd: "modprobe snd_hda_intel"
  Config Status: cfg=yes, avail=yes, need=no, active=unknown

systemctl list-units --no-pager |egrep β€œalsa|sound”

  sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d6-1\x2d6:1.2-sound-card2-controlC2.device  loaded active plugged   Razer_Kiyo_X
  alsa-restore.service                                                                     loaded active exited    Save/Restore Sound Card State
  sound.target                                                                             loaded active active    Sound Card

wpctl status

PipeWire 'pipewire-0'
 └─ Clients:
        31. xdg-desktop-portal                  [xxx, pid:3407]
        32. WirePlumber                         [xxx, pid:3588]
        33. WirePlumber [export]                [xxx, pid:3588]
        40. wpctl                               [xxx, pid:14774]

Audio
 β”œβ”€ Devices:
 β”‚  
 β”œβ”€ Sinks:
 β”‚  
 β”œβ”€ Sink endpoints:
 β”‚  
 β”œβ”€ Sources:
 β”‚  
 β”œβ”€ Source endpoints:
 β”‚  
 └─ Streams:

Video
 β”œβ”€ Devices:
 β”‚      36. Razer Kiyo X                        [v4l2]
 β”‚      37. Razer Kiyo X                        [v4l2]
 β”‚  
 β”œβ”€ Sinks:
 β”‚  
 β”œβ”€ Sink endpoints:
 β”‚  
 β”œβ”€ Sources:
 β”‚  *   38. Razer Kiyo X (V4L2)                
 β”‚  
 β”œβ”€ Source endpoints:
 β”‚  
 └─ Streams:

Settings
 └─ Default Configured Node Names:

You don’t have PipeWire active. Are you wanting to stay with using PulseAudio explicitly?

For further clarification show the output from

systemctl --user list-units|egrep -i "wire|pulse|jack"

Assuming you prefer using PulseAudio, you could also try the following (as user) and report back

rm -r ~/.config/pulse*
pulseaudio -k

Any errors reported in the terminal?

I run standard Leap 15.5
here the output:

  pipewire.service                                                                         loaded active running PipeWire Multimedia Service
  pulseaudio.service                                                                       loaded active running Sound Service
  wireplumber.service                                                                      loaded active running Multimedia Service Session Manager
  pipewire.socket                                                                          loaded active running PipeWire Multimedia System Socket
  pulseaudio.socket                                                                        loaded active running Sound System

starting pulseaudio the GUI shows briefly >> no output device
terminal says nothing

In normal situations you probably only want one of those 3 : Pipewire, Pulseaudio or Jack.
I’d say; choose one and purge the others, maybe re-install the one you pick so all packages are available.
Unless there’s a specific reason your config got to this point ?

Thanks for the hint. I always used standard opensuse and I want to stay with an unmodified system.
I am using suse since ~20 years. This is the first time I run into audio issues.
I do not have the time to learn and then apply a customized audio system.

The problem described showed up after a kernel patch (still under 15.4). I hoped 15.5 would solve it.

Lets see what is in control of the sound devices

lsof /dev/snd/*

To simplify your audio (sound server) situation, I would recommend using pipewire with pipewire-pulseaudio as a compatibility layer. To do that you can do

sudo zypper in pipewire-pulseaudio

It will prompt you to remove β€˜pulsesudio’ (adn supporting) packages, and after that you should just have PipeWire and JACK active.

More info
https://en.opensuse.org/openSUSE:Pipewire

Restart the desktop session after that to see if audio is working.

You can share the status and available sinks from these commands

wpctl status
pactl list sinks

Returning to your opening post comments…

Does restarting alsasound.service using the following command also result in working sound?

sudo systemctl restart alsasound

Another thought - show us any configuration present for your sound hardware

grep -i snd /etc/modprobe.d/*

If nothing is returned from that command, we can move on.

lsof /dev/snd/*
gives

COMMAND     PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
pulseaudi 21780 xxxxxx   21u   CHR  116,3      0t0  700 /dev/snd/controlC2

wpctl status
gives

PipeWire 'pipewire-0' [0.3.64, xxxx@linux-bszt, cookie:1316643084]
 └─ Clients:
        31. xdg-desktop-portal                  [0.3.64, xxxx@linux-bszt, pid:21249]
        32. WirePlumber                         [0.3.64, xxxx@linux-bszt, pid:21453]
        33. WirePlumber [export]                [0.3.64, xxxx@linux-bszt, pid:21453]
        40. wpctl                               [0.3.64, xxxx@linux-bszt, pid:24199]

Audio
 β”œβ”€ Devices:
 β”‚  
 β”œβ”€ Sinks:
 β”‚  
 β”œβ”€ Sink endpoints:
 β”‚  
 β”œβ”€ Sources:
 β”‚  
 β”œβ”€ Source endpoints:
 β”‚  
 └─ Streams:

Video
 β”œβ”€ Devices:
 β”‚      36. Razer Kiyo X                        [v4l2]
 β”‚      37. Razer Kiyo X                        [v4l2]
 β”‚  
 β”œβ”€ Sinks:
 β”‚  
 β”œβ”€ Sink endpoints:
 β”‚  
 β”œβ”€ Sources:
 β”‚  *   38. Razer Kiyo X (V4L2)                
 β”‚  
 β”œβ”€ Source endpoints:
 β”‚  
 └─ Streams:

Settings
 └─ Default Configured Node Names:

pactl list sinks
gives

Ziel #0
        Status: SUSPENDED
        Name: auto_null
        Beschreibung: Dummy-Ausgabe
        Treiber: module-null-sink.c
        Abtastwert-Angabe: s16le 2ch 44100Hz
        Kanalzuordnung: front-left,front-right
        Besitzer-Modul: 15
        Stumm: nein
        LautstΓ€rke: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                Verteilung 0,00
        Basis-LautstΓ€rke: 65536 / 100% / 0,00 dB
        Quellen-Monitor: auto_null.monitor
        Latenz: 0 usec, eingestellt 0 usec
        Flags: DECIBEL_VOLUME LATENCY SET_FORMATS 
        Eigenschaften:
                device.description = "Dummy-Ausgabe"
                device.class = "abstract"
                device.icon_name = "audio-card"
        Formate:
                pcm

sudo systemctl restart alsasound >> no change

grep -i snd /etc/modprobe.d/*
gives

/etc/modprobe.d/50-sound.conf:options snd slots=snd-hda-intel,snd-hda-intel
/etc/modprobe.d/50-sound.conf:alias snd-card-1 snd-hda-intel
/etc/modprobe.d/50-sound.conf:alias snd-card-0 snd-hda-intel
/etc/modprobe.d/50-sound.conf.Oct-2023:options snd slots=snd-hda-intel,snd-hda-intel
/etc/modprobe.d/50-sound.conf.Oct-2023:alias snd-card-1 snd-hda-intel
/etc/modprobe.d/50-sound.conf.Oct-2023:alias snd-card-0 snd-hda-intel
/etc/modprobe.d/50-sound.conf.YaST2save:options snd slots=snd-hda-intel
/etc/modprobe.d/50-sound.conf.YaST2save:alias snd-card-0 snd-hda-intel

Your inxi output showed two audio devices. The onboard audio uses the snd_hda_intel driver. If I were you I would remove all the existing config files. For most users, the hardware is detected at boot time and the driver loaded as required. (There may be a few corner cases, where particular options need to be explicitly added to get the right behaviour, but not needed for most these days.)

Examine the sound-related kernel messages at boot

sudo journalctl -b | egrep -i "snd|firm"

Post the output here.

Post the output from ALSA as well please

aplay -lL
Okt 22 14:58:39 linux-bszt kernel: DMAR: [Firmware Bug]: No firmware reserved region can cover this RMRR [0x000000007f800000-0x000000008fffffff], contact BIOS vendor for fixes
Okt 22 14:58:39 linux-bszt kernel: DMAR: [Firmware Bug]: Your BIOS is broken; bad RMRR [0x000000007f800000-0x000000008fffffff]
Okt 22 14:58:39 linux-bszt kernel: ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
Okt 22 14:58:39 linux-bszt systemd-modules-load[181]: Inserted module 'snd_hda_intel'
Okt 22 14:58:39 linux-bszt kernel: i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/skl_dmc_ver1_27.bin (v1.27)
Okt 22 14:58:39 linux-bszt kernel: snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
Okt 22 14:58:39 linux-bszt kernel: snd_hda_intel 0000:00:1f.3: Cannot probe codecs, giving up
Okt 22 14:58:42 linux-bszt kernel: usbcore: registered new interface driver snd-usb-audio
Okt 22 14:59:18 linux-bszt iscsiadm[1729]: iscsiadm: Could not get list of targets from firmware. (err 21)
Okt 22 15:01:11 linux-bszt systemd[1]: Startup finished in 8.771s (firmware) + 9.739s (loader) + 1.039s (kernel) + 2.390s (initrd) + 2min 30.336s (userspace) = 2min 52.276s.
null
    Discard all samples (playback) or generate zero samples (capture)
speexrate
    Rate Converter Plugin Using Speex Resampler
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
default
    Default ALSA Output (currently PulseAudio Sound Server)
**** Liste der Hardware-GerΓ€te (PLAYBACK) ****

This above boot log shows that there is an issue identifying the appropriate codec at boot. This may need a bug report to resolve. Do you still have a previous kernel available to boot from (using advanced grub menu)?

You also mentioned that using the YaST Sound utility allows the card to become functional. Instead, try loading the module via a terminal after boot:

sudo modprobe snd-hda-intel

Does that result in working sound?

sudo modprobe snd-hda-intel

result:

pactl list sinks
Ziel #0
        Status: SUSPENDED
        Name: auto_null
        Beschreibung: Dummy-Ausgabe
        Treiber: module-null-sink.c

The issue already showed up under 15.4, means the previous kernel showed the same effect.

Do you want me to dig deeper into that or should I go for >> pipewire-pulseaudio?

The problem appears to be kernel related, based on what the boot log showed.

I guess you are right.
Meanwhile I installed pipewire-pulseaudio and rebooted.
No change, I have Dummy-Output.

Below some stus info:

systemctl --user status pipewire.service
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; vendor preset: disabled)
     Active: active (running) since Tue 2023-10-24 10:25:57 CEST; 4h 44min ago
TriggeredBy: ● pipewire.socket
   Main PID: 3073 (pipewire)
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─ 3073 /usr/bin/pipewire

Okt 24 10:25:57 linux-bszt systemd[2805]: Started PipeWire Multimedia Service.
Okt 24 10:25:57 linux-bszt pipewire[3073]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
Okt 24 10:25:57 linux-bszt pipewire[3073]: mod.rt: found session bus but no portal
systemctl --user status wireplumber.service
● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2023-10-24 10:25:57 CEST; 4h 44min ago
   Main PID: 3074 (wireplumber)
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
             └─ 3074 /usr/bin/wireplumber

Okt 24 10:25:57 linux-bszt systemd[2805]: Started Multimedia Service Session Manager.
Okt 24 10:25:57 linux-bszt wireplumber[3074]: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
Okt 24 10:25:57 linux-bszt wireplumber[3074]: found session bus but no portal
Okt 24 10:25:57 linux-bszt wireplumber[3074]: Failed to set scheduler settings: Die Operation ist nicht erlaubt
Okt 24 10:25:57 linux-bszt wireplumber[3074]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NameHasNoOwner
Okt 24 10:25:58 linux-bszt wireplumber[3074]: <WpPortalPermissionStorePlugin:0xf6a310> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
Okt 24 10:29:36 linux-bszt wireplumber[3074]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NameHasNoOwner
Okt 24 10:29:36 linux-bszt wireplumber[3074]: <WpPortalPermissionStorePlugin:0xf6a310> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
Okt 24 12:47:19 linux-bszt wireplumber[3074]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NameHasNoOwner
Okt 24 12:47:19 linux-bszt wireplumber[3074]: <WpPortalPermissionStorePlugin:0xf6a310> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera

How to set up a kernel ticket?