maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Accessories (https://talk.maemo.org/forumdisplay.php?f=17)
-   -   how to get bluetooth pc105 keyboards to work with N900 (https://talk.maemo.org/showthread.php?t=38372)

Skyscraper 2010-08-24 18:17

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by jakoleh (Post 794981)
I have created first version of the Bluetooth keyboard layout selector application (BlueKlase), as request in http://wiki.maemo.org/Fremantle_Blue...out#Next_steps.
This is precessor of the python script I wrote earlier.

!!!! This is first version so install this with your own risk. !!!

Installation instructions:
1) install attached deb file. It will install following files:
/etc/event.d/bluetooth-keyboard
/usr/bin/BlueKlase
2) Get your keyboard id using instruction from http://wiki.maemo.org/Fremantle_Blue..._Automatically
2) Edit attached settings.txt file and put your keyboard id there.
3) Copy file to /home/user/.config/BlueKlase/ folder.
4) rename it to settings.conf
5) Restart your phone

BlueKlase should start automatically and the system should work.

Future development:
- Optify
- Create control panel widget to be able to add new keyboards more easily. This will also create the settings.conf file and starts the BlueKlase after exit. No more reboot needed.
- Put application to Extras-devel, create bug reporting (if this is really needed)
- Disable virtual keyboard when hw keyboard is attached and enable it again after keyboard is disconnected (if it was enabled anyway).

Hi!

I'm tried this and: It connects ok, but it wont set the right keyboard layout. Having ALWAYS the problem that i cant type numbers or slt. Only when i hold down QWERTZ... I get the numbers 123456.... Like on N900 Hardware keyboard.

I dont know how to remap it correctly ;(
Anyone can help me with this problem?
I've tried to use the BT Keyboard on an PC Xubuntu 10.04 and it worked great. Then I tried to export layout via xkbcomp and import it on n900 with xkbcomp but that didnt worked ?! (maybe i did anything wrong...)

Would be great if anyone could help me!
Thank you!

Skyscraper

jakoleh 2010-08-25 05:41

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by Skyscraper (Post 797071)
Hi!

I'm tried this and: It connects ok, but it wont set the right keyboard layout. Having ALWAYS the problem that i cant type numbers or slt. Only when i hold down QWERTZ... I get the numbers 123456.... Like on N900 Hardware keyboard.

I dont know how to remap it correctly ;(
Anyone can help me with this problem?
I've tried to use the BT Keyboard on an PC Xubuntu 10.04 and it worked great. Then I tried to export layout via xkbcomp and import it on n900 with xkbcomp but that didnt worked ?! (maybe i did anything wrong...)

I have similar problem with the Microsoft Bluetooth Mobile Keyboard 6000. I had first major problem to connect it and after I was able to connect, the keymapping don't work. I'll try to dig in more if I can found something, but nothing seems to help so far.

jakoleh 2010-08-25 08:07

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by jakoleh (Post 794981)
Future development:
- Optify
- Create control panel widget to be able to add new keyboards more easily. This will also create the settings.conf file and starts the BlueKlase after exit. No more reboot needed.
- Put application to Extras-devel, create bug reporting (if this is really needed)
- Disable virtual keyboard when hw keyboard is attached and enable it again after keyboard is disconnected (if it was enabled anyway).

More future development:
- add chinook xkb files to deb
- add pairing and connecting support to control panel widget. (I was't able to connect my microsoft keyboard until I sent dbus command org.bluez.Input.Connect)

Nokia349 2010-09-01 11:40

setxkbmap pc105 problem solved (I think)
 
Edit (solved for real this time I think):

I finally got numbers working, but I got the fix wrong in my first post. Of all the things I tried, it turned out to be this modified setxkbmap command that was the real solution:

setxkbmap -device 4 -I -I/usr/share/X11/xkb-chinook -rules base -model evdev -layout us -print|xkbcomp -i 4 - $DISPLAY

Confirmed that you can plug in pc105 instead of evdev and the same line also works, so it isnt an evdev or pc105 thing. I also tried all variations without piping through xkbcomp. It appears that piping through xkbcomp is what fixes it. In my case, I dont even need to hit a key on the internal keyboard, it just starts working right away with numbers.

I executed that command as a user, with the internal keyboard open.

For anyone curious, the solution that I 'thought' was responsible for the fix, was to type the normal setxkbmap command on the internal keyboard and then quickly close the internal keyboard right after hitting enter. When I tried that solution again today, it did not work, so I retraced my steps and it turns out that the diagnostic line above was what did it.

I have a qt app installed that someone made that auto launches the setxkbmap command, so I am in the process of getting rid of that to make sure that the combination of that script and this command are not jointly the solution. It also appears that a new bt-hid-scripts package has been released, so who knows, maybe this fix is in there? That sure would be fast ;)

jakoleh 2010-09-01 19:25

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by jakoleh (Post 797631)
More future development:
- add chinook xkb files to deb
- add pairing and connecting support to control panel widget. (I was't able to connect my microsoft keyboard until I sent dbus command org.bluez.Input.Connect)

There is another project ongoing in the same area http://talk.maemo.org/showthread.php?t=58258. This project seems to be in more advanced level so I'm not going to implement BlueKlase any further (if somebody doesn't tell me why it should).

marathondon 2010-09-17 22:41

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by jakoleh (Post 794981)
I have created first version of the Bluetooth keyboard layout selector application (BlueKlase), as request in http://wiki.maemo.org/Fremantle_Blue...out#Next_steps.
This is precessor of the python script I wrote earlier.

!!!! This is first version so install this with your own risk. !!!

Installation instructions:
1) install attached deb file. It will install following files:
/etc/event.d/bluetooth-keyboard
/usr/bin/BlueKlase
2) Get your keyboard id using instruction from http://wiki.maemo.org/Fremantle_Blue..._Automatically
2) Edit attached settings.txt file and put your keyboard id there.
3) Copy file to /home/user/.config/BlueKlase/ folder.
4) rename it to settings.conf
5) Restart your phone

