Avoid presence of two CorePointers, disable the PS/2 entry then. 0.3.20
authorMichael Prokop <mika@grml.org>
Tue, 3 Apr 2007 19:20:57 +0000 (21:20 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 3 Apr 2007 19:20:57 +0000 (21:20 +0200)
debian/changelog
grml-x

index 53b22ec..91aa97c 100644 (file)
@@ -1,3 +1,10 @@
+grml-x (0.3.20) unstable; urgency=low
+
+  * Avoid presence of two CorePointers, disable the PS/2 entry then.
+    [Testing: issue184]
+
+ -- Michael Prokop <mika@grml.org>  Tue,  3 Apr 2007 21:20:21 +0200
+
 grml-x (0.3.19) unstable; urgency=low
 
   * Mention package libgl1-mesa-dri in comments for DRI.
diff --git a/grml-x b/grml-x
index 8673061..8974f8e 100755 (executable)
--- a/grml-x
+++ b/grml-x
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Mon Mär 26 22:19:37 CEST 2007 [mika]
+# Latest change: Die Apr 03 21:18:57 CEST 2007 [mika]
 ################################################################################
 
 # debugging {{{
@@ -747,6 +747,12 @@ EOX
 writeit() {
     XCONFTMP="/tmp/xconfig.$$"
     xconfig > $XCONFTMP
+    # we do not want to have two CorePointers, deactivate one therefore
+    if grep -Eq '^[[:space:]]+InputDevice[ ]+"USB Mouse"[ ]+"CorePointer"' $XCONFTMP ; then
+       if grep -Eq '^[[:space:]]+InputDevice[ ]+"PS/2 Mouse"[ ]+"CorePointer"' $XCONFTMP ; then
+          sed -i 's|InputDevice.*PS/2.*CorePointer|# & # deactivated to avoid two CorePointers|' $XCONFTMP
+       fi
+    fi
     [ -f $XCONFIG ] && sudo mv -f $XCONFIG $XCONFIG.old
     sudo mv $XCONFTMP $XCONFIG
     sudo chown root.root $XCONFIG