ffa*_*xer 5 xubuntu bluetooth services
我正在尝试使用 Blueman (v. 1.21) 将蓝牙鼠标连接到我的 Xubuntu 系统
问题似乎是启动时蓝牙没有运行,所以 blueman 拒绝启动,只出现一个对话框:“Bluez daemon 未运行,blueman-manager 无法继续。”
在我的系统上,bluetoothd 将仅作为 root (sudo) 运行,所以我目前的解决方法只是手动 sudo bluetoothd,这工作正常,但我喜欢在启动时运行它,这样我的鼠标就可以在没有任何交互的情况下工作,如果可能的话。
如果我尝试以非 root 用户身份启动 bluetoothd,它会报告:
Bluetooth deamon 4.91
Unable to get on D-Bus
Run Code Online (Sandbox Code Playgroud)
在启动脚本中,我在所有运行级别和 init.d 中发现了相同的 bluetoothd 脚本:
DAEMON=/usr/sbin/bluetoothd
test -f /usr/sbin/bluetoothd || exit 0
# bluetoothd normally starts up by udev rules. it needs dbus to function,
log_progress_msg "bluetoothd"
pkill -TERM bluetoothd || true
log_progress_msg "bluetoothd"
Run Code Online (Sandbox Code Playgroud)
我看了看,/etc/udev/rules.d/但没有提到蓝牙。
此外,我已经尝试过但没有运气:
编辑/etc/dbus-1/system.d/bluetooth.conf以包含我的用户(基本上是复制用于 root 的部分):
我在保持根策略的同时尝试了它,但仍然没有运气!
编辑/etc/pam.d/common-session并/etc/pam.d/gdm包含以下行:
会话可选 pam_ck_connector.so
在公共会话的情况下,它已经存在,但是我尝试删除了一个“nox11”。没有运气没有运气。
顺便说一句,我很困惑我正在使用哪个会话管理器,因为我同时运行了 xfce4-session 和 gdm-session-worker。
无论如何,希望有人有足够的头脑来弄清楚或提供一些提示,否则我为浪费您的时间而真诚地道歉!我将用 uname -a 结束:
Linux [mycompname] 3.0.0-9-lowlatency #12ppa1~natty1-Ubuntu SMP PREEMPT Mon Aug 22 06:52:15 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
和平 B)
我假设这与 Ubuntu 中安装的 bluez 堆栈相同,我使用 11.10 作为参考。关于 dbus conf,如果您将您的设备添加到“蓝牙”组,您应该能够与之通话org,bluez。
<!-- allow users of bluetooth group to communicate with hcid -->
<policy group="bluetooth">
<allow send_destination="org.bluez"/>
</policy>
Run Code Online (Sandbox Code Playgroud)
对于你的蓝牙守护进程脚本来说,它看起来一点也不像我的。
dpkg -S init.d/bluetooth
bluez: /etc/init.d/bluetooth
Run Code Online (Sandbox Code Playgroud)
我不是蓝牙专家,但从你所做的事情来看,这看起来很不寻常。Bluez 必须有一种常规方法来分析和自动启动设备。谷歌搜索一下发现了这个:
http://www.gentoo.org/doc/en/bluetooth-guide.xml
https://www.hanscees.com/old/bluezhowto.html
看起来 blueman 并没有为你做正确的事情,如果你必须深入研究配置文件,它弊大于利。我建议转储它并清理你的 bluez 堆栈,例如 apt-get remove、dpkg --purge 和 apt-get install。然后,从 bluez 文档开始,配置并配对鼠标,以便在启动时自动配对。
Blueman 也是 Universe 的一部分,因此它很可能与我们当前的堆栈不同步,并且它的配置更改会导致问题。
希望有帮助,祝你好运。
| 归档时间: |
|
| 查看次数: |
12623 次 |
| 最近记录: |