PDA

View Full Version : [Debian] My Debian Tricks - N810 xmodmap


fatalsaint
07-13-2008, 03:28 AM
Hey all,

my first post and I wanted it useful. One of the biggest problems I had with debian was the hardware keyboard for the N810.. none of the numbers or special characters would work for me..considering i spend a lot of time in the terminal this was unsat. I couldn't find anyone that had a complete xmodmap for all the keys on the keyboard.. if there is and I just failed to see it let me know.

I saved this file as .Xmodmap in my users home directory:

Updated with Multiple Keyboards.. Big Thanks to Debernardis and Murphy

For US/English Keyboard:

keycode 216 = Mode_switch
keysym q = q Q 1
keysym w = w W 2
keysym e = e E 3
keysym r = r R 4
keysym t = t T 5
keysym y = y Y 6
keysym u = u U 7
keysym i = i I 8
keysym o = o O 9
keysym p = p P 0
keysym a = a A exclam
keysym s = s S quotedbl
keysym d = d D at
keysym f = f F numbersign
keysym g = g G backslash
keysym h = h H slash
keysym j = j J parenleft
keysym k = k K parenright
keysym l = l L asterisk
keysym apostrophe = apostrophe apostrophe question
keysym z = z Z U00A5
keysym x = x X asciicircum
keysym c = c C asciitilde
keysym v = v V percent
keysym b = b B ampersand
keysym n = n N dollar
keysym m = m M EuroSign
keysym semicolon = semicolon colon U00A3
keysym minus = minus underscore underscore
keysym plus = plus plus equal
keysym comma = comma less Escape
keysym period = period greater bar
keysym KP_Enter = Return Return
keysym BackSpace = BackSpace BackSpace Tab
add control = Control_L Control_R
add shift = Shift_L Shift_R
add lock = Caps_Lock


PIPE = FN + .
Escape = FN + ,
TAB = FN + Backspace

Italian Keyboards:
keycode 216 = Mode_switch
keysym q = q Q 1
keysym w = w W 2
keysym e = e E 3
keysym r = r R 4
keysym t = t T 5
keysym y = y Y 6
keysym u = u U 7
keysym i = i I 8
keysym o = o O 9
keysym p = p P 0
keysym a = a A exclam
keysym s = s S quotedbl
keysym d = d D at
keysym f = f F numbersign
keysym g = g G asterisk
keysym h = h H backslash
keysym j = j J slash
keysym k = k K parenleft
keysym l = l L parenright
keysym apostrophe = apostrophe question igrave Igrave
keysym z = z Z EuroSign
keysym x = x X asciitilde
keysym c = c C ampersand
keysym v = v V equal
keysym b = b B less
keysym n = n N greater
keysym m = m M plus
keysym semicolon = eacute Eacute ograve Ograve
keysym minus = egrave Egrave agrave Agrave
keysym equal = minus underscore ugrave
keysym comma = comma semicolon Tab
keysym period = period colon bar

Tab = FN + ,
Pipe = FN + .

For French/Azerty Keyboards:

!/home/user/.Xmodmap
!keymaps for french N810 by Murphy
keycode 216 = Mode_switch
keysym q = a A 1
keysym w = z Z 2
keysym e = e E 3
keysym r = r R 4
keysym t = t T 5
keysym y = y Y 6
keysym u = u U 7
keysym i = i I 8
keysym o = o O 9
keysym p = p P 0
keysym a = q Q at
keysym s = s S percent
keysym d = d D ecircumflex
keysym f = f F eacute
keysym g = g G egrave
keysym h = h H oe
keysym j = j J parenleft
keysym k = k K parenright
keysym l = l L agrave
keysym apostrophe = m M ugrave
keysym z = w W EuroSign
keysym x = x X numbersign
keysym c = c C ccedilla
keysym v = v V plus
keysym b = b B equal
keysym n = n N quotedbl
keysym m = comma question backslash
keysym semicolon = semicolon period minus
keysym minus = colon slash underscore
keysym plus = apostrophe bar mu
keysym comma = less greater Tab
keysym period = exclam section asterisk
keysym KP_Enter = Return Return
keysym BackSpace = BackSpace BackSpace


Pipe = FN + '
Tab = FN + <


Then create/add the following to /home/user/.icewm/startup:
#!/bin/sh
/usr/bin/xmodmap /home/user/.Xmodmap

This will load the Xmodmap file when launching IceWM.

EDIT: To keep the original topic up to date.. if you experience weird behavior with your keyboard; reversed Function-Key operation or just not getting anything at all when using the function key (even after running the xmodmap command).. this code may help (run from OS2008, and if your debian is mount on /debian)..


