User:Jebba/Keymap

Contents

[edit] Keymap

Random notes.

xkbprint -label name $DISPLAY - > rx-51-keymap.ps


[edit] My Maemo Keymap

Makes things nicer so sterling and pound become pipe and tab.

/usr/share/X11/xkb/symbols/nokia_vndr/rx-51

--- rx-51.orig	2009-10-07 10:39:13.000000000 -0300
+++ rx-51	2009-12-31 20:00:22.000000000 -0300
@@ -376,9 +376,11 @@
    key <AB09>	{ [	period,		colon,		question,	question	] };
 
    // 3. row
-    key <AB01>	{ [	z,		Z,		sterling,	sterling	] };
+//  key <AB01>	{ [	z,		Z,		sterling,	sterling	] };
+    key <AB01>	{ [	z,		Z,		bar,		bar		] };
    key <AB02>	{ [	x,		X,		dollar,		dollar		] };
-    key <AB03>	{ [	c,		C,		EuroSign,	EuroSign	] };
+//  key <AB03>	{ [	c,		C,		EuroSign,	EuroSign	] };
+    key <AB03>	{ [	c,		C,		Tab,		Tab		] };
    key <AB04>	{ [	v,		V,		slash,		slash		] };
    key <AB05>	{ [	b,		B,		backslash,	backslash	] };
    key <AB06>	{ [	n,		N,		quotedbl,	quotedbl	] };

[edit] xbindkeys

I think i submitted this to the builder, who knows if it made it thru, too frustrated to even bother to look.

~/.xbindkeysrc

"freemoe-xterm-toolbar"
 control + comma

freemoe-xterm-toolbar:

#!/bin/sh

SETTING=`gconftool-2 --get \
	/apps/osso/xterm/toolbar`

if [ $SETTING == "true" ]
	then NEWSETTING="false"
	else NEWSETTING="true"
fi

gconftool-2 --set --type bool \
	/apps/osso/xterm/toolbar \
	$NEWSETTING

[edit] kernel

I'm trying to work up a patch so the keymap works when you boot into Mer or Fedora in the console. I did one patch of arch/arm/mach-omap2/board-rx51-peripherals.c, but I definitely foobar'd it. There's probably an easier way to do it with console-tools too.


[edit] upstream patch

Hints, perhaps.

commit acf442dc560437858e6a4c904678052616f8226e
Author: Amit Kucheria <amit.kucheria@verdurent.com>
Date:   Mon Oct 5 21:43:44 2009 -0700

   Input: fix rx51 board keymap

   The original driver was written with the KEY() macro defined as (col,
   row) instead of (row, col) as defined by the matrix keypad
   infrastructure. So the keymap was defined accordingly. Since the
   driver that was merged upstream uses the matrix keypad infrastructure,
   modify the keymap accordingly.

   While we are at it, fix the comments in twl4030.h and define
   PERSISTENT_KEY as (r,c) instead of (c, r)

   Tested on a RX51 (N900) device.

   Signed-off-by: Amit Kucheria <amit.kucheria@verdurent.com>
   Acked-by: Tony Lindgren <tony@atomide.com>
   Signed-off-by: Dmitry Torokhov <dtor@mail.ru>


[edit] Console on Maemo

With my framebuffer console-enabled kernel, to get a console on the N900 with Maemo 5:

sudo /sbin/getty 38400 tty3
sudo chvt 3

To switch back:

sudo chvt 2

You may want to open up a big black image or xterm or something in X or it will keep obscuring what you write.

Run "gotox" to get out if you aren't ssh'd in.

~ # cat /sbin/gotox 
#!/bin/sh

chvt 2

[edit] TODO

 cehteh: jebba: S-Space works nice for tab