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)

qobi 2010-01-25 00:55

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

Originally Posted by olighak (Post 492730)
Now to do the major OTA to week 51.

Update 2:
Works, but only after stopping and starting bluetoothd

What if you reboot now. You should be able to connect to the keyboard without stopping and starting bluetoothd. And you shouldn't need to repair. And you shouldn't need to click on connect. All you should need to do is turn on the external keyboard and press a (few) key(s) on the external keyboard. It should then connect (after a few seconds). The bluetooth symbol on the top of the screen should turn from white to blue. And you should be able to type. Then you can issue the setxkbmap command (and type a key on the internal keyboard) and it should work.

Can you verify this?

olighak 2010-01-25 00:56

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

Originally Posted by qobi (Post 492806)
What if you reboot now. You should be able to connect to the keyboard without stopping and starting bluetoothd. And you shouldn't need to repair. And you shouldn't need to click on connect. All you should need to do is turn on the external keyboard and press a (few) key(s) on the external keyboard. It should then connect (after a few seconds). The bluetooth symbol on the top of the screen should turn from white to blue. And you should be able to type. Then you can issue the setxkbmap command (and type a key on the internal keyboard) and it should work.

Can you verify this?

Nope, it became unable to connect after reboot. And I canīt get it back in.

Modules hid and hidp have also disappeared.

Update:
Hang on I am going to reflash. I might have screwed this up when I tried to restore my backup settings and programs. Both those operations failed, but something might have changed nevertheless.

qobi 2010-01-25 01:06

Re: how to get bluetooth pc105 keyboards to work with N900
 
What if after you upgrade to 51 you delete the existing entry for the keyboard in the bluetooth menu and then repair? I vaguely remember some post to the effect that the format of the bluetooth connection database has changed. But I can't find the post now and I may misremember.

The hid and hidp modules disappearing is a symptom, not a cause. The modules should be installed automatically by the bluetooth demon. And for reasons that I don't understand, the bluetooth demon is not starting up configured to do keyboard input.

olighak 2010-01-25 01:10

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

Originally Posted by qobi (Post 492818)
What if after you upgrade to 51 you delete the existing entry for the keyboard in the bluetooth menu and then repair? I vaguely remember some post to the effect that the format of the bluetooth connection database has changed. But I can't find the post now and I may misremember.

The hid and hidp modules disappearing is a symptom, not a cause. The modules should be installed automatically by the bluetooth demon. And for reasons that I don't understand, the bluetooth demon is not starting up configured to do keyboard input.

I donīt get it in when I do that. In fact I am afraid that trying to re-pair or reinstall it may be what breaks the link so to speak.

In other words I am starting to believe that the keyboard only works because itīs done so before. But when you re-pair it you break the old link and start at the beginning.

Update:
Just to let you know I am now upgrading again from week 46 to week 51.

jtkim 2010-01-25 01:32

Re: how to get bluetooth pc105 keyboards to work with N900
 
3 Attachment(s)
Quote:

Originally Posted by olighak (Post 492786)
So the lesson is.

If you want a bluetooth keyboard currently. Reflash to firmware from week 42. Setup your bluetooth keyboard by editing main.conf and pairing with it.

Test the keyboard function and then upgrade by OTA to week 44, test keyboard, and upgrade by OTA to week 51. When using week 51 firmware you need to use stop bluetoothd and start bluetoothd to get the keyboard to work.

Now we just need to figure out what is preserved in the OTA that is left out of the firmware when you reflash, and how we can make a install package for that.

In order to get to these differences, I've attached my /etc/main.conf (renamed to "main.txt" to keep the attachment facility happy) file and the output of "lsmod" and of "ps aux" in files "lsmod.txt" and "ps.txt", respectively. I ran "ps" and "lsmod" after pairing my keyboard but not getting a new device according to hildon-im-xkbtool. Can you compare these to what you get after successfully connecting up with the keyboard, or post your main.conf, kernel module and process lists?

Best regards, Jan

qobi 2010-01-25 01:50

Re: how to get bluetooth pc105 keyboards to work with N900
 
More important than the output of lsmod and ps is to see the contents of
/etc/event.d/bluetooth-sysinfo
and
/etc/event.d/bluetoothd
Also do an ls -l on them.

olighak 2010-01-25 01:55

Re: how to get bluetooth pc105 keyboards to work with N900
 
Ok guys, Jan and Jeff/Jeffrey

This may be the most stupid question ever.

But what is the easiest was to get a log like this out of X-terminal?

The phone is about to restart after the week 46 to 51 OTA update.

Best wishes,
Oli

qobi 2010-01-25 01:56

Re: how to get bluetooth pc105 keyboards to work with N900
 
Could you also do an ls -l /usr/sbin/bluetoothd on 51.

qobi 2010-01-25 01:59

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

Originally Posted by olighak (Post 492854)
Ok guys, Jan and Jeff/Jeffrey

This may be the most stupid question ever.

But what is the easiest was to get a log like this out of X-terminal?

The phone is about to restart after the week 46 to 51 OTA update.

Best wishes,
Oli

Redirect as much as you can to files. The rest, cut and paste into vi.
A more powerful way is to install emacs and run in a shell buffer then save it as a file.

qobi 2010-01-25 02:08

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

Originally Posted by jtkim (Post 492836)
In order to get to these differences, I've attached my /etc/main.conf

Your /etc/bluetooth/main.conf is identical to mine except for a comment.


All times are GMT. The time now is 01:09.

vBulletin® Version 3.8.8