我知道有一篇关于 Ubuntu 14.04 的相同问题的帖子(在 14.04 启动时启用蓝牙)。我试图修改该rc.local文件(sudo gedit /etc/rc.local通过添加)rfkill unblock all前行exit 0。但是重启后还是不行。我用密码登录后蓝牙效果很好,但我真的很想用蓝牙键盘输入密码。
请编辑/etc/bluetooth/main.conf。
默认情况下,在 Xenial 中,蓝牙不开启。[1] rfkill unblock all仅当设备处于服务状态并被阻止时才解除对设备的阻止。因此,您需要打开设备电源并确保守护进程 bluetoothd 正在运行。因此,您可以考虑编辑/etc/bluetooth/main.conf以控制行为。
您可以尝试将行更改为DiscoverableTimeout = 0或添加如下行
[Policy]
AutoEnable=true
Run Code Online (Sandbox Code Playgroud)
请参考man bluetoothd,man /etc/bluetooth/main.conf和https://wiki.archlinux.org/index.php/bluetooth以满足您的要求。
[1] 蓝牙堆栈与 Trusty 和 Xenial 不同,包括它们在系统启动时的启动方式。这可能是您可信赖的帖子没有帮助的原因。这太详细了,我不会详细介绍这个故事。
| 归档时间: |
|
| 查看次数: |
11903 次 |
| 最近记录: |