![]() |
[Debian] N810 Xmodmap Mappings - Azerty/Italian/English
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: Code:
keycode 216 = Mode_switch Escape = FN + , TAB = FN + Backspace Italian Keyboards: Quote:
Pipe = FN + . For French/Azerty Keyboards: Quote:
Tab = FN + < Then create/add the following to /home/user/.icewm/startup: Code:
#!/bin/sh 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).. Code:
sudo gainroot |
Re: My Debian Tricks - N810 xmodmap
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.
|
Re: My Debian Tricks - N810 xmodmap
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... |
Re: My Debian Tricks - N810 xmodmap
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.
|
Re: My Debian Tricks - N810 xmodmap
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? |
Re: My Debian Tricks - N810 xmodmap
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. Quote:
PS: As far as I know, they only got the USB2VGA thing to produce 2 fps from the tablet... :( |
Re: My Debian Tricks - N810 xmodmap
Quote:
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. |
Re: My Debian Tricks - N810 xmodmap
Quote:
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. |
Re: My Debian Tricks - N810 xmodmap
Quote:
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? |
Re: My Debian Tricks - N810 xmodmap
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 Code:
sudo gainroot |
Re: My Debian Tricks - N810 xmodmap
Works like a champ ! It's cool to get my qwerty back even with my azerty tablet ! Thank you!
|
Re: My Debian Tricks - N810 xmodmap
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.
Code:
keycode 216 = Mode_switch |
Re: My Debian Tricks - N810 xmodmap
what is matchbox ?
|
Re: My Debian Tricks - N810 xmodmap
A window manager, http://matchbox-project.org/, used in the tablets.
|
Re: My Debian Tricks - N810 xmodmap
http://en.wikipedia.org/wiki/Matchbox_%28window_manager%29
It's the plain vanilla window manager our NITs. |
Re: My Debian Tricks - N810 xmodmap
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? |
Re: My Debian Tricks - N810 xmodmap
I assume you've tried rotation and small-font-themes?
|
Re: My Debian Tricks - N810 xmodmap
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... |
Re: My Debian Tricks - N810 xmodmap
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...) |
Re: My Debian Tricks - N810 xmodmap
I followed your instructions in #1, but the function key on my slide-down keyboard isn't usable.
Thanks |
Re: My Debian Tricks - N810 xmodmap
Quote:
ive noticed sometimes it doesnt load right .. open a terminal in Icewm Code:
cd |
Re: My Debian Tricks - N810 xmodmap
I can tell Benson still doesn't have his tablet set up right, yet. :D
|
Re: My Debian Tricks - N810 xmodmap
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. ;) |
Re: My Debian Tricks - N810 xmodmap
2 Attachment(s)
Quote:
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 :) |
Re: My Debian Tricks - N810 xmodmap
WOW Those are some TINY fonts! But at least you can see the whole window...
|
Re: My Debian Tricks - N810 xmodmap
Ok, I stumbled upon something interesting.
Someone with an N810 try this copy command with your Debian chroot mounted in /debian: Code:
cp -r /usr/share/X11/xkb /debian/usr/share/X11 Disable your xmodmap stuff. Run the IceWM menu item in OS2008 See if this changes anything about how the N810 keyboard works in IceWM. |
Re: My Debian Tricks - N810 xmodmap
Quote:
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. |
Re: My Debian Tricks - N810 xmodmap
Quote:
|
Re: My Debian Tricks - N810 xmodmap
Quote:
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. |
Re: My Debian Tricks - N810 xmodmap
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. |
Re: My Debian Tricks - N810 xmodmap
Quote:
I just rebooted, launched a term and keyboard was mapped automagically. Thanks Debernardis. |
Re: My Debian Tricks - N810 xmodmap
Here's my /home/user/.Xmodmap-debian file for my french N810 :
Quote:
A good help for finding correspondances : http://wiki.linuxquestions.org/wiki/...sed_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) |
Re: My Debian Tricks - N810 xmodmap
I am going to update the Original post with all three .. this is awesome.. thanks murphy!
|
Re: My Debian Tricks - N810 xmodmap
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 Code:
xmodmap -e "keysym <original keysym> = <your new keysym>" Code:
xmodmap -e "keycode <original keycode> = <original keysym>" - 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 |
Re: My Debian Tricks - N810 xmodmap
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:
Code:
xmodmap -e "keysym F6 = F11" |
Re: My Debian Tricks - N810 xmodmap
Quote:
put this in your /home/user/.xbindkeysrc file: Code:
"wmctrl -r :ACTIVE: -b toggle,fullscreen" |
Re: My Debian Tricks - N810 xmodmap
Awesome tip!
I'll look into it if I ever end up actually booting my debian again =-(. Stupid compiles. |
Re: My Debian Tricks - N810 xmodmap
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: Code:
keycode 216 = Mode_switch Code:
"r-mouse" Code:
#!/bin/sh |
Re: My Debian Tricks - N810 xmodmap
Added keys to make the CONTROL key work in deblet in OP.
|
Re: My Debian Tricks - N810 xmodmap
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 (openjdk-6-jre), Gimp, LXDE, etc. It really feels like a finished, functional system. Thanks in advance! |
All times are GMT. The time now is 17:06. |
vBulletin® Version 3.8.8