xmodmap not working on n900
Hmmm, so the fun starts.
I've compiled xmodmap on board the N900. It's not functional. If I try a simple key remap, the key gets probably captured, since it doesn't type anymore, but the replacement key doesn't get echoed... BTW, I was surprised to find out that xmodmap doesn't exist even in the SDK repository for the N900. Anyone know what's up? |
Re: xmodmap not working on n900
Though I can't help since I've no device yet, I'm curious: did you also compile xev? Does it work?
|
Re: xmodmap not working on n900
I used qole's xev from here: http://talk.maemo.org/showpost.php?p...5&postcount=21
It works. It's a little clumsy, since every window is full screen on the N900, so you have to click back and forth, but you can determine key codes this way. This xmodmap is a bugger though, I've never met a problem with it of this kind on any device, so am thinking what could be causing it, especially since I compiled it natively, not even in scratchbox... I'm kinda surprised negativelly a little by the N900's non-readiness to be used by a GNU/Linux poweruser, seems it's gonna take a lotta effort to get it into a useable state... |
Re: xmodmap not working on n900
I mean there is that damned busybox, which doesn't enable onboard development, since it has non-required grep etc. But the busybox cannot be easily replaced by GNU utilities, since it conflicts with grep sed bison and so on and on, so when you try and install GNU utilities you would render your system unuseable, as it'd install half of Nokia proprietary stuff and the phone would stop working...
So, surprisingly though this should be a GNU power phone, it might not be that way until some serious hacking... |
Re: xmodmap not working on n900
Getting the keys remapped on the N900 is the bane of my existence right now.
I can get a temporary remap using the technique described here. Quote:
EDIT: That xev is not mine, it is qwerty12's. And the problem that is exposed with xev (and my LXDE on Xephyr project) is that every window has to explicitly call XSetInputFocus() to grab the keyboard, otherwise the keystrokes don't go to that window. |
Re: xmodmap not working on n900
Quote:
This is the crux of my efforts since getting the phone today... |
Re: xmodmap not working on n900
Quote:
|
Re: xmodmap not working on n900
I remap several keys:
sterling -> bar euro -> asciitilde Fn-Right -> tab Nothing works if I change the /usr/share/X11/xkb/symbols/nokia_vndr/rx-51 file. If I make the same changes to a custom qole.xkb file and then sudo xkbcomp qole.xkb :0 I'm good to go until my next reboot. |
Re: xmodmap not working on n900
Can you post your working qole.xkb as I see I'm thinking of similar keys, so I don't have to reinvent the wheel?
|
Re: xmodmap not working on n900
1 Attachment(s)
Sure, here it is. Sorry, I had to gzip it to attach it here.
|
Re: xmodmap not working on n900
Quote:
|
Re: xmodmap not working on n900
Quote:
If you didn't map it, can you propose a coded map, since you're somewhat more familiar with it than me? Oh, and how about ESC? |
Re: xmodmap not working on n900
BTW, I've found this: http://upir.cz/maemo/keyboards/
It's in the extras-devel repository as ukeyboard, and it's got some hardware keyboards, but they're borked on the N900, for instancee the Slovak keyboard has some redefines, but the RET key acts funny, but perhaps just some source modification needed and this will give us a power hardware keyboard, also between reboots... |
Re: xmodmap not working on n900
1 Attachment(s)
I have the following keys working with only modifying the rx-51 file and rebooting:
fn+z=>tilde fn+c=>pipe fn+left=>escape fn+right=>tab The only two keys that don't seem to work are: fn+up=>page up fn+down=>page down The lines that don't seem to work for those entries are: key <UP> { type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ Up, PageUp ] }; key <DOWN> { type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ Down, PageDown ] }; Anyone have any suggestions? I also tried PgDown/PgUp, but that didn't work either. |
Re: xmodmap not working on n900
On a 4-level key, does anyone know how to get the item in the 4th column?
1st: no modifiers 2nd: shift 3rd: fn 4th: ? I tried fn+shift, but that didn't work. It would be great if we could get that 4th column working to have other keys like {, }, <, >, [, ], `, etc. Otherwise, I won't be able to program on the device after all :( |
Re: xmodmap not working on n900
What level is Ctrl?
|
Re: xmodmap not working on n900
Quote:
|
Re: xmodmap not working on n900
ukeyboard seems to work nicely here. I imagine it would be fairly easy to use it and adapt the available keyboards. However, this would mean to replicate "advanced" layouts for any thinkable language, assuming non-English users are interested in this. I would hope there is a way that works "on top of" the normal keyboard layout.
|
Re: xmodmap not working on n900
Wait a sec, were you able to use at least one of the hardware keyboards in ukeyboard? I think it only adds two, slovak and czech, but I seemed to have probs with enter stopping working then and so.
You had no probs? I really would like to derive a dvorak keyboard, hardware that is, ukeyboard already has a dvorak virtual one, is OK. I checked the sources, but am not completely sure how to setup the hardware dvorak keyboard there, did you take a look at them and do you have an idea how to set up one hardware keyboard there? |
Re: xmodmap not working on n900
Quote:
|
Re: xmodmap not working on n900
While trying to find what could be the 4th level could be, i found this weird behavior when you use fn+ctrl to put down two consecutive symbols, where the keyboard becomes unresponsive except for return, which still adds lines. It happens in both nokia Conversation and also Leafpad, so its not the program capturing the keypresses for something else, not sure what's up with that. Some sort of ctrl-lock? not sure how to test it
I'm also trying to find how to adjust the keyboard, notably fn + directions for ^<>, but unsure how to skip the shift+direction designation to keep text selection. Seeing how you guys are having trouble i'll probably back down for now (i somehow managed to get it to fail to boot, stuck on the .... booting screen from messing with rx-51, forced to flash), wait for someone to figure out exactly what's going on I'm not thrilled with the symbols vkb being inconsistant for entry for signs that could be used for accents (tilde and whatnot, where you need to hit space after tapping it to enter the symbol, whereas stuff like copyright are entered on tap) |
Re: xmodmap not working on n900
Quote:
|
Re: xmodmap not working on n900
Complete reading failure there, thanks for pointing it out... I somehow only managed to notice the issues you guys were having getting keymaps to stick, nothing about what you guys were actually succeeding at doing.
Any ideas why editing /usr/share/X11/xkb/symbols/nokia_vndr/rx-51 with vi might cause my device to fail to boot? I would imagine that worst case would just get me a nonfunctional keyboard, and needing to revert to the older version to fix it, but this is the second time I've edited rx-51 and caused the device to stall at the loading dots. Just trying to get an idea what could be system critical elements in a keyboard configuration file. Edit: nevermind, I tried editing the file bit by bit this time and nothing blew up in my face, no idea what I could have done that caused system failure, though. |
Re: xmodmap not working on n900
1 Attachment(s)
Quote:
sterling -> | (bar) euro -> ` (grave) fn+backspace -> delete fn+right -> > (greater) fn+left -> < (less) fn+up-> ^ (asciicircum) fn+down-> % (percent) which together with tab, esc, [, ], {, }, and ~ in the xterm key bar gives me more or less everything I need, I think. After editing the rx-51 file, I found the command setxkbmap with no params was enough to get the keys loaded. By way of return, I think you want Page_Up and Page_Down (with underscores) for your mappings on the fn+up and fn+down. I did try Page_Up in the fn+up slot and it seemed to work for me. One curiosity of my own: I tried to map shift+space to Tab in the second column for SPCE in the english_base section (tried "tab" as well as "Tab") but with no luck. Pressing the shifted space did nothing (didn't even get a space out of it). However when I put (randomly) "colon" in the place of "Tab", shifted space got me a colon no problems... Something odd about tab in that position? I don't know. If anyone wants to replicate or investigate this setup, the xterm bar commands (run as user) are Code:
gconftool-2 -s /apps/osso/xterm/keys -t list --list-type=string "[Tab,Escape,bracketleft,bracketright,braceleft,braceright,asciitilde]"Edit: if you try using the rx-51 file, results may depend on the regional settings of your n900, judging by the file itself! Further Edit: Of course, you can get tab in the kb with ctrl-i in any case.. but still! |
Re: xmodmap not working on n900
1 Attachment(s)
So, here is my layout for the brave few! DVORAK
The layout of the keys is: | Ctr/Sym | :;1 | w 2 | v 3 | p 4 | y 5 | f 6 | g 7 | c 8 | r 9 | l 0 | .,= ....| DEL ..| | FN......| a * | o + | e # | u - | i _ | d ! | h ? | t & | n < | s > | UP ` ...| RET ..| | Shift...| z ~ | q $ | j / | k ( | x ) | b " | m ' | SPC/@.... | LEFT| DOWN bar| RIGHT | Still a WIP with maybe minor changes to come. Thanks everyone, especially qole, da man, for help... |
Re: xmodmap not working on n900
Just a quick note here,
I was also using shift+space for tab and found it works everywhere else other than xterm... but the important thing for me was that changing shift+space breaks the page up functionality in browser. I currently have tab set to fn+backspace (shift for delete) and it works fine for me, reverted shift space to allow for pageup. Thanks for the setxkbmap trick! I was using kill hildon-input-method for it to reload the maps, this way is much more reliable and safer |
Re: xmodmap not working on n900
Quote:
I have tried running xmodmap (and another simple C prog using above mentioned API) on a Ubuntu box against the $DISPLAY of the N900. And the result? Broken, Broken :-/ Someone can confirm this? Any developer understanding the issue is reading us? |
Re: xmodmap not working on n900
Quote:
|
Re: xmodmap not working on n900
Quote:
https://bugs.maemo.org/show_bug.cgi?id=8695 Could you add your test case to it? --denis |
Re: xmodmap not working on n900
thanks delaroca for filing the bug report, your test case enough represents the issue for being fully reproduced
|
Re: xmodmap not working on n900
Quote:
By the way, I think you could have implemented your layout say within the US section... instead of modifying the "english-base" which affects all other layouts that do a default include of that base. --denis |
Re: xmodmap not working on n900
Quote:
Quote:
I mean, after updates, my Dvorak layout is almost perfect, within the crappy keyboard confines of the N900 and other languages I use in GNU Emacs, where the Dvorak is the base and every other language is on top of it, works really well for instance for Russian, Japanese, Polish, etc. But, yeah, the clean version should probably be within en-us. |
Re: xmodmap not working on n900
Quote:
What flash image do you have on your device, the "Second Maemo 5 USA variant for Nokia N900" or the so-called "Second Maemo 5 Global release for Nokia N900"? I never understood the difference. --denis Edit 2/3/10: Matan pointed out bugs in the hildon-input-methoid framework that prevent FOUR_LEVEL mapping from working reliably. He has a patched version of that module that fixes the problem!!! |
Re: xmodmap not working on n900
From what I understand, PageUp and PageDown symbols are represented with "Next" and "Prior" respectively.
What I've been trying to do is significantly more evil - on my n810, I had the zoom in/zoom out keys remapped to PageUp/PageDown for browser reading purposes. I can get it to work just fine by editing rx-51 (scrolling isn't smooth, but it works)... unless the browser is in portrait mode. My presumption is that this has to do with the fact that maemo-statusbar-volume messes with those keys for handling the phone (as seen in the comments in the rx-51 file), and since the device was released with the assumption that portrait was phone-only, it's still grabbing the keys and thus my modifications can't get through. Oops! Anyone else care to confirm this, or perhaps show me a better way? :) |
Re: xmodmap not working on n900
Although resurrecting an old thread is very unlikely to get results, I have to try.
This bug is still open. Why? https://bugs.maemo.org/show_bug.cgi?id=8695 Can't we just rebuild xserver-xorg-core and be done with this? (Trying that now). Also, it's nice that there is an alternative to remapping the keyboard, but what about the pointer? Yes, I would like to use the middle mouse button, and am having a hard time finding a way to do so without xmodmap. |
Re: xmodmap not working on n900
Is xmodmap supposed to work w/ PR 1.3 ?
I find that not even xev is showing the KeyPress/KeyRelease like on my PC ... |
Re: xmodmap not working on n900
Quote:
There is a custom xev that works though ... Had to change the xkb/symbols/* to achieve what I needed :( |
Re: xmodmap not working on n900
Quote:
|
Re: xmodmap not working on n900
Quote:
|
| All times are GMT. The time now is 08:43. |
vBulletin® Version 3.8.8