![]() |
2010-02-14
, 19:14
|
Posts: 739 |
Thanked: 220 times |
Joined on Dec 2009
@ Surrey, UK
|
#222
|
Hi
Coming here as the happy owner of the N900 I really want to be able to use a BT keyboard with the device. Unfortunately I have no skill in programming what so ever and therefore I have a hard time understanding the above explenations.
Is there anyone that could provide for me (I think there are others as well) a very basic step by step instruction on how to make a BT keyboard work with the N900?
Kind regards
![]() |
2010-02-14
, 21:26
|
Posts: 85 |
Thanked: 29 times |
Joined on Jan 2008
|
#223
|
setxkbmap -v 10 -device 4 -I -I/usr/share/X11/xkb-chinook -rules base -model nokiasu8w -layout fi
setxkbmap -v 10 -device 4 -I -I/usr/share/X11/xkb-chinook -rules base -model nokiasu8w -layout fr
Error loading new keyboard description
![]() |
2010-02-14
, 23:38
|
Posts: 94 |
Thanked: 10 times |
Joined on Jan 2010
|
#224
|
![]() |
2010-02-14
, 23:52
|
Posts: 94 |
Thanked: 10 times |
Joined on Jan 2010
|
#225
|
![]() |
2010-02-15
, 17:21
|
Posts: 7 |
Thanked: 0 times |
Joined on Feb 2010
|
#226
|
![]() |
2010-02-15
, 21:15
|
Posts: 85 |
Thanked: 29 times |
Joined on Jan 2008
|
#227
|
![]() |
2010-02-16
, 12:13
|
Posts: 94 |
Thanked: 10 times |
Joined on Jan 2010
|
#228
|
meep, fr and fi are both defined in the same place: /usr/share/X11/xkb-chinook/symbols/
I have no idea why it works for the fi and de layout but not for the fr nor be.
![]() |
2010-02-16
, 15:02
|
Posts: 7 |
Thanked: 0 times |
Joined on Feb 2010
|
#229
|
Some commands need to be run as root, if you haven't already done it, install package "rootsh" and then you can gain root privileges by entering "sudo gainroot" in the X terminal.
First, you need to enable bluetooth HID support, edit /etc/bluetooth/main.conf and remove "hid" from "DisablePlugins=" line. Then send these commands:
stop bluetoothd
start bluetoothd
Now:
1. Enable bluetooth through GUI (if it's not on) and pair the keyboard with the device through GUI (although I'm not sure if pairing through GUI is necessary to get the keyboard working, but it does not hurt and you need to do it just once)
2. Issue the following command:You'll get a response like: object path "/org/bluez/11984/hci0"Code:dbus-send --system --print-reply --dest=org.bluez / org.bluez.Manager.DefaultAdapter
4. Enter this command: hcitool scan (be sure that your bluetooth keyboard did not fall into sleep mode in the meantime and that it's still sending out information about its presence - usually indicated by blinking blue light)
After some time, you should be able to see the MAC address of your keyboard (if you don't have 10 other people having the same bluetooth keyboard in a close distance to you, you should be able to identify yours by the name)
5. Send this command:BUT you need to replace /org/bluez/11984/hci0 by whatever response you got in step 2 (actually the number should be only thing that will be different) and replace 00_07_61_75_xx_xx by the mac address of your keyboard from step 4 (replacing all colons by underscores)Code:dbus-send --system --print-reply --dest=org.bluez /org/bluez/11984/hci0/dev_00_07_61_75_xx_xx org.bluez.Input.Connect
Now you should be able to use the keyboard, but only functional characters will be letters a-z, space, backspace and Enter (not even numbers)
To get the keyboard to be fully working, continue with these steps:
1. Download xkb-chinook.tar file from this post: http://talk.maemo.org/showpost.php?p=441444&postcount=3 and untar it to the /usr/share/X11 directory (Copy it to the /usr/share/X11 directory, then go to that directory and type "tar xf xkb-chinook.tar". You will probably have to be root to do this and you can delete xkb-chinook.tar file after you untar it to save space.)
2. Then, as root, do:
3. Type this command: hildon-im-xkbtool --listCode:cd /usr/share/X11 cp -i xkb-chinook/symbols/pc xkb/symbols/. cp -i xkb-chinook/symbols/us xkb/symbols/. cp -i xkb-chinook/geometry/pc xkb/geometry/.
This will list all connected HID devices, it will look like this:
The "omap_twl4030keypad" is the N900's hardware keyboard and after that line, you should see your keyboard connected (Freedom Pro Keyboard in my case above). Write down the ID of your keyboard.Code:ID 0, Name: "Virtual core pointer" ID 1, Name: "Virtual core keyboard" ID 2, Name: "TSC2005 touchscreen" ID 3, Name: "omap_twl4030keypad" ID 4, Name: "Freedom Pro Keyboard"
4. Do: setxkbmap -device 4 -I -I/usr/share/X11/xkb-chinook -rules base -model pc105 -layout us
Replace "-device 4" with your device ID of your keyboard from step 3, if it's different, but most likely you will get 4 as well.
5. Press any key on the N900 keyboard (not on the bluetooth one). I don't know why this is needed, but it is :-)
6. Your keyboard is now fully functional.
When you turn your keyboard off and on again, it will now pair automatically and the only thing you need to do is to issue the setxkbmap command from step 4 above, to get all keys working.
Hope this helps.
JoHnY
![]() |
2010-02-16
, 20:05
|
Posts: 85 |
Thanked: 29 times |
Joined on Jan 2008
|
#230
|
Coming here as the happy owner of the N900 I really want to be able to use a BT keyboard with the device. Unfortunately I have no skill in programming what so ever and therefore I have a hard time understanding the above explenations.
Is there anyone that could provide for me (I think there are others as well) a very basic step by step instruction on how to make a BT keyboard work with the N900?
Kind regards