Active Topics

 


Reply
Thread Tools
Posts: 155 | Thanked: 69 times | Joined on Apr 2008
#1
I've spent some hours trying to get my n810's built-in hardware keyboard working well, and feeling disappointed.

I've managed to get the following mappings to work:
Delete key on Fn-BackSpace
braceleft on Fn-m
braceright on Fn-;
bracketleft on Fn-,
bracketright on Fn-.
Tab on Fn-space

I'm trying to do the following mappings and they are not working:
bar on Fn-shift-backspace (bar is also known as the pipe character)
escape on Fn-z
Page up on Fn-dpad-up
Page down on Fn-dpad-down
Home on Fn-dpad-left
End on Fn-dpad-right
F1 on Fn-shift-q
F2 on Fn-shift-w
etc... (F-keys all mapped to their numeric equivalents when looking at the keyboard)

Unfortunately, it seems that none of these Fn-shift mappings are working. When trying to get escape with Fn-shift-z, it always prints z instead. The locking behavior of the Fn key seems to disappear whenever I press Shift. Also, the deadkey behavior of Fn doesn't seem to happen when using the dpad, so I have to hold down Fn while pressing the dpad which is very awkward.

I'm willing to post what I have working so far, but I'm still in the middle of trying a lot of other things and don't want to confuse others just yet.
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#2
How would you want to use two shifts together on such a keyboard?

I use Chr as an extra shift key (see http://my.arava.co.il/~matan/770/heb/rx-44-he ) for hebrew, but also for some extra keys. If you don't need it for local characters, it is you best bet.

Some remarks:
* Shift with -+ ' gives additional three options.
* Do you need Yen and Euro symbols?
* There is ESC key (the round arrow under the light sensor).

I think what is most needed is good documentation of XKB.
 

The Following User Says Thank You to Matan For This Useful Post:
Posts: 155 | Thanked: 69 times | Joined on Apr 2008
#3
Thanks for the great suggestions. I didn't realize the arrow button was generating escape all this time. And the suggestion of shift with -+' is great too. I can probably cram the bar, page up and page down keys on those.

I don't need the yen and euro which is why I was willing to give them up. But if the I could put braces on Fn-shift-,and reclaim them it would be a plus.

I may eventually want to use Chr as a meta key with emacs if I get that crazy. For now I think the hints you gave will be enough and I'll forget about having F1 to F10.

It would be nice to have some better docs on xkb; I was even down in the "compat" directory trying fiddle with the shift lock state machines there with no success.
 
Posts: 155 | Thanked: 69 times | Joined on Apr 2008
#4
I'm attaching my current xkb file in case others find it useful. It has the following changes to the stock n810 keyboard mapping:
Delete key on Fn-BackSpace
braceleft on Fn-m (replaces euro key)
braceright on Fn-; (replaces pound key)
bracketleft on Fn-,
bracketright on Fn-.
Tab on Fn-space
page up on shift-minus
page down on shift-plus
bar on shift-apostrophe (bar is also known as the pipe character)

The file also contains the following changes which are either awkward to use or not working, mainly because the deadkey behavior of the Fn key doesn't seem to work with them:
Page up on Fn-dpad-up (awkward)
Page down on Fn-dpad-down (awkward
Home on Fn-dpad-left
End on Fn-dpad-right
F1 on Fn-shift-q
F2 on Fn-shift-w
etc... (F-keys all mapped to their numeric equivalents when looking at the keyboard)

I left these changes in there in case anyone has suggestions for improving them or getting them working correctly. They don't seem to harm anything.

One other issue is that to use the Delete key as Fn-Backspace, the Fn key must be held down while pressing backspace. For some reason the deadkey behavior of Fn doesn't seem to work with backspace either, but because I can do that key combination with both hands I find it tolerable.

With these changes I find it much easier to use xterm and do some simple python programming.

To use the file I would do the following from an xterm on your n810:

$ sudo gainroot
# cd /usr/share/X11/xkb/symbols/nokia_vndr
# cp rx-44 rx-44.orig
# cp /home/user/rx-44.txt rx-44

Then reboot your device for the changes to take effect. Note that upgrading the device may overwrite these changes.
Attached Files
File Type: txt rx-44.txt (15.0 KB, 245 views)
 

The Following 3 Users Say Thank You to rbrewer123 For This Useful Post:
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#5
I think most needed key is Tab, so I have it assigned to that menu-button under arrows.
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#6
Another option to consider is changing one of the shifts to another modifier (for F keys, etc.). I think that having only one shift on this keyboard is not a great loss.
 
Posts: 93 | Thanked: 52 times | Joined on Oct 2008 @ Victoria BC Canada
#7
Okay, this one has me stumped...

I've remapped the keyboard using the above braces and brackets (so I can use Geany to code in Perl).

Anyway, it's great - everything works, except in the built-in Mail program, I can't get capital M. I can get a capital M in terminal, or in Maemopad etc., and the syntax of the file seems right, with all the tabs, brackets, and commas as they should be. But, no M in Mail.

It's not a big deal, I rarely compose in Mail anyway. If I have to, I can use the virtual keyboard for my M's. But, why is Mail different?

Does anyone with a stock keyboard map have the same issue? Is Mail somehow stealing capital M's?

Just curious is all,

David...
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#8
Originally Posted by Matan View Post
Another option to consider is changing one of the shifts to another modifier (for F keys, etc.).
You can't, both shift keys are wired as KEY_LEFTSHIFT.
 
Posts: 1 | Thanked: 0 times | Joined on Oct 2009 @ Beijing
#9
#for n810

For a Vim user, Home/End/Del are somewhat useless.

;;use zoom keys for PageScroll
map <F7> <C-f>
map <F8> <C-b>

I have not figured out how to use fixed-width font in emacs22...

my config
itt has an older thread on key mapping, search it (my search does not work as for now
1, use xev to find the keycode or keyname for a specified key (apt-get install xev first
2, remap keys using xmodmap (apt-get install xmodmap first
3, use bash and add "xmodmap ~/.Xmodmap" to ~/.bashrc

I use "menu" key for Fn and use the original Fn for ctrl_L

Here is my ~/.Xmodmap below
Bugs: The dosbox can not recognize the new Fn key.
----------

! filename: .Xmodmap
! Ctrl-Backspace -> tab
keycode 22 = Backspace Backspace Tab Tab Tab
keycode 52 = z Z bar bar bar
keycode 58 = m M braceleft braceleft braceleft
keycode 47 = semicolon colon braceright braceright braceright
! chr -> alt
keycode 135 = Meta_L Meta_L Meta_L Meta_L Meta_L
add mod1 = Meta_L

! menu -> Fn
keycode 70 = ISO_Level3_Shift ISO_Level3_Shift ISO_Level3_Shift ISO_Level3_Shift ISO_Level3_Shift
! Fn -> Control_L
keycode 216 = Control_L Control_L Control_L Control_L Control_L

add Control = Control_L Control_R
remove mod5 = ISO_Level3_Shift

! for roxterm, use shift-Fullscreen to get a fullscreen term
keysym F6 = F6 F11

Last edited by freddong; 2009-10-26 at 09:43.
 
Posts: 542 | Thanked: 117 times | Joined on Sep 2008 @ 52 N, 6 E
#10
xmodmap does not work properly even not in desktop linux.

Try setxkbmap.

The definition files are under

/usr/share/X11/xkb/symbols/nokia_vndr

and try modifying the file ukeyboard
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:35.