View previous topic :: View next topic |
Author |
Message |
quereguilla n00b
Joined: 09 Mar 2010 Posts: 7
|
Posted: Sun May 29, 2011 4:16 pm Post subject: HOWTO: Bluetooth devices without hidd (hidd is deprecated) |
|
|
If you don't want use hidd because is deprecated but you can still download with USE old-daemons, you can follow this steps to configure your bluetooth keyboard/mouse
0. Add to your kernel the necessary bluetooth modules (see the oficial documentation)
1. install net-wireless/bluez (you will need USE test-programs for the scripts seen below)
Code: | # echo "net-wireless/bluez test-programs" >> /etc/portage/package.use
# emerge net-wireless/bluez |
2. start daemon bluetooth
Code: | # /etc/init.d/bluetooth start |
3. Know the device name of your local bluetooth device
Code: | # hcitool dev
Devices:
hci0 00:15:83:14:61:94 |
ok! it's hci0
4. Find MAC address of your remote device
Code: | # hcitool scan
Scanning ...
00:07:61:F7:C8:D6 Apple Wireless Keyboard |
ok! it's 00:07:61:F7:C8:D6
5. Now, all you need to do is pair (with simple-agent script) and use the Input D-Bus interface to connect (with bluez-test-input script)
Code: | #simple-agent hci0 00:07:61:F7:C8:D6
RequestPinCode (/org/bluez/23001/hci0/dev_00_07_61_F7_C8_D6)
Enter PIN Code: 1234
<ENTER THE PIN CODE IN YOUR REMOTE DEVICE>
Release
New device (/org/bluez/23001/hci0/dev_00_07_61_F7_C8_D6)
#bluez-test-input connect 00:07:61:F7:C8:D6 |
Ok! it's working
The steps would be exactly the same for a bluetooth headset, except you'd use test-audio instead of test-input
6. Now if you want to make the remote device be able to connect back to you without user authorization:
Code: | # bluez-test-device trusted 00:07:61:F7:C8:D6 yes |
Good luck! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|