sudo gainroot
mv /debian/usr/share/X11/xkb /debian/usr/share/X11/xkb.bak
cp -R /usr/share/X11/xkb /debian/usr/share/X11/

debernardis
07-13-2008, 05:19 AM
I knew that sooner or later some nice fellow would have done the xmodmap file... thanks :-) Now I have only to change something for my localised keyboard.

fatalsaint
07-13-2008, 12:20 PM
Np... I really prefer the icewm interface but without the keyboard support it was useless.

Anyone that wants to modify their icewm setup.. like putting the bar at the top and many other options.. the file is in /usr/share/icewm/preferences and there is also /usr/share/icewm/menu for modifying your menu system. You can either edit these directly as root for global changes or copy them to /home/user/.icewm for user specific changes.

If anyone has anything they want to know how to do in their icewm debian post here and i'll try and figure it out. So far I got xchat and is working fine.. nice thing is since both home directories are same the OS2008 xchat and debians will use the same config.

mplayer is giving me problems.. watching movies is proving to be problematic...

fatalsaint
07-13-2008, 09:26 PM
Modified original post to use /home/user/.icewm/startup instead of /home/user/.profile because the profile was being used by OS2008 terminal as well giving errors. Startup seems more consistent with icewm as well.

fatalsaint
07-14-2008, 05:30 PM
Modified the xmodmap file.. the Enter/Return key was not giving a normal Enter to VI.. causing it to freak out and not create newlines right.. fixed that.

Added the ability to use FN+BackSpace to get a tab effect... who doesn't use Tab when navigating in a terminal?

qole
07-14-2008, 06:16 PM
Thanks so much! I have an N800, but it was stressing me out that people couldn't use their N810 keyboards properly under IceWM.

I'll put this into the next release of Easy Debian.


mplayer is giving me problems.. watching movies is proving to be problematic...

What does that mean? You mean Maemo mplayer or are you trying to get Debian mplayer to work? If the latter, why?

PS: As far as I know, they only got the USB2VGA thing to produce 2 fps from the tablet... :(

fatalsaint
07-14-2008, 06:20 PM
PS: As far as I know, they only got the USB2VGA thing to produce 2 fps from the tablet... :(

I don't plan on duplicating my current screen.. i want chroot debian (like yours) and get completely rebuild an xorg.conf from scratch using something like:

https://help.ubuntu.com/community/USB2VGA

and hoping to produce a completely seperate full screen debian working station... we'll see how it goes when I have the money for all the parts.

But eventually my goal is to have a docking station be just 1 USB cord away :). It won't duplicate the current screen.. although I guess if you do the vnc hack thing it might... but It'll be interesting how/if it works at all.

qole
07-14-2008, 06:23 PM
I don't plan on duplicating my current screen.. i want chroot debian (like yours) and get completely rebuild an xorg.conf from scratch using something like:

https://help.ubuntu.com/community/USB2VGA

and hoping to produce a completely separate full screen debian working station... we'll see how it goes when I have the money for all the parts.

But essentially my goal is to have a docking station be just 1 USB cord away :). It won't duplicate the current screen.. although I guess if you do the vnc hack thing it might... but It'll be interesting how/if it works at all.

I don't think that will work, but good luck to you... Here's what they've got so far (http://www.internettablettalk.com/forums/showthread.php?p=197830).

I have managed to get X-Forwarding working well from Debian SSH, so I can run apps on my tablet but display them on another computer, including a Windows computer running Cygwin and an X server. That's pretty cool (http://www.flickr.com/photos/qole2/2463280431/).

fatalsaint
07-14-2008, 06:27 PM
What does that mean? You mean Maemo mplayer or are you trying to get Debian mplayer to work? If the latter, why?


Because I want everything to run in debian.. I hate switching when I am in IceWM. My ultimate goal is probably to boot to Debian instead of using Debian in a chroot.. although I haven't quite decided 100%.

Right now the chroot is wonderful because it makes Wireless/BT pairing easy; as well as BT transfer of files, etc.. Eventually I am going to offload these tasks onto Debian as well using the debian bluetooth stuff and find a decent WPA-GUI for wireless connections.

At the moment I can't see a single reason why I would want to keep Maemo.. it provides me easy access to the internet until I get the debian configured the way I want.. but other than that.. I just stay in my IceWM window.. I moved Xchat and Pidgin into Debian instead of running the Maemo copies.. so that they are right in front of me while I work instead of sitting back on the maemo desktop and interrupt me with the little blink.

