需要将系统本来的PulseAudio,ALSA, JACK同时更换到 pipewire,如果没有支持LDAC,aptX的设备不建议折腾
系统:Debian 11 Gnome
声卡:Intel-HDA
蓝牙:支持蓝牙5.0
1 .更换PulseAudio
切换到root用户然后执行3条命令
// 安装必要的包
apt install pipewire-audio-client-libraries pipewire-media-session libspa-0.2-jack
// 创建文件
touch /etc/pipewire/media-session.d/with-pulseaudio
touch /etc/pipewire/media-session.d/with-alsa
touch /etc/pipewire/media-session.d/with-jack
// 复制配置
cp /usr/share/doc/pipewire/examples/systemd/user/pipewire-pulse.* /etc/systemd/user/
cp /usr/share/doc/pipewire/examples/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d/
cp /usr/share/doc/pipewire/examples/ld.so.conf.d/pipewire-jack-*.conf /etc/ld.so.conf.d/
2 .回到普通用户执行
// 检查服务
systemctl --user daemon-reload
// 关闭以前的服务
systemctl --user --now disable pulseaudio.service pulseau