Sound intermittently not available

Hi all

I’m new to EndeavourOS but have been daily driving Linux for a long time (albeit that was Ubuntu which I dropped because of how bloated Snap has made it).

I’m having an issue with the sound on my Ace Magician (AMD 5800U).
The first thing I did when I got the PC was to remove the SSD with Win11 pre-loaded and instead installed a Samsung SSD and set about installing EndeavourOS.

When it finished installing, everything just worked, including the sound.
And for the most-part, it still does.

But every so often, with no apparent pattern, the audio device is not detected correctly.
It fails to detect Analog Stereo Output, instead only exposing options for Digital Stereo Output (optical or HDMI)

Rebooting does the trick (at least for all of the times that it has happened so far), but I’d like to get to the bottom of why it’s not being detected correctly in the first place.

From reading some other posts, it seems like inxi -aA can be a useful starting point for getting info about the audio system, so here’s the output of that command and a few others when the sound is working.

Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 04:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
    alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x,
    snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir,
    snd_sof_amd_rembrandt, snd_sof_amd_vangogh, snd_sof_amd_acp63 pcie: gen: 3
    speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.5
    chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Realtek
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  API: ALSA v: k6.9.7-arch1-1 status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.2.0 status: n/a (root, process) with:
    1: pipewire-pulse status: active 2: wireplumber status: active
    3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl

dmesg | grep audio :

[    4.161205] snd_hda_intel 0000:04:00.1: Handle vga_switcheroo audio client
[    4.193730] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC269VB: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:hp
[    4.193735] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    4.193738] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    4.193740] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    4.193741] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    4.193743] snd_hda_codec_realtek hdaudioC1D0:      Mic=0x18
[    6.565895] snd_hda_intel 0000:04:00.1: bound 0000:04:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])

dmesg | grep sound

[    4.178069] input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card0/input6
[    4.178131] input: HD-Audio Generic HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card0/input7
[    4.178173] input: HD-Audio Generic HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card0/input8
[    4.178236] input: HD-Audio Generic HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card0/input9
[    4.234260] input: HD-Audio Generic Mic as /devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1/input10
[    4.234334] input: HD-Audio Generic Headphone as /devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1/input11

lspci :

04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller

Has anyone come across this problem previously and successfully resolved it?

Alternatively, are there any other commands that I could run to gather more info both when it’s working and when it’s not?

Thanks
Sc27

Does it happen after you will use HDMI?

Nevermind, looks like https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/683

Thanks for the replies @gladykov

I don’t use HDMI - the speakers on the monitor are fairly poor!

I had a look at the wireplumber issue that you linked, which mentions Gnome and pavucontrol setting some things.
I don’t know if it’s relevant, but I’m running KDE Plasma.

If/when it happens again I’ll try some of the service restart commands that were suggested on that post.

In the meantime, if you or anyone else has other thoughts / suggestions, I’d be glad to hear them.

Today the system decided not to find the sound card correctly.

Here’s the output from some of the commands:

inxi -aA

  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 04:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
    alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x,
    snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir,
    snd_sof_amd_rembrandt, snd_sof_amd_vangogh, snd_sof_amd_acp63 pcie: gen: 3
    speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.5
    chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Realtek
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  API: ALSA v: k6.9.7-arch1-1 status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.2.0 status: n/a (root, process) with:
    1: pipewire-pulse status: active 2: wireplumber status: active
    3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl

dmesg | grep audio

[    3.915691] snd_hda_intel 0000:04:00.1: Handle vga_switcheroo audio client
[    3.974676] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC269VB: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[    3.974682] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.974684] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.974686] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    3.974687] snd_hda_codec_realtek hdaudioC1D0:    dig-out=0x1e/0x0
[    3.974689] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    3.974690] snd_hda_codec_realtek hdaudioC1D0:      Front Mic=0x19
[    3.974692] snd_hda_codec_realtek hdaudioC1D0:      Rear Mic=0x18
[    3.974693] snd_hda_codec_realtek hdaudioC1D0:      Line=0x1a
[    6.400188] snd_hda_intel 0000:04:00.1: bound 0000:04:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu]

dmesg | grep sound

[    3.915691] snd_hda_intel 0000:04:00.1: Handle vga_switcheroo audio client
[    3.974676] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC269VB: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[    3.974682] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.974684] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.974686] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    3.974687] snd_hda_codec_realtek hdaudioC1D0:    dig-out=0x1e/0x0
[    3.974689] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    3.974690] snd_hda_codec_realtek hdaudioC1D0:      Front Mic=0x19
[    3.974692] snd_hda_codec_realtek hdaudioC1D0:      Rear Mic=0x18
[    3.974693] snd_hda_codec_realtek hdaudioC1D0:      Line=0x1a
[    6.400188] snd_hda_intel 0000:04:00.1: bound 0000:04:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu]

lspci

04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller

(so that’s unchanged)