diff options
author | Koen Kooi <koen@openembedded.org> | 2008-12-30 17:30:50 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-12-30 17:30:50 +0100 |
commit | 814da25dfa191482e1b0bf614eb064c85a3233b0 (patch) | |
tree | 9483286dc9fb86ad5a8f860bb259703c41892b15 /packages | |
parent | 49345c6250c7f1708f35b15ecb673d42702bc553 (diff) |
xserver-common: add workaround for xmodmap problems with kdrive 1.4+
Diffstat (limited to 'packages')
-rwxr-xr-x | packages/xserver-common/files/98keymap-fixup | 10 | ||||
-rw-r--r-- | packages/xserver-common/xserver-common_1.22.bb | 6 |
2 files changed, 14 insertions, 2 deletions
diff --git a/packages/xserver-common/files/98keymap-fixup b/packages/xserver-common/files/98keymap-fixup new file mode 100755 index 0000000000..fcc84d9cab --- /dev/null +++ b/packages/xserver-common/files/98keymap-fixup @@ -0,0 +1,10 @@ +#!/bin/sh + +# kdrive 1.4 and up have a heisenbug where it may take multiple tries to apply a modmap +iter=0 +while [ $(xmodmap -pke | awk '{if ($2 == 36) { if ($4 == "Return") { print "good" } else {print "bad" }}}') = "bad" ] ; do + xmodmap - </etc/X11/default.xmodmap + let iter=iter+1 +done + +echo "modmap applied after $iter additional tries" diff --git a/packages/xserver-common/xserver-common_1.22.bb b/packages/xserver-common/xserver-common_1.22.bb index 05b15ae564..63a74496e7 100644 --- a/packages/xserver-common/xserver-common_1.22.bb +++ b/packages/xserver-common/xserver-common_1.22.bb @@ -2,7 +2,7 @@ DESCRIPTION = "Common X11 scripts and support files" LICENSE = "GPL" SECTION = "x11" RDEPENDS_${PN} = "xmodmap xrandr xdpyinfo" -PR = "r8" +PR = "r10" PACKAGE_ARCH = "all" @@ -13,10 +13,12 @@ SRC_URI_append = " file://setDPI.sh " SRC_URI_append_angstrom = " file://kdrive-1.4-fixes.patch;patch=1 \ file://xorg-fixes.patch;patch=1 \ file://gta-xorg-fixes.patch;patch=1 \ - file://default.xmodmap " + file://default.xmodmap \ + file://98keymap-fixup " do_install_append() { install -m 0755 "${WORKDIR}/setDPI.sh" "${D}/etc/X11/Xinit.d/50setdpi" + install -m 0755 "${WORKDIR}/98keymap-fixup" "${D}/etc/X11/Xinit.d/" } do_install_append_angstrom() { |