My audio (speaker output) on my laptop does not working after waking from sleep, it has sound but a broken sound (small volume and broken sound), but there is no problem with headphone jack. And reboot the laptop will solve the problem for a while but it will happen again after I close the lid and the login again.
I tried to check the status for the pipewire service and its like this:
[yuanhao@yh-G14-GA402RK ~]$ pipewire
[W][01400.675666] mod.rt | [ module-rt.c: 259 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
[W][01400.675738] mod.rt | [ module-rt.c: 578 set_nice()] could not set nice-level to -11: No such file or directory
[W][01400.676001] mod.rt | [ module-rt.c: 259 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
[E][01400.676113] mod.protocol-native | [module-protocol-: 708 lock_socket()] server 0x55a19d17ff30: unable to lock lockfile '/run/user/1000/pipewire-0.lock': Resource temporarily unavailable (maybe another daemon is running)
[E][01400.676149] pw.conf | [ conf.c: 560 load_module()] 0x55a19d1410a0: could not load mandatory module "libpipewire-module-protocol-native": Resource temporarily unavailable
[E][01400.676195] default | [ pipewire.c: 125 main()] failed to create context: Resource temporarily unavailable
What is happening and how to fix this ?
UPDATE:
Seems to be a kernel bug: the above problem (broken and small sound after wake from sleep) is on the latest kernel (5.18), but when I use the 5.17.7 kernel (5.17.7-arch1-g14-1), the problem is gone… However, the error message form pipewire and pw-cli are still there.
UPDATE:
Actually not, the problem still appears when I wake the laptop from sleep…sound still broken and small