maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N800 (https://talk.maemo.org/forumdisplay.php?f=25)
-   -   After upgrade to 2008 can't pair su-8w bluetooth keyboard (https://talk.maemo.org/showthread.php?t=62343)

n800fm 2010-09-15 18:07

After upgrade to 2008 can't pair su-8w bluetooth keyboard
 
Hi forum

I've recently flashed the N800 to OS Version 5.2008.43-7 and find that I can NOT pair the Nokia SU-8W bluetooth keyboard. I could pair on the previous version, before the upgrade.

I've done a search of this problem, and there appears to be an issue with this procedure.
Having flashed the IT, and restored my backup the N800 'finds' the keyboard and issues a code, which i type in, but immediately get the "pairing failed" error. That's happened on many occasions.

Any ideas as to whats happening?

thanks

lma 2010-09-15 18:18

Re: After upgrade to 2008 can't pair su-8w bluetooth keyboard
 
It's a known bug (the pairing gets screwed up when you restore a backup from an earlier version), see here for details and workarounds.

n800fm 2010-09-16 10:59

Re: After upgrade to 2008 can't pair su-8w bluetooth keyboard
 
Quote:

Originally Posted by lma (Post 817102)
It's a known bug (the pairing gets screwed up when you restore a backup from an earlier version), see here for details and workarounds.


Thanks for that 'ima'. I read the entire post and users seemed to have different solutions with varying degrees of success. One poster took the battery out, left it for a few minutes and Voila!!
Well, although I would have liked THAT approach, it didn't work for me. So, here's the thing: If you could just list the step-by-step commands I should be OK....from what I've read (newbie alert!!)

I can get to x-term and then after THIS: cd /var/lib/bluetooth there is something about removing the line with the BT keyboard......?

Hope you can help....

regards

lma 2010-09-16 11:13

Re: After upgrade to 2008 can't pair su-8w bluetooth keyboard
 
If I understand correctly (disclaimer: I don't have a bluetooth keyboard or a bora-era backup so can't test) you just need to get rid of /var/lib/bluetooth/<your:bt:mac:address>. Just to be on the safe side, I would move it somewhere else instead.

So, get a root shell, run

Code:

mv /var/lib/bluetooth/* /root
and reboot the device (not sure if this is necessary, but just in case the old data is lingering around in some daemon's memory).

Note that this will probably lose all bluetooth settings and pairings so you'll have to recreate them by hand. Do not try to restore the old backup again, make a fresh one after you get the keyboard working.

n800fm 2010-09-16 12:23

Re: After upgrade to 2008 can't pair su-8w bluetooth keyboard
 
This is what I tried, most of the posters seem to like this one:

Start xterm
$ cd /var/lib/bluetooth/XX:XX..XX:XX/
$ grep SU-8W names


The final step is to delete the line with the BT keyboard.

What is the actual command to do that, pls??

Thanks

lma 2010-09-16 12:34

Re: After upgrade to 2008 can't pair su-8w bluetooth keyboard
 
Use an editor, or

Code:

mv names names.bak
grep -v SU-8W names.bak > names


n800fm 2010-09-16 13:59

Re: After upgrade to 2008 can't pair su-8w bluetooth keyboard
 
Ok - last question. Is this the total of the commands?? And if it is - could you explain EACH line to a newbie. Somebody in the thread asked for this, but seemed to be ignored.

Start xterm
$ cd /var/lib/bluetooth/XX:XX..XX:XX/
$ grep SU-8W names

mv names names.bak
grep -v SU-8W names.bak > names


Thanks again

lma 2010-09-16 23:07

Re: After upgrade to 2008 can't pair su-8w bluetooth keyboard
 
Quote:

Originally Posted by n800fm (Post 817902)
Ok - last question. Is this the total of the commands?? And if it is - could you explain EACH line to a newbie.

Sure:

Quote:

cd /var/lib/bluetooth/XX:XX..XX:XX/
Change directory to /var/lib/bluetooth/XX:XX..XX:XX/
Quote:

grep SU-8W names
Show all lines in file names containing the string "SU-8W" (not strictly necessary, just informational).

Quote:

mv names names.bak
Rename the file names to names.bak.

Quote:

grep -v SU-8W names.bak > names
Extract all lines from file names.bak that do not contain the string "SU-8W" and write them to a file called names.

n800fm 2010-09-17 13:11

Re: After upgrade to 2008 can't pair su-8w bluetooth keyboard
 
Thanks for your help lma. Unfortunately it didn't work for me - I followed it to the letter...and I did gainroot.

This is what worked for me :
1) reflashed (again!) but THIS time I didn't restore the backup.

2) Then powered on the IT, paired the BT keyboard and ..then, restored.

3) Deleted the pairing of the keyboard and...re-paired.

Now, as soon as I power up the keyboard - immediate hook-up. (BT enabled, of course)

Thanks anyways - I now have a better understanding of the commands.:)


All times are GMT. The time now is 10:20.

vBulletin® Version 3.8.8