public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Ramón Rey Vicente" <rrey@ranty.pantax.net>
To: walt <wa1ter@myrealbox.com>
Cc: Shawn Starr <spstarr@sh0n.net>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [PATCH] Re: PS/2 Slowness w/ 2.6.0-test9-bk2
Date: Wed, 29 Oct 2003 02:48:56 +0100	[thread overview]
Message-ID: <1067392135.1052.4.camel@debian> (raw)
In-Reply-To: <3F9F0E72.2010606@myrealbox.com>


[-- Attachment #1.1: Type: text/plain, Size: 515 bytes --]

El mié, 29-10-2003 a las 01:48, walt escribió:

> I have the same problem, but I find that booting with the psmouse_noext
> kernel parameter reverses the unwanted behavior.

I've made a patch with a workaround, a new MOUSE_PS2_FORCE_RATE option
:). I hope this help somebody while Linus/someone find the perfect
solution
-- 
Ramón Rey Vicente       <ramon dot rey at hispalinux dot es>
        jabber ID       <rreylinux at jabber dot org>
GPG public key ID 	0xBEBD71D5 -> http://pgp.escomposlinux.org/

[-- Attachment #1.2: mouse_ps2_force_rate.patch --]
[-- Type: text/x-patch, Size: 2016 bytes --]

Index: Kconfig
===================================================================
--- Kconfig	(revision 13674)
+++ Kconfig	(working copy)
@@ -28,6 +28,13 @@
 	  To compile this driver as a module, choose M here: the
 	  module will be called psmouse.
 
+config MOUSE_PS2_FORCE_RATE
+	bool "Force rate of PS/2 mouse"
+	default n
+	depends on MOUSE_PS2
+	---help---
+	  Say Y if you experiment slowness problems with your PS/2 mouse.
+
 config MOUSE_PS2_SYNAPTICS
 	bool "Synaptics TouchPad"
 	default n
Index: psmouse-base.c
===================================================================
--- psmouse-base.c	(revision 14241)
+++ psmouse-base.c	(working copy)
@@ -40,7 +40,13 @@
 
 static int psmouse_noext;
 int psmouse_resolution;
+
+#ifdef CONFIG_MOUSE_PS2_FORCE_RATE
+unsigned int psmouse_rate = 60;
+#else
 unsigned int psmouse_rate;
+#endif
+
 int psmouse_smartscroll = PSMOUSE_LOGITECH_SMARTSCROLL;
 unsigned int psmouse_resetafter;
 
@@ -471,16 +477,23 @@
  * We set the mouse report rate.
  */
 
+#ifdef CONFIG_MOUSE_PS2_FORCE_RATE
+	psmouse_set_rate(psmouse);
+#else
 	if (psmouse_rate)
 		psmouse_set_rate(psmouse);
+#endif
 
 /*
  * We also set the resolution and scaling.
  */
 
+#ifdef CONFIG_MOUSE_PS2_FORCE_RATE
+	 psmouse_set_resolution(psmouse);
+#else
 	if (psmouse_resolution)
 		psmouse_set_resolution(psmouse);
-
+#endif
 	psmouse_command(psmouse,  NULL, PSMOUSE_CMD_SETSCALE11);
 
 /*
@@ -654,17 +667,22 @@
 	return 1;
 }
 
+#ifndef CONFIG_MOUSE_PS2_FORCE_RATE
 static int __init psmouse_rate_setup(char *str)
 {
 	get_option(&str, &psmouse_rate);
 	return 1;
 }
+#endif
 
 __setup("psmouse_noext", psmouse_noext_setup);
 __setup("psmouse_resolution=", psmouse_resolution_setup);
 __setup("psmouse_smartscroll=", psmouse_smartscroll_setup);
 __setup("psmouse_resetafter=", psmouse_resetafter_setup);
+
+#ifndef CONFIG_MOUSE_PS2_FORCE_RATE
 __setup("psmouse_rate=", psmouse_rate_setup);
+#endif
 
 #endif
 

[-- Attachment #2: Esta parte del mensaje está firmada digitalmente --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2003-10-29  1:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fa.k5maq39.1h6g0b7@ifi.uio.no>
2003-10-29  0:48 ` PS/2 Slowness w/ 2.6.0-test9-bk2 walt
2003-10-29  1:48   ` Ramón Rey Vicente [this message]

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=1067392135.1052.4.camel@debian \
    --to=rrey@ranty.pantax.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ramon.rey@hispalinux.es \
    --cc=spstarr@sh0n.net \
    --cc=wa1ter@myrealbox.com \
    /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