diff -Naur /usr/portage/sys-libs/gpm/files/gpm.conf.d.old /use/portage/sys-libs/gpm/files/gpm.conf.d --- /usr/portage/sys-libs/gpm/files/gpm.conf.d.old 2005-08-20 11:05:58.000000000 +0300 +++ /use/portage/sys-libs/gpm/files/gpm.conf.d 2007-08-25 00:04:53.000000000 +0300 @@ -6,6 +6,7 @@ #MOUSE=imps2 #MOUSEDEV=/dev/psaux MOUSEDEV=/dev/input/mice +#MOUSEDEV=/dev/input/by-path/platform-i8042-serio-1-mouse # Extra settings @@ -21,3 +22,11 @@ #APPEND="-g 1 -A60" #APPEND="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\" -g 1 -A60" + +# Extra mouse? ;-) + +MOUSE2=imps2 +MOUSEDEV2=/dev/input/by-id/usb-Microsoft_Microsoft_3-Button_Mouse_with_IntelliEye_TM_-mouse +#RESPONSIVENESS2= +#REPEAT_TYPE2=raw +#APPEND2="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\" -A60" diff -Naur /usr/portage/sys-libs/gpm/files/gpm.rc6.old /use/portage/sys-libs/gpm/files/gpm.rc6 --- /usr/portage/sys-libs/gpm/files/gpm.rc6.old 2004-07-15 04:07:47.000000000 +0300 +++ /usr/portage/sys-libs/gpm/files/gpm.rc6 2007-08-25 00:06:54.000000000 +0300 @@ -21,13 +21,23 @@ checkconfig || return 1 local params="" + local params2="" + local mouse2cmd="" [ -n "$RESPONSIVENESS" ] && params="$params -r $RESPONSIVENESS" [ -n "$REPEAT_TYPE" ] && params="$params -R$REPEAT_TYPE" [ -n "$APPEND" ] && params="$params $APPEND " - + if [ -n "$MOUSE2" ] && [ -c "$MOUSEDEV2" ]; then + [ -n "$RESPONSIVENESS2" ] && params2="$params2 -r $RESPONSIVENESS2" + [ -n "$REPEAT_TYPE2" ] && params2="$params2 -R$REPEAT_TYPE2" + [ -n "$APPEND2" ] && params2="$params2 $APPEND2 " + fi + ebegin "Starting gpm" + if [ -n "$MOUSE2" ] && [ -c "$MOUSEDEV2" ]; then + mouse2cmd="-M -m ${MOUSEDEV2} -t ${MOUSE2} ${params2}" + fi start-stop-daemon --start --quiet --exec /usr/sbin/gpm \ - -- -m ${MOUSEDEV} -t ${MOUSE} ${params} + -- -m ${MOUSEDEV} -t ${MOUSE} ${params} ${mouse2cmd} eend ${?} }