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)

jtkim 2010-01-24 02:48

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

Originally Posted by olighak (Post 491348)
The two hid modules are not installed. The other 3 are. So Nokia likely did remove the keyboard support.

Any tips on getting them back or installing them separately?

I'm quite new at this, but I've reflashed a few times so I am not too afraid at trying this and that.

Jan can you do sudo lsmod in X-Terminal and see if hid and hidp are also missing from your list of installed modules?

They weren't inserted into my kernel either, but "modprobe hid" and "modprobe hidp" inserted them readily. So the modules themselves aren't missing.

Best regards, Jan

qobi 2010-01-24 02:48

Re: how to get bluetooth pc105 keyboards to work with N900
 
It appears that they kernel will still support it. But something appears to have changed in the substrate that starts up bluetoothd. But I don't know enough about this to figure it out. (The init system on Maemo is different than Debian and I don't know what is starting and configuring bluetoothd.) Perhaps someone else who knows more can help.

olighak 2010-01-24 02:50

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

Originally Posted by jtkim (Post 491368)
They weren't inserted into my kernel either, but "modprobe hid" and "modprobe hidp" inserted them readily. So the modules themselves aren't missing.

Best regards, Jan

Is that the actual command you write? modprobe and the module name? I am getting a modprobe not found error.

qobi 2010-01-24 02:57

Re: how to get bluetooth pc105 keyboards to work with N900
 
The Limux modprobe command takes a kernel module name as its argument and installs that module and all dependent modules.

But my guess is that that alone won't help. Most of the time things are set up so that modules are loaded automatically when needed. So my guess is that the init scripts for bluetoothd have changed to not start hid.

qobi 2010-01-24 03:07

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

Originally Posted by olighak (Post 491363)
1. Plug your phone up to your computer and select Mass Storage mode. Open the .tar up in Winzip or another program that opens Zip files. Extract the contents to your desktop.

2. After extracting the .tar you should have a directory called xkb-chinook on your desktop. Copy that directory into the tmp folder on your N900 (which you find as a mass storage drive in windows explorer)

It is safer and easier to do this directly on the N900 rather than a Windows desktop by:

1. copying the file xkb-chinook.tar from my earlier post to /tmp on your N900.
2. then do

$ sudo gainroot
# cd /tmp
# tar xf xkb-chinook.tar
# mv -i /tmp/xkb-chinook /usr/share/X11/.
# exit

There are several reasons you want to do the above as root on a Unix/Linux machine on a Unix/Linux file system (such as ext2, ext3, ...). Among them, to preserve file/directory uids, gids, and permissions (and ctimes and mtimes while you are at it), as well as symlinks.

jtkim 2010-01-24 10:42

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

Originally Posted by olighak (Post 491373)
Is that the actual command you write? modprobe and the module name? I am getting a modprobe not found error.

You need to be root for them to work. They live in /sbin and that directory is not in the PATH of user.

The modprobe program is part of the module-init-tools package. My guess is that that's always installed but if /sbin/modprobe doesn't exist on your system, that's the package you need to install.

This won't solve the bluetooth keyboard problem, though.

Best regards, Jan

dvergin 2010-01-24 16:31

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

