Skip to contentSkip to conversation

mouse still losing sync and thus jumping around

DISCUSSION Nils Kalchhauser 4 participants 7 messages Feb 23, 2005 – Feb 24, 2005

lore
Share & tools
lore
#0 lore raw

Hi!

I still get the following messages and my mouse jumps around weirdly making work rather difficult regardless of which 2.6 kernel I use (tried 2.6.8, 2.6.9, 2.6.10, 2.6.11-rc2 with patch-see below, 2.6.11-rc4):

psmouse.c: Mouse at isa0060/serio4/input0 lost synchronization, throwing 2 bytes away. psmouse.c: Mouse at isa0060/serio4/input0 lost synchronization, throwing 2 bytes away. psmouse.c: TouchPad at isa0060/serio2/input0 lost sync at byte 4 psmouse.c: TouchPad at isa0060/serio2/input0 lost sync at byte 1 psmouse.c: TouchPad at isa0060/serio2/input0 - driver resynched. psmouse.c: TouchPad at isa0060/serio2/input0 lost sync at byte 1

(using either the touchpad or the connected PS/2 mouse)

I tried the patch Dmitry Torokhov supplied in the message with subject "Re: Really annoying bug in the mouse driver" from Jan 27 which supposedly fixes this problem. unfortunately it only got worse.

the problem is really annoying with windows sometimes closing because of sporadic mouse clicks etc. I would happily try patches and help in debugging, so if anyone has an idea or if more info about my setup/config is needed, just tell me.

thanks a lot,
Nils

#1 lore raw
Quoted 15 lines · Nils Kalchhauser

Hi!

I still get the following messages and my mouse jumps around weirdly making work rather difficult regardless of which 2.6 kernel I use (tried 2.6.8, 2.6.9, 2.6.10, 2.6.11-rc2 with patch-see below, 2.6.11-rc4):

psmouse.c: Mouse at isa0060/serio4/input0 lost synchronization, throwing 2 bytes away.
psmouse.c: Mouse at isa0060/serio4/input0 lost synchronization, throwing 2 bytes away.
psmouse.c: TouchPad at isa0060/serio2/input0 lost sync at byte 4 psmouse.c: TouchPad at isa0060/serio2/input0 lost sync at byte 1 psmouse.c: TouchPad at isa0060/serio2/input0 - driver resynched. psmouse.c: TouchPad at isa0060/serio2/input0 lost sync at byte 1

Quoted 6 lines

(using either the touchpad or the connected PS/2 mouse)

I tried the patch Dmitry Torokhov supplied in the message with subject "Re: Really annoying bug in the mouse driver" from Jan 27 which supposedly fixes this problem. unfortunately it only got worse.

Hi,

There were 2 versions of the psmouse-resend patch, the first one was indeed producing worse results, the second one should work better. Could you please try grabbing the patch against 2.6.10 from here:

http://www.geocities.com/dt_or/input/2_6_10/

and letting me know if it gives better results.

Thanks!

Signature · 1 line
Dmitry
#2 lore raw
Quoted 8 lines · Dmitry Torokhov

On Wed, 23 Feb 2005 14:22:42 +0100, Nils Kalchhauser There were 2 versions of the psmouse-resend patch, the first one was indeed producing worse results, the second one should work better. Could you please try grabbing the patch against 2.6.10 from here:

http://www.geocities.com/dt_or/input/2_6_10/

and letting me know if it gives better results.

sorry for not realising that there was a newer patch. I tried that one now and indeed it seems a lot better. I did not have any lost sync message for about an hour but then the mouse started jumping again. and it seems to me like it is connected to disk activity... is that possible?

Nils

#3 lore raw
Quoted 6 lines · Nils Kalchhauser
Quoted 5 lines · Dmitry Torokhov

On Wed, 23 Feb 2005 14:22:42 +0100, Nils Kalchhauser There were 2 versions of the psmouse-resend patch, the first one was indeed producing worse results, the second one should work better. Could you please try grabbing the patch against 2.6.10 from here:

Quoted 7 lines
Quoted 3 lines

http://www.geocities.com/dt_or/input/2_6_10/

and letting me know if it gives better results.

sorry for not realising that there was a newer patch. I tried that one now and indeed it seems a lot better. I did not have any lost sync message for about an hour but then the mouse started jumping again. and

Was it clicking around or just the movement was jerky?

