From owner-freebsd-current@FreeBSD.ORG Wed May 28 19:39:04 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0DD01065682; Wed, 28 May 2008 19:39:04 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 86E708FC20; Wed, 28 May 2008 19:39:04 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (server.baldwin.cx [208.65.91.234]) by elvis.mu.org (Postfix) with ESMTP id 46B991A4D91; Wed, 28 May 2008 12:39:04 -0700 (PDT) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m4SJcAdD009372; Wed, 28 May 2008 15:38:57 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Wed, 28 May 2008 14:44:15 -0400 User-Agent: KMail/1.9.7 References: <20071224020713.F1390@odysseus.silby.com> <20080527001051.P1500@odysseus.silby.com> In-Reply-To: <20080527001051.P1500@odysseus.silby.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805281444.16073.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Wed, 28 May 2008 15:38:57 -0400 (EDT) X-Virus-Scanned: ClamAV 0.91.2/7278/Wed May 28 11:00:15 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Mike Silbersack , current@freebsd.org Subject: Re: Repeated or missed keys after upgrading from 6.2 to 7.0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2008 19:39:04 -0000 On Tuesday 27 May 2008 01:17:48 am Mike Silbersack wrote: > > On Mon, 24 Dec 2007, Mike Silbersack wrote: > > > In order to eat my own dog food, I upgraded my laptop from 6.2 to 7.0. This > > seemed to have gone well, until I started writing a long e-mail while sitting > > on the couch today. As I was typing the e-mail, I noticed that my typing > > skills seemed to have gone missing; there were words missing 2-3 letters, and > > other places where I was apparently holding down keyyyys. Heh, that's a real > > example of the phenomenon right there. > > > > After a while I realized that I was not typing sloppily, but that in fact > > keys are being lost in certain cases and duplicated in others. Since I did > > not rebuild any ports or packages, I'm convinced that this is directly > > related to the 7.0 upgrade. > > > > This behavior has shown up when running a local copy of pine (inside > > konsole), chatting in ksirc, and in a few other programs. (I'm running KDE.) > > I think it happens more when on battery than when plugged into an outlet. > > I'm running xbattbar, so it could be querying the battery status and causing > > problems. This is using the laptop's built-in keyboard (non-USB.) > > > > I'm going to try to track this down, although I don't know how successful > > I'll be. I'd like to know if anyone else has seen this problem and if they > > have any additional information that might help me track it down faster. > > > > Thanks, > > > > Mike "Silby" Silbersack > > For anyone still interested (and I suspect those who have Acer laptops > will be), I've finally found a fix for this problem. > > The same problem was reported with some versions of Linux: > > http://bugzilla.kernel.org/show_bug.cgi?id=9998 > > To summarize the bug report, the problem is that the ACPI Embedded > Controller on some Acer laptops handles both keyboard I/O and the > communication channel to the smart battery. If you talk to the battery > too quickly, the chip will start dropping keystrokes. To deal with this, > the Linux acpi maintainers added back some delays that had been present in > the past. > > I tried a similar approach, and found it to be effective on FreeBSD 7.0. > Applying the attached patch and setting debug.acpi.ec.extradelay=1000 > seems to completely cure the keyboard problems for me. > > Anyone interested in reviewing the patch? I think it looks ok, but I would run it by njl@ to be sure. -- John Baldwin