linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PS2 mouse going nuts during cdparanoia session.
@ 2003-07-16 16:57 Dave Jones
  2003-07-16 17:03 ` Jens Axboe
  0 siblings, 1 reply; 34+ messages in thread
From: Dave Jones @ 2003-07-16 16:57 UTC (permalink / raw)
  To: axboe, vojtech; +Cc: Linux Kernel

I've decided to oggify my CD collection, and every now and
again, the mouse pointer goes bezerk is if I had been
shaking it around and randomly clicking on things.
In the logs are lots of..

psmouse.c: Lost synchronization, throwing 3 bytes away.

It only happens whilst cdparanoia is reading from the CD.
The IDE CD drive is using DMA, and interrupts are unmasked.
according to the logs, its happened 32 times since I last
booted..  /proc/interrupts shows that the i8042 is using
a different interrupt to the IDE devices..

Mouse is a logitech wheely PS/2 mouse, using ImPS/2 protocol
in X config reading from /dev/psaux.

This is using 2.6test1, I'don't recall ever seeing this
happen in 2.4, but it did occur for a while earlier in 2.5,
and I forgot about it until now.

Any ideas?

		Dave


^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: PS2 mouse going nuts during cdparanoia session.
@ 2003-07-16 23:43 Mikael Pettersson
  2003-07-17  2:03 ` Jacek Kawa
  0 siblings, 1 reply; 34+ messages in thread
From: Mikael Pettersson @ 2003-07-16 23:43 UTC (permalink / raw)
  To: vojtech; +Cc: alan, axboe, davej, linux-kernel

On Wed, 16 Jul 2003 20:56:19 +0200, Vojtech Pavlik wrote:
>This is basically because the check for lost bytes wasn't present in
>2.4. Now that it is there, it works well with real lost bytes, but will
>fire also in case when the mouse interrupt was delayed for more than
>half a second, or if indeed a mouse interrupt gets lost. The 2.5 kernel
>by default programs the mouse to high speed reporting (up to 200 updates
>per second). This may, possibly make the problem show up easier.

This was interesting: 2.5 programs the mouse differently than 2.4.
I've been having ps2 mouse problems with the 2.5 input layer,
including having to move the mouse much further for a given
cursor movement, and a general jerky/unstable feeling of the mouse.

2.4's pc_keyb.c has (disabled by default) init code which puts the
mouse in 100 samples/s and 2:1 scaling, whereas 2.5 puts it into
200 samples/s and 1:1 scaling. So I hacked psmouse-base.c to mimic
2.4, and VOILA! now my mouse feels A LOT better.

The crude patch below shows what I did. (I have to set psmouse_noext
as well, to avoid misidentification, jerkiness/lost syncs, and
utter mayhem upon resume from suspend.)

Would you accept a cleaned up patch which allows the rate and
scaling to be adjusted, similarly to noext and resolution?

/Mikael

--- linux-2.6.0-test1/drivers/input/mouse/psmouse-base.c.~1~	2003-06-23 13:07:37.000000000 +0200
+++ linux-2.6.0-test1/drivers/input/mouse/psmouse-base.c	2003-07-17 01:23:57.000000000 +0200
@@ -33,7 +33,7 @@
 
 #define PSMOUSE_LOGITECH_SMARTSCROLL	1
 
-static int psmouse_noext;
+static int psmouse_noext = 1;
 int psmouse_resolution;
 int psmouse_smartscroll = PSMOUSE_LOGITECH_SMARTSCROLL;
 
@@ -435,7 +435,7 @@
 	param[0] = 100;
 	psmouse_command(psmouse, param, PSMOUSE_CMD_SETRATE);
 
-	param[0] = 200;
+	param[0] = 100;
 	psmouse_command(psmouse, param, PSMOUSE_CMD_SETRATE);
 
 /*
@@ -443,7 +443,8 @@
  */
 
 	psmouse_set_resolution(psmouse);
-	psmouse_command(psmouse,  NULL, PSMOUSE_CMD_SETSCALE11);
+#define PSMOUSE_CMD_SETSCALE21 0x00e7
+	psmouse_command(psmouse,  NULL, PSMOUSE_CMD_SETSCALE21);
 
 /*
  * We set the mouse into streaming mode.

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2003-07-17 21:29 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-16 16:57 PS2 mouse going nuts during cdparanoia session Dave Jones
2003-07-16 17:03 ` Jens Axboe
2003-07-16 17:09   ` Dave Jones
2003-07-16 17:13     ` Jens Axboe
2003-07-16 17:20       ` Dave Jones
2003-07-16 17:24         ` Jens Axboe
2003-07-16 17:21     ` Markus Plail
2003-07-16 17:10   ` Alan Cox
2003-07-16 17:16     ` Jens Axboe
2003-07-16 17:23       ` Dave Jones
2003-07-16 17:25         ` Jens Axboe
2003-07-16 17:28           ` Dave Jones
2003-07-16 17:31             ` Jens Axboe
2003-07-16 18:22               ` Alan Cox
2003-07-16 19:03               ` Kristofer T. Karas
2003-07-16 19:13                 ` Valdis.Kletnieks
2003-07-16 19:00         ` Vojtech Pavlik
2003-07-16 19:30           ` Dave Jones
2003-07-16 20:53             ` Vojtech Pavlik
2003-07-16 23:31               ` Dave Jones
2003-07-16 23:47                 ` Vojtech Pavlik
2003-07-17 11:15                   ` Alan Cox
2003-07-17 17:08                     ` Dave Jones
2003-07-16 18:00     ` Andrew Morton
2003-07-16 18:56     ` Vojtech Pavlik
2003-07-16 21:05     ` Andries Brouwer
2003-07-16 17:10   ` Valdis.Kletnieks
2003-07-16 17:17     ` Jens Axboe
2003-07-16 17:55       ` Dave Jones
2003-07-16 17:57         ` Jens Axboe
     [not found]         ` <1058422511.1164.1440.camel@workshop.saharacpt.lan>
2003-07-17 12:39           ` Dave Jones
2003-07-16 23:43 Mikael Pettersson
2003-07-17  2:03 ` Jacek Kawa
2003-07-17 21:44   ` Jacek Kawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).