蓝牙通过rfkill阻止

时间:2019-01-27 12:12:15

标签: bluetooth ubuntu-18.04

  

rfkill列表1

命令给了我

1: ideapad_bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no

但是,当我运行以下命令时,

  

sudo systemctl状态bluetooth.service

我收到此错误:

bluetooth.service - Bluetooth service
 Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2019-01-27 13:55:21 +03; 1h 4min ago
     Docs: man:bluetoothd(8)
 Main PID: 950 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/bluetooth.service
           └─950 /usr/lib/bluetooth/bluetoothd

systemd[1]: Starting Bluetooth service...
bluetoothd[950]: Starting SDP server
systemd[1]: Started Bluetooth service.
bluetoothd[950]: Bluetooth management interface 1.14 initialized
bluetoothd[950]: Failed to set mode: Blocked through rfkill (0x12)
bluetoothd[950]: Failed to set mode: Blocked through rfkill (0x12)
bluetoothd[950]: Failed to set mode: Blocked through rfkill (0x12)
bluetoothd[950]: Failed to set mode: Blocked through rfkill (0x12)
bluetoothd[950]: Failed to set mode: Blocked through rfkill (0x12)
bluetoothd[950]: Failed to set mode: Failed (0x03)

我使用Ubuntu 18.04.1 LTS。当我启动蓝牙时,它会搜索设备,但是永远不会完成。

2 个答案:

答案 0 :(得分:1)

我目前在X1 Carbon ThinkPad上的Mint 19.3(通用内核5.4.0-48)中遇到此问题。我的rfkill显示蓝牙为“硬阻止”。不知道为什么需要以下内容,但对我有用:

sudo rfkill unblock bluetooth

在过去的两周里,我不得不做两次,这表明随机事件正在发生,导致重启后蓝牙被阻止。随机问题总是一个问题。

答案 1 :(得分:1)

我遇到了同样的问题:rfkill 没有将设备显示为被阻止,但是命令显示

# rfkill block bluetooth
# rfkill unblock bluetooth

为我工作。

希望对你有帮助

PS:# 表示以 root 身份运行(via sudo 或其他)