我最近升级到了 ubuntu 22.10。更新后,我无法再使用蓝牙连接音频设备,因为 pulseaudio 无法再识别它们。
我尝试过以下线程提供的解决方案,但均不起作用。
使用 sudo 加载 module-bluetooth discover 时返回以下错误
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
如果没有 Sudo,错误是
Failure: Module initialization failed
当我卸载模块并重新加载时,我没有收到这些错误,但我的蓝牙扬声器仍然没有出现在 pulseaudio 上。
以下是一些可能相关的信息。
尝试加载alsamixer
返回以下内容
ALSA lib dlmisc.c:337:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_pipewire.so (/lib/x86_64-linux-gnu/alsa-lib/libasound_module_ctl_pipewire.so: cannot open shared object file: No such file or directory)
cannot open mixer: No such device or address
但是,按照这个线程,我可以打开混音器 Alsamixer 返回“无法打开混频器:没有此文件或目录”
pacmd list-sinks returns
1 sink(s) available.
* index: 0
name: <auto_null>
driver: <module-null-sink.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause: (none)
priority: 1000
volume: front-left: 43252 / 66% / -10.83 dB, front-right: 43252 / 66% / -10.83 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 31.58 ms
max request: 6 KiB
max rewind: 6 KiB
monitor source: 0
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 1
configured latency: 40.00 ms; range is 0.50 .. 2000.00 ms
module: 15
properties:
device.description = "Dummy Output"
device.class = "abstract"
device.icon_name = "audio-card"
如果你想知道是否有任何丢失的包裹,这里是dpkg -l | grep pulse
ii gstreamer1.0-pulseaudio:amd64 1.20.3-1ubuntu1 amd64 GStreamer plugin for PulseAudio (transitional package)
ii libcanberra-pulse:amd64 0.30-10ubuntu1 amd64 PulseAudio backend for libcanberra
ii libpulse-dev:amd64 1:16.1+dfsg1-1ubuntu3 amd64 PulseAudio client development headers and libraries
ii libpulse-mainloop-glib0:amd64 1:16.1+dfsg1-1ubuntu3 amd64 PulseAudio client libraries (glib support)
ii libpulse0:amd64 1:16.1+dfsg1-1ubuntu3 amd64 PulseAudio client libraries
ii libpulse0:i386 1:16.1+dfsg1-1ubuntu3 i386 PulseAudio client libraries
ii libpulsedsp:amd64 1:16.1+dfsg1-1ubuntu3 amd64 PulseAudio OSS pre-load library
ii pipewire-pulse 0.3.58-2ubuntu1 amd64 PipeWire PulseAudio daemon
ii pulseaudio 1:16.1+dfsg1-1ubuntu3 amd64 PulseAudio sound server
ii pulseaudio-module-bluetooth 1:16.1+dfsg1-1ubuntu3 amd64 Bluetooth module for PulseAudio sound server
ii pulseaudio-utils 1:16.1+dfsg1-1ubuntu3 amd64 Command line tools for the PulseAudio sound server
非常感谢任何见解,尝试重新安装 pulseaudio,但我对进一步的修改非常谨慎,因为音频和蓝牙损坏是不到 6 个月内 5 次重新安装的唯一原因。如果我不能让它持续工作,我将不得不切换回 Windows :(