BlueKlase should start automatically and the system should work.

Future development:
- Optify
- Create control panel widget to be able to add new keyboards more easily. This will also create the settings.conf file and starts the BlueKlase after exit. No more reboot needed.
- Put application to Extras-devel, create bug reporting (if this is really needed)
- Disable virtual keyboard when hw keyboard is attached and enable it again after keyboard is disconnected (if it was enabled anyway).

This is how I interpret the work you mention above. By installing the attached file BlueKlase my n900 will only need for me to include my keyboard id into the attached txt file which will be renamed to settings.conf and placed in a directory named folder contained in the path you provide above. Don't I need to be able to pair my keyboard to the n900 so that there will be a keyboard id? I then restart my phone. Following this procedure will then allow me to pair with my bluetooth keyboard. Have I got this correct and do I need to disable virtual keyboard manually before doing a restart?

virtual_one 2010-09-19 19:40

Re: how to get bluetooth pc105 keyboards to work with N900
 
Hi ppl!

I'm trying to get my bt keyboard "Bluetooth Mini Keyboard" working, but I failed...I did everything you suggested, but numbers, symbols and arrow keys still don't work for me, and Russian symbols too.
Could anyone help me, I appreciate! This keyboard works well with my netbook running Windows 7.
Thank you!

virtual_one 2010-09-19 21:05

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by jakoleh (Post 804514)
There is another project ongoing in the same area http://talk.maemo.org/showthread.php?t=58258. This project seems to be in more advanced level so I'm not going to implement BlueKlase any further (if somebody doesn't tell me why it should).

I think you should, because their solution doesn't work for me. I don't need to use Bt HID Scripts, because the keyboard connects, the only problem I have is wrong mapping.

kureyon 2010-09-20 01:39

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by virtual_one (Post 820929)
I don't need to use Bt HID Scripts, because the keyboard connects

