Hello, I’m running NixOS unstable with the configuration boot.kernelPackages = pkgs.linuxPackages_latest;
on a 9th generation ThinkPad X1.
I’m having issues with sound not being available after a resume and since a week I’m having troubles with suspend as well, so now I’m reaching out for help.
The symptoms are that the machine does some number of suspend/resume cycles but then it fails to go to sleep. In the kernel log I found the following lines:
lug 17 23:42:27 bean kernel: Filesystems sync: 0.048 seconds
lug 17 23:42:27 bean kernel: Freezing user space processes ... (elapsed 0.002 seconds) done.
lug 17 23:42:27 bean kernel: OOM killer disabled.
lug 17 23:42:27 bean kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
lug 17 23:42:27 bean kernel: printk: Suspending console(s) (use no_console_suspend to debug)
lug 17 23:42:27 bean kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: PM_GATE ipc error -19
lug 17 23:42:27 bean kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: failed to set requested target DSP state 0 substate 1
lug 17 23:42:27 bean kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: setting dsp state 0 substate 1
lug 17 23:42:27 bean kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: failed to power down DSP during suspend -19
lug 17 23:42:27 bean kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: PM: pci_pm_suspend(): snd_sof_suspend+0x0/0x10 [snd_sof] returns -19
lug 17 23:42:27 bean kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x160 returns -19
lug 17 23:42:27 bean kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: PM: failed to suspend async: error -19
lug 17 23:42:27 bean kernel: PM: Some devices failed to suspend, or early wake event detected
lug 17 23:42:27 bean kernel: OOM killer enabled.
lug 17 23:42:27 bean kernel: Restarting tasks ... done.
lug 17 23:42:28 bean kernel: PM: suspend exit
Looking up the error I found an old issue with the sof
subsystem here: https://github.com/thesofproject/sof/issues/5168 and using the manual reset:
sudo rmmod snd_sof_pci_intel_tgl
sudo modprobe snd_sof_pci_intel_tgl
… works but I would like a more automated fix. His anyone having the same issues? A quick search on nixpkgs issues hasn’t returned any valid entry…