I got mplayer to show the video - and using the -ao esd even got sound! - but it complains about slow running and is extremely chopping. Passing -vo sdl worked wonders for the interface as well.. but again; slow and choppy - I am not sure if this is due to debian's access to the devices.. or due to the fact that the memory is already being used by 2 os's running window managers and Xchat/Pidgin to boot.

I am not sure if this does anything.. but I have noticed you can pass the options -extension Composite to the Xephyr line - do you know if this will provide any usefulness to IceWM?

fatalsaint
07-16-2008, 06:22 PM
Not sure what happened.. but something I installed last night (most likely a dependency of one of these window managers: openbox, XFCE4, Window Maker) screwed with the files in the /usr/share/X11/xkb directory.

No idea what changed.. but it was quite entertaining.. when executing my xmodmap .Xmodmap like normal .. it caused the keyboard to be completely backwards.. when pressing the buttons WITHOUT the function key, you got the function key's item, (IE: hit q, get a 1).. but when pressing the function key and the letter - you got the letter.. (FN+q = q)..

Totally reversed on me. I messed with my xmodmap and nothing worked.. so - IF this happens to you.. running the following from OS2008


sudo gainroot
mv /debian/usr/share/X11/xkb /debian/usr/share/X11/xkb.bak
cp -R /usr/share/X11/xkb /debian/usr/share/X11/


will get your keyboard working again with my file. I do not know exactly what it changed.. and if I get bored I'll try and find out the exact file - but for now; I have noticed no other problems in using OS2008's xkb directory in debian.. and the keyboard works again.

maillaxa
07-17-2008, 03:01 PM
Works like a champ ! It's cool to get my qwerty back even with my azerty tablet ! Thank you!

debernardis
07-17-2008, 03:02 PM
Here is the .xmodmap file for my Italian keyboard. Has Tab on Fn-comma and pipe on Fn-period. Several other keysyms should be added in order for this to be useful, because on the chroot setting the Chr key doesn't work and so you miss dollar, percent, ticks and backticks, etc. But, indeed, I am not using other wm's than matchbox, because it's quicker and allows moving big windows to press out-of-sight buttons.

keycode 216 = Mode_switch
keysym q = q Q 1
keysym w = w W 2
keysym e = e E 3
keysym r = r R 4
keysym t = t T 5
keysym y = y Y 6
keysym u = u U 7
keysym i = i I 8
keysym o = o O 9
keysym p = p P 0
keysym a = a A exclam
keysym s = s S quotedbl
keysym d = d D at
keysym f = f F numbersign
keysym g = g G asterisk
keysym h = h H backslash
keysym j = j J slash
keysym k = k K parenleft
keysym l = l L parenright
keysym apostrophe = apostrophe question igrave Igrave
keysym z = z Z EuroSign
keysym x = x X asciitilde
keysym c = c C ampersand
keysym v = v V equal
keysym b = b B less
keysym n = n N greater
keysym m = m M plus
keysym semicolon = eacute Eacute ograve Ograve
keysym minus = egrave Egrave agrave Agrave
keysym equal = minus underscore ugrave
keysym comma = comma semicolon Tab
keysym period = period colon bar

maillaxa
07-17-2008, 03:45 PM
what is matchbox ?

Benson
07-17-2008, 03:50 PM
A window manager, http://matchbox-project.org/, used in the tablets.

debernardis
07-17-2008, 03:54 PM
http://en.wikipedia.org/wiki/Matchbox_%28window_manager%29

It's the plain vanilla window manager our NITs.

qole
07-17-2008, 04:38 PM
Nothing "plain vanilla" about our NIT window manager :)

I find it interesting that nothing much has happened over at matchbox-project.org since March 2007...

debernardis, do you know of a hack for non-dialog windows that are too large, such as the "Restore Document" window in OOO?

Benson
07-17-2008, 04:49 PM
I assume you've tried rotation and small-font-themes?

qole
07-17-2008, 05:23 PM
Um, Benson, maemo theming has no effect on Debian OOO :) And if you've run Debian apps, you'll notice that the fonts are already teensy-tiny, since they're assuming a 96dpi screen (as opposed to 226dpi on the tablets).

But rotation... that's an idea... Haven't hit that window since I got rotation working...

Benson
07-17-2008, 05:36 PM
Oh, that's right. (Duh!)

