Sound card lost after resume

I’ve had this problem for many months now and not found a solution.

I have onboard sound (which I use) and HDMI output from my NVIDIA graphics card (which I do not use at all - I’m using display port for the monitor).

Approximately one time in two or three, the onboard sound device disappears from KDE (stock/updated for Leap 15.2) when I resume from sleep (PC is set to go into sleep two hours after inactivity). If I log out and back in it returns, so I’m guessing this is a KDE/X issue rather than linux per se?

I’ve seen other posts suggesting I’m not the only one with this issue, but not found a clear answer.

For example, adding “options snd-hda-intel power_save=0 probe_mask=0x01” to modprobe.d/50-sound.conf does not work.

Having to log out and back in to recover sound is not conducive to efficient work, so any suggestions would be gratefully received.

Next time it happens, kill pulseuadio via a terminal

pulseaudio -k

It should respwan automatically. Does that bring back access to the onboard sound device ok?

Thanks for that, yes that does bring it up without having to log out and in, which makes life easier. I thought I had tried it to be honest, but maybe I just tried to start it or messed around with ALSA or something else.

Is this a known problem (it is a decent motherboard, Gigabyte, with a Z270X chipset)? Is there a fix to stop it happening in the first place?

I’m not sure how common it is, but it can be automated if needed.

Ah, you mean as part of the resume process?

That makes sense, still a bit of a bandaid, but indistinguishable from a fix!

Thanks.