I am still hoping for some more help with remapping the N900 keyboard (see quoted message below).<br><br>I have come across a problem I believe is related, and it is much more urgent for me to identify and fix the problem.<br>
<br>When I start a nested Xephyr X Server on the N900, the desktop environment that I run in that X Server (LXDE, on DISPLAY :1) does not seem to have access to the keyboard. No keyboard presses are passed to DISPLAY :1 at all. When I press the key combination to get to the Dashboard (CTRL-Backspace), I am taken to the Dashboard, which suggests that maybe Hildon desktop is not "letting go" of the keyboard.<br>
<br>I have tried using xkbcomp as described below to copy the keyboard mapping to display :1, but it doesn't help.<br><br>Any help or suggestions? <br><br><div class="gmail_quote">On Tue, Nov 10, 2009 at 9:23 PM, Qole <span dir="ltr"><<a href="mailto:qole.tablet@gmail.com">qole.tablet@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Now that the N900 has been released, I will post this question on maemo-developers, in the hopes that some Nokia devs can help me here.<br>
<br>I would like to know how to remap the keyboard on the N900. I've received some help from Marius Gedminas, as you will see below, but I'd like to know how to map the keyboard permanently, without having to run xkbcomp every time.<br>
<br>Here is the help that I've received so far:<br><br><div class="gmail_quote"><div class="im">On Sun, Oct 25, 2009 at 4:23 AM, Marius Gedminas <span dir="ltr"><<a href="mailto:marius@pov.lt" target="_blank">marius@pov.lt</a>></span> wrote:<br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br>
</div>I've had partial success by doing this:<br>
<br>
$ xkbcomp :0 default.xkb<br>
$ vi default.xkb<br>
<br>
comment out the two rules that cause syntax errors:<br>
<br>
// interpret AccessX_Enable+AnyOfOrNone(all) {<br>
// action= LockControls(controls=);<br>
// };<br>
<br>
// interpret MouseKeys_Accel_Enable+AnyOfOrNone(all) {<br>
// action= LockControls(controls=);<br>
// };<br>
<br>
Now you can restore the settings back by running<br>
<br>
$ xkbcmp default.xkb :0<br>
<br>
if you screw up and end up with a nonfunctional keyboard.<br>
<br>
Next<br>
<br>
$ cp default.xkb mg.xkb<br>
$ vi mg.xkb<br>
<br>
key <RGHT> {<br>
type= "FOUR_LEVEL",<br>
symbols[Group1]= [ Right, Right, Tab, Tab ]<br>
};<br>
<br>
$ xkbcomp mg.xkb :0<br>
<br>
and now Fn+Right arrow is a Tab key.<br>
<br>
Sadly I don't know enough about xkbcomp to see if it's possible to make<br>
it load incomplete maps on top of the current configuration, just to<br>
update a few symbols without replicating the full configuration.<br>
<div><br>
> None of the changes I make to /usr/share/X11/xkb/symbols/nokia_vndr/rx-51<br>
> have any effect (yes I reboot after changing the file).<br>
<br>
</div>Maybe the files in /var/cache/xkb contain precompiled versions of those?<br>
<br>
I'm not adventurous enough to go and start editing files in /usr/.<br>
Although creating a new symbols file in there and loading it on top of<br>
the defaults with setxkbmap ought to maybe work...<br>
<br>
Marius Gedminas<br>
<font color="#888888"></font></blockquote></div></div></div><br>(I have already replied with the following:<br><br>Replace <br><div class="im"><div>
type= "FOUR_LEVEL",<br>
symbols[Group1]= [ Right, Right, Tab, Tab ]<br></div></div><div class="im">with<br>
type= "PC_FN_LEVEL2",<br> symbols[Group1]= [ Right, Tab ]<br><br></div>and you will retain the ability to highlight text with shift-right arrow.)<div><div></div><div class="h5"><br clear="all">
<br>-- <br>enthusiast, n. "One whose mind is wholly possessed and heated by what engages it; one who is influenced by a peculiar fervor of mind; an ardent and imaginative person."<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>enthusiast, n. "One whose mind is wholly possessed and heated by what engages it; one who is influenced by a peculiar fervor of mind; an ardent and imaginative person."<br>