Ubuntu 20.04.3 间歇性蓝牙连接

Ubuntu 20.04.3 间歇性蓝牙连接

我遇到了间歇性的蓝牙连接问题,我可以在启动时连接设备,但过了一段时间(30 分钟)后,连接就会降级(跳线/抖动)。如果我断开设备连接并尝试重新连接,blueman-manager我会遇到以下两种情况:

  1. 成功连接后,设备不再被列为输出pavucontrol
  2. 连接错误:Connection Failed: Resource temporarily unavailable

尝试的解决方案

  1. 取消配对/修复设备
  2. 重置 pulseaudio 配置(https://askubuntu.com/a/875891/1569612
  3. 重新启动 pavucontrol ( pulseaudio -k) 或重新启动蓝牙 ( systemctl restart bluetooth.service)
  4. 尝试重新加载 pulseaudio-discovery 模块(https://askubuntu.com/a/1062044/1569612)以上产生以下错误
taylorswift2018@box:~$ pactl load-module module-bluetooth-discover
Failure: Module initialization failed
  1. 在 x11 之后加载 pulseaudio (https://askubuntu.com/a/689297/1569612

输出systemctl status bluetooth.service

taylorswift2018@box:~$ systemctl status bluetooth.service 
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2022-02-10 10:31:33 NZDT; 1h 49min ago
       Docs: man:bluetoothd(8)
   Main PID: 821 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 18965)
     Memory: 1.9M
     CGroup: /system.slice/bluetooth.service
             └─821 /usr/lib/bluetooth/bluetoothd

Feb 10 10:31:33 box bluetoothd[821]: Starting SDP server
Feb 10 10:31:33 box bluetoothd[821]: Bluetooth management interface 1.20 initialized
Feb 10 10:31:34 box bluetoothd[821]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink/sbc
Feb 10 10:31:34 box bluetoothd[821]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource/sbc
Feb 10 10:31:49 box bluetoothd[821]: /org/bluez/hci0/dev_00_16_94_29_CD_9E/sep1/fd0: fd(46) ready
Feb 10 12:09:15 box bluetoothd[821]: Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
Feb 10 12:10:35 box bluetoothd[821]: Disconnecting failed: already disconnected
Feb 10 12:10:37 box bluetoothd[821]: Unable to get Headset Voice gateway SDP record: Operation already in progress
Feb 10 12:10:37 box bluetoothd[821]: connect error: Operation already in progress (114)
Feb 10 12:10:39 box bluetoothd[821]: connect error: Operation already in progress (114)
  • journalctl没有显示任何错误

硬件

  • 中央处理器:Intel i7 11700
  • 主板:技嘉B560M DS3H AC
taylorswift2018@box:~$ inxi -Fxxxz
System:
  Kernel: 5.13.0-28-generic x86_64 bits: 64 compiler: N/A 
  Desktop: Gnome 3.36.9 wm: gnome-shell dm: GDM3 3.36.3 
  Distro: Ubuntu 20.04.3 LTS (Focal Fossa) 
Machine:
  Type: Desktop Mobo: Gigabyte model: B560M DS3H AC v: x.x serial: <filter> 
  UEFI: American Megatrends LLC. v: F6 date: 08/23/2021 
CPU:
  Topology: 8-Core model: 11th Gen Intel Core i7-11700 bits: 64 type: MT MCP 
  arch: N/A L2 cache: 16.0 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 79872 
  Speed: 800 MHz min/max: 800/4800 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 5: 813 6: 807 7: 1045 8: 825 9: 2193 10: 4613 11: 4651 
  12: 1586 13: 4693 14: 1214 15: 4499 16: 4541 
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] 
  vendor: ASRock driver: amdgpu v: kernel bus ID: 01:00.0 chip ID: 1002:67df 
  Display: x11 server: X.Org 1.20.13 driver: amdgpu compositor: gnome-shell 
  resolution: 2560x1440~60Hz 
  OpenGL: renderer: Radeon RX 570 Series (POLARIS10 DRM 3.41.0 
  5.13.0-28-generic LLVM 12.0.0) 
  v: 4.6 Mesa 21.2.6 direct render: Yes 
Audio:
  Device-1: Intel vendor: Gigabyte driver: snd_hda_intel v: kernel 
  bus ID: 00:1f.3 chip ID: 8086:43c8 
  Device-2: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] 
  vendor: ASRock driver: snd_hda_intel v: kernel bus ID: 01:00.1 
  chip ID: 1002:aaf0 
  Sound Server: ALSA v: k5.13.0-28-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Gigabyte driver: r8169 v: kernel port: 4000 bus ID: 03:00.0 
  chip ID: 10ec:8168 
  IF: enp3s0 state: down mac: <filter> 
  Device-2: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter 
  vendor: AzureWave driver: rtl8821ce v: v5.5.2.1_35598.20191029 port: 3000 
  bus ID: 04:00.0 chip ID: 10ec:c821 
  IF: wlp4s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 2.27 TiB used: 25.01 GiB (1.1%) 
  ID-1: /dev/sda vendor: Western Digital model: WD20EFRX-68EUZN0 
  size: 1.82 TiB speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter> 
  rev: 0A82 scheme: GPT 
  ID-2: /dev/sdb vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB 
  speed: 6.0 Gb/s serial: <filter> rev: 4B6Q scheme: GPT 
Partition:
  ID-1: / size: 456.96 GiB used: 25.00 GiB (5.5%) fs: ext4 dev: /dev/sdb2 
Sensors:
  System Temperatures: cpu: 42.0 C mobo: N/A gpu: amdgpu temp: 27 C 
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 1438 
Info:
  Processes: 372 Uptime: 1h 21m Memory: 15.50 GiB used: 2.05 GiB (13.2%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash 
  v: 5.0.17 running in: server inxi: 3.0.38

答案1

在尝试了 gnome 驱动程序面板中的开源驱动程序后 駕駛面板仍然看到问题,我决定自己构建和更新驱动程序,因为我相信apt这个包的版本已经过时了。使用下列的远程和指令以及重新启动恢复了一致的蓝牙行为

编辑:没有,我已经放弃了,并决定不使用无线作为解决方法,因为我已经在这些垃圾上浪费了足够多的时间。

相关内容