Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263058AbVEIG0k (ORCPT ); Mon, 9 May 2005 02:26:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263059AbVEIG0k (ORCPT ); Mon, 9 May 2005 02:26:40 -0400 Received: from smtp808.mail.sc5.yahoo.com ([66.163.168.187]:54864 "HELO smtp808.mail.sc5.yahoo.com") by vger.kernel.org with SMTP id S263058AbVEIG0h (ORCPT ); Mon, 9 May 2005 02:26:37 -0400 From: Dmitry Torokhov To: Mitch Subject: Re: [RFT/PATCH] KVMS, mouse losing sync and going crazy Date: Mon, 9 May 2005 01:26:34 -0500 User-Agent: KMail/1.8 Cc: linux-kernel@vger.kernel.org References: <427EFF3C.1040706@0Bits.COM> In-Reply-To: <427EFF3C.1040706@0Bits.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505090126.35042.dtor_core@ameritech.net> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1339 Lines: 39 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) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/