site  contact  subhomenews

(SP1) Mouse detect fix

October 23, 2008 — BarryK
A little tweak for Jesse's mouse detect code, suggested by rerwin. /etc/rc.d/rc.sysinit has this:

#PUPPYINPUTDETECT="`/sbin/puppyserialdetect -n`" #-n disables /dev/ttyS[0-4] probing.
PUPPYINPUTDETECT="`/sbin/puppyinputdetect -mup`" #same thing from Jesse, but has no serial code.
[ "$PUPPYINPUTDETECT" = "" ] && sleep 1 && PUPPYINPUTDETECT="`/sbin/puppyinputdetect -mup`" #rerwin: retry after delay

Rerwin found a particular hardware combination, if I recall rightly he said that if a serial modem is connected, even though it is not probed for by Jesse's utility, it caused 'puppyinputdetect' to misdetect a mouse. A delay and retry fixed it. Strange, but it does no harm to put in that extra line.

There is still an outstanding potential bug for Xorg/Xvesa if the mouse is changed. I'll see if I can get some time later today or tomorrow to fix that.

Tags: puppy