Don't know if you're aware it does slightly more than that. It comes with a "watcher" script that you run once (per reboot - not sure whether qole has got it to autostart yet), and it will auto connect your mouse/keyboard - this is a great feature.

Quote:

I think you should, because their solution doesn't work for me, ... the only problem I have is wrong mapping.
The BT HID scripts only automates the process, you still need to get the keyboard layout and mapping correct in the first place.

virtual_one 2010-09-20 02:13

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by kureyon (Post 821068)
Don't know if you're aware it does slightly more than that. It comes with a "watcher" script that you run once (per reboot - not sure whether qole has got it to autostart yet), and it will auto connect your mouse/keyboard - this is a great feature.

The BT HID scripts only automates the process, you still need to get the keyboard layout and mapping correct in the first place.

Ah, yes, you're right, it does connect automatically. But as you said I still need to get the keyboard layout, this is my question, how to get all keys working properly. Thank you.

jakoleh 2010-09-29 05:47

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by virtual_one (Post 821074)
Ah, yes, you're right, it does connect automatically. But as you said I still need to get the keyboard layout, this is my question, how to get all keys working properly. Thank you.

Key mappings in N900 is very problematic. I haven't been able to get my PC105 finnish keyboard to load the correct mapping. My Nokia SU8W is working correctly however.

BlueKlase and BT HID script makes the same thing with keyboards. They both try to load the correct keymapping after you connect your keyboard. But if you are not able to do the correct keymapping in first place (like me with microsoft keyboard) either of these scripts doesn't help.

rdwrig0ceo 2010-10-10 00:22

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by jakoleh (Post 794981)
I have created first version of the Bluetooth keyboard layout selector application (BlueKlase), as request in http://wiki.maemo.org/Fremantle_Blue...out#Next_steps.
This is precessor of the python script I wrote earlier.

!!!! This is first version so install this with your own risk. !!!

Installation instructions:
1) install attached deb file. It will install following files:
/etc/event.d/bluetooth-keyboard
/usr/bin/BlueKlase
2) Get your keyboard id using instruction from http://wiki.maemo.org/Fremantle_Blue..._Automatically
2) Edit attached settings.txt file and put your keyboard id there.
3) Copy file to /home/user/.config/BlueKlase/ folder.
4) rename it to settings.conf
5) Restart your phone

BlueKlase should start automatically and the system should work.

Future development:
- Optify
- Create control panel widget to be able to add new keyboards more easily. This will also create the settings.conf file and starts the BlueKlase after exit. No more reboot needed.
- Put application to Extras-devel, create bug reporting (if this is really needed)
- Disable virtual keyboard when hw keyboard is attached and enable it again after keyboard is disconnected (if it was enabled anyway).


Hello everyone,

