Fedora

在 Fedora 上重新啟動後找不到藍牙設備

  • March 24, 2022

我剛剛重新啟動了藍牙,但沒有使用systemctl restart我使用過的systemctl stop然後systemctl start,狀態如下所示:

$ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
  Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
  Active: active (running) since Tue 2018-10-16 09:14:16 CEST; 1min 27s ago
    Docs: man:bluetoothd(8)
Main PID: 26199 (bluetoothd)
  Status: "Running"
   Tasks: 1 (limit: 4915)
  CGroup: /system.slice/bluetooth.service
          └─26199 /usr/libexec/bluetooth/bluetoothd

paź 16 09:14:16 jcubic systemd[1]: Starting Bluetooth service...
paź 16 09:14:16 jcubic bluetoothd[26199]: Bluetooth daemon 5.49
paź 16 09:14:16 jcubic systemd[1]: Started Bluetooth service.
paź 16 09:14:16 jcubic bluetoothd[26199]: Starting SDP server
paź 16 09:14:16 jcubic bluetoothd[26199]: Bluetooth management interface 1.14 initialized

但是配置面板給了我沒有找到適配器並且hciconfig沒有結果的錯誤。

我已經嘗試安裝bluez-hid2hci(我已經在某處讀過這方面的內容),但沒有任何效果後我將其解除安裝。

我已經重新啟動了機器,但是我沒有在工作列中看到藍牙圖示,我在終端中有這個:

$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
  Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
  Active: inactive (dead)
    Docs: man:bluetoothd(8)
$ dmesg | grep blue
[    8.591069] SELinux:  Class bluetooth_socket not defined in policy.

經過一番探勘,我注意到沒有載入藍牙核心模組,所以我使用了:

# modeprobe bluetooth
# systemctl restart bluetooth
# cd /etc/modules-load.d
# echo "bluetooth" >> bluetooth.conf

現在我與開始時相同 systemctl status show active 但重新啟動後沒有圖示,此輸出:

# rfkill list
0: phy0: Wireless LAN
   Soft blocked: no
   Hard blocked: no

dmesg 的輸出:

# dmesg | grep -i blue
[    8.798170] SELinux:  Class bluetooth_socket not defined in policy.
[   16.146091] Bluetooth: Core ver 2.22
[   16.146132] Bluetooth: HCI device and connection manager initialized
[   16.146135] Bluetooth: HCI socket layer initialized
[   16.146136] Bluetooth: L2CAP socket layer initialized
[   16.146141] Bluetooth: SCO socket layer initialized
[  318.675520] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[  318.675524] Bluetooth: BNEP filters: protocol multicast
[  318.675531] Bluetooth: BNEP socket layer initialize

如何在 Fedora 或任何其他具有類似設置的 Linux 發行版上啟用藍牙?我有戴爾筆記型電腦。

在這個問題Bluetooth not working (No Adapters Available) in fedora-22(KDE)有人建議冷啟動(關閉並重新啟動)然後檢查日誌,沒想到這會有什麼不同然後重新啟動但它讓我藍牙再次工作。

引用自:https://unix.stackexchange.com/questions/475740