lkml.org 
[lkml]   [2005]   [May]   [9]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
FromDmitry Torokhov <>
SubjectRe: [RFT/PATCH] KVMS, mouse losing sync and going crazy
DateMon, 9 May 2005 01:26:34 -0500
On Monday 09 May 2005 01:12, Mitch wrote:
> Log file as requested...
> 

*sign* ALPS decided to return bare PS/2 packet instead of full 6-byte
packet...

Hmm, could you please try the patch below and see if it makes any
difference (although I doubt). I'll probably have to do special case
for ALPS.
-- 
Dmitry

--- drivers/input/mouse/psmouse-base.c.orig	2005-05-09 01:19:17.000000000 -0500
+++ drivers/input/mouse/psmouse-base.c	2005-05-09 01:20:22.000000000 -0500
@@ -657,7 +657,7 @@
 	int attempt;
 
 	for (attempt = 0; attempt < 5; attempt++) {
-		if (!ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_SETSTREAM))
+		if (!ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_ENABLE))
 			return 0;
 		msleep(200);
 	}
@@ -693,7 +693,7 @@
  * transmitting motion packet, so we use ps2_sendbyte() instead of
  * ps2_command() to avoid delay.
  */
-	ps2_sendbyte(&psmouse->ps2dev, PSMOUSE_CMD_SETPOLL, 20);
+	ps2_sendbyte(&psmouse->ps2dev, PSMOUSE_CMD_DISABLE, 20);
 
 	ps2_command(&psmouse->ps2dev, psmouse->packet, PSMOUSE_CMD_POLL | 0x0600);
 	if (psmouse->ps2dev.cmdcnt != 6 - psmouse->pktsize)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-05-09 08:30    [from the cache]
©2003-2008