From: Martin Josefsson <gandalf@wlug.westbo.se>
To: 4Front Technologies <dev@opensound.com>
Cc: linux-kernel@vger.kernel.org, Vojtech Pavlik <vojtech@suse.cz>
Subject: Re: mouse driver bug in 2.6.0-test7?
Date: Tue, 14 Oct 2003 21:18:34 +0200 [thread overview]
Message-ID: <1066159113.12171.4.camel@tux.rsn.bth.se> (raw)
In-Reply-To: <3F8C3A99.6020106@opensound.com>
[-- Attachment #1: Type: text/plain, Size: 1521 bytes --]
On Tue, 2003-10-14 at 20:04, 4Front Technologies wrote:
> Why is the PS2 mouse tracking about 2x faster in 2.6.0-test7 compared
> to 2.4.xx?. Has anybody else seen this problem?.
>
> If I move the mouse 1 inch horizontally left-to-right on the mouse
> pad, the cursor on the screen moves almost twice the distance on the
> screen compared to Linux 2.4.xx
It's probably mostly because Vojtech changed the samplerate from 200 to
60. Here's a patch to change it back. I've sent it to Vojtech but he's
completely ignored it so far. This patch also readds the fallback logic
that was used before his change, although it uses the new
samplerate-table.
Without this patch my mouse is awful to use.
Vojtech, please consider this patch, at least say yay or nay.
--- linux-2.6.0-test6-mm4/drivers/input/mouse/psmouse-base.c.orig 2003-10-05 17:02:23.000000000 +0200
+++ linux-2.6.0-test6-mm4/drivers/input/mouse/psmouse-base.c 2003-10-05 17:06:55.000000000 +0200
@@ -40,7 +40,7 @@
static int psmouse_noext;
int psmouse_resolution;
-unsigned int psmouse_rate = 60;
+unsigned int psmouse_rate = 200;
int psmouse_smartscroll = PSMOUSE_LOGITECH_SMARTSCROLL;
unsigned int psmouse_resetafter;
@@ -450,6 +450,11 @@
int i = 0;
while (rates[i] > psmouse_rate) i++;
+
+ /* set lower rate in case requested rate fails */
+ if (rates[i])
+ psmouse_command(psmouse, rates + i + 1, PSMOUSE_CMD_SETRATE);
+
psmouse_command(psmouse, rates + i, PSMOUSE_CMD_SETRATE);
}
--
/Martin
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-10-14 19:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-14 18:04 4Front Technologies
2003-10-14 19:18 ` Martin Josefsson [this message]
2003-10-14 19:38 ` Vojtech Pavlik
2003-10-14 20:04 ` 4Front Technologies
2003-10-14 20:13 ` Vojtech Pavlik
2003-10-14 20:27 ` Martin Josefsson
2003-10-14 20:47 ` Mika Penttilä
2003-10-14 20:59 ` 4Front Technologies
2003-10-15 0:48 ` Eric Wong
2003-10-15 6:45 ` Vojtech Pavlik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1066159113.12171.4.camel@tux.rsn.bth.se \
--to=gandalf@wlug.westbo.se \
--cc=dev@opensound.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®