Originally Posted by qobi (Post 491372)
...(The init system on Maemo is different than Debian and I don't know what is starting and configuring bluetoothd.)

Code:

$ ls /etc/event.d/blue*
/etc/event.d/bluetooth-sysinfo  /etc/event.d/bluetoothd

The init system is called upstart: http://www.google.com/search?btnG=Go...arch&q=upstart

HTH

dnastase 2010-01-24 17:29

Re: how to get bluetooth pc105 keyboards to work with N900
 
qobi, you are the man!

Using your latest instructions I got my Stowaway ThinkOutside "Sierra" BT keyb to work w/ the N900, PR1.1 !!

The thing that I (somehow) missed, is that I have to type something on the INTERNAL keyboard ! So, other users, pls keep this in mind.

olighak 2010-01-24 17:31

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

Originally Posted by dnastase (Post 492162)
qobi, you are the man!

Using your latest instructions I got my Stowaway ThinkOutside "Sierra" BT keyb to work w/ the N900, PR1.1 !!

The thing that I (somehow) missed, is that I have to type something on the INTERNAL keyboard ! So, other users, pls keep this in mind.

? Are you sure you are running 1.1, firmware from week 51?

If you follow the discussion and check whether hid and hidp modules are installed on your device, are they?

Did you upgrade OTA or flash to that firmware?

dnastase 2010-01-24 17:38

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

Originally Posted by olighak (Post 492169)
? Are you sure you are running 1.1, firmware from week 51?

If you follow the discussion and check whether hid and hidp modules are installed on your device, are they?

Did you upgrade OTA or flash to that firmware?

Yes: 2.2009.51-1.002, upgraded OTA (app manager).

/home/user # lsmod | grep -i hid
hidp 12544 0
hid 31940 1 hidp
l2cap 21060 17 hidp,rfcomm,bnep
bluetooth 53596 10 hidp,rfcomm,sco,bnep,l2cap,hci_h4p

Did not do anything special about the modules/bluetooth. It's how it is after a reboot.

olighak 2010-01-24 17:41

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

Originally Posted by dnastase (Post 492180)
Yes: 2.2009.51-1.002, upgraded OTA (app manager).

/home/user # lsmod | grep -i hid
hidp 12544 0
hid 31940 1 hidp
l2cap 21060 17 hidp,rfcomm,bnep
bluetooth 53596 10 hidp,rfcomm,sco,bnep,l2cap,hci_h4p

Did not do anything special about the modules/bluetooth. It's how it is after a reboot.

Interesting. Now I am tempted to backup, reflash my device to week 44 and then do OTA to week 51 and see what happens.....

Thanks!

dnastase 2010-01-24 17:44

Re: how to get bluetooth pc105 keyboards to work with N900
 
Did you do the /etc/bluetooth/main.conf trick from

http://talk.maemo.org/showthread.php?t=34872

?

olighak 2010-01-24 17:46

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

Originally Posted by dnastase (Post 492186)
Did you do the /etc/bluetooth/main.conf trick from

http://talk.maemo.org/showthread.php?t=34872

?

Yep, and I did have my bluetooth keyboard working prior to updating from the week 44 firmware. It is a palm branded bt keyboard, but I think I remember seeing the same identical keyboard sold as a StowAway keyboard some years back.

The firmware currently installed was flashed to the week 51 firmware, as I had bricked the phone several times messing around with reconfiguring the russian keyboard to something useful to me.

After flashing to week 51 I canīt get the bt keyboard to work. I can pair with it but it wonīt connect, even after following all steps found here and there. Jan, who also took part in this thread had the same problem on his week 51 firmware. qobi is running the week 44 firmware.

filologen 2010-01-24 17:52

Re: how to get bluetooth pc105 keyboards to work with N900
 
just for your information, I also updated to the latest firmware OTA, and I have a functional setup with a Nokia SU-8W.

I did however have to stop and start bluetoothd (issuing "bluetoothd stop", "bluetoothd start" as root) before I could connect the keyboard.

cardiff-blues 2010-01-24 18:00

Re: how to get bluetooth pc105 keyboards to work with N900
 
thanks for your help oli. Much appreciated.

qobi 2010-01-24 18:55

Re: how to get bluetooth pc105 keyboards to work with N900
 
If you flash, it will overwrite any changes you made to /etc/bluetooth/main.conf so you will need to redo that change. If you do OTA then it uses apt-get which will preserve those changes. olighak and Jan, can you try to redit /etc/bluetooth/main.conf and see whether that works. you will need to stop bluethood and start bluetoothd as root after you edit /etc/bluetooth/main.conf but you should not have to do that after reboots.

cardiff-blues 2010-01-24 19:06

Re: how to get bluetooth pc105 keyboards to work with N900
 
forgive this basic question.
i have downloaded xkb-chinook.tar and saved it to tmp from n900 but when i list tmp it is not being displayed. Any ideas?

rabilancia 2010-01-24 19:12

Re: how to get bluetooth pc105 keyboards to work with N900
 
It's probably in /home/usr/MyDocs/tmp not in /tmp

cardiff-blues 2010-01-24 19:27

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

Originally Posted by qobi (Post 491383)
It is safer and easier to do this directly on the N900 rather than a Windows desktop by:

1. copying the file xkb-chinook.tar from my earlier post to /tmp on your N900.
2. then do

$ sudo gainroot
# cd /tmp
# tar xf xkb-chinook.tar
# mv -i /tmp/xkb-chinook /usr/share/X11/.
# exit

There are several reasons you want to do the above as root on a Unix/Linux machine on a Unix/Linux file system (such as ext2, ext3, ...). Among them, to preserve file/directory uids, gids, and permissions (and ctimes and mtimes while you are at it), as well as symlinks.

/home/user/MyDocs/tmp # ls
xkb-chinook xkb-chinook.tar
/home/user/MyDocs/tmp # mv -i /tmp/xkb-chinook /usr/share/X11/.
mv: cannot rename '/tmp/xkb-chinook': No such file or directory

rabilancia 2010-01-24 19:34

Re: how to get bluetooth pc105 keyboards to work with N900
 
Since you get this:
/home/user/MyDocs/tmp # ls
xkb-chinook xkb-chinook.tar

Try this:
/home/user/MyDocs/tmp # mv -i ./xkb-chinook /usr/share/X11/.

rabilancia 2010-01-24 19:36

Re: how to get bluetooth pc105 keyboards to work with N900
 
This should also work:
# mv -i /home/user/MyDocs/tmp/xkb-chinook /usr/share/X11/.

jtkim 2010-01-24 20:18

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

Originally Posted by qobi (Post 492272)
If you flash, it will overwrite any changes you made to /etc/bluetooth/main.conf so you will need to redo that change. If you do OTA then it uses apt-get which will preserve those changes. olighak and Jan, can you try to redit /etc/bluetooth/main.conf and see whether that works. you will need to stop bluethood and start bluetoothd as root after you edit /etc/bluetooth/main.conf but you should not have to do that after reboots.

Ok, I've checked everything (I had edited my /etc/bluetooth/main.conf before jumping into this thread yesterday) and can't find anything I've missed. Maybe someone else can, here's a session transcript of the relevant
Code:

Nokia-N900-42-11:/etc/bluetooth# grep -v '^#' main.conf
[General]
DisablePlugins = network,hal
Name = Nokia N900
Class = 0x00020c
DiscoverableTimeout = 0
PairableTimeout = 0
PageTimeout = 8192
DiscoverSchedulerInterval = 0
InitiallyPowered = false
RememberPowered = true
ReverseServiceDiscovery = true
NameResolving = true

Nokia-N900-42-11:/etc/bluetooth# stop bluetoothd
bluetoothd (stop) running, process 4772
bluetoothd (stop) pre-stop, (main) process 4772
bluetoothd (stop) stopping, process 4772
bluetoothd (stop) killed, process 4772
bluetoothd (stop) post-stop
bluetoothd (stop) waiting

Nokia-N900-42-11:/etc/bluetooth# start bluetoothd
bluetoothd (start) waiting
bluetoothd (start) starting
bluetoothd (start) pre-start, process 4786
bluetoothd (start) spawned, process 4787
bluetoothd (start) post-start, (main) process 4787
bluetoothd (start) running, process 4787

Nokia-N900-42-11:/etc/bluetooth# hildon-im-xkbtool --list
ID 0, Name: "Virtual core pointer"
ID 1, Name: "Virtual core keyboard"
ID 2, Name: "TSC2005 touchscreen"
ID 3, Name: "omap_twl4030keypad"

After the "start bluetoothd" and before the "hildon-im-xkbtool --list" I pair the N900 and the iGO keyboard, I get the "Pairing complete" message but no new keyboard device with ID 4.

Best regards, Jan

cardiff-blues 2010-01-24 21:08

Re: how to get bluetooth pc105 keyboards to work with N900
 
following qobis instructions i have got to this stage and am getting the following...

~ $ setxkbmap -device 4 -I -I/usr/share/X11/xkb-chinook -rules base -model pc105 -layout us
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
~ $

rabilancia 2010-01-24 21:40

Re: how to get bluetooth pc105 keyboards to work with N900
 
Jan (jtkim),

I have exactly the same results: no new keyboard with device ID 4.

I then get the same error as "cardiff-blues" when I run the "setxkbmap" command. I suspect that the "Value in failed request: 0xff000004" line refers to not having a keyboard device with an ID of 4.

hmmm....

cardiff-blues 2010-01-24 21:49

Re: how to get bluetooth pc105 keyboards to work with N900
 
i just changed the device id 4 to a 3 and didn't get an error. will this cause any problems going forward?

jtkim 2010-01-24 21:58

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

Originally Posted by cardiff-blues (Post 492520)
i just changed the device id 4 to a 3 and didn't get an error. will this cause any problems going forward?

Well - if your devices end up the same as for me and for others who have posted in this thread, then you probably have changed the keymap of your built-in keyboard. If that's gone funny now you should be able to get it back to normal by rebooting -- the setxkbmap command should not have any permanent effects.

While I haven't gotten anything to work so far, it's pretty clear to me that the number following the "-device" option must be the ID of the bluetooth keyboard. If the bluetooth keyboard doesn't show up as a device, we don't have a handle for specifying that we want to alter the keymap for that device.

Best regards, Jan

rabilancia 2010-01-24 22:14

Re: how to get bluetooth pc105 keyboards to work with N900
 
Just to be clear, while I have my "iGo Think Outside" BT keyboard paired and the keymapping setup accomplished, my problem is that the the BT keyboard does not connect.

When I look at the my "Settings / Bluetooth / Devices" and edit the Think Outside Keyboard, it does not show a connect option. I suspect that if it did (and I could do so), then I would have a device 4.

FWIW, I got my n900 the day that PR 1.1 was released less than 2 weeks ago. I did an OTA update the first or scond time that I turned on the device.

Again, hmmm....

cardiff-blues 2010-01-24 22:20

Re: how to get bluetooth pc105 keyboards to work with N900
 
>>
When I look at the my "Settings / Bluetooth / Devices" and edit the Think Outside Keyboard, it does not show a connect option. I suspect that if it did (and I could do so), then I would have a device 4.
<<

Same here. What steps do i need to take to ensure the bluetooth settings are ok?

when i ran stop bluetooth it didn' do anything and said it couldn' find it

rabilancia 2010-01-24 22:26

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

Same here. What steps do i need to take to ensure the bluetooth settings are ok?
I wish I knew!

Quote:

when i ran stop bluetooth it didn' do anything and said it couldn' find it
It's "stop bluetoothd"

olighak 2010-01-24 22:28

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

Originally Posted by cardiff-blues (Post 492564)
>>
When I look at the my "Settings / Bluetooth / Devices" and edit the Think Outside Keyboard, it does not show a connect option. I suspect that if it did (and I could do so), then I would have a device 4.
<<

Same here. What steps do i need to take to ensure the bluetooth settings are ok?

when i ran stop bluetooth it didn' do anything and said it couldn' find it

you left out a d, it is bluetoothd

olighak 2010-01-24 22:34

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

Originally Posted by rabilancia (Post 492554)
Just to be clear, while I have my "iGo Think Outside" BT keyboard paired and the keymapping setup accomplished, my problem is that the the BT keyboard does not connect.

When I look at the my "Settings / Bluetooth / Devices" and edit the Think Outside Keyboard, it does not show a connect option. I suspect that if it did (and I could do so), then I would have a device 4.

FWIW, I got my n900 the day that PR 1.1 was released less than 2 weeks ago. I did an OTA update the first or scond time that I turned on the device.

Again, hmmm....

Ok. We've got 4 people upgraded to w51 who can't get it to work, and 2 who can. qobi is still running w42, which I myself got the keyboard to work with.

Maybe the key to their success was having connected the device prior to doing the upgrade. I don't want to flash to w42 today. I'll do it tomorrow during work. I'll then connect the keyboard, upgrade to w44 and try to connect and then upgrade to w51 and try to connect. We can then see where it drops off. Or if it works when doing that route.

cardiff-blues 2010-01-24 22:43

Re: how to get bluetooth pc105 keyboards to work with N900
 
anyone knows why this error occurs?

$ setxkbmap -device 4 -I -I/usr/share/X11/xkb-chinook -rules base -model pc105 -layout us
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

olighak 2010-01-24 22:46

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

Originally Posted by cardiff-blues (Post 492596)
anyone knows why this error occurs?

$ setxkbmap -device 4 -I -I/usr/share/X11/xkb-chinook -rules base -model pc105 -layout us
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

Yep, there is no bluetooth device connected as "device 4". Your bt keyboard is not connected and hence you can't tell the N900 which settings to use for it.

cardiff-blues 2010-01-24 23:04

Re: how to get bluetooth pc105 keyboards to work with N900
 
i seem to be able to pair the keyboard ok but just how does it know that the keyboard is going to be device 4?

also this applies to me as well
>>
When I look at the my "Settings / Bluetooth / Devices" and edit the Think Outside Keyboard, it does not show a connect option.
<<

what else should we be trying or checking?

olighak 2010-01-24 23:13

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

Originally Posted by cardiff-blues (Post 492641)
i seem to be able to pair the keyboard ok but just how does it know that the keyboard is going to be device 4?

also this applies to me as well
>>
When I look at the my "Settings / Bluetooth / Devices" and edit the Think Outside Keyboard, it does not show a connect option.
<<

what else should we be trying or checking?

Because you have already got devices occupying spots 0 through 3 so the next one has naturally got to be 4.

Welcome to the group :)

