Skip to contentSkip to conversation

KVMS, mouse losing sync and going crazy

RFT/PATCH Mitch 2 participants 2 messages May 9, 2005

lore
Share & tools
lore

Mitch

author
#0 lore raw

Log file as requested...

Cheers
Mitch

-------- Original Message --------
Subject: Re: [RFT/PATCH] KVMS, mouse losing sync and going crazy
Date: Mon, 9 May 2005 01:02:33 -0500
From: Dmitry Torokhov <[email protected]>
To: Mitch <[email protected]>
CC: [email protected]
References: <[email protected]>

Quoted 15 lines · Mitch

I applied your v4 patch, and that fixes it somewhat insomuch as it it working, but it keeps resetting itself if i stop using it for a few milliseconds, so the mouse appears sluggish as it performs a reset whenever i use it. Here are the messages i see (100's of them).

ALPS Touchpad (Dualpoint) detected
Disabling hardware tapping
input: AlpsPS/2 ALPS TouchPad on isa0060/serio1 psmouse.c: resync failed, issuing reconnect request psmouse.c: resync failed, issuing reconnect request ALPS Touchpad (Dualpoint) detected
Disabling hardware tapping
input: AlpsPS/2 ALPS TouchPad on isa0060/serio1 psmouse.c: resync failed, issuing reconnect request ALPS Touchpad (Dualpoint) detected
Disabling hardware tapping
input: AlpsPS/2 ALPS TouchPad on isa0060/serio1

Could you please do the following:

1. Reboot with the patch applied
2. "echo 1 > /sys/modules/i8042/parameters/debug"
3. Wait 5-10 seconds
4. Touch your touchpad briefly
5. "echo 0 > /sys/modules/i8042/parameters/debug"
6. send me dmesg

Thanks!

Signature · 1 line
Dmitry
#1 lore raw
Quoted 2 lines · Mitch

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.

Signature · 22 lines
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)