Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269646AbTHOQOI (ORCPT ); Fri, 15 Aug 2003 12:14:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269619AbTHOQOH (ORCPT ); Fri, 15 Aug 2003 12:14:07 -0400 Received: from zeus.kernel.org ([204.152.189.113]:59269 "EHLO zeus.kernel.org") by vger.kernel.org with ESMTP id S269676AbTHOQKB (ORCPT ); Fri, 15 Aug 2003 12:10:01 -0400 Date: Fri, 15 Aug 2003 15:53:31 +0200 From: Vojtech Pavlik To: Jamie Lokier Cc: Vojtech Pavlik , Andries Brouwer , Neil Brown , linux-kernel@vger.kernel.org Subject: Re: Input issues - key down with no key up Message-ID: <20030815135331.GC15872@ucw.cz> References: <16188.27810.50931.158166@gargle.gargle.HOWL> <20030815094604.B2784@pclin040.win.tue.nl> <20030815105802.GA14836@ucw.cz> <20030815123641.GA7204@win.tue.nl> <20030815130450.GF15911@mail.jlokier.co.uk> <20030815131040.GA15706@ucw.cz> <20030815133307.GH15911@mail.jlokier.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030815133307.GH15911@mail.jlokier.co.uk> User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1335 Lines: 39 On Fri, Aug 15, 2003 at 02:33:07PM +0100, Jamie Lokier wrote: > Vojtech Pavlik wrote: > > > Several laptops seem to send a key down event 3, 5 or very many times > > > in response to a single press. > > > > One way this could be handled fairly nicely (although the method is > > maybe too clever to be good) would be to leave the autorepeat up to the > > sw, ignore any successive presses without a release and watch whether > > the keyboard will start autorepeating the key after 250 msec. If it does > > not, then force the key to be released even if we got no release > > scancode. > > Perhaps it's too clever, because some users configure the repeat delay > in their BIOS to longer than 250ms. The driver programs the delay. The BIOS setting is irrelevant. > It is fine if you are able to reliably program the keyboard to use the > 250ms delay, though. I am. > Aren't there some keys which report DOWN and UP but which don't repeat? No. > The PS/2 keyboard protocol is utterly absurd. Yep. It's a dozen or more years of hack upon a hack. -- Vojtech Pavlik SuSE Labs, SuSE CR - 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/