通过 rfkill 阻止蓝牙

dog*_*kan 20 bluetooth ubuntu-18.04

rfkill 列表 1

命令给了我:

1: ideapad_bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
Run Code Online (Sandbox Code Playgroud)

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

须藤 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)
Run Code Online (Sandbox Code Playgroud)

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

小智 26

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

sudo rfkill unblock bluetooth
Run Code Online (Sandbox Code Playgroud)

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

  • 还为我在 Manjaro GNOME 上工作过!只需记住使用“sudo systemctl restart bluetooth”之后重新启动蓝牙即可 (4认同)

Lit*_*ion 5

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

# rfkill block bluetooth
# rfkill unblock bluetooth
Run Code Online (Sandbox Code Playgroud)

为我工作。

我希望我有帮助

PS:#以root身份运行的意思(通过 sudo或直接以root用户登录)