All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dtor_core@ameritech.net>
To: Mitch <Mitch@0Bits.COM>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFT/PATCH] KVMS, mouse losing sync and going crazy
Date: Mon, 9 May 2005 01:26:34 -0500	[thread overview]
Message-ID: <200505090126.35042.dtor_core@ameritech.net> (raw)
In-Reply-To: <427EFF3C.1040706@0Bits.COM>

On Monday 09 May 2005 01:12, Mitch wrote:
> Log file as requested...
> 

*sign* ALPS decided to return bare PS/2 packet instead of full 6-byte
packet...

Hmm, could you please try the patch below and see if it makes any
difference (although I doubt). I'll probably have to do special case
for ALPS.

-- 
Dmitry

--- drivers/input/mouse/psmouse-base.c.orig	2005-05-09 01:19:17.000000000 -0500
+++ drivers/input/mouse/psmouse-base.c	2005-05-09 01:20:22.000000000 -0500
@@ -657,7 +657,7 @@
 	int attempt;
 
 	for (attempt = 0; attempt < 5; attempt++) {
-		if (!ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_SETSTREAM))
+		if (!ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_ENABLE))
 			return 0;
 		msleep(200);
 	}
@@ -693,7 +693,7 @@
  * transmitting motion packet, so we use ps2_sendbyte() instead of
  * ps2_command() to avoid delay.
  */
-	ps2_sendbyte(&psmouse->ps2dev, PSMOUSE_CMD_SETPOLL, 20);
+	ps2_sendbyte(&psmouse->ps2dev, PSMOUSE_CMD_DISABLE, 20);
 
 	ps2_command(&psmouse->ps2dev, psmouse->packet, PSMOUSE_CMD_POLL | 0x0600);
 	if (psmouse->ps2dev.cmdcnt != 6 - psmouse->pktsize)

  reply	other threads:[~2005-05-09  6:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-09  6:12 [RFT/PATCH] KVMS, mouse losing sync and going crazy Mitch
2005-05-09  6:26 ` Dmitry Torokhov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-05-09  6:57 Mitch
2005-05-09  5:49 Mitch
2005-05-09  6:02 ` Dmitry Torokhov
2005-05-08 14:15 Mitch
2005-05-08 17:47 ` Dmitry Torokhov
2005-05-08  7:26 Dmitry Torokhov
2005-05-08 23:19 ` zhilla
2005-05-09  5:02   ` Dmitry Torokhov

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=200505090126.35042.dtor_core@ameritech.net \
    --to=dtor_core@ameritech.net \
    --cc=Mitch@0Bits.COM \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.