![]() ![]() |
Jun 2 2005, 02:17 PM
Post
#1
|
|
|
Group: Members Posts: 115 Joined: 20-November 03 Member No.: 968 |
Hi,
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/bootmisc.sh 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: CODE if test -e /home/root/full-keys then /usr/bin/loadkeys /home/root/full-keys fi 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... jason
Attached File(s)
|
|
|
|
Jun 3 2005, 12:52 AM
Post
#2
|
|
|
Group: Members Posts: 102 Joined: 7-September 04 From: UK Member No.: 4,489 |
Am I right to assume that this could be applied to the C3000 eventually as well?
|
|
|
|
Jun 3 2005, 05:52 AM
Post
#3
|
|
|
Group: Members Posts: 535 Joined: 7-March 04 Member No.: 2,195 |
How about adding mapping to switch between VTs?
-albertr |
|
|
|
Jun 3 2005, 06:14 AM
Post
#4
|
|
|
Group: Members Posts: 115 Joined: 20-November 03 Member No.: 968 |
|
|
|
|
Jul 14 2005, 10:39 AM
Post
#5
|
|
|
Group: Members Posts: 65 Joined: 23-February 04 From: Santa Rosa Member No.: 1,997 |
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. :-)
|
|
|
|
Jul 20 2005, 10:59 AM
Post
#6
|
|
|
Group: Members Posts: 1,497 Joined: 12-November 03 From: Germany Member No.: 907 |
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 (bugs.openembedded.org => 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. |
|
|
|
Jul 20 2005, 01:04 PM
Post
#7
|
|
|
Group: Members Posts: 115 Joined: 20-November 03 Member No.: 968 |
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. jason |
|
|
|
Jul 20 2005, 06:47 PM
Post
#8
|
|
|
Group: Members Posts: 65 Joined: 23-February 04 From: Santa Rosa Member No.: 1,997 |
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?
|
|
|
|
Jul 20 2005, 07:55 PM
Post
#9
|
|
![]() Group: Members Posts: 715 Joined: 25-July 04 From: .de Member No.: 4,094 |
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. CODE ----------------------------------------------------------------- Revision: a6f1ef5bbb3cac8192d0a7bc6d5c64b301e70463 Ancestor: b917e526ef1ed3d2eeb79913937d02f951bc16ff Author: coredump@openembedded.org Date: 2005-07-20T20:47:05 Branch: org.openembedded.dev Added files: packages/initscripts/initscripts-1.0/akita/keymap packages/initscripts/initscripts-1.0/akitakeymap.map Modified files: .mt-attrs packages/initscripts/initscripts_1.0.bb ChangeLog: Akita: Add a fixed keymap, credits to jh@oesf.org ----------------------------------------------------------------- Many thanks jh! |
|
|
|
Jul 21 2005, 08:15 AM
Post
#10
|
|
|
Group: Members Posts: 115 Joined: 20-November 03 Member No.: 968 |
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. jason |
|
|
|
Aug 4 2005, 11:16 AM
Post
#11
|
|
|
Group: Members Posts: 2 Joined: 3-August 05 Member No.: 7,770 |
In the version of qkeyboard_qws.cpp I see, the console switching tty keys are set to Qt::Key_unknown...
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 03:49 AM |