V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
lry
V2EX  ›  Linux

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

  •  
  •   lry · 2023-02-25 13:09:28 +08:00 · 1854 次点击
    这是一个创建于 397 天前的主题,其中的信息可能已经有所发展或是发生改变。

    系统 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 条回复    2023-02-26 00:13:14 +08:00
    icepie
        1
    icepie  
       2023-02-25 13:12:26 +08:00
    systemctl start bluetooth 再看一下报错
    lry
        2
    lry  
    OP
       2023-02-25 13:16:56 +08:00
    @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
       2023-02-25 13:19:37 +08:00
    虽然手动 start bluetooth 后 status 正常,但是 bluetooth manager 里还是提示 bluez daemon not running
    lry
        4
    lry  
    OP
       2023-02-25 13:22:18 +08:00
    @lry #2 我刚重启又试了一次,手动 start 后再看 status 一直重复提示 Condition check resulted in Bluetooth serv>
    icepie
        5
    icepie  
       2023-02-25 13:22:59 +08:00
    bluetoothctl 看看
    icepie
        6
    icepie  
       2023-02-25 13:23:28 +08:00
    https://wiki.archlinux.org/title/Bluetooth 或者参考一下 arch wiki 的蓝牙配置
    lry
        7
    lry  
    OP
       2023-02-25 13:25:35 +08:00
    @icepie bluetoothctl 一直在 Waiting to connect to bluetoothd...
    placeholder
        8
    placeholder  
       2023-02-25 13:27:57 +08:00
    小概率是驱动的问题,

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