首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu22.04蓝牙不工作

Ubuntu22.04蓝牙不工作
EN

Ask Ubuntu用户
提问于 2022-04-21 06:50:47
回答 2查看 17.9K关注 0票数 5
代码语言:javascript
复制
sudo dmesg |grep -i bluetooth
代码语言:javascript
复制
[    4.382987] Bluetooth: Core ver 2.22
[    4.383014] NET: Registered PF_BLUETOOTH protocol family
[    4.383016] Bluetooth: HCI device and connection manager initialized
[    4.383021] Bluetooth: HCI socket layer initialized
[    4.383023] Bluetooth: L2CAP socket layer initialized
[    4.383029] Bluetooth: SCO socket layer initialized
[    4.663829] Bluetooth: Patch file not found ar3k/AthrBT_0x11020000.dfu
[    4.663832] Bluetooth: Loading patch file failed
[    9.072626] xfs filesystem being remounted at /run/systemd/unit-root/var/lib/bluetooth supports timestamps until 2038 (0x7fffffff)
[    9.127087] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    9.127091] Bluetooth: BNEP filters: protocol multicast
[    9.127095] Bluetooth: BNEP socket layer initialized

设备型号: ar5b22

赛斯洛

代码语言:javascript
复制
Apr 20 20:39:58 wuhao-QTJ5 systemd[1]: Starting Bluetooth management mechanism...
Apr 20 20:39:58 wuhao-QTJ5 systemd[1]: Started Bluetooth management mechanism.
Apr 20 20:39:58 wuhao-QTJ5 systemd[25096]: Starting Bluetooth OBEX service...
Apr 20 20:39:58 wuhao-QTJ5 systemd[25096]: Started Bluetooth OBEX service.
Apr 21 11:37:02 wuhao-QTJ5 bluetoothd[1345]: Terminating
Apr 21 11:37:33 wuhao-QTJ5 systemd[1]: Starting Bluetooth management mechanism...
Apr 21 11:37:33 wuhao-QTJ5 kernel: [    4.382987] Bluetooth: Core ver 2.22
Apr 21 11:37:33 wuhao-QTJ5 kernel: [    4.383014] NET: Registered PF_BLUETOOTH protocol family
Apr 21 11:37:33 wuhao-QTJ5 kernel: [    4.383016] Bluetooth: HCI device and connection manager initialized
Apr 21 11:37:33 wuhao-QTJ5 kernel: [    4.383021] Bluetooth: HCI socket layer initialized
Apr 21 11:37:33 wuhao-QTJ5 kernel: [    4.383023] Bluetooth: L2CAP socket layer initialized
Apr 21 11:37:33 wuhao-QTJ5 kernel: [    4.383029] Bluetooth: SCO socket layer initialized
Apr 21 11:37:33 wuhao-QTJ5 kernel: [    4.663829] Bluetooth: Patch file not found ar3k/AthrBT_0x11020000.dfu
Apr 21 11:37:33 wuhao-QTJ5 kernel: [    4.663832] Bluetooth: Loading patch file failed
Apr 21 11:37:33 wuhao-QTJ5 NetworkManager[1035]: <info>  [1650512253.6785] Loaded device plugin: NMBluezManager (/usr/lib/x86_64-linux-gnu/NetworkManager/1.36.4/libnm-device-plugin-bluetooth.so)
Apr 21 11:37:34 wuhao-QTJ5 systemd[1]: Started Bluetooth management mechanism.
Apr 21 11:37:35 wuhao-QTJ5 systemd[1]: Starting Bluetooth service...
Apr 21 11:37:35 wuhao-QTJ5 kernel: [    9.072626] xfs filesystem being remounted at /run/systemd/unit-root/var/lib/bluetooth supports timestamps until 2038 (0x7fffffff)
Apr 21 11:37:35 wuhao-QTJ5 bluetoothd[1362]: Bluetooth daemon 5.64
Apr 21 11:37:35 wuhao-QTJ5 systemd[1]: Started Bluetooth service.
Apr 21 11:37:35 wuhao-QTJ5 bluetoothd[1362]: Starting SDP server
Apr 21 11:37:35 wuhao-QTJ5 bluetoothd[1362]: Bluetooth management interface 1.21 initialized
Apr 21 11:37:35 wuhao-QTJ5 kernel: [    9.127087] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Apr 21 11:37:35 wuhao-QTJ5 kernel: [    9.127091] Bluetooth: BNEP filters: protocol multicast
Apr 21 11:37:35 wuhao-QTJ5 kernel: [    9.127095] Bluetooth: BNEP socket layer initialized
Apr 21 11:40:09 wuhao-QTJ5 systemd[1]: Starting Bluetooth management mechanism...
Apr 21 11:40:09 wuhao-QTJ5 systemd[1]: Started Bluetooth management mechanism.
Apr 21 11:40:09 wuhao-QTJ5 systemd[2084]: Starting Bluetooth OBEX service...
Apr 21 11:40:09 wuhao-QTJ5 systemd[2084]: Started Bluetooth OBEX service.