Well, you could set a smaller theme there, too. (Actually, one thing I had thought of doing was getting the Debian apps using the Maemo themes... then it occurred to me that that'd NOT help the window-size issues, and I figured I'd not bother. Why I couldn't remember that just now is beyond me...)

Xnest is the only thing that comes to mind; you could run xnest with scrollbars (does xephyr do scrollbars, since it's already working?) and run matchbox, hildon-desktop, etc. all inside on :1, and no window manager on display :0... that'd be somewhat less overhead than the whole two-wm routine, but it's plainly suboptimal. (And hard to set up...)

jhford
07-17-2008, 06:34 PM
I followed your instructions in #1, but the function key on my slide-down keyboard isn't usable.
Thanks

fatalsaint
07-17-2008, 06:55 PM
I followed your instructions in #1, but the function key on my slide-down keyboard isn't usable.
Thanks

Try running the xmodmap manually..
ive noticed sometimes it doesnt load right ..

open a terminal in Icewm

cd
xmodmap .Xmodmap


im still working on a more consistant method.

qole
07-17-2008, 07:25 PM
I can tell Benson still doesn't have his tablet set up right, yet. :D

Benson
07-17-2008, 08:27 PM
Indeed. Too many distracting projects... But I was just going back to it, honest!

An enhancement I'm making (which I'll post once I've got it working; you may want to incorporate it, or not) allows easy swapping out of the relevant files in /etc for boot/chroot usage.

I'm actually gonna grab your .deb, rip its guts out and spill them all over my computer, and try to put together a reasonable hybrid. I'm liking the xephyrized method you've got going, at least as something to try. Besides, I don't feel like copy/pasting out of the wiki for all the scripts. So, tomorrow, maybe, I'll have some answers. ;)

debernardis
07-18-2008, 12:53 AM
debernardis, do you know of a hack for non-dialog windows that are too large, such as the "Restore Document" window in OOO?

I have no generic solution involving the window manager, but as regards *that* particular dialog, I have it quite readable on my NIT, probably because I reduced the percent size of GUI elements of OOO to 80% - see attached pics.

If you can name me another window that's too big and can't be moved, and tell me how to show it, I'll experiment a little bit :)

qole
07-18-2008, 12:24 PM
WOW Those are some TINY fonts! But at least you can see the whole window...

qole
07-20-2008, 04:49 AM
Ok, I stumbled upon something interesting.

Someone with an N810 try this copy command with your Debian chroot mounted in /debian:


cp -r /usr/share/X11/xkb /debian/usr/share/X11


Then edit your /debian/usr/bin/xpice file. Add "+kb" (without quotes) to your Xephyr command line, before the & at the end.

Disable your xmodmap stuff.

Run the IceWM menu item in OS2008

See if this changes anything about how the N810 keyboard works in IceWM.

debernardis
07-20-2008, 05:47 AM
See if this changes anything about how the N810 keyboard works in IceWM.

Not in my setup. Still no 2nd function chars.

But, indeed, not even xmodmap was working as described. No matter where I put the xmodmap call - in .icewm/profiles or .icewm/startup - it was not working. I had to call a rox terminal under icewm and issue the command there. Quite uncomfortable.

qole
07-20-2008, 06:00 AM
Not in my setup. Still no 2nd function chars.

So no improvement from the basic setup using the +kb method? I'm trying to determine if this is something I should be adding to my next chroot image.

fatalsaint
07-21-2008, 10:06 AM
So no improvement from the basic setup using the +kb method? I'm trying to determine if this is something I should be adding to my next chroot image.

May not be worth it unless someone (or me) figures out how to load that xmodmap file on startup.. it worked a couple times after I edited the .icewm/startup but doesn't work after a reboot.. think it kept it loaded in memory or something which caught me off.

I know the startup script is running because I also launch xchat and pidgin; both of which worked - but the xmodmap wasn't for some reason... so one of two things: a script that loads the file.. when you login you just click the script.. or some way to get xmodmap to start when the WM starts.. I'm still working on that.

debernardis
07-21-2008, 11:44 AM
I succeeded with icewm :) and now it starts with xmodmapped keyboard.
What's needed:
start icewm with "icewm-session" instead that "icewm".
don't forget to chmod 755 the .icewm/startup script and start it with #!/bin/sh.
Let me know if it works for you.

fatalsaint
07-21-2008, 11:56 AM
I succeeded with icewm :) and now it starts with xmodmapped keyboard.
What's needed:
start icewm with "icewm-session" instead that "icewm".
don't forget to chmod 755 the .icewm/startup script and start it with #!/bin/sh.
Let me know if it works for you.

Could have swore I was doing all of this.. but after double checking my startup was missing the #!/bin/sh..

I just rebooted, launched a term and keyboard was mapped automagically.

Thanks Debernardis.