I just wanted you to know your blueklase script worked for me. Actually all I did was download your blueKlase script (found on page 32), installed it and nothing else. I used the microsoft Bt mouse 5000 and microsoft Bt keyboard 6000 (plus the included numerical keypad), and all work perfectly with the BT HID connect/watcher app and your blueklase script. What I did was pair both which took a minute but I figured it out finally, mouse was easy just use 0000 for the pairing code and the keyboard was little trickier but you use the pairing code N900 supplies but important to click the pair button on N900 first and then type in pair code on Bt keyboard and hit enter on Bt keyboard (Of course make sure you put the Bt keyboard and mouse in pairing mode by holding button on back/buttom of device for a few seconds until led light flashes red and green. After pairing click on BT HID connect app and select keyboard and then mouse. (For me N900 correctly named both devices and even the numerical keypad that comes with the bt keyboard). Make sure bluetooth symbol on desktop of N900 turns blue. After doing that then click on BT HID watcher app so it'll start/stop keyboard and mouse whenever you turn on/off the mouse or keyboard using switch on the back/buttom of device. After doing that I installed your blueklase script. After doing that I immediately tested the keyboard to see if the layout worked and it did, I didn't do a restart or anything. I did however notice it wouldn't let me select a special character on the number keys up top until I figered it out. On the BT keyboard you have to tap the shift key and then hit a number key to get the special character. Again hard tap the shift key (not press and hold like normal use on a laptop or desktop) let go and then hit the special character you want.

Ok only downside I noticed was I turned off the keyboard and went back to using the N900 keyboard and noticed I was unable to select a number or special character as if the shift key stopped working and normal press and hold option wasn't working either. So I rebooted the N900 and everything was backed to normal for the N900 keyboard.

Hope this helps someone else with a Mircosoft BT 6000 keyboard and 5000 mouse, not for sure about other types of devices. Thanks again for your awesome hard work you guys do in making everything work.

Mr. Ben 2010-10-28 23:54

Re: How to get the bluetooth keyboard to fully work with N900
 
Preliminary info: trying to connect a Freedom Pro keyboard (i'm guessing the same model as JohNy)

Last night I got this to work. I followed the instructions created by Johny and things were golden. Then, out of curiosity I hit the "pair" button again on the keyboard. Of course, this broke the link I had working with the N900.

Now whenever I try to pair the keyboard (through the GUI) with the n900 it successfully connects for a few seconds and then disconnects. It then displays the error message "no keyboard from the list hildon-im-xkbtool" (or something similar, it goes away too quickly). The BT icon in the status area stays white and when I look at hildon-im-xkbtool the keyboard does not appear (of course, because the connection is dropped).

I was able to get the BT info, but when I try to set the dbus (with my own information) I get this error
Code:

Must use org.mydomain.Interface.Method notation, no dot in "org/bluez/2062/hci0/dev_00_18_00_17_2F_03"
There is no dot in that line...so I have no idea what I might need to fix to get it to work.

Any thoughts?

avidscavenger 2010-11-01 02:16

Re: how to get bluetooth pc105 keyboards to work with N900
 
Since upgrading to PR1.3 I am no longer able to use my iGo Stowaway keyboard. It previously worked without a problem.

Pairing appears to work, but the keyboard immediately reverts to Discoverable mode. I guess this indicates that the keyboard hasn't acknowledged the pairing, though the N900 has. I am unable to make a connection happen (the BT icon remains white). I guess some kind of log might help figure out what's happening, so I installed ksyslogd but nothing came up while I paired the device.

Any suggestions?

maartenmk 2010-11-01 11:30

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by avidscavenger (Post 859168)
Since upgrading to PR1.3 I am no longer able to use my iGo Stowaway keyboard. It previously worked without a problem.

[...]

Any suggestions?

No real help, but for me it still works, so it does not seem to be directly related to PR 1.3.

(I have a Dell think outside keyboard, which is a rebranded Stowaway)

avidscavenger 2010-11-02 00:18

Re: how to get bluetooth pc105 keyboards to work with N900
 
Can you tell me what tools or scripts you are using?

As I said, the pairing seems to work from the perspective of the N900 but the keyboard doesn't seem to recognise that it has been paired. I've tried playing with the BT HID scripts which made no difference. I did modify /etc/bluetooth/main.conf as per http://wiki.maemo.org/Fremantle_Unsu...tooth_profiles

I played with the keyboard quite a bit using both PR1.1 and PR1.2 and never had a problem getting the connection established, only with layout issues. I'm pleased that someone has made these work with PR1.3, but since my problem started exactly with I installed PR1.3 I am assuming that something has gone wrong in the process. But I'm at a loss as to what I could do next.

avidscavenger 2010-11-02 01:57

Re: how to get bluetooth pc105 keyboards to work with N900
 
Update: looking in /var/log/syslog I see the occasional line

Quote:

[1181]: Unknown connection type: HID
where process 1181 is executing /usr/bin/hildon-status-menu

Other possibly suspect lines immediately following the pairing are:

Quote:

Nov 2 12:53:38 Nokia-N900 bluetoothd[1009]: link_key_request (sba=D8:75:33:CE:17:67, dba=00:19:15:29:96:34)
Nov 2 12:53:38 Nokia-N900 bluetoothd[1009]: pin_code_request (sba=D8:75:33:CE:17:67, dba=00:19:15:29:96:34)
Nov 2 12:53:40 Nokia-N900 bluetoothd[1009]: link_key_notify (sba=D8:75:33:CE:17:67, dba=00:19:15:29:96:34, type=0)
Nov 2 12:53:41 Nokia-N900 [1181]: GLIB WARNING ** default - Profile: 00001124-0000-1000-8000-00805f9b34fb
Nov 2 12:53:41 Nokia-N900 [1181]: GLIB WARNING ** default - Profile: 00001200-0000-1000-8000-00805f9b34fb

maartenmk 2010-11-02 09:23

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by avidscavenger (Post 860315)
Can you tell me what tools or scripts you are using?

As far as I can remember I followed the instructions from e.g. post #27 (before upgrading to 1.3, I did not need to redo them), and I use the command from the first post (in a QB widget).
Qole's watcher script does not work for me.

Did /etc/bluetooth/main.conf perhaps get reset, so the HID profile is not loaded? For me it was not, but I did backup all my settings, and didn't do a full reflash.

avidscavenger 2010-11-03 00:19

Re: how to get bluetooth pc105 keyboards to work with N900
 
Hmmm, no real difference from what I did. I've confirmed that /etc/bluetooth/main.conf is as it should be.

@ Mr Ben I think I'm getting the same symptoms you in post #333 I noticed that the BT icon briefly changes to blue, then back to white, just as the keyboard reverts to discoverable mode. Have you found a solution?

kureyon 2010-11-03 03:31

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by avidscavenger (Post 861579)
@ Mr Ben I think I'm getting the same symptoms you in post #333 I noticed that the BT icon briefly changes to blue, then back to white, just as the keyboard reverts to discoverable mode. Have you found a solution?

Those symptoms are what happens when I don't do this:

Quote:

Originally Posted by qobi (Post 490777)
Then as user do:
$ setxkbmap -device 4 -I -I/usr/share/X11/xkb-chinook -rules base -model pc105 -layout us
Then type a key (any key) on the internal keyboard. Now the external keyboard should work.

I don't know why you need to type a key on the internal keyboard for this to take effect.

However I tried it just now and I didn't need to "type a key on the internal keyboard". Not sure whether this was a fluke or because of PR1.3 or of the latest BT HID Scripts.

avidscavenger 2010-11-03 06:29

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by kureyon (Post 861689)
Those symptoms are what happens when I don't do this:

How are you able to do that when the keyboard isn't even connected?

I just tried it anyway (from an ssh over usb connection) and got the following:

Quote:

X Error of failed request: 134
Major opcode of failed request: 142 (XKEYBOARD)
Minor opcode of failed request: 23 (XkbGetKbdByName)
Value in failed request: 0xff000004
Serial number of failed request: 9
Current serial number in output stream: 9

kureyon 2010-11-03 09:21

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by avidscavenger (Post 861781)
How are you able to do that when the keyboard isn't even connected?

The symptoms are: when I switch on the keyboard the BT icon switches to blue (indicating keyboard is connected - however note that I haven't looked into the logs to see whether it has really connected), now if I do not press a key on internal keyboard then after a few seconds the BT icon changes back to white (indicating keyboard is disconnected), but if I do press a key on internal keyboard the BT icon stays blue and stays connected and useable.

avidscavenger 2010-11-03 09:30

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by kureyon (Post 861897)
... but if I do press a key on internal keyboard the BT icon stays blue and stays connected and useable.

OK I just confirmed that I have different symptoms. The icon changes back to white whether or not I press a key on the internal keyboard. Actually it changes back so fast that I have to hurry to close the Bluetooth configuration gui to catch it before it changes.

kureyon 2010-11-03 09:45

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by avidscavenger (Post 861910)
Actually it changes back so fast that I have to hurry to close the Bluetooth configuration gui to catch it before it changes.

I'm not sure which gui you're referring to but the standard operating procedure for using BT (for me at least) is to enable BT, the BT white icon appears on the status area. Switch on the BT device and in most cases they auto initiate a connection to the N900 (headsets, my BT mouse). However some, like my keyboard, I need to press a key (on the BT keyboard) for it to start auto connect to N900.

Mr. Ben 2010-11-03 13:29

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by avidscavenger (Post 861579)
Hmmm, no real difference from what I did. I've confirmed that /etc/bluetooth/main.conf is as it should be.

@ Mr Ben I think I'm getting the same symptoms you in post #333 I noticed that the BT icon briefly changes to blue, then back to white, just as the keyboard reverts to discoverable mode. Have you found a solution?

Unfortunately, no. I basically kept retracing my steps (and yes, I did press a key on the keypad)... since this happened within the first week of having got my BT keyboard, I returned the thing and got a refund. It would have been nice to have but far from essential.

avidscavenger 2010-11-04 00:32

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by kureyon (Post 861921)
I'm not sure which gui you're referring to

Sorry I wasn't clear. What you describe more closely resembles what I had before I upgraded to PR1.3 - though I never had to push a key on the internal keypad to make it work.

Now, the only way I can get the icon to turn blue is by re-pairing the keyboard. Thus the gui I was talking about was the bluetooth devices setup. When I pair the keyboard, the BT icon goes blue for a couple of seconds, then back to white. At the same instant the keyboard goes back to discoverable mode. Pressing keys on the keyboard (internal or bluetooth) has no effect.

My interpretation is that the BT keyboard hasn't recognised that it is paired, so jumps back to discoverable mode. I guess I need to try using it with another computer and/or try another device with the N900. But given that the problem started happening exactly when I did the upgrade to PR1.3, my money is still on the problem lying with PR1.3.

Other suspicions: I installed advanced-interface-switcher (which controls among other things the bluetooth interface) but it didn't work with PR1.3 so I removed it. But it may have left a mess in its place.

Or it could have been just that I did an upgrade via pc-suite, which wasn't as smooth a ride as I hoped. If I get no joy by the time I really need to use the keyboard I'll flash a virgin PR1.3 image and start again.

[EDIT]
I just did a complete factory reset, installing both PR1.3 and eMMC images. It made zero difference to the behaviour. I guess it's time to wait for Nokia to come up with a solution to bluetooth problems with PR1.3 :(
[/EDIT]

xopher_mc 2010-11-13 19:34

Re: how to get bluetooth pc105 keyboards to work with N900
 
+1 for avidscavenger's problem

___________

Problem solved, low batteries! :o

avidscavenger 2010-11-16 01:38

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by xopher_mc (Post 872589)
Problem solved, low batteries! :o

So you don't have the problem any more??? (I charged my batteries just to be sure, but it made no difference) Can you tell me exactly how you made it work? Thanks!

maartenmk 2010-11-16 06:44

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by avidscavenger (Post 874621)
So you don't have the problem any more??? (I charged my batteries just to be sure, but it made no difference) Can you tell me exactly how you made it work? Thanks!

Again this is of little help... I uninstalled the BT HID scripts (I wanted to get rid of the mouse driver since it messes up the kinetic scrolling), and now I have exactly the same problem as you do, even after reinstalling the BT scripts.

There is a new package called Extkbd, did you try that? I think it uses the same methods, so I am not hopeful, but who knows.

avidscavenger 2010-11-16 07:00

Re: how to get bluetooth pc105 keyboards to work with N900
 
@ maartenmk - I just tried extkbd but, as predicted it didn't work. Clearly you have to be able to pair the keyboard before you can deal with the layout etc.

But it looks promising for configuring external usb keyboards, which can now be used thanks to the h-e-n project.

[EDIT]
After some very prompt help on the extkbd thread thread: http://talk.maemo.org/showthread.php?t=65577 I can now happily report that my keyboard works again.
[/EDIT]

guoyuucla 2010-12-16 17:43

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by technosopher (Post 730817)
I've figured out how to connect non-HID (ie, SPP) bluetooth keyboards! It turns out that once you establish the initial bluetooth connection (ie, with rfcomm connect /dev/rfcomm0 XX:XX:XX:XX:XX:XX), you need to run an intermediary driver binary called kbdd, which can handle a fairly impressive range of non-HID keyboards. I wasn't immediately able to find a pre-compiled binary for Freemantle, so I went ahead and compiled my own, which you can download here. Usage is extremely staightforward, but be sure to read these instructions anyway.
Now on to applying the correct layout settings! (The keyboard may be connected, but I'm now having the same keymap-related woes that many of the rest you have reported).

Many thanks to those who helped me get this far!

EDIT: It turns out that this svelte little daemon package may also help with many of the keymap problems that people have been running into - because if you download the kbdd source, you can actually code specific keyboard layouts directly into the compiled executable. I know this because the supplied profile for my particular keyboard (a freedom model) was actually somewhat incorrect, and I discovered that the most effective and painless way to fix those errors was simply to go into the source code and move keys around. Granted, this approach only works (a) if someone has already set up a base profile for your model of keyboard, or (b) you have a fairly sophisticated understanding of the physical architecture of your keyboard, but I figured it was worth describing here nonetheless.

Anyway, the gist is that I now have a non-HID Freedom keyboard running pretty much flawlessly. Thanks again to everyone who made that possible!


I also have a spp keyboard. But it appears the kbdd file and the instruction link are both broken. Does anyone still has the binary and the instruction? Thanks in advance.

macer 2011-05-16 14:41

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by ldrn (Post 696831)
Lots of thanks to Qole; I was able to modify his instructions to get x2x working with all the normal keyboard buttons to share my laptop's keyboard and mouse. :D

I did have to make one change; enter wasn't working quite right. I had to press it twice on the terminal, and it didn't work at all in some other programs. Editing the pc file under symbols (both copies) to change KPEN to Return and RTRN to KP_Enter (to match the default rx-51 file) fixed that, though.

Thank you so much. I was looking everywhere for that information. It drove me crazy. Although. The file to change (at least for me) was /usr/share/X11/xkb/symbols/us

I just added your suggestion to the standard keyboard layouts and my su8w works just like it should. Later I am going to figure out how to map the special keys (if I can). Thanks again.

demolition 2011-07-11 00:41

Re: how to get bluetooth pc105 keyboards to work with N900
 
2 Attachment(s)
Feeling a bit foolish at the moment and wondered whether anyone might be able to help. I've looked around quite a lot for this but probably not under the most obvious stone - most of the information seems to be about how to get the kb to map correctly. I'm falling at the first fence - I cannot get the devices to pair!

I'm trying to pair a BT-KB (MS mobile BTKB 6000) with my N900.
I have edited /etc/bluetooth/main.conf as recommended and I have extkb installed.
The problem is the devies won't pair. This before I get to trying to make various keys known to be difficult to work!

On pairing, a pin is automatically generated. Do I need to alter it?
Below is a screenshot of a pairing attempt.

All assistance gratetfully received.

SubCore 2011-07-11 12:31

Re: how to get bluetooth pc105 keyboards to work with N900
 
did you try this?

also, try manually setting the passcode to "0000" or "1234" (or maybe you'll find the default passcode your keyboard uses on the net).

some BT keyboards also allow you to enter the passcode during pairing - type the passcode then hit enter and see if that helps.

demolition 2011-07-11 13:14

Re: how to get bluetooth pc105 keyboards to work with N900
 
in the instructions for the KB, it says:
"In the bluetooth programme, use the option to add a new device and follow the instructions on the screen. If you are prompted for a passkey, let the program create it."

- so, I thought it had more to do with the N900 than the KB. 0000 and 1234 didn't work, unfortunately.

I'll have a look at doing it manually with the terminal commands... brb

Edit:
Does it matter if I'm running power-kernel v0.46?

demolition 2011-07-11 14:02

Re: how to get bluetooth pc105 keyboards to work with N900
 
Okay, feeling increasingly stupid now.
As "root"...
Code:

/home/user # dbus-send --system --print-reply --dest=org.bluez \
Code:

> / org.bluez.Manager.DefaultAdapter
method return sender=:1.216 -> dest=:1.376 reply_serial=2
  object path "/org/bluez/2623/hci0"

Code:

/home/user # dbus-send --system --print-reply --dest=org.bluez \
Code:

> dbus-send --system --print-reply --dest=org.bluez \
> /org/bluez/2623/hci0/dev_00_07_55_39_E1 \
> org.bluez.Input.Connect
Must use org.mydomain.Interface.Method notation, no dot in "/org/bluez/2623/hci0/dev_00_07_55_39_E1"

Is the "dev_ ..." the mac address for the N900 or the keyboard? If N900, mine is 20 : D6 : 07 : 55 : 39 : E1 *, which doesn't quite fit with the format given in post #161. I can't find the mac address for the kb.

Slightly lost now but I'll keep trying. Hopefully I'll get it.

* extra spaces inserted to prevent smilies.

SubCore 2011-07-12 08:44

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by demolition (Post 1048880)
Is the "dev_ ..." the mac address for the N900 or the keyboard?

that should be the BT keyboard's address. you can get it's mac via "hcitool scan" (as described by JoHnY here).

Quote:

If N900, mine is 20 : D6 : 07 : 55 : 39 : E1 *, which doesn't quite fit with the format given in post #161.
yes it does :) those "xx"es are just placeholders. every mac address has the same length, twelve bytes. (six pairs)

btw, all those commands were single commands split by a backslash ( \ ). using a backslash, you can write a multiline command, by "masking" the linebreak with it.
JoHnY did the same in his post (manually connecting the BT keyboard), he just wrote every command in one line.

demolition 2011-07-12 14:07

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by SubCore (Post 1049363)
that should be the BT keyboard's address. you can get it's mac via "hcitool scan" (as described by JoHnY here).

Thank you. I'll get on to it. I can't find the KB's mac address. Scanning for it would really help.

Quote:

yes it does :) those "xx"es are just placeholders. every mac address has the same length, twelve bytes. (six pairs)
I wasn't clear. I got that the xx pairs and underscores was a mac-address. but the one for the N900 is in a different form. The _07_ is in the wrong place, which makes sense seeing as it should have been for the KB. That's also why the code I used was only 5 pairs - because I was just giving the pairs to the right of the _07_.

Quote:

btw, all those commands were single commands split by a backslash ( \ ). using a backslash, you can write a multiline command, by "masking" the linebreak with it.
JoHnY did the same in his post (manually connecting the BT keyboard), he just wrote every command in one line.
Ahh, ok - like how std::cout can be one long line or put << at the start of each new line of code?

When I've got this ironed out, think I need to update the wiki with some pairing instructions. Thanks for your help so far - I'll post back if I have any more troubles, hopefully not though!

hypnotoad123 2012-01-02 13:27

Re: how to get bluetooth pc105 keyboards to work with N900
 
Quote:

Originally Posted by guoyuucla (Post 898212)
I also have a spp keyboard. But it appears the kbdd file and the instruction link are both broken. Does anyone still has the binary and the instruction? Thanks in advance.

This reply is maybe a little late but now kbdd is available and packaged for maemo:
http://maemo.org/packages/view/kbdd/

Version kbdd 0.10Maemo0-4 should work for quite many spp keyboards. It is in extras-devel but there are virtually no dependencies and it should not harm a running system. You can install the .deb from the webpage if you do not want to add extras-devel to the apt repository.

Help on building a nice GUI for the driver selection would be appreciated.


All times are GMT. The time now is 17:54.

vBulletin® Version 3.8.8