sudo dmesg |grep -i bluetooth\nRun Code Online (Sandbox Code Playgroud)\n[ 4.382987] Bluetooth: Core ver 2.22\n[ 4.383014] NET: Registered PF_BLUETOOTH protocol family\n[ 4.383016] Bluetooth: HCI device and connection manager initialized\n[ 4.383021] Bluetooth: HCI socket layer initialized\n[ 4.383023] Bluetooth: L2CAP socket layer initialized\n[ 4.383029] Bluetooth: SCO socket layer initialized\n[ 4.663829] Bluetooth: Patch file not found ar3k/AthrBT_0x11020000.dfu\n[ 4.663832] Bluetooth: Loading patch file failed\n[ 9.072626] xfs filesystem being remounted at /run/systemd/unit-root/var/lib/bluetooth supports timestamps until 2038 (0x7fffffff)\n[ 9.127087] Bluetooth: BNEP (Ethernet Emulation) ver 1.3\n[ 9.127091] Bluetooth: BNEP filters: protocol multicast\n[ 9.127095] Bluetooth: BNEP socket layer initialized\nRun Code Online (Sandbox Code Playgroud)\n设备型号:ar5b22
\n系统日志
\nApr 20 20:39:58 wuhao-QTJ5 systemd[1]: Starting Bluetooth management mechanism...\nApr 20 20:39:58 wuhao-QTJ5 systemd[1]: Started Bluetooth management mechanism.\nApr 20 20:39:58 wuhao-QTJ5 systemd[25096]: Starting Bluetooth OBEX service...\nApr 20 20:39:58 wuhao-QTJ5 systemd[25096]: Started Bluetooth OBEX service.\nApr 21 11:37:02 wuhao-QTJ5 bluetoothd[1345]: Terminating\nApr 21 11:37:33 wuhao-QTJ5 systemd[1]: Starting Bluetooth management mechanism...\nApr 21 11:37:33 wuhao-QTJ5 kernel: [ 4.382987] Bluetooth: Core ver 2.22\nApr 21 11:37:33 wuhao-QTJ5 kernel: [ 4.383014] NET: Registered PF_BLUETOOTH protocol family\nApr 21 11:37:33 wuhao-QTJ5 kernel: [ 4.383016] Bluetooth: HCI device and connection manager initialized\nApr 21 11:37:33 wuhao-QTJ5 kernel: [ 4.383021] Bluetooth: HCI socket layer initialized\nApr 21 11:37:33 wuhao-QTJ5 kernel: [ 4.383023] Bluetooth: L2CAP socket layer initialized\nApr 21 11:37:33 wuhao-QTJ5 kernel: [ 4.383029] Bluetooth: SCO socket layer initialized\nApr 21 11:37:33 wuhao-QTJ5 kernel: [ 4.663829] Bluetooth: Patch file not found ar3k/AthrBT_0x11020000.dfu\nApr 21 11:37:33 wuhao-QTJ5 kernel: [ 4.663832] Bluetooth: Loading patch file failed\nApr 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)\nApr 21 11:37:34 wuhao-QTJ5 systemd[1]: Started Bluetooth management mechanism.\nApr 21 11:37:35 wuhao-QTJ5 systemd[1]: Starting Bluetooth service...\nApr 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)\nApr 21 11:37:35 wuhao-QTJ5 bluetoothd[1362]: Bluetooth daemon 5.64\nApr 21 11:37:35 wuhao-QTJ5 systemd[1]: Started Bluetooth service.\nApr 21 11:37:35 wuhao-QTJ5 bluetoothd[1362]: Starting SDP server\nApr 21 11:37:35 wuhao-QTJ5 bluetoothd[1362]: Bluetooth management interface 1.21 initialized\nApr 21 11:37:35 wuhao-QTJ5 kernel: [ 9.127087] Bluetooth: BNEP (Ethernet Emulation) ver 1.3\nApr 21 11:37:35 wuhao-QTJ5 kernel: [ 9.127091] Bluetooth: BNEP filters: protocol multicast\nApr 21 11:37:35 wuhao-QTJ5 kernel: [ 9.127095] Bluetooth: BNEP socket layer initialized\nApr 21 11:40:09 wuhao-QTJ5 systemd[1]: Starting Bluetooth management mechanism...\nApr 21 11:40:09 wuhao-QTJ5 systemd[1]: Started Bluetooth management mechanism.\nApr 21 11:40:09 wuhao-QTJ5 systemd[2084]: Starting Bluetooth OBEX service...\nApr 21 11:40:09 wuhao-QTJ5 systemd[2084]: Started Bluetooth OBEX service.\nRun Code Online (Sandbox Code Playgroud)\n目录 /lib/固件/
\n ls /lib/firmware/ar*\n /lib/firmware/ar5523.bin\nRun Code Online (Sandbox Code Playgroud)\n因西-Fxxxz
\nSystem:\n Kernel: 5.15.0-27-generic x86_64 bits: 64 compiler: gcc v: 11.2.0\n Desktop: GNOME 42.0 tk: GTK 3.24.33 wm: gnome-shell dm: GDM3 42.0\n Distro: Ubuntu 22.04 (Jammy Jellyfish)\nMachine:\n Type: Laptop System: Hasee product: QTJ5 v: 03 serial: <superuser required>\n Chassis: Quanta type: 10 v: US serial: <superuser required>\n Mobo: Type2 - Board Vendor Name1 model: Type2 - Board Product Name1\n v: Type2 - Board Version serial: <superuser required> UEFI-[Legacy]: Insyde\n v: BR111 date: 02/02/2015\nCPU:\n Info: quad core model: Intel 0000 bits: 64 type: MT MCP smt: enabled\n arch: Haswell rev: 2 cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB\n Speed (MHz): avg: 1265 high: 1996 min/max: 800/2000 cores: 1: 1996\n 2: 1451 3: 798 4: 798 5: 798 6: 1055 7: 1995 8: 1229 bogomips: 31924\n Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx\nGraphics:\n Device-1: Intel 4th Gen Core Processor Integrated Graphics vendor: QUANTA\n driver: i915 v: kernel ports: active: eDP-1 empty: HDMI-A-1,VGA-1\n bus-ID: 00:02.0 chip-ID: 8086:0416 class-ID: 0300\n Device-2: NVIDIA GM108M [GeForce 940M] vendor: QUANTA driver: nvidia\n v: 510.60.02 pcie: speed: 2.5 GT/s lanes: 4 bus-ID: 01:00.0\n chip-ID: 10de:1347 class-ID: 0302\n Device-3: Chicony USB HD Webcam type: USB driver: uvcvideo bus-ID: 3-4:3\n chip-ID: 04f2:b506 class-ID: 0e02 serial: <filter>\n Display: x11 server: X.Org v: 1.21.1.3 compositor: gnome-shell driver: X:\n loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa gpu: i915\n display-ID: :1 screens: 1\n Screen-1: 0 s-res: 1920x1080 s-dpi: 98 s-size: 499x280mm (19.6x11.0")\n s-diag: 572mm (22.5")\n Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 142\n size: 344x194mm (13.5x7.6") diag: 395mm (15.5") modes: 1920x1080\n OpenGL: renderer: Mesa Intel HD Graphics 4600 (HSW GT2)\n v: 4.6 Mesa 22.0.1 compat-v: 3.1 direct render: Yes\nAudio:\n Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio\n vendor: QUANTA driver: snd_hda_intel v: kernel bus-ID: 00:03.0\n chip-ID: 8086:0c0c class-ID: 0403\n Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: QUANTA\n driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20\n class-ID: 0403\n Sound Server-1: ALSA v: k5.15.0-27-generic running: yes\n Sound Server-2: PulseAudio v: 15.99.1 running: yes\n Sound Server-3: PipeWire v: 0.3.48 running: yes\nNetwork:\n Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet\n vendor: QUANTA driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1\n port: 4000 bus-ID: 08:00.0 chip-ID: 10ec:8168 class-ID: 0200\n IF: enp8s0 state: down mac: <filter>\n Device-2: Qualcomm Atheros AR9462 Wireless Network Adapter\n vendor: Foxconn driver: ath9k v: kernel pcie: speed: 2.5 GT/s lanes: 1\n bus-ID: 0f:00.0 chip-ID: 168c:0034 class-ID: 0280\n IF: wlp15s0 state: up mac: <filter>\nBluetooth:\n Device-1: Foxconn / Hon Hai type: USB driver: N/A bus-ID: 3-7:4\n chip-ID: 0489:e04e class-ID: e001\nDrives:\n Local Storage: total: 707.97 GiB used: 487.1 GiB (68.8%)\n ID-1: /dev/sda vendor: Big Reservoir model: BR 240G size: 223.57 GiB\n speed: 3.0 Gb/s type: SSD serial: <filter> rev: 3B0 scheme: MBR\n ID-2: /dev/sdb vendor: HGST (Hitachi) model: HTS725050A7E630\n size: 465.76 GiB speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>\n rev: B550 scheme: MBR\n ID-3: /dev/sdc model: SATA SSD size: 18.64 GiB speed: 3.0 Gb/s type: SSD\n serial: <filter> rev: M018 scheme: MBR\nPartition:\n ID-1: / size: 18.63 GiB used: 10.29 GiB (55.3%) fs: xfs dev: /dev/sdc1\n ID-2: /home size: 160.28 GiB used: 77.48 GiB (48.3%) fs: ext4\n dev: /dev/sda2\nSwap:\n ID-1: swap-1 type: file size: 945.5 MiB used: 0 KiB (0.0%) priority: -2\n file: /swapfile\nSensors:\n System Temperatures: cpu: 56.0 C pch: 44.5 C mobo: N/A\n Fan Speeds (RPM): N/A\nInfo:\n Processes: 281 Uptime: 4h 56m wakeups: 1 Memory: 11.6 GiB\n used: 2.28 GiB (19.6%) Init: systemd v: 249 runlevel: 5 Compilers:\n gcc: 11.2.0 alt: 11 Packages: 1744 apt: 1735 snap: 9 Shell: Bash v: 5.1.16\n running-in: deepin-terminal inxi: 3.3.13\nRun Code Online (Sandbox Code Playgroud)\n有这个文件/lib/firmware/ar3k
\n$ du -h /lib/固件/ar3k
\n36K /lib/firmware/ar3k\nRun Code Online (Sandbox Code Playgroud)\nUbuntu 22.04目录中没有ar3k目录。我尝试创建这个目录,然后执行sudo cp linux-firmware/ar3k/AthrBT_0x11020000.dfu /lib/firmware/ar3k. 重启后,dmesg报告缺少新文件\xef\xbc\x9aPatch file not found ar3k/ramps_0x11020000_40.dfu,然后我去Google找了一份。重启后,错误变成这样
sudo dmesg |grep -i blue\n[ 4.444301] Bluetooth: Core ver 2.22\n[ 4.444340] NET: Registered PF_BLUETOOTH protocol family\n[ 4.444342] Bluetooth: HCI device and connection manager initialized\n[ 4.444348] Bluetooth: HCI socket layer initialized\n[ 4.444352] Bluetooth: L2CAP socket layer initialized\n[ 4.444357] Bluetooth: SCO socket layer initialized\n[ 8.285799] Bluetooth: Firmware loading err = -110, len = 448, size = 4096, count = 4470\n[ 8.285815] Bluetooth: Loading sysconfig file failed\n[ 9.639233] xfs filesystem being remounted at /run/systemd/unit-root/var/lib/bluetooth supports timestamps until 2038 (0x7fffffff)\n[ 9.685603] Bluetooth: BNEP (Ethernet Emulation) ver 1.3\n[ 9.685607] Bluetooth: BNEP filters: protocol multicast\n[ 9.685611] Bluetooth: BNEP socket layer initialized\nRun Code Online (Sandbox Code Playgroud)\n我在以下位置下载文件:https://github.com/cernekee/linux-firmware/blob/master/ar3k/ramps_0x11020000_40.dfu
\n未安装蓝牙硬件的固件。你可以这样安装。在终端中运行:
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
Run Code Online (Sandbox Code Playgroud)
您的蓝牙应该可以工作。
| 归档时间: |
|
| 查看次数: |
23293 次 |
| 最近记录: |