Skip to contentSkip to conversation

2.5.5-dj2: psmouse.c: Lost synchronization

DISCUSSION Oliver Xymoron 1 participant 1 message Mar 13, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 3 lines · Samuel Hocevar

Hi, I have a Thinkpad T20 and experienced the same problem as you
with the 2.5.x series, and I'm trying to understand what's causing it. Are you using the preemptive kernel patch?

Yes, and now that I think about it, I was probably running with HZ=1024 too. Switched back to 2.4 due to problems with my wireless.

Quoted 6 lines

The following simple change worked for me, would you maybe have time
to test it and tell me whether it works?

input/mouse/psmouse.c line 206

Quoted 8 lines
input/mouse/psmouse.c renamed from input/mouse/psmouse.c.orig +1 -1
@@ -200,7 +200,7 @@
 		return;
 	}
 
-	if (psmouse->pktcnt && jiffies - psmouse->last > 2) {
+	if (psmouse->pktcnt && jiffies - psmouse->last > 10) {
 		printk(KERN_WARNING "psmouse.c: Lost synchronization, throwing %d bytes away.\n", psmouse->pktcnt);
 		psmouse->pktcnt = 0;
 	}

Egads. I never even bothered to look up the code generating that message. That should be HZ/50 or HZ/10.

Tempting to propose making HZ=HZ*100 and doing jiffies+=100 to ferret out any code that makes assumptions about what the units of HZ are.

Signature · 1 line
 "Love the dolphins," she advised him. "Write by W.A.S.T.E.."