Bugzilla – Full Text Bug Listing |
Summary: | No more sound on internal speakers after suspend and wake up of the laptop | ||
---|---|---|---|
Product: | [openSUSE] openSUSE Distribution | Reporter: | Jérémy Friche <jeremy.friche> |
Component: | Sound | Assignee: | Takashi Iwai <tiwai> |
Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
Severity: | Normal | ||
Priority: | P5 - None | CC: | jeremy.friche |
Version: | Leap 15.3 | ||
Target Milestone: | --- | ||
Hardware: | x86-64 | ||
OS: | All | ||
Whiteboard: | |||
Found By: | --- | Services Priority: | |
Business Priority: | Blocker: | --- | |
Marketing QA Status: | --- | IT Deployment: | --- |
Attachments: |
Alsa-info result before suspend (sound working)
Alsa-info result after suspend (sound NOT working) Alsa-info result before suspend (sound working) - with dump_coef Alsa-info result after suspend (sound NOT working) - with dump_coef alsa-info after hda-verb Fix patch |
Description
Jérémy Friche
2021-03-22 16:46:43 UTC
Could you try gathering some detailed information in the following way? At the working state: # echo 1 > /sys/module/snd_hda_codec/parameters/dump_coef # alsa-info.sh --no-upload Keep the output. Then do suspend/resume (and confirm that it's broken), and run again # alsa-info.sh --no-upload And attach both outputs to Bugzilla. Thank you for your concern. I'm reinstalling Tumbleweed at this moment. You can have a look at this forum thread : https://forums.opensuse.org/showthread.php/551762-No-more-sound-after-sleep-mode This post shows the difference between alsa-info.sh outputs : https://forums.opensuse.org/showthread.php/551762-No-more-sound-after-sleep-mode?p=3015047#post3015047 (Only line 335 changes, from "Converter: stream=1, channel=0" to "Converter: stream=0, channel=0" I'll do your test again when install finish. Like said on the forum thread, I tested few other distros and only Debian Buster and Linux Mint Debian Edition (which is based on Debian Buster) don't have the problem: kernel is version 4.x All kernel 5.x version distros I have tested have the problem. Created attachment 847699 [details]
Alsa-info result before suspend (sound working)
Created attachment 847700 [details]
Alsa-info result after suspend (sound NOT working)
Could you make sure that you enabled dump_coef parameter as described before taking alsa-info.sh output snapshots? echo 1 > /sys/module/snd_hda_codec/parameters/dump_coef Created attachment 847823 [details]
Alsa-info result before suspend (sound working) - with dump_coef
Created attachment 847824 [details]
Alsa-info result after suspend (sound NOT working) - with dump_coef
Sorry, I had access denied when I tried with sudo the last time. I didn't think to try "sudo su". Now it seems ok. Thanks. The diff between them showed the COEF change - Coeff 0x0d: 0x6440 + Coeff 0x0d: 0x0440 Let's check whether simply restoring this cures the problem. Try to install hda-verb package (if not done yet), and run the commands below as root after the resume (non-working state): hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x0d hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x6440 localhost:~ # hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x0d nid = 0x20, verb = 0x500, param = 0xd value = 0x0 localhost:~ # hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x6440 nid = 0x20, verb = 0x400, param = 0x6440 value = 0x0 Still no sound after that. Please disable the runtime PM before testing it. echo 0 > /sys/module/snd_hda_intel/parameters/power_save Otherwise the device may be in the runtime suspend and forget what you changed again. If the problem is still seen, please take alsa-info.sh output after hda-verb tweaks again for comparison. /dev/snd/hwC0D0 disappeared and I have no more sound. Even Windows says "No audio card plugged" now. localhost:~ # ll /dev/snd/ total 0 drwxr-xr-x 2 root root 60 Mar 30 17:55 by-path crw-rw----+ 1 root audio 116, 4 Mar 30 17:55 controlC0 crw-rw----+ 1 root audio 116, 3 Mar 30 17:55 hwC0D3 crw-rw----+ 1 root audio 116, 2 Mar 30 17:56 pcmC0D3p crw-rw----+ 1 root audio 116, 1 Mar 30 17:55 seq crw-rw----+ 1 root audio 116, 33 Mar 30 17:55 timer Created attachment 847833 [details]
alsa-info after hda-verb
Something went wrong. Please retry after the cold boot. (Shut down and power off completely once). OK, after a shutdown and a cold boot, sound is working. I did echo 0 > /sys/module/snd_hda_intel/parameters/power_save After a suspend, sound don't work. I did hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x0d hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x6440 Sound is working! Good to hear. Below is the kernel patch that adds the quirk for the missing amp setup. Let me know if the problem persists even after applying the patch. Created attachment 848038 [details]
Fix patch
I'm building a test kernel with the patch. It's being built in OBS home:tiwai:bsc1183869 repo. Once after the build finishes (usually takes for an hour or so), the test kernel package will be available later at: http://download.opensuse.org/repositories/home:/tiwai:/bsc1183869/standard/ Please give it a try later. Note that it's a build with an unofficial key, hence it won't work with Secure Boot. Thanks! I'll try to install it (I never patched or installed kernel) and I'll tell you. So, I installed the new kernel right now (wasn't difficult at all :D) and... I have sound after suspended and waked up my laptop! Thank you so much! Will the default leap/tumbleweed kernel be patched too ? Yes, it'll have the backport soon later via stable tree for TW. And I backported the fix to SLE/Leap kernel, too. |