cardiff-blues 2010-01-24 23:18

Re: how to get bluetooth pc105 keyboards to work with N900
 
and how do i check these devices? Should i see them under bluetooth devices? Appologies if the question seems basic.

olighak 2010-01-24 23:24

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

Originally Posted by cardiff-blues (Post 492667)
and how do i check these devices? Should i see them under bluetooth devices? Appologies if the question seems basic.

Write the following into X-Terminal and hit enter/return.

hildon-im-xkbtool --list

This will give you a list of the devices in positions 0-3. These devices will normally be there when you are running the N900.

They include your touchscreen, your physical keyboard, your on-screen keyboard and one more which I donīt remember what was.

If you would disable your on-screen keyboard in the Settings menu on the N900 you should only have devices in positions 0-2, and no on-screen keyboard popping up on the list :)

cardiff-blues 2010-01-24 23:32

Re: how to get bluetooth pc105 keyboards to work with N900
 
thanks oli.

so for those who do have this working - can you provide anything else for us to check?

olighak 2010-01-24 23:56

Re: how to get bluetooth pc105 keyboards to work with N900
 
I just reflashed to week 42.

The keyboard works.

Now to do the minor OTA to week 44.

Update 1:
The keyboard works.

Now to do the major OTA to week 51.

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

olighak 2010-01-25 00:34

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

Originally Posted by olighak (Post 492730)
I just reflashed to week 42.

The keyboard works.

Now to do the minor OTA to week 44.

Update 1:
The keyboard works.

Now to do the major OTA to week 51.

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

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.


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

vBulletin® Version 3.8.8