Reply
Thread Tools
Posts: 163 | Thanked: 96 times | Joined on Feb 2010 @ Israel
#1
Hello,
Has anyone had any success in getting a bluetooth keyboard working with the n900 on PR1.2?
I had it working with PR1.1, but after reflashing to PR 1.2 I edited the main.conf file to remove hid from the disabled plugins (restarted bluetoothd) and it doesn't work. It seems to pair up fine, but then right after it disconnects.
I tried running bluetoothd -n -d to get some debug info, but it didn't print anything.

Any suggestions? Is this just me?
 
Posts: 310 | Thanked: 383 times | Joined on Jan 2010
#2
I've got the same behavior here.
 
Posts: 145 | Thanked: 88 times | Joined on Nov 2009 @ Copenhagen
#3
My su-8w works fine after reflashing to PR 1.2., cf:
http://talk.maemo.org/showpost.php?p...&postcount=286
 
Posts: 163 | Thanked: 96 times | Joined on Feb 2010 @ Israel
#4
Ok if you are having trouble follow these steps and say what went wrong:

1) Open a terminal

2) Gain root access
$ root
or
$ sudo gainroot

3) Install the sysklogd deamon
# apt-get install sysklogd

4) Restart the bluetooth deamon
# stop bluetoothd
# start bluetoothd

5) Go to the bluetooth menu and delete the entry for the keyboard

6) Pair the keyboard to the phone (make sure they pair up ok!). If the pairing doesn't work, or in general, give it also a try with pin 0000. Some keyboards don't support anything else.

7) When the keyboard is setup in discover mode get its BT address
# hcitool scan
Scanning ...
00:5F:F6:12:26:BC Bluetooth Keyboard

8) Get the interface identifier
# dbus-send --system --print-reply --dest=org.bluez / org.bluez.Manager.DefaultAdapter
object path "/org/bluez/2685/hci0"

9) Put that all together! (make sure the keyboard is still in discover mode!) Notice
# dbus-send --system --print-reply --dest=org.bluez /org/bluez/2685/hci0/dev_00_5F_F6_12_26_BC org.bluez.Input.Connect

10) and now you should be able to get a descent error message from /var/log/syslog
# tail /var/log/syslog

Some more stuff:

If you are getting a permission denied, try creating the file (as root) /etc/bluetooth/hcid.conf with the content:
Code:
device {
auth enable; encrypt enable;
}
that could help.


EDIT:
Sorrry fixed some typos

Last edited by dbrodie; 2010-06-09 at 20:34.
 

The Following User Says Thank You to dbrodie For This Useful Post:
Posts: 163 | Thanked: 96 times | Joined on Feb 2010 @ Israel
#5
In an interest to keep my own problems separate from any tutorials, my error message is:
bluetoothd[2935]: Encryption failed: Permission denied(0x5)

I am trying to figure out why...

EDIT:
OK, I was able to get it to work once with the stuff above, still trying to get it to work more consistently, hopefully from the gui...

I would appreciate any advice. Its a shame all of that info above is very well hidden in the forum and on the internet...

Last edited by dbrodie; 2010-06-09 at 21:32.
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:15.