From: Andres Salomon Date: Sat, 15 Nov 2008 20:16:15 +0000 (-0500) Subject: initchroot: add key mappings for things like gamekeys (via hal) X-Git-Tag: v0.4~14 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e35e9744864128ba691b72a403e55b05bbb22ad;p=xodist 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 --- 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