From 0e35e9744864128ba691b72a403e55b05bbb22ad Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Sat, 15 Nov 2008 15:16:15 -0500 Subject: [PATCH] initchroot: add key mappings for things like gamekeys (via hal) This is just an initial hack; it should really end up in upstream hal, and still needs proper XO detection. Signed-off-by: Andres Salomon --- 30-keymap-olpc.fdi | 36 ++++++++++++++++++++++++++++++++++++ initchroot.sh | 5 +++++ 2 files changed, 41 insertions(+) create mode 100644 30-keymap-olpc.fdi diff --git a/30-keymap-olpc.fdi b/30-keymap-olpc.fdi new file mode 100644 index 0000000..3051467 --- /dev/null +++ b/30-keymap-olpc.fdi @@ -0,0 +1,36 @@ + + + + + + + + + 0x65:kp9 + 0x66:kp3 + 0x67:kp7 + 0x68:kp1 + + 0xe065:kp8 + 0xe066:kp2 + 0xe067:kp4 + 0xe068:kp6 + + 0x43:brightnessdown + 0x44:brightnessup + 0x57:volumedown + 0x58:volumeup + + 0x59:fn + + 0xe043:f9 + 0xe044:f10 + 0xe057:f11 + 0xe058:f12 + + input.keymap + + + + diff --git a/initchroot.sh b/initchroot.sh index f5efe4d..80c4d75 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -197,6 +197,11 @@ EndSection EOF fi +# key bindings/mappings +if [ -d ${ROOT_DIR}/usr/share/hal/fdi/information/10freedesktop/ ]; then + cp 30-keymap-olpc.fdi ${ROOT_DIR}/usr/share/hal/fdi/information/10freedesktop/ +fi + # configure kdm, kde if [ -d ${ROOT_DIR}/etc/kde3/kdm ]; then sed --in-place "s/AllowNullPasswd=false/AllowNullPasswd=true/;s/#AutoLoginEnable=true/AutoLoginEnable=true/;s/#AutoLoginUser=fred/AutoLoginUser=${DEFUSER}/" ${ROOT_DIR}/etc/kde3/kdm/kdmrc -- 2.39.5