V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
lry
V2EX  ›  Linux

蓝牙突然挂了,怎么排查?

  •  
  •   lry · Feb 25, 2023 · 2788 views
    This topic created in 1161 days ago, the information mentioned may be changed or developed.

    系统 Linux Mint 21.1 Vera ( 5.15.0-60-generic )

    电脑待机了一下午,晚上回来就发现蓝牙没了

    image

    λ systemctl status bluetooth
    ○ bluetooth.service - Bluetooth service
         Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor pre>
         Active: inactive (dead)
           Docs: man:bluetoothd(8)
    
    2 月 25 10:54:54 mypc systemd[1]: Condition check resulted in Bluetooth serv>
    
    λ rfkill list
    0: phy0: Wireless LAN
    	Soft blocked: yes
    	Hard blocked: no
    
    λ lsusb
    Bus 004 Device 002: ID 05e3:0626 Genesys Logic, Inc. USB3.1 Hub
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 003 Device 006: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
    Bus 003 Device 004: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
    Bus 003 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
    Bus 003 Device 002: ID 1a81:2039 Holtek Semiconductor, Inc. USB Keyboard
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 002: ID 0b05:1939 ASUSTek Computer, Inc. AURA LED Controller
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    
    λ dmesg | grep -i 'blue'
    [ 7896.558465] Bluetooth: Core ver 2.22
    [ 7896.558481] NET: Registered PF_BLUETOOTH protocol family
    [ 7896.558482] Bluetooth: HCI device and connection manager initialized
    [ 7896.558484] Bluetooth: HCI socket layer initialized
    [ 7896.558486] Bluetooth: L2CAP socket layer initialized
    [ 7896.558488] Bluetooth: SCO socket layer initialized
    

    主板自带的 AX200 ,目前 WIFI 还能正常工作。

    17 replies    2023-02-26 00:13:14 +08:00
    icepie
        1
    icepie  
       Feb 25, 2023
    systemctl start bluetooth 再看一下报错
    lry
        2
    lry  
    OP
       Feb 25, 2023
    @icepie 没有报错。。

    ```
    ● bluetooth.service - Bluetooth service
    Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
    Active: active (running) since Sat 2023-02-25 13:13:24 CST; 54s ago
    Docs: man:bluetoothd(8)
    Main PID: 7961 (bluetoothd)
    Status: "Running"
    Tasks: 1 (limit: 38259)
    Memory: 1.8M
    CPU: 21ms
    CGroup: /system.slice/bluetooth.service
    └─7961 /usr/lib/bluetooth/bluetoothd

    2 月 25 13:13:24 mypc systemd[1]: Starting Bluetooth service...
    2 月 25 13:13:24 mypc bluetoothd[7961]: Bluetooth daemon 5.64
    2 月 25 13:13:24 mypc systemd[1]: Started Bluetooth service.
    2 月 25 13:13:24 mypc bluetoothd[7961]: Starting SDP server
    2 月 25 13:13:24 mypc bluetoothd[7961]: Bluetooth management interface 1.21 initialized
    ```
    lry
        3
    lry  
    OP
       Feb 25, 2023
    虽然手动 start bluetooth 后 status 正常,但是 bluetooth manager 里还是提示 bluez daemon not running
    lry
        4
    lry  
    OP
       Feb 25, 2023
    @lry #2 我刚重启又试了一次,手动 start 后再看 status 一直重复提示 Condition check resulted in Bluetooth serv>
    icepie
        5
    icepie  
       Feb 25, 2023
    bluetoothctl 看看
    icepie
        6
    icepie  
       Feb 25, 2023
    https://wiki.archlinux.org/title/Bluetooth 或者参考一下 arch wiki 的蓝牙配置
    lry
        7
    lry  
    OP
       Feb 25, 2023
    @icepie bluetoothctl 一直在 Waiting to connect to bluetoothd...
    placeholder
        8
    placeholder  
       Feb 25, 2023
    小概率是驱动的问题,

    不知道你说的待机是什么状态,休眠,注销还是正常开机没有操作
    x1596357
        9
    x1596357  
       Feb 25, 2023
    Intel 的蓝牙硬件有个静电消除的 bug 。你把电脑关机,然后长按电源键 10 秒试试。
    tangv2
        10
    tangv2  
       Feb 25, 2023
    和我一样 设备管理 - 查看-查看全部隐藏,看一下是不是变透明了 ,重启电脑,不行的话就重下个蓝牙驱动就好了
    lry
        11
    lry  
    OP
       Feb 25, 2023
    @icepie 好的,我看了下,手动 load btusb 这个 module 后,systemctl start bluetooth 后状态显示 running, 之后 bluetoothctl 连上去就出现了里面的 No default controller available 问题,但是 journalctl 没发现里面说的那两个错误。
    lry
        12
    lry  
    OP
       Feb 25, 2023
    @placeholder 正常开机没有操作。
    icepie
        13
    icepie  
       Feb 25, 2023
    @tangv2 哥们 人家是 linux
    proxychains
        14
    proxychains  
       Feb 25, 2023
    歪个楼 (挂牙科看看
    AzadCypress
        15
    AzadCypress  
       Feb 25, 2023 via Android
    我上次更新系统后重启蓝牙出问题,wifi 能用,bluetoothctl 也是 no default controller 错误。试了好多方法包括改蓝牙配置文件,重装 btusb module ,重置 BIOS 等
    后面用 Windows 启动发现也用不了蓝牙,判断应该是硬件问题。于是淘宝买了块 ax210 ,插上就能用了
    424778940
        16
    424778940  
       Feb 25, 2023
    有些蓝牙方案是要 usb 载入固件之后才能用的(对 就是每次开机驱动都要载入固件) 记得之前有些 wwan 卡也是这样
    你去研究一下固件问题吧- -...
    wheat0r
        17
    wheat0r  
       Feb 26, 2023
    热风枪吹一把😂
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2134 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 00:49 · PVG 08:49 · LAX 17:49 · JFK 20:49
    ♥ Do have faith in what you're doing.