murphy
08-06-2008, 03:49 PM
Here's my /home/user/.Xmodmap-debian file for my french N810 :
!/home/user/.Xmodmap
!keymaps for french N810 by Murphy
keycode 216 = Mode_switch
keysym q = a A 1
keysym w = z Z 2
keysym e = e E 3
keysym r = r R 4
keysym t = t T 5
keysym y = y Y 6
keysym u = u U 7
keysym i = i I 8
keysym o = o O 9
keysym p = p P 0
keysym a = q Q at
keysym s = s S percent
keysym d = d D ecircumflex
keysym f = f F eacute
keysym g = g G egrave
keysym h = h H oe
keysym j = j J parenleft
keysym k = k K parenright
keysym l = l L agrave
keysym apostrophe = m M ugrave
keysym z = w W EuroSign
keysym x = x X numbersign
keysym c = c C ccedilla
keysym v = v V plus
keysym b = b B equal
keysym n = n N quotedbl
keysym m = comma question backslash
keysym semicolon = semicolon period minus
keysym minus = colon slash underscore
keysym plus = apostrophe bar mu
keysym comma = less greater Tab
keysym period = exclam section asterisk
keysym KP_Enter = Return Return
keysym BackSpace = BackSpace BackSpace

I've added bar ( | ) to Fn+' and Tab to Fn+<

A good help for finding correspondances :
http://wiki.linuxquestions.org/wiki/List_of_Keysyms_Recognised_by_Xmodmap

Be aware that when a wrong keysym is written, xmodmap does not charge the file, you have to launch it manually have the error message (with few special character):
cd home
cd user
xmodmap .Xmodmap-debian
(and see the error message)

fatalsaint
08-06-2008, 04:16 PM
I am going to update the Original post with all three .. this is awesome.. thanks murphy!

qole
08-13-2008, 02:39 AM
I'll put this here, as it is the most likely place for it to be.

If you want application-by-application control over your keycodes (for instance, mapping the + and - hardware keys in an app to do zoom-in and zoom-out for that app), just preface the app with
xmodmap -e "keysym <original keysym> = <your new keysym>"
After you are done, clean up the key to work right again:
xmodmap -e "keycode <original keycode> = <original keysym>"

And here are the keysym and keycode entries to use for <original keysym> and <original keycode>, at least on the N800:

- HW key: keysym: F8 keycode: 74
FullScreen HW key : keysym: F6 keycode: 72
+ HW key: keysym: F7 keycode: 73
Menu HW key: keysym: F4 keycode: 70
Home (Swap) HW key: keysym: F5 keycode: 71

fatalsaint
08-13-2008, 09:04 AM
One nifty trick that I've added to my xmodmap is changing the full screen F6 to F11... F11 is what every browser I've tried so far (konqueror, galeon, epiphany, iceweasel, kazahakaske (or whatever)) uses for a full screen key. F6 does pretty much nothing on the debian side. I didn't add it to the original because I dunno how important it is to anyone and only works for browsers I think...but as an example of what qole is saying:

xmodmap -e "keysym F6 = F11"

Thanks for the list qole.. I'll see what else I can change using those keys.

qole
08-13-2008, 12:50 PM
One nifty trick that I've added to my xmodmap is changing the full screen F6 to F11... F11 is what every browser I've tried so far (konqueror, galeon, epiphany, iceweasel, kazahakaske (or whatever)) uses for a full screen key. F6 does pretty much nothing on the debian side. I didn't add it to the original because I dunno how important it is to anyone and only works for browsers I think...but as an example of what qole is saying:

xmodmap -e "keysym F6 = F11"Thanks for the list qole.. I'll see what else I can change using those keys.

