Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2008 00:17:48 -0500 (CDT)
From:      Mike Silbersack <silby@silby.com>
To:        current@freebsd.org
Subject:   Re: Repeated or missed keys after upgrading from 6.2 to 7.0
Message-ID:  <20080527001051.P1500@odysseus.silby.com>
In-Reply-To: <20071224020713.F1390@odysseus.silby.com>
References:  <20071224020713.F1390@odysseus.silby.com>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--1861302967-1840424702-1211865468=:1500
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed


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?

Thanks,

Mike "Silby" Silbersack
--1861302967-1840424702-1211865468=:1500
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=acpi_ec.c.extradelay.patch
Content-Transfer-Encoding: BASE64
Content-ID: <20080527001748.N1500@odysseus.silby.com>
Content-Description: 
Content-Disposition: attachment; filename=acpi_ec.c.extradelay.patch

ZGlmZiAtdSAtciAvdXNyL3NyYy9zeXMub2xkL2Rldi9hY3BpY2EvYWNwaV9l
Yy5jIC91c3Ivc3JjL3N5cy9kZXYvYWNwaWNhL2FjcGlfZWMuYw0KLS0tIC91
c3Ivc3JjL3N5cy5vbGQvZGV2L2FjcGljYS9hY3BpX2VjLmMJMjAwOC0wNS0y
NiAyMzo0NzoyMi4wMDAwMDAwMDAgLTA1MDANCisrKyAvdXNyL3NyYy9zeXMv
ZGV2L2FjcGljYS9hY3BpX2VjLmMJMjAwOC0wNS0yNiAyMzo1ODoyMi4wMDAw
MDAwMDAgLTA1MDANCkBAIC0xOTQsNiArMTk0LDEwIEBADQogVFVOQUJMRV9J
TlQoImRlYnVnLmFjcGkuZWMudGltZW91dCIsICZlY190aW1lb3V0KTsNCiBT
WVNDVExfSU5UKF9kZWJ1Z19hY3BpX2VjLCBPSURfQVVUTywgdGltZW91dCwg
Q1RMRkxBR19SVywgJmVjX3RpbWVvdXQsDQogICAgIEVDX1RJTUVPVVQsICJU
b3RhbCB0aW1lIHNwZW50IHdhaXRpbmcgZm9yIGEgcmVzcG9uc2UgKHBvbGwr
c2xlZXApIik7DQorc3RhdGljIGludAllY19leHRyYWRlbGF5ID0gMDsNCitU
VU5BQkxFX0lOVCgiZGVidWcuYWNwaS5lYy5leHRyYWRlbGF5IiwgJmVjX2V4
dHJhZGVsYXkpOw0KK1NZU0NUTF9JTlQoX2RlYnVnX2FjcGlfZWMsIE9JRF9B
VVRPLCBleHRyYWRlbGF5LCBDVExGTEFHX1JXLCAmZWNfZXh0cmFkZWxheSwN
CisgICAgMCwgIk1pY3Jvc2Vjb25kcyB0byBkZWxheSBhdCB0aGUgc3RhcnQg
b2YgRWNXYWl0RXZlbnQiKTsNCiANCiBzdGF0aWMgQUNQSV9TVEFUVVMNCiBF
Y0xvY2soc3RydWN0IGFjcGlfZWNfc29mdGMgKnNjKQ0KQEAgLTgxMiw2ICs4
MTYsOCBAQA0KIA0KICAgICBBQ1BJX1NFUklBTF9BU1NFUlQoZWMpOw0KICAg
ICBTdGF0dXMgPSBBRV9OT19IQVJEV0FSRV9SRVNQT05TRTsNCisgICAgaWYg
KGVjX2V4dHJhZGVsYXkgPiAwICYmIGVjX2V4dHJhZGVsYXkgPCAyMDAwKQ0K
KwlBY3BpT3NTdGFsbChlY19leHRyYWRlbGF5KTsNCiAgICAgaW50IG5lZWRf
cG9sbCA9IGNvbGQgfHwgcmVib290aW5nIHx8IGVjX3BvbGxlZF9tb2RlIHx8
IHNjLT5lY19zdXNwZW5kaW5nOw0KICAgICAvKg0KICAgICAgKiBUaGUgbWFp
biBDUFUgc2hvdWxkIGJlIG11Y2ggZmFzdGVyIHRoYW4gdGhlIEVDLiAgU28g
dGhlIHN0YXR1cyBzaG91bGQNCg==

--1861302967-1840424702-1211865468=:1500--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080527001051.P1500>