![]() |
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.
|
All times are GMT. The time now is 19:14. |
vBulletin® Version 3.8.8