我在一个用户中的音频服务器“pulseaudio”中遇到了一个非常奇怪的问题,我可以使用,但在另一个用户中我不能使用,我在音频工作的用户中唯一的区别是我加载了一个额外的模块这些命令:
pactl load-module module-remap-sink \
sink_name=reverse-stereo \
channels=2 \
master_channel_map=front-right,front-left \
channel_map=front-left,front-right
pactl set-default-sink reverse-stereo
我已经尝试重新启动音频服务器,但pulseaudio -k
输出错误:E: [pulseaudio] main.c: Failed to kill daemon: No such process
我还尝试删除有缺陷的用户设置,rm -r ~/.config/pulse
但没有成功
使用“pulseaudio -vvv´´”客观输出观察状态是:
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 13.0
I: [pulseaudio] main.c: Page size is 4096 bytes
I: [pulseaudio] main.c: Machine ID is 5a405607670141a3b9d4952899ff59fb.
I: [pulseaudio] main.c: Session ID is 4.
I: [pulseaudio] main.c: Using runtime directory /run/user/1001/pulse.
I: [pulseaudio] main.c: Using state directory /home/unip/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-13.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
I: [pulseaudio] main.c: System supports high resolution timers
I: [pulseaudio] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 MMXEXT
I: [pulseaudio] svolume_mmx.c: Initialising MMX optimized volume functions.
I: [pulseaudio] remap_mmx.c: Initialising MMX optimized remappers.
I: [pulseaudio] svolume_sse.c: Initialising SSE2 optimized volume functions.
I: [pulseaudio] remap_sse.c: Initialising SSE2 optimized remappers.
I: [pulseaudio] sconv_sse.c: Initialising SSE2 optimized conversions.
I: [pulseaudio] svolume_orc.c: Initialising ORC optimized volume functions.
E: [pulseaudio] main.c: Daemon startup without any loaded modules, refusing to work.
I: [pulseaudio] main.c: Daemon terminated.
因为我使用的是使用 systemd 的 Debian SID,所以我决定查看日志,输出为:
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2020-08-03 11:01:28 -03; 13min ago
TriggeredBy: ● pulseaudio.socket
Process: 5573 ExecStart=/usr/bin/pulseaudio --daemonize=no (code=exited, status=1/FAILURE)
Main PID: 5573 (code=exited, status=1/FAILURE)
Aug 03 11:01:28 debian systemd[5173]: pulseaudio.service: Scheduled restart job, restart counter is at 5.
Aug 03 11:01:28 debian systemd[5173]: Stopped Sound Service.
Aug 03 11:01:28 debian systemd[5173]: pulseaudio.service: Start request repeated too quickly.
Aug 03 11:01:28 debian systemd[5173]: pulseaudio.service: Failed with result 'exit-code'.
Aug 03 11:01:28 debian systemd[5173]: Failed to start Sound Service.
答案1
在分析了很多日志并且没有接近解决或解决问题后,绝望地重新安装脉冲音频,因为 Debian sid 提供了“清除”选项,我相信这个标签在某些冲突的情况下被删除
pulseaudio -k
sudo apt remove pulseaudio
sudo apt purge pulseaudio
sudo apt install pulseaudio
pulseaudio -D