Bluetooth
藍牙被軟阻止,rfkill unblock 不起作用
藉口是我一直在尋找一個新的發行版並實時啟動幾個安裝媒體(Mint、Ubuntu、Debian),並且我的藍牙收音機停止工作。我的猜測是,在發行版中處理藍牙的方式存在一些細微差別,它進入了未指定的狀態。
任何發行版中的 GUI 控制項都無法再次打開它。每當我點擊它時,它立即移回關閉位置……沒有錯誤消息;它只是沒有用。
我以前也遇到過這種情況! 我在兩台不同的電腦上發生過這種情況。第一次是幾年前;很久以前,我不記得我是如何修復它的!據我回憶,我只是在玩rfkill,然後突然它起作用了。
但是,令我煩惱的是,一段時間以來我一直無法解決這個問題——Google並沒有幫助我。我一直在嘗試使用 rfkill 解除阻止(或阻止然後解除阻止)藍牙,但什麼也沒發生。狀態始終為“軟阻止:是”。打開和關閉硬體飛行模式按鈕也無濟於事。以下是我嘗試的命令行:
root@lsb-hp6570b-deb:/home/jcxz100# rfkill list 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no 1: hp-wifi: Wireless LAN Soft blocked: no Hard blocked: no 2: hp-wwan: Wireless WAN Soft blocked: no Hard blocked: no 3: hp-gps: GPS Soft blocked: no Hard blocked: no 4: hp-bluetooth: Bluetooth Soft blocked: yes Hard blocked: no root@lsb-hp6570b-deb:/home/jcxz100# rfkill unblock 4 root@lsb-hp6570b-deb:/home/jcxz100# rfkill list 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no 1: hp-wifi: Wireless LAN Soft blocked: no Hard blocked: no 2: hp-wwan: Wireless WAN Soft blocked: no Hard blocked: no 3: hp-gps: GPS Soft blocked: no Hard blocked: no 4: hp-bluetooth: Bluetooth Soft blocked: yes Hard blocked: no root@lsb-hp6570b-deb:/home/jcxz100# rfkill block 4 root@lsb-hp6570b-deb:/home/jcxz100# rfkill list 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no 1: hp-wifi: Wireless LAN Soft blocked: no Hard blocked: no 2: hp-wwan: Wireless WAN Soft blocked: no Hard blocked: no 3: hp-gps: GPS Soft blocked: no Hard blocked: no 4: hp-bluetooth: Bluetooth Soft blocked: yes Hard blocked: no root@lsb-hp6570b-deb:/home/jcxz100# rfkill unblock 4 root@lsb-hp6570b-deb:/home/jcxz100# rfkill list 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no 1: hp-wifi: Wireless LAN Soft blocked: no Hard blocked: no 2: hp-wwan: Wireless WAN Soft blocked: no Hard blocked: no 3: hp-gps: GPS Soft blocked: no Hard blocked: no 4: hp-bluetooth: Bluetooth Soft blocked: yes Hard blocked: no root@lsb-hp6570b-deb:/home/jcxz100# rfkill block bluetooth root@lsb-hp6570b-deb:/home/jcxz100# rfkill unblock bluetooth root@lsb-hp6570b-deb:/home/jcxz100# rfkill list 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no 1: hp-wifi: Wireless LAN Soft blocked: no Hard blocked: no 2: hp-wwan: Wireless WAN Soft blocked: no Hard blocked: no 3: hp-gps: GPS Soft blocked: no Hard blocked: no 4: hp-bluetooth: Bluetooth Soft blocked: yes Hard blocked: no
我正在使用 Debian 9.9 並且我的 rfkill 版本是“0.5-1+b1 (Debian)”,但是由於我之前在舊電腦上的 Mint 16(或者可能是 17)上發生過這種情況,我不會詳細說明與我的規格。
請參閱下面我自己的解決方案。
就在今天晚上,我偶然發現了“解決方案”(我將其描述為針對 rfkill 命令中的一個特殊性(錯誤?)的解決方法)。
你必須使用這個命令:
rfkill unblock all
如上所示,僅解除藍牙阻塞是行不通的。
root@lsb-hp6570b-deb:/home/jcxz100# rfkill block all root@lsb-hp6570b-deb:/home/jcxz100# rfkill list 0: phy0: Wireless LAN Soft blocked: yes Hard blocked: yes 1: hp-wifi: Wireless LAN Soft blocked: yes Hard blocked: no 2: hp-wwan: Wireless WAN Soft blocked: yes Hard blocked: no 3: hp-gps: GPS Soft blocked: yes Hard blocked: no 4: hp-bluetooth: Bluetooth Soft blocked: yes Hard blocked: no root@lsb-hp6570b-deb:/home/jcxz100# rfkill unblock all root@lsb-hp6570b-deb:/home/jcxz100# rfkill list 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no 1: hp-wifi: Wireless LAN Soft blocked: no Hard blocked: no 2: hp-wwan: Wireless WAN Soft blocked: no Hard blocked: no 3: hp-gps: GPS Soft blocked: no Hard blocked: no 4: hp-bluetooth: Bluetooth Soft blocked: no Hard blocked: no 5: hci0: Bluetooth Soft blocked: no Hard blocked: no
rfkill 似乎在列出時將藍牙無線電視為軟阻塞,但在被要求解除阻塞時卻沒有……因此什麼也沒做。但是當使用“all”目標時,它只是繼續並改變每個無線電的狀態,而不判斷它們是否已經被解除阻塞。