我刚刚重新启动了蓝牙,但没有使用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)有人建议冷启动(关闭并重新启动)然后检查日志,没想到这会有什么不同然后重新启动但它让我蓝牙再次工作。