maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Remapping N900 keyboard for idiots (https://talk.maemo.org/showthread.php?t=61197)

MrTab 2010-08-27 07:58

Remapping N900 keyboard for idiots
 
Hi,

My N900's great, but I'm struggling to use it as a word processor, which was the main reason I wanted it, due to the lack of a tab key.

When using Documents to Go, which is a very good product in most other respects, the additional character set (including tab) that can normally be brought up by pressing blue arrow and control doesn't work. The virtual keybaord doesn't contain tab either so that option has been removed.

Dataviz make themselves un-contactable and don't answer their support forum, so the only option remaining seems to be remapping one of the keys to tab.

I read this: http://wiki.maemo.org/Remapping_keyboard and a couple of threads on the topic but couldn't work out how to actually edit the file.

Is there a really simple step by step guide explaining how to do this somewhere? I don't know where to start and don't want to brick my Nokia.

Thanks,

MrTab

nephridium 2010-08-27 11:39

Re: Remapping N900 keyboard for idiots
 
Check my post here:

It's not "step by step", but if you have a look at my rx-51 file there you can see how it's done fairly easily.

If you are using the normal English layout have a look at the bottom section starting with
Code:

partial hidden alphanumeric_keys
xkb_symbols "english_base" {

each key is assigned four values, from left to right:
standard key, shift+key, sym+key, shift+sym+key

E.g. your beloved Tab is realized by Sym+Space; check out the third column in this line:
Code:

key <SPCE>  { [    space,          at,            Tab,            bar ]}
Hope this helps.

slender 2010-08-27 12:17

Re: Remapping N900 keyboard for idiots
 
Quote:

Originally Posted by nephridium (Post 799956)
..each key is assigned four values, from left to right:
standard key, shift+key, sym+key, shift+sym+key
...

Hmm. This third doesn't work on my keyb. I have nordic/finnish layout.

MrTab 2010-08-27 14:36

Re: Remapping N900 keyboard for idiots
 
Thanks nephridium,

I can't even get into it though, I tried installing Leafpad and Rootsh then typing
Quote:

cp usr/share/x11/xkb/symbols/nokia_vndr/rx-51
as suggested on some hacking site but to no avail - it just comes up with the error cp:cannot stat 'leafpad': No such file or directory.

I'm sure I'm missing something but I just don't get it.

nephridium 2010-08-27 19:56

Re: Remapping N900 keyboard for idiots
 
Argh, sorry, forgot to post the link to my post up there: http://talk.maemo.org/showpost.php?p=793872&postcount=7 . I was on the train and had to get off, so I just hit "submit" without double checking ;)

Download the rx-51.zip file from there and unpack it. I'd say open it on your PC and look at the aforementioned section in the file for which lines you want to use in yours.

First back it up though:
cp /usr/share/X11/xkb/symbols/nokia_vndr/rx-51 /home/user
This copies the file to your home folder. The tutorial states that you shouldn't put the backup copy into the same folder (/usr/share/X11/xkb/symbols/) or you might need to reflash. Then enter
sudo leafpad /usr/share/X11/xkb/symbols/rx-51
into the console. You have to use sudo because the file is protected. Then find the section mentioned above, it's close to the bottom of the file. From there you can see what to change to get Tab and the other keys to work. Some keystrokes won't work with Shift though, so you need to try around a bit.

Sorry to hear Sym+Shift doesn't work on nordic layout, I've only tested with standard layout and was quite happy with it. Maybe it's possible to set the phone to use the standard layout and overwrite the standard key mappings with the nordic ones.

In any case before playing with config files like this one I would suggest to first make a backup of at least the root partition using backupmenu.

MrTab 2010-08-28 08:54

Re: Remapping N900 keyboard for idiots
 
Thanks Nephridium,

That worked brilliantly, I've now got tab, page up and down, home and end mapped onto the keyboard my N900 didn't get bricked and they work in everything... except Documents to Go!

As it seems the new keys work in all the other applications and DataViz don't believe in customer service maybe I'll just find another word processor.

Mentalist Traceur 2010-08-29 05:35

Re: Remapping N900 keyboard for idiots
 
Am I the only one who has tried to do this who also runs the experimental universal portrait keyboard ( http://talk.maemo.org/showthread.php?t=55371 )?

Does anyone who understands the way that keyboard works have any insight as to whether or not it might be interfering with this?

I've tried modifying the rx-51 file to make my spacebar use space, tab, at, at, saved, then ran "setxkbmap" and it told me "Error, can't load new keyboard configuration", or some such. I then proceeded to edit it back to normal, ran setxkbmap again, and got the same error. I tried a couple more different modifications of rx-51 to see if maybe changing any other values other than space+shift to Tab would make it work, thinking perhaps Maemo didn't recognize that the file had changed or something. Did some more fiddling with the space and the arrow key mappings. Kept getting the same error, so after a bunch of browsing of this forum and having found no one else reporting this, decided to over-write the modified file(s - I also edited the rx-44 to see if that would make anything happen) with the back-ups, and am leaving it alone for now.

But wondering if anyone has any insight into this.

TiagoTiago 2010-08-29 23:52

Re: Remapping N900 keyboard for idiots
 
Is there a GUI for setting up the layout and ky combinations?

EL_CID_CAMPEADOR 2018-05-03 12:55

Re: Remapping N900 keyboard for idiots
 
how to fix Error, can't load new keyboard configuration


all times ive tried to setup new layout with "setxkbmap" and it told me "Error, can't load new keyboard configuration",

endsormeans 2018-05-03 15:00

Re: Remapping N900 keyboard for idiots
 
I am surprised I never saw this thread before...
thanks for bringing it back from the great abyss of oblivion El Cid....

I don't think it is an instructional on keyboard for idiots ...though...

I came here hoping for pictures ...

Cartoon explanations...
Puppet demonstrations...
anything...
even "Highbrow" ...diagrams...

Nothing...
only "takakakaka" typing text big wordy-words...

So this is definitely a few tiers higher than "Idiot Grade" material...

I am sooooo disappointed ...

"Why oh why oh why must you turn this place into a House of Lies!!!!"


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

vBulletin® Version 3.8.8