Silence after suspend

Hi,
I’ve found several threads about this issue (but not limited to) in this forum; unfortunately, I’ve found them no useful for my laptop. I’ve tried some trivial tips described there (for example, disabling and enabling again profile in pavucontrol, restarting pulseaudio and alsa…) in order to fix the issue pointed by the title of this thread but they’ve been unsuccessful.

The audio stops working whatever kernel version I’m running, so upgrading kernel (and also updating manjaro itself) is not helpful to solve that.

Here are some useful information:

inxi -A
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP
    Audio driver: snd_hda_intel
  Device-2: Advanced Micro Devices [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
    driver: snd_pci_acp3x
  Device-3: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
    driver: snd_hda_intel
  API: ALSA v: k6.11.11-1-MANJARO status: kernel-api
  Server-1: PulseAudio v: 17.0-43-g3e2bb status: active (root, process)
cat /proc/asound/cards
 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xfe7c8000 irq 76
 1 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xfe7c0000 irq 77
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC269VC Analog [ALC269VC Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

As you can see from output of the commands, I’m using Family 17h/19h/1ah HD Audio Device-3 and ALC269VC Analog codec.

Looking at dmesg output, I cannot find messages related to audio/sound during suspend/resume (the same when I’m using hibernate function).

I’m running out of ideas about debugging/investigating this issue. I’ll wait for some help.

Thanks.

Kernel 6.11.11-1 will be dropped from stable repository soon so you should install kernel 6.12

sudo mhwd-kernel -i linux612 

reboot system to load new kernel, and remove older kernel

sudo mhwd-kernel -r linux611

Or use Manjaro Settings Manager GUI – manjaro-settings-manager -m msm_kernel


To check ALSA mixer settings for [HD-Audio Generic] ALC269VC Analog

amixer --c1

If PulseAudio was working as expected, aplay -l should show one of the devices is not available
Subdevices: 0/1

To check pulseaudio.service for errors:

systemctl --user -l status pulseaudio

To check PulseAudio configuration:

pacmd dump

and

pactl list cards

I’ve installed kernel 6.12 even if I’ve explained that missing audio occurs when running any kernel versions, in the first post. Indeed, sound is silenced after suspend/resume with the new kernel version too. BTW, I’ve typed the suggested commands running kernel v6.12.4, before and after suspend, generating a diff for each command.

Analyzing amixer -c1 diff, I only noticed a change in Master volume level (which is normal, if I adjust volume in the meantime). So, nothing of value there.

As you can see, aplay -l, shows no Subdevices: 0/1 after suspend/resume, in the output below:

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC269VC Analog [ALC269VC Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Looking at systemctl --user -l status pulseaudio result, I see just service starting/started in the log messages (and an additional line about bluez, which is not related in any ways to audio missing).

Analyzing pacmd dump diff, I can find, instead:

diff audio_diff1.txt audio_diff2.txt
28c28
< set-sink-volume alsa_output.pci-0000_03_00.6.analog-stereo 0x8cca
---
> set-sink-volume alsa_output.pci-0000_03_00.6.analog-stereo 0x9997
30c30
< suspend-sink alsa_output.pci-0000_03_00.6.analog-stereo no
---
> suspend-sink alsa_output.pci-0000_03_00.6.analog-stereo yes
34c34
< suspend-source alsa_output.pci-0000_03_00.6.analog-stereo.monitor no
---
> suspend-source alsa_output.pci-0000_03_00.6.analog-stereo.monitor yes

While, pactl list cards diff shows no differences before suspend and after resume. Do you need that output, though?

Waiting for a reply,

Thanks.

To de-suspend the sink output

pactl suspend-sink alsa_output.pci-0000_03_00.6.analog-stereo 0

Also suggest disable module-suspend-on-idle in PulseAudio

Unfortunately, after running pactl suspend-sink alsa_output.pci-0000_03_00.6.analog-stereo 0 and pacmd unload-module module-suspend-on-idle commands, sound keeps remain silenced (though the string has been changed to no properly).

I’ve also rebooted the laptop and run those two commands before triggering suspend function (but, once again, unsuccessfully). I’ve also noticed that, after reboot, the string suspend-sink alsa_output.pci-0000_03_00.6.analog-stereo was already set to no before suspend/resume (so, it seems such option was set to yes by accident, previously). I’ve found that setting suspend-sink alsa_output.pci-0000_03_00.6.analog-stereo to yes/no doesn’t switch the sound between mute/unmute but actually it stops/restarts the stream playback, as I’ve verified some minutes ago.

TBH, I don’t know which additional tests I could do, in order to find the origin of this issue.

Waiting for a reply,

Thanks.

I suggest reset PulseAudio to default configuration

  1. pamac reinstall pulseaudio pulseaudio-alsa
    
  2. rm ~/.config/pulse/*
    
  3. reboot system to create new user configuration files in ~/.config/pulse/

If audio playback is still not working after suspend check connections to ALSA playback devices with an active audio playback stream

sudo fuser -av /dev/snd/pcm*p

and PulseAudio sink output

pactl list sinks

Reinstalling (pamac reinstall pulseaudio pulseaudio-alsa), and resetting pulseaudio (rm ~/.config/pulse/*) did not solve audio issue, after reboot.

So, I’ve run the next commands when playing an audio stream, as suggested, and I’ve compared the results before and after suspend, through a diff. For example, the only difference for sudo fuser -av /dev/snd/pcm*p is pid number: /dev/snd/pcmC1D0p: cristian 1334 F...m pulseaudio, while the only changes for pactl list sinks are about volume level and latency (so, they are not related to this issue).

Do you need the complete output for last two commands?

Let me know,

Thanks.