So
My device is: Xiaomi Mi Notebook Pro 2020
Audio stops working every time my laptop wakes up from suspend. After reboot audio works normally. Closing the laptop lid causes the sound to stop working after waking up from sleep mode.
About
Fedora 44 Workstation
Kernel: 7.1.4-204.fc44.x86_64
Audio controller: Intel 400 Series Chipset Family On-Package HD Audio (8086:02c8)
PipeWire 1.6.8
WirePlumber 0.5.14
What I have checked:
PipeWire, pipewire-pulse, and WirePlumber are running.
Restarting them does not restore audio.
looks like aplay -l still lists the sound card correctly:
card 0: PCH [HDA Intel PCH], device 0: ALC256 Analog
I would really like to solve this annoying problem.
I did a web search for “linux Xiaomi Mi Notebook Pro 2020 audio stops after wake” and there are a lot of reports of this issue. Maybe you can find a workaround on one of the pages?
I did notice that one of the reports is against the linuxk kernel that suggests is a driver bug. But have not read the report.
In my case, the sound starts working after that.
However, this response was posted in 2020. It’s strange that this issue hasn’t been fixed in six years
Run alsamixer press F6 and select HDA Intel PCH (card 0)
Look at channels listed below eg Master, Speaker etc etc
Look for MM below volume bars, if a channel says MM go there with you arrow key and press M to toggle it back to 00 (unmuted)
if everything is normal now you can save the card state by sudo alsactl store, then test it after sleep suspend
Suspend your laptop and wake it up, and once sound stops working run alsactl restore, your audio might come back.
Sorry, ofc, I meant wired headphones connected to the 3.5mm jack,
AFAIK bluetooth devices don’t use the internal audio codec. If bluetooth is also affected, then I would assume that pipewire and then also wireplumber are blocked.