Dir /lib/固件/

代码语言:javascript
复制
  ls /lib/firmware/ar*
    /lib/firmware/ar5523.bin

inxi -Fxxxz

代码语言:javascript
复制
System:
  Kernel: 5.15.0-27-generic x86_64 bits: 64 compiler: gcc v: 11.2.0
    Desktop: GNOME 42.0 tk: GTK 3.24.33 wm: gnome-shell dm: GDM3 42.0
    Distro: Ubuntu 22.04 (Jammy Jellyfish)
Machine:
  Type: Laptop System: Hasee product: QTJ5 v: 03 serial: <superuser required>
    Chassis: Quanta type: 10 v: US serial: <superuser required>
  Mobo: Type2 - Board Vendor Name1 model: Type2 - Board Product Name1
    v: Type2 - Board Version serial: <superuser required> UEFI-[Legacy]: Insyde
    v: BR111 date: 02/02/2015
CPU:
  Info: quad core model: Intel 0000 bits: 64 type: MT MCP smt: enabled
    arch: Haswell rev: 2 cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
  Speed (MHz): avg: 1265 high: 1996 min/max: 800/2000 cores: 1: 1996
    2: 1451 3: 798 4: 798 5: 798 6: 1055 7: 1995 8: 1229 bogomips: 31924
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel 4th Gen Core Processor Integrated Graphics vendor: QUANTA
    driver: i915 v: kernel ports: active: eDP-1 empty: HDMI-A-1,VGA-1
    bus-ID: 00:02.0 chip-ID: 8086:0416 class-ID: 0300
  Device-2: NVIDIA GM108M [GeForce 940M] vendor: QUANTA driver: nvidia
    v: 510.60.02 pcie: speed: 2.5 GT/s lanes: 4 bus-ID: 01:00.0
    chip-ID: 10de:1347 class-ID: 0302
  Device-3: Chicony USB HD Webcam type: USB driver: uvcvideo bus-ID: 3-4:3
    chip-ID: 04f2:b506 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.3 compositor: gnome-shell driver: X:
    loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa gpu: i915
    display-ID: :1 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 98 s-size: 499x280mm (19.6x11.0")
    s-diag: 572mm (22.5")
  Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 142
    size: 344x194mm (13.5x7.6") diag: 395mm (15.5") modes: 1920x1080
  OpenGL: renderer: Mesa Intel HD Graphics 4600 (HSW GT2)
    v: 4.6 Mesa 22.0.1 compat-v: 3.1 direct render: Yes
Audio:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio
    vendor: QUANTA driver: snd_hda_intel v: kernel bus-ID: 00:03.0
    chip-ID: 8086:0c0c class-ID: 0403
  Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: QUANTA
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20
    class-ID: 0403
  Sound Server-1: ALSA v: k5.15.0-27-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: QUANTA driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: 4000 bus-ID: 08:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp8s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros AR9462 Wireless Network Adapter
    vendor: Foxconn driver: ath9k v: kernel pcie: speed: 2.5 GT/s lanes: 1
    bus-ID: 0f:00.0 chip-ID: 168c:0034 class-ID: 0280
  IF: wlp15s0 state: up mac: <filter>
Bluetooth:
  Device-1: Foxconn / Hon Hai type: USB driver: N/A bus-ID: 3-7:4
    chip-ID: 0489:e04e class-ID: e001
Drives:
  Local Storage: total: 707.97 GiB used: 487.1 GiB (68.8%)
  ID-1: /dev/sda vendor: Big Reservoir model: BR 240G size: 223.57 GiB
    speed: 3.0 Gb/s type: SSD serial: <filter> rev: 3B0 scheme: MBR
  ID-2: /dev/sdb vendor: HGST (Hitachi) model: HTS725050A7E630
    size: 465.76 GiB speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: B550 scheme: MBR
  ID-3: /dev/sdc model: SATA SSD size: 18.64 GiB speed: 3.0 Gb/s type: SSD
    serial: <filter> rev: M018 scheme: MBR
Partition:
  ID-1: / size: 18.63 GiB used: 10.29 GiB (55.3%) fs: xfs dev: /dev/sdc1
  ID-2: /home size: 160.28 GiB used: 77.48 GiB (48.3%) fs: ext4
    dev: /dev/sda2
Swap:
  ID-1: swap-1 type: file size: 945.5 MiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 56.0 C pch: 44.5 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 281 Uptime: 4h 56m wakeups: 1 Memory: 11.6 GiB
  used: 2.28 GiB (19.6%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.2.0 alt: 11 Packages: 1744 apt: 1735 snap: 9 Shell: Bash v: 5.1.16
  running-in: deepin-terminal inxi: 3.3.13

有这个文件/lib/固件/ar3k

$ du -h /lib/固件/ar3k

代码语言:javascript
复制
36K    /lib/firmware/ar3k

Ubuntu22.04目录中没有ar3k目录。我尝试创建这个目录,然后执行sudo cp linux-firmware/ar3k/AthrBT_0x11020000.dfu /lib/firmware/ar3k。重新启动后,dmesg报告说缺少一个新文件:补丁文件未找到ar3k/ramps_0x11020000_40.dfu,然后我到Google查找副本。重新启动后,错误变成如下所示

代码语言:javascript
复制
sudo dmesg |grep -i blue
[    4.444301] Bluetooth: Core ver 2.22
[    4.444340] NET: Registered PF_BLUETOOTH protocol family
[    4.444342] Bluetooth: HCI device and connection manager initialized
[    4.444348] Bluetooth: HCI socket layer initialized
[    4.444352] Bluetooth: L2CAP socket layer initialized
[    4.444357] Bluetooth: SCO socket layer initialized
[    8.285799] Bluetooth: Firmware loading err = -110, len = 448, size = 4096, count = 4470
[    8.285815] Bluetooth: Loading sysconfig file failed
[    9.639233] xfs filesystem being remounted at /run/systemd/unit-root/var/lib/bluetooth supports timestamps until 2038 (0x7fffffff)
[    9.685603] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    9.685607] Bluetooth: BNEP filters: protocol multicast
[    9.685611] Bluetooth: BNEP socket layer initialized

我在:https://github.com/cernekee/linux-firmware/blob/master/ar3k/ramps_0x11020000_40.dfu下载文件

EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2022-04-23 16:25:46

蓝牙硬件的固件没有安装。你可以用这种方式安装它。在终点站运行:

代码语言:javascript
复制
sudo apt install git
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
sudo cp linux-firmware/ar3k/AthrBT_0x11020000.dfu /lib/firmware/ar3k
sudo modprobe -r btusb
sudo modprobe btusb

你的蓝牙应该能用。

票数 3
EN

Ask Ubuntu用户

发布于 2023-01-07 15:01:08

我也有这个问题。然后我测试了22.10,也遇到了同样的问题。从22.04开始,Blueman在View下拉菜单中添加了一个名为“隐藏未命名设备”的新“功能”。真正的问题是,功能默认为已启用。你猜怎么着?每个BT设备都是未知的,直到它不是!所以他们都藏起来了。不聪明。

只需取消选中此框,将您的BT设备在配对模式,单击搜索,并再次享受蓝牙!

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1403454

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档