【问题标题】:通过 rfkill 阻止蓝牙 [关闭]
【发布时间】:2019-06-20 15:05:31
【问题描述】:

rfkill 列表 1

命令给我:

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

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

sudo systemctl status 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。当我启动蓝牙时,它会搜索设备,但它永远不会完成。

【问题讨论】:

  • 我在戴尔 Latitutde 上运行 Ubuntu 18.04 时遇到了同样的问题。我能够使用 GUI 连接到我的耳机。我有一段时间通过耳机有声音输出,但随后连接中断。
  • 我也遇到了和@Ben 一样的问题

标签: bluetooth ubuntu-18.04


【解决方案1】:

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

sudo rfkill unblock bluetooth

在过去两周内我不得不这样做两次,这表明发生了一些随机事件,导致蓝牙在重新启动后被阻止。随机问题总是很麻烦。

【讨论】:

  • 在 Manjaro GNOME 上也为我工作!之后记得用sudo systemctl restart bluetooth重启蓝牙
  • 解决了问题(Ubuntu 21.04)
  • 遇到了完全相同的问题,这个解决方案在 Linux 5.13.0-1-MANJARO x86_64 21.0.7 Ornara 上也适用于我。
【解决方案2】:

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

# rfkill block bluetooth
# rfkill unblock bluetooth

为我工作。

希望对你有帮助

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多