NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
setup bluetooth mouse automaticly
Hi all,
I have a working Logitech bluetooth mouse here. Works fine btw...
Now, I want to have a automatic setup if I have to reboot the computer.
Therefore I added the following in /etc/bluetooth/btdevctl.conf:
# service remote-address local-address
#HID mouse bt3c0
#HSET headset ubt0
HID logitech ubt0
(where "logitech" is the alias for BTADDR of the mouse device)
My rc.conf has the following lines:
btconfig=YES
btconfig_args="up pscan switch class 0x02010c"
bthcid=YES
btdevctl=YES
sdpd=YES
If I understand it right, the bthcid should manage the pin-keys for each
device... But it seems that there is the problem. At boot I get the
disconnect message from kernel:
Dec 17 11:42:51 nippi /netbsd: bthidev0 at bthub0 remote-bdaddr
00:07:61:ec:c5:a6 link-mode auth
Dec 17 11:42:51 nippi /netbsd: btms0 at bthidev0 reportid 2: 8 buttons,
W and Z dirs.
Dec 17 11:42:51 nippi /netbsd: wsmouse1 at btms0 mux 0
Dec 17 11:42:51 nippi /netbsd: bthidev0: reportid 16 not configured
Dec 17 11:42:56 nippi /netbsd: bthidev0: disconnected
After I detached the device manually and gave the pin again I'm able to
connect to the mouse with "btdevctl" and use it as it should.
The key-file for bthcid exists (/var/db/bthcid.keys):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>00:22:69:c5:a8:64</key>
<dict>
<key>00:07:61:ec:c5:a6</key>
<data>MOgOCHLRsqnCtRAr9aMUiw==</data>
</dict>
</dict>
</plist>
Any ideas?
Greetings,
Helge
Home |
Main Index |
Thread Index |
Old Index