Even better for fullscreen, use xbindkeys (as suggested by psykosis (http://www.internettablettalk.com/forums/showthread.php?p=206891#post206891) for right-click).

put this in your /home/user/.xbindkeysrc file:

"wmctrl -r :ACTIVE: -b toggle,fullscreen"
F6


When you run xbindkeys (as root) you will be able to fullscreen any application with the fullscreen key!

fatalsaint
08-13-2008, 01:32 PM
Awesome tip!

I'll look into it if I ever end up actually booting my debian again =-(. Stupid compiles.

jiiv
09-01-2008, 03:47 AM
Nothing terribly new here, but I figured I'd add mine in since I changed a few things (I needed curly braces so I replaced the Euro and Pound symbols, also added grave in place of Yen). I also changed _ and = to shift modifiers instead of Fn and changed their Fn definitions to [ and ]. I believe those are the only changes from the file in the original post. My .xbindkeysrc eats up F6-F8, but allows for left, middle, and right clicking. I initially tried to use the Release + <keysym> trick, but it wasn't working reliably for me.
My ~/.Xmodmap:

keycode 216 = Mode_switch
keysym q = q Q 1
keysym w = w W 2
keysym e = e E 3
keysym r = r R 4
keysym t = t T 5
keysym y = y Y 6
keysym u = u U 7
keysym i = i I 8
keysym o = o O 9
keysym p = p P 0
keysym a = a A exclam
keysym s = s S quotedbl
keysym d = d D at
keysym f = f F numbersign
keysym g = g G backslash
keysym h = h H slash
keysym j = j J parenleft
keysym k = k K parenright
keysym l = l L asterisk
keysym apostrophe = apostrophe apostrophe question
keysym z = z Z grave
keysym x = x X asciicircum
keysym c = c C asciitilde
keysym v = v V percent
keysym b = b B ampersand
keysym n = n N dollar
keysym m = m M braceleft
keysym semicolon = semicolon colon braceright
keysym minus = minus underscore bracketleft
keysym plus = plus equal bracketright
keysym comma = comma less Escape
keysym period = period greater bar
keysym BackSpace = BackSpace BackSpace Tab
pointer = 1 2 3

My ~/.xbindkeysrc:
"r-mouse"
F7
"l-mouse"
F6
"m-mouse"
F8

My ~/.icewm/startup:
#!/bin/sh
/usr/bin/xmodmap ~/.Xmodmap
/usr/bin/xbindkeys -f ~/.xbindkeysrc

fatalsaint
09-14-2008, 02:47 PM
Added keys to make the CONTROL key work in deblet in OP.

qole
09-14-2008, 08:20 PM
Can anyone tell me a way to check for tablet model number (ie N800 or N810) in a shell script, for example, a postinst script? I want to put the plain keymap file (see my "virtual keyboard woes" thread) in place for N800 users, and the keymap file + fatalsaint's mappings for N810 users.

It didn't matter before, because fatalsaint's mappings would just cause an error for N800 users, and xmodmap wouldn't load. But now, everyone needs xmodmap so that Debian virtual keyboards will function correctly, and so simply letting xmodmap crash on the N800 isn't an option. And installing the N810 xmodmap on the N800 does very wacky things to the maemo virtual keyboard.

The good news is that I'm getting really close to having Easy-Debian-Final ready. It will have sound, adobe Flash, "real" Sun Java (http://openjdk.java.net/) (openjdk-6-jre (http://packages.debian.org/sid/openjdk-6-jre)), Gimp, LXDE, etc. It really feels like a finished, functional system.

Thanks in advance!

penguinbait
10-21-2008, 06:28 PM
These are all the ones I need and use :D


keycode 20 = minus braceleft underscore underscore underscore underscore
keycode 21 = plus braceright equal equal equal equal
keycode 22 = BackSpace bracketleft bracketleft bracketleft bracketleft bracketleft
keycode 59 = comma less bar bar bar bar
keycode 60 = period greater Tab Tab Tab Tab
keycode 135 = Multi_key Multi_key bracketright bracketright bracketright bracketright


(Fn + >) = TAB Key
(Fn + <) = | (PIPE KEY)
FN + Backspace = [
Shift + Backspace = ]
Shift + Minus = {
Shift + Plus = }
Shift + ? = `

And I got everything using open keys :)

WilsonBradley
02-07-2009, 11:46 PM
Heya ,

I was interested in something VERY similar..
I wanted to assign the + - keys as Forward/Back in the micro browser...
I always have to open the keyboard when I want to navigate.
Any suggestions?

Thanks so much

matada
03-06-2009, 01:16 AM
I am having trouble getting open office to save on my removable drive (n810) It works great, and I have been able to save files to the N810 primary folder, attach the to e-mail, and send, which is awesome!

If I can create a folder on my removable drive that open office can see, i wouldn't have to use up the tiny amount of space alloted to the main memory.

fatalsaint
03-06-2009, 01:35 AM
How did you format the removable drive?? That sounds like a permissions problem.. does the drive show in openoffice's file browser???


Wilson - sorry I never saw your post before.. If you use gnome, theres some suggestions around like here ('http://ubuntuforums.org/showthread.php?t=499652'), other than that I don't know. Alt+left and Alt+right are default forward/back in firefox.. but you'd have find some way to map the +/- to Alt+Left/Right .. and I don't know how to do that.

debernardis
03-06-2009, 01:36 AM
It should *just work*. Remember your removable drive is /media/mmc1.
If it doesn't see it, the easy debian package is not mounting the card. Maybe you could see the output of the mount command in the debian terminal to get a hint on what's happening.

matada
03-06-2009, 05:55 AM
i didn't format the removable. When i got the device, I just popped it in (8mb sandisk 6)

when i go to the folders, it shows the following:


apps
img-install
MyDocs

When i look for these on using the standard maemo file manager, The mydocs is the main memory, and I don't see the others.

You have to forgive my ignorance as I am a N810/maemo/debian beginner!

Thanks!

debernardis
03-06-2009, 08:46 AM
i didn't format the removable. When i got the device, I just popped it in (8mb sandisk 6)

when i go to the folders, it shows the following:


apps
img-install
MyDocs


These are strange folders to find on your sd card. In particular, the MyDocs folder should stay on /home/user/MyDocs and not on the sd card.
Could you report the output of "ls /media/mmc1/" both in maemo xterm and debian xterm?

fatalsaint
03-06-2009, 10:47 AM
debian may not automatically mount the sd card to /media/mmc1? Are you using Deblet, or Mer, or Easy Debian?? Which folder management software are you using? Maemo's, or Mer/Deblet/EZ-D?

It might be that you just need to mount your SD card..

dmesg | grep mmcblk

Should produce something with mmcblk1p1 or so in it. Using that you can:


mount /dev/mmcblk1p1 /media/mmc1

?? Or I suppose it's possible it came unformatted.. and you have to maybe create a filesystem first...?

elschemm
06-12-2009, 11:46 AM
Greetings:
For those looking to use an external USB keyboard (in Debian or such),
you might want to make the following changes (to the version on the first page):

keysym plus = plus equal equal
keysym apostrophe = apostrophe quotedbl question

So far, the Xmodmap approach seems to be the only successful way to mod the keyboard (at least under EasyDebian). The two changes above fix problems between the mappings that Nokia uses for the rx-44 and what a standard 104 US kbd does.
On those keyboards, the quotation mark is a shifted apostrophe. The rx-44 puts the quote as FN-s. The rx-44 doesn't really use Shft-Apostrophe, so it isn't a problem.

The real ugly is that (for whatever reason), Nokia decided to do +/= backwards from a traditional US keyboard layout. Adding = as a Shift-+
will give you the exact opposite of the traditional layout, but it's either that, or have the rx-44 function the opposite way of it's layout.

Racle
06-26-2009, 08:55 AM
I got that work for almost everything, but some reason i cant use my return key anymore at xterm and pidgin :/ any suggestions?

here my xmodmap config file
keycode 216 = Mode_switch
keysym q = q Q 1
keysym w = w W 2
keysym e = e E 3
keysym r = r R 4
keysym t = t T 5
keysym y = y Y 6
keysym u = u U 7
keysym i = i I 8
keysym o = o O 9
keysym p = p P 0
keysym a = a A exclam
keysym s = s S quotedbl
keysym d = d D at
keysym f = f F numbersign
keysym g = g G backslash
keysym h = h H slash
keysym j = j J parenleft
keysym k = k K parenright
keysym l = l L asterisk
keysym apostrophe = apostrophe apostrophe question
keysym z = z Z U00A5
keysym x = x X asciicircum
keysym c = c C asciitilde
keysym v = v V percent
keysym b = b B ampersand
keysym n = n N dollar
keysym m = m M EuroSign
keysym semicolon = semicolon colon U00A3
keysym minus = minus underscore underscore
keysym plus = plus plus equal
keysym comma = comma less adiaeresis
keysym period = period greater odiaeresis
keysym KP_Enter = Return Return
keysym BackSpace = BackSpace BackSpace Tab
add control = Control_L Control_R
add shift = Shift_L Shift_R
add lock = Caps_Lock

Anunakin
09-30-2009, 02:28 PM
If you have a N810 with français/português or brasileiro keymap, use it:

!/home/user/.Xmodmap-keymap
!This first section is from the Mamona project
!http://dev.openbossa.org/trac/mamona/browser/packages/xserver-kdrive-common/xserver-kdrive-common/mamona/keymap.xmodmap

keycode 9 = Escape
keycode 10 = 1 exclam
keycode 11 = 2 at
keycode 12 = 3 numbersign
keycode 13 = 4 dollar
keycode 14 = 5 percent
keycode 15 = 6 asciicircum
keycode 16 = 7 ampersand braceleft
keycode 17 = 8 asterisk bracketleft
keycode 18 = 9 parenleft bracketright
keycode 19 = 0 parenright braceright
keycode 20 = minus underscore backslash
keycode 21 = equal plus
keycode 22 = BackSpace
keycode 23 = Tab
keycode 24 = q Q q
keycode 25 = w W w
keycode 26 = e E
keycode 27 = r R r
keycode 28 = t T t
keycode 29 = y Y y
keycode 30 = u U u
keycode 31 = i I i
keycode 32 = o O o
keycode 33 = p P p
keycode 34 = bracketleft braceleft
keycode 35 = bracketright braceright asciitilde
keycode 36 = Return
keycode 37 = Control_L
keycode 38 = a A
keycode 39 = s S s
keycode 40 = d D
keycode 41 = f F
keycode 42 = g G g
keycode 43 = h H h
keycode 44 = j J j
keycode 45 = k K k
keycode 46 = l L l
keycode 47 = semicolon colon
keycode 48 = apostrophe quotedbl
keycode 49 = grave asciitilde
keycode 50 = Shift_L
keycode 51 = backslash bar
keycode 52 = z Z z
keycode 53 = x X x
keycode 54 = c C
keycode 55 = v V v
keycode 56 = b B
keycode 57 = n N n
keycode 58 = m M m
keycode 59 = comma semicolon
keycode 60 = period greater
keycode 61 = slash question
keycode 62 = Shift_R
keycode 63 = KP_Multiply
keycode 64 = Alt_L
keycode 65 = space
keycode 66 = Caps_Lock
keycode 67 = F1 F11
keycode 68 = F2 F12
keycode 69 = F3 F13
keycode 70 = F4 F14
keycode 71 = F5 F15
keycode 72 = F6 F16
keycode 73 = F7 F17
keycode 74 = F8 F18
keycode 75 = F9 F19
keycode 76 = F10 F20
keycode 77 = Num_Lock
keycode 78 = Scroll_Lock
keycode 79 = KP_7
keycode 80 = KP_8
keycode 81 = KP_9
keycode 82 = KP_Subtract
keycode 83 = KP_4
keycode 84 = KP_5
keycode 85 = KP_6
keycode 86 = KP_Add
keycode 87 = KP_1
keycode 88 = KP_2
keycode 89 = KP_3
keycode 90 = KP_0
keycode 91 = KP_Decimal
keycode 94 = less greater bar
keycode 95 = F11
keycode 96 = F12
keycode 104 = KP_Enter
keycode 105 = Control_R
keycode 106 = KP_Divide
keycode 108 = Mode_switch
keycode 109 = Break
keycode 110 = Home
keycode 111 = Up
keycode 112 = Prior
keycode 113 = Left
keycode 114 = Right
keycode 115 = End
keycode 116 = Down
keycode 117 = Next
keycode 118 = Insert
keycode 119 = Delete
keycode 120 = Menu
keycode 121 = F13
keycode 122 = F14
keycode 123 = Help
keycode 124 = Execute
keycode 125 = F17
keycode 126 = KP_Subtract
keycode 127 = Pause

add shift = Shift_L Shift_R
add lock = Caps_Lock
add control = Control_L Control_R
add mod1 = Alt_L
add mod2 = Num_Lock
add mod4 = Mode_switch

!/home/user/.Xmodmap
!keymaps for portuguese/brazilian N810 by Anunakin

keycode 216 = Mode_switch
keycode 24 = q Q 1
keycode 25 = w W 2
keycode 26 = e E 3
keycode 27 = r R 4
keycode 28 = t T 5
keycode 29 = y Y 6
keycode 30 = u U 7
keycode 31 = i I 8
keycode 32 = o O 9
keycode 33 = p P 0
keycode 38 = a A exclam
keycode 39 = s S quotedbl
keycode 40 = d D at
keycode 41 = f F numbersign
keycode 42 = g G asterisk
keycode 43 = h H backslash
keycode 44 = j J slash
keycode 45 = k K parenleft
keycode 46 = l L parenright
keycode 48 = dead_acute dead_grave dead_diaeresis
keycode 52 = z Z EuroSign
keycode 53 = x X numbersign
keycode 54 = c C ampersand
keycode 55 = v V exclamdown
keycode 56 = b B apostrophe
keycode 57 = n N plus
keycode 58 = m M equal
keycode 47 = ccedilla Ccedilla questiondown
keycode 20 = ntilde Ntilde question
keycode 21 = dead_tilde dead_circumflex bar
keycode 65 = space
keycode 59 = comma semicolon minus
keycode 60 = period colon underscore
keycode 36 = Return Return
keycode 22 = BackSpace BackSpace Tab
keycode 72 = F11 F6 F1
keycode 70 = Menu Menu Super_L
keycode 135 = Alt_L ISO_Level3_Shift
keycode 104 = Tab