Skip to contentSkip to conversation

psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 2 bytes away.

DISCUSSION Simon Gate 5 participants 7 messages Feb 14, 2004 – Feb 22, 2004

lore
Share & tools
lore

Simon Gate

author
#0 lore raw

Changed from kernel 2.6.1 to 2.6.2 an get this error in dmesg

psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 2 bytes away.

My mouse goes crazy for a few secs and then returns to normal for a while. Is this a 2.6.2 problem or is this is something old?

Best regards
++ Simon

*--- - -

|  Simon Gate
|  [email protected]

*- -

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 5 lines · you

Changed from kernel 2.6.1 to 2.6.2 an get this error in dmesg

psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 2 bytes away.

My mouse goes crazy for a few secs and then returns to normal for a while. Is this a 2.6.2 problem or is this is something old?

here's the fix:

- --- linux-2.6.3-rc2/drivers/input/serio/i8042.c.orig 2004-02-10 21:33:21.000000000 +0100
+++ linux-2.6.3-rc2/drivers/input/serio/i8042.c 2004-02-10 21:37:03.000000000 +0100
@@ -379,6 +379,8 @@
unsigned int dfl;
int ret;

+ mod_timer(&i8042_timer, jiffies + I8042_POLL_PERIOD);
+
spin_lock_irqsave(&i8042_lock, flags);
str = i8042_read_status();
if (str & I8042_STR_OBF)
@@ -433,7 +435,6 @@
irq_ret:
ret = 1;
out:
- - mod_timer(&i8042_timer, jiffies + I8042_POLL_PERIOD);
return IRQ_RETVAL(ret);
}

- --
Regards Michael Buesch [ http://www.tuxsoft.de.vu ]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFALppFFGK1OIvVOP4RAtHeAKDWzyU7PgdkwhhYrY3t+Zvqmv4aagCdHbNv VUwVin8INy2JiK9+x6VMFr0=
=qV4u
-----END PGP SIGNATURE-----

#5 lore raw
In reply to Simon Gate
Quoted 5 lines · Simon Gate

Changed from kernel 2.6.1 to 2.6.2 an get this error in dmesg

psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 2 bytes away.

My mouse goes crazy for a few secs and then returns to normal for a while. Is this a 2.6.2 problem or is this is something old?

It's a 2.6.2 bug and fixed in 2.6.3-rc1.

Signature · 2 lines
Vojtech Pavlik
SuSE Labs, SuSE CR
#2 lore raw
In reply to Michael Buesch
Quoted 11 lines · Michael Buesch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 5 lines · you

Changed from kernel 2.6.1 to 2.6.2 an get this error in dmesg

psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 2 bytes away.

My mouse goes crazy for a few secs and then returns to normal for a while. Is this a 2.6.2 problem or is this is something old?

here's the fix:

... no, that's a fix for a different bug. Actually, without this fix it works more or less OK.

Quoted 18 lines

- --- linux-2.6.3-rc2/drivers/input/serio/i8042.c.orig 2004-02-10 21:33:21.000000000 +0100
+++ linux-2.6.3-rc2/drivers/input/serio/i8042.c 2004-02-10 21:37:03.000000000 +0100

(quoted diff) +2 -1
@@ -379,6 +379,8 @@
 	unsigned int dfl;
 	int ret;
 
+	mod_timer(&i8042_timer, jiffies + I8042_POLL_PERIOD);
+
 	spin_lock_irqsave(&i8042_lock, flags);
 	str = i8042_read_status();
 	if (str & I8042_STR_OBF)
@@ -433,7 +435,6 @@
 irq_ret:
 	ret = 1;
 out:
- -	mod_timer(&i8042_timer, jiffies + I8042_POLL_PERIOD);
 	return IRQ_RETVAL(ret);
 }
Signature · 2 lines
Vojtech Pavlik
SuSE Labs, SuSE CR
#3 lore raw
In reply to Michael Buesch
Quoted 3 lines · Michael Buesch
Quoted 3 lines

psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 2 bytes away.

My mouse goes crazy for a few secs and then returns to normal for a while. Is this a 2.6.2 problem or is this is something old?

I've seen this junk for many years. It's not limited to just 2.6.

In my current environment, it's the KVM screwing with the mouse data... somehow it starts passing through 3 byte commands when the mouse is in 4 byte mode. I fixed it by a little trickery to force the mouse to reset (not a simple task from the ISR :-) BTW, 250ms is WAY to long to wait to detect a lose of sync; mice don't pause at all between bytes.)

Quoted 1 line

here's the fix:

...

And exactly what is that supposed to be fixing?

--Ricky

#4 lore raw
Quoted 5 lines · Ricky Beam
Quoted 3 lines · Michael Buesch
Quoted 3 lines

psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 2 bytes away.

My mouse goes crazy for a few secs and then returns to normal for a while. Is this a 2.6.2 problem or is this is something old?

Quoted 7 lines

I've seen this junk for many years. It's not limited to just 2.6.

In my current environment, it's the KVM screwing with the mouse data... somehow it starts passing through 3 byte commands when the mouse is in 4 byte mode. I fixed it by a little trickery to force the mouse to reset (not a simple task from the ISR :-) BTW, 250ms is WAY to long to wait to detect a lose of sync; mice don't pause at all between bytes.)

Mice don't, but the kernel does, like when it's accessing the harddrive heavily.

Quoted 6 lines
Quoted 1 line

here's the fix:

...

And exactly what is that supposed to be fixing?

--Ricky

Signature · 2 lines
Vojtech Pavlik
SuSE Labs, SuSE CR
#6 lore raw
In reply to Vojtech Pavlik
Quoted 11 lines · Vojtech Pavlik
Quoted 3 lines · Simon Gate

Changed from kernel 2.6.1 to 2.6.2 an get this error in dmesg

psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 2

bytes away.

Quoted 2 lines

My mouse goes crazy for a few secs and then returns to normal for a while.

Is this a 2.6.2 problem or is this is something old?

It's a 2.6.2 bug and fixed in 2.6.3-rc1.

Just switched to 2.6.3 and I can report that this misbehavior is still there. Not quite as frequent as before (just a feeling). There seems to be another failure mode introduced now. At time it just freezes for about 1-3 seconds. I.e. The mouse just don't respond to anything. The crazy movements are the more common failure mode though.

Anyone else recognize this? I get the infamous "psmouse.c: Wheel Mouse at isa0060/serio1/input0 lost synchronization, throwing 1 bytes away." thing still...

suggestions are welcome...

/Anders