[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#385078: xserver-xorg: impossible mouse configuration other than /dev/input/mice



tags 385078 +patch
thank you

Please try this patch. I'm not a bash (nor debconf!) guru but I think
that it address your concerns regarding the non-interactivity for the
mouse device setting. Please let me know if the patch works for you.
Therefore I'm providing:

1) A full, NMU-ready, source package in [1]
2) i386 binary packages in [1], and
3) A diff regarding the config.in, which you'll find attached

Note that this upload does not fix several Lintian warnings that my
build system reports. I will be glad to fix this if the patch works.
Thank you very much for your time and attention to details.

Jose

[1] http://debian.bureado.com.ve/xorg/

-- 
José M. Parrella -> Debian Sid, k2.6.17.13
Escuela de Ingenieria Electrica
Universidad Central de Venezuela -> ucvlug.info
diff -Nru /tmp/R5Q1ya1nbL/xorg-7.0.23/debian/xserver-xorg.config.in /tmp/poysleOqJV/xorg-7.0.23/debian/xserver-xorg.config.in
--- /tmp/R5Q1ya1nbL/xorg-7.0.23/debian/xserver-xorg.config.in   2006-09-17 17:11:38.000000000 -0400
+++ /tmp/poysleOqJV/xorg-7.0.23/debian/xserver-xorg.config.in   2006-07-19 01:16:26.000000000 -0400
@@ -1136,22 +1136,11 @@
 
 MAY_BE_NULL=yes auto_answer validate_string_db_input "$(priority_ceil $PRIORITY)" xserver-xorg/config/inputdevice/keyboard/options "$XKBOPTIONS"
 
-# Ask the user about their mouse port
-db_input medium xserver-xorg/config/inputdevice/mouse/port
+AUTODETECTED_PORT="/dev/input/mice"
+AUTODETECTED_PROTOCOL="ImPS/2"
 
-# If the user wasn't asked, see if a previous answer was set
-if [ "$_" = "30" ]
-then
-       db_get xserver-xorg/config/inputdevice/mouse/port
-       if [ -z $RET ]
-       then
-# If a previous answer wasn't set, then we should use our defaults
-               AUTODETECTED_PORT="/dev/input/mice"
-               AUTODETECTED_PROTOCOL="ImPS/2"
-               db_subst xserver-xorg/config/inputdevice/mouse/port choices $AUTODETECTED_PORT
-               auto_answer db_input "$(priority_ceil low)" xserver-xorg/config/inputdevice/mouse/port "${AUTODETECTED_PORT}"
-       fi
-fi     
+db_subst xserver-xorg/config/inputdevice/mouse/port choices $AUTODETECTED_PORT
+auto_answer db_input "$(priority_ceil low)" xserver-xorg/config/inputdevice/mouse/port "${AUTODETECTED_PORT}"
 
 db_get xserver-xorg/config/inputdevice/mouse/port
 case "$RET" in


Reply to: