Help - Search - Members - Calendar
Full Version: New Keymap For C1k
OESF Portables Forum > Everything Else > Archived Forums > Distros, Development, and Model Specific Forums > Zaurus Distro Support and Discussion > Angstrom & OpenZaurus

With some help from the #oe folks a little while ago I've been tweaking the keymap for my C1000 running OZ/Opie 3.5.3. My modifications are:

* Enable right shift key
* Remap the two japanese keys near the bottom left of the keyboard: the left one is mapped to tilde and the right one is mapped to / (slash). I found this to be helpful when typing directories.
* 'Home' key mapped to F12 so it works in Opie
* Scroll switch on the side (used in portrait mode) is mapped to up and down and the "Ok" key is mapped to 'Return' and the "Cancel" key is mapped to Escape

Unfortunately I still haven't gotten the on/off button to work... I tried mapping it to F34 which seems to be the 'Power' key in qte, but that didn't work. In the meantime I've mapped the 'mail' key in the Buttons applet to the suspend call which works just fine.

I've attached my 'full-keys' output. In order to install the keymap you need to have the console-utils ipk installed. In order to install that ipk you'll have to enable force-overwrite since it includes a couple binaries that will replace the busybox version (chvt is one, can't remember the others). You can always relink those binaries to busybox if you have problems.

And finally, I modified my /etc/init.d/ and added a call to loadkeys which loads up the keymap before opie is started (anytime you change the keymap you must restart opie). That addition:
if test -e /home/root/full-keys    
   /usr/bin/loadkeys /home/root/full-keys

Someday I'll generate a config that can be used as a patch to the kernel, I just haven't quite gotten there yet.

Hope this is helpful for folks...

Am I right to assume that this could be applied to the C3000 eventually as well?
How about adding mapping to switch between VTs?
QUOTE(jamesm @ Jun 3 2005, 12:52 AM)
Am I right to assume that this could be applied to the C3000 eventually as well?

Yep -- I believe this works for the C3k as well.

QUOTE(albertr @ Jun 3 2005, 05:52 AM)
How about adding mapping to switch between VTs?

I'll look into that this weekend.

It does indeed work for the C3K as well. I also altered it a bit to map some keys for the RE-CH2 remote so that it could cotrol xmms-embedded. That was ok, but it only works when xmms is in focus. I'm working on getting lineakd working now so that I can control mpd with the remote. :-)
Hey guys, Zecke instructed me to tell you

"The keymap is an ordinary text file, every user can edit it to achieve the results one want. Each line is for a specified key and each column stands for modifiers. To increment and decrement the VT use Decr_Console or Incr_Console. Qt/E should honor these keys. Console_N where N is range(1..13) you can jump to a given console."

Btw., it would be cool if you would add those patches into the OZ bugtracker ( => distro openzaurus). That way improvements made here could make it into further releases. Otherwise, it's likely that they go lost since we don't have enough people to scan all communication channels out there.
Cool, thanks... I wasn't aware of the Console_N commands. I'll give them a try.

I keep meaning to create a proper patch for the keys but since it seems to be done in the kernel -keymap.c file I haven't taken the time to get it going. Hopefully I'll get my bitbake going again this weekend when I migrate to monotone.

I used Incr_Console and Decr_Console and it works fine in the console but it's not working in both Opie and GPE. I'm using Fn-9 and Fn-0. Could it perhaps be the Fn keys?
Hi guys,
I've just added the new keymap to OE.
There was only one change: The "hinge rotated" "key" was mapped to F15 to allow auto-rotate to work.

I'll have a look on how to add a key-combo to switch consoles.

Revision: a6f1ef5bbb3cac8192d0a7bc6d5c64b301e70463
Ancestor: b917e526ef1ed3d2eeb79913937d02f951bc16ff
Date: 2005-07-20T20:47:05

Added files:
Modified files:
       .mt-attrs packages/initscripts/


Akita: Add a fixed keymap, credits to

Many thanks jh!
Cool, thanks! Great to see you've got a C1k now :-)

Now I definitely need to switch to monotone and get my images building again.

In the version of qkeyboard_qws.cpp I see, the console switching tty keys are set to Qt::Key_unknown...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.