软件版本:
- pulseaudio 15.99.1,pulseaudio 1:15.99.1+dfsg1-1ubuntu2.1
- pipewire-alsa:amd64 0.3.76-1~ubuntu22.04
- alsa-base 1.0.25+dfsg-0ubuntu7
当我在多媒体软件(谷歌浏览器、vlc 等)上暂停/停止有声音的媒体后,音频 pulseaudio / pipewire 停止工作。我的解决方法是让音频重新工作:
- 即使音量很低,也能继续播放有声媒体
- 杀死 pa
pulseaudio -k
我注意到系统日志中出现了一些不熟悉的错误,提示如下pa_operation is nullptr
。
syslog:197779:Aug 9 12:47:54 userr google-chrome.desktop[9106]: [9819:9819:0809/124754.352932:ERROR:pulse_util.cc(351)] pa_operation is nullptr.
syslog:197780:Aug 9 12:47:54 userr google-chrome.desktop[9106]: [9819:9819:0809/124754.352950:ERROR:pulse_util.cc(351)] pa_operation is nullptr.
syslog:197781:Aug 9 12:47:54 userr google-chrome.desktop[9106]: [9819:9819:0809/124754.354840:ERROR:pulse_util.cc(351)] pa_operation is nullptr.
syslog:197782:Aug 9 12:47:56 userr google-chrome.desktop[9106]: [9819:9819:0809/124756.229540:ERROR:pulse_util.cc(351)] pa_operation is nullptr.
syslog:197783:Aug 9 12:47:56 userr google-chrome.desktop[9106]: [9819:9819:0809/124756.229595:ERROR:pulse_util.cc(351)] pa_operation is nullptr.
syslog:197892:Aug 9 12:48:54 userr google-chrome.desktop[9106]: [9819:9819:0809/124854.961184:ERROR:pulse_util.cc(351)] pa_operation is nullptr.
syslog:197893:Aug 9 12:48:54 userr google-chrome.desktop[9106]: [9819:9819:0809/124854.963137:ERROR:pulse_util.cc(351)] pa_operation is nullptr.
syslog:197959:Aug 9 12:49:57 userr google-chrome.desktop[9106]: [9819:9819:0809/124957.686568:ERROR:pulse_util.cc(351)] pa_operation is nullptr.
syslog:199694:Aug 9 13:16:05 userr google-chrome.desktop[9106]: [9819:9819:0809/131605.427928:ERROR:pulse_util.cc(351)] pa_operation is nullptr.
syslog:199695:Aug 9 13:16:05 userr google-chrome.desktop[9106]: [9819:9819:0809/131605.427980:ERROR:pulse_util.cc(351)] pa_operation is nullptr.
我从 1-2 周前就发现了这个音频问题。我之前重新安装了 pulseaudio、alsa 和 pipewire。几天后我终于可以正常工作了,但问题不断出现。
是什么导致了此错误?如何永久修复此问题?
答案1
我尝试查看/var/log/syslog
,发现 pulseaudio 错误。基于这,主要原因是配置文件module-suspend-on-idle
中启用了/etc/pulse/default.pa
。注释掉配置行即可解决问题。
### Automatically suspend sinks/sources that become idle for too long
# load-module module-suspend-on-idle ## comment this line