Bug 2187254

Summary: [Thinkpad Z13/Z16 Gen 1] No sound after Suspend/Resume
Product: [Fedora] Fedora Reporter: migs <mimperial>
Component: pipewireAssignee: Wim Taymans <wtaymans>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 37CC: brunovern.a, gombosg, information, jkysela, mpearson, mzeuom, ndegraef, rdieter, wtaymans
Target Milestone: ---Keywords: Bugfix
Target Release: ---Flags: mpearson: needinfo? (wtaymans)
jkysela: needinfo? (mpearson)
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
alsa-info.txt request
none
dmesg
none
pw-top none

Description migs 2023-04-17 09:09:08 UTC
User-Agent:       Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Build Identifier: 

Internal speaker does not out any sound after suspend/resume on Z13/Z16 machine after suspend/resume.

Reproducible: Always

Steps to Reproduce:
Steps to Reproduce:
1: Play any Youtube Video (sounds is working)
2: Suspend while it's playing close the lid.
(Note: Even if normal suspend and even if video is not playing, issue could be reproduced)
3: Open the lid play any video no sound.
Actual Results:  
No sound output.

Expected Results:  
There should be sound.

Kernel: 6.2.8-200.fc37.x86_64/6.2.9-200.fc37.x86_64/6.2.10-200.fc37.x86_64
Version: Fedora 37
BIOS: 1.55
ECFW: 1.56

Comment 1 Niels De Graef 2023-05-15 14:20:28 UTC
Moving to pipewire, since that's the default audio system in F37

Comment 2 Niels De Graef 2023-05-15 14:24:24 UTC
To investigate if this is a pipewire issue or a kernel-audio related issue (I'll cc jkysela): does the sound reappear if you restart pipewire and wireplumber, `systemctl --user restart pipewire pipewire-pulse wireplumber`?

Comment 3 Jaroslav Kysela 2023-05-15 14:27:02 UTC
Also attach output from `alsa-info.sh --no-upload`. Thank you.

Comment 4 migs 2023-05-29 05:41:27 UTC
Created attachment 1967605 [details]
alsa-info.txt request

Comment 5 migs 2023-06-19 04:32:48 UTC
Created attachment 1971500 [details]
dmesg

Hello @nielsdegraef I missed your request. The sound does reappear if you restart pipewire and wireplumber, `systemctl --user restart pipewire pipewire-pulse wireplumber`. However after performing this, I tried to suspend/resume the machine in this state but the audio is not working again. I attached the dmesg as well in case this is needed.

Please let us know if there are other information you need on our side.

Comment 6 Wim Taymans 2023-07-04 14:47:09 UTC
What does pw-top show when you try to play something and it is not working? Are there errors or is there just silence? did you try to change the volume (or mute/unmute)?

Comment 7 Mark Pearson 2023-07-05 19:36:54 UTC
Created attachment 1974164 [details]
pw-top

Comment 8 Mark Pearson 2023-07-05 19:39:43 UTC
Hi Wim

See pw-top details.
I tried with changing volume, muting, plugging in/out headset (no audio on headset either) and no change - no audio output
If I connect with BT headset that has audio, but speakers don't work when BT headset is disconnected.
Checking under pulse audio volume control - it is showing output signal, but nothing is actually coming out of the speakers.

Thanks
Mark

Comment 9 Mark Pearson 2023-08-11 14:29:14 UTC
Hi all - anything we can help with here?

Comment 10 Jaroslav Kysela 2023-08-16 09:21:57 UTC
It may be a kernel issue. The HDA+CS42L41 driver code receives continuous updates.

Could you retest with the latest Fedora 38 kernel ?

Also, confirm, that the problem is in driver:

  systemctl --user stop wireplumber
  speaker-test -D hw:1 -c 2 -t sine    # you should hear a sine sound without pipewire
  ... do suspend/resume
  speaker-test -D hw:1 -c 2 -t sine    # do you hear the sine sound now?