Quoted 1 line

it seems to me like it is connected to disk activity... is that possible?

Yes, It usually happens either under high load, when mouse interrupts are significantly delayed. Or sometimes it happen when applications poll battey status and on some boxes it takes pretty long time. And because it is usually the same chip that serves keyboard/mouse it again delays mouse interrupts.

Btw, what kind of laptop/touchpad is that?

Signature · 1 line
Dmitry
#4 lore raw
Quoted 5 lines · Dmitry Torokhov

Yes, It usually happens either under high load, when mouse interrupts are significantly delayed. Or sometimes it happen when applications poll battey status and on some boxes it takes pretty long time. And because it is usually the same chip that serves keyboard/mouse it again delays mouse interrupts.

I have this problem with recent 2.6.10 kernels too, but it has nothing to do with load in my case; it happens whenever I switch my KVM to the linux box.

Long ago and far away, it used to be that switching out of X, then back in (ctrl-alt-F1, then ctrl-alt-F7) would reset the mouse and stop the jumping.
At some point in late 2.4/early 2.6 that stopped working, and the only fix
was to unplug the mouse from the KVM switch and re-plug it.

In Oct 2004 I posted to lkml with subject "KVM -> jumping mouse... still no solution?" Dmitry Torokhov (hi :) responded that this would work on 2.6.9-rc3+:

echo -n "reconnect" > /sys/bus/serio/devices/serioX/driver

That was GREAT and it worked for a while, but now my last few 2.6.10 kernels don't seem to care when I do that, and again, unplugging the mouse is the only thing that works. I'm currently running 2.6.10-gentoo-r6.

-Anthony DiSante
http://nodivisions.com/

#5 lore raw
Quoted 10 lines · Anthony DiSante
Quoted 5 lines · Dmitry Torokhov

Yes, It usually happens either under high load, when mouse interrupts are significantly delayed. Or sometimes it happen when applications poll battey status and on some boxes it takes pretty long time. And because it is usually the same chip that serves keyboard/mouse it again delays mouse interrupts.

I have this problem with recent 2.6.10 kernels too, but it has nothing to do with load in my case; it happens whenever I switch my KVM to the linux box.

Hi Anthony,

This is a bit different problem and we trying to find a reliable solution for it.

Quoted 5 lines

Long ago and far away, it used to be that switching out of X, then back in (ctrl-alt-F1, then ctrl-alt-F7) would reset the mouse and stop the jumping.
At some point in late 2.4/early 2.6 that stopped working, and the only fix
was to unplug the mouse from the KVM switch and re-plug it.

Quoted 9 lines

In Oct 2004 I posted to lkml with subject "KVM -> jumping mouse... still no solution?" Dmitry Torokhov (hi :) responded that this would work on 2.6.9-rc3+:

echo -n "reconnect" > /sys/bus/serio/devices/serioX/driver

That was GREAT and it worked for a while, but now my last few 2.6.10 kernels don't seem to care when I do that, and again, unplugging the mouse is the only thing that works. I'm currently running 2.6.10-gentoo-r6.

It still should work fine, but in a bit different form:

echo -n "reconnect" > /sys/bus/serio/devices/serioX/drvctl

I.e. substitute "driver" with "drvctl" as now "driver" is a symlink to a currently bound driver that is set up by driver core.

Signature · 1 line
Dmitry
#6 lore raw
Quoted 8 lines · Dmitry Torokhov
Quoted 6 lines

In Oct 2004 I posted to lkml with subject "KVM -> jumping mouse... still no solution?" Dmitry Torokhov (hi :) responded that this would work on 2.6.9-rc3+:

echo -n "reconnect" > /sys/bus/serio/devices/serioX/driver

That was GREAT and it worked for a while, but now my last few 2.6.10 kernels don't seem to care when I do that, and again, unplugging the mouse is the only thing that works. I'm currently running 2.6.10-gentoo-r6.

Quoted 6 lines

It still should work fine, but in a bit different form:

echo -n "reconnect" > /sys/bus/serio/devices/serioX/drvctl

I.e. substitute "driver" with "drvctl" as now "driver" is a symlink to a currently bound driver that is set up by driver core.

Ah, sweet, thank you. This should all be documented somewhere! For now I've been keeping my notes here:

http://nodivisions.com/tech/linux/jumpingmouse/

-Anthony DiSante
http://nodivisions.com/