maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Bluetooth keyboard and mouse resolving connection problems (https://talk.maemo.org/showthread.php?t=57482)

Andy1210 2010-06-30 16:11

Bluetooth keyboard and mouse resolving connection problems
 
Resolving bluetooth keyboard and mouse connection problems

If your N900 don't connect automatically to your bluetooth keyboard or mouse, you can use my script!

1. step
http://wiki.maemo.org/Fremantle_Unsu...tooth_profiles

2. step
When your bluetooth device in pair mode
write this command to xterm:
Code:

hcitool scan
Output like this:
Code:

Andy1210-N900:~# hcitool scan
Scanning ...
    00:07:61:D0:5C:18      Bluetooth Laser Travel Mouse

This is your bluetooth device's MAC address

3. step

Modify this script and save to mouse.sh

Code:

#!/bin/bash

# Modify this, to your bluetooth device's MAC address (change : characters to _ characters)
DEVICE_MAC=00_07_61_D0_5C_18

# Do not modify anything after this line!
DEVICE_PATH=`dbus-send --system --print-reply --dest=org.bluez / org.bluez.Manager.DefaultAdapter | grep 'object path' | sed 's/  object path "//g' | sed '$s/.$//'`
dbus-send --system --dest=org.bluez --print-reply $DEVICE_PATH/dev_$DEVICE_MAC org.bluez.Input.Connect

Copy script to your N900 and run with "sh mouse.sh" command! :)
Or "chmod +x mouse.sh" then "./mouse.sh"

ENJOY! :)


All times are GMT. The time now is 20:58.

vBulletin® Version 3.8.8