From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 24 07:26:23 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05C2516A420 for ; Fri, 24 Feb 2006 07:26:23 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from server.absolute-media.de (server.absolute-media.de [213.239.231.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E39243D46 for ; Fri, 24 Feb 2006 07:26:21 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from localhost (unknown [127.0.0.1]) by server.absolute-media.de (Postfix) with ESMTP id 1E605BEEF5 for ; Fri, 24 Feb 2006 08:26:20 +0100 (CET) Received: from server.absolute-media.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18381-02 for ; Fri, 24 Feb 2006 08:26:16 +0100 (CET) Received: from firewall.demig (p5083A088.dip0.t-ipconnect.de [80.131.160.136]) by server.absolute-media.de (Postfix) with ESMTP id F170BBE992 for ; Fri, 24 Feb 2006 08:26:15 +0100 (CET) Received: from ws-ew-3 (ws-ew-3.demig.intra [192.168.1.72]) by firewall.demig (8.13.5/8.13.5) with SMTP id k1O7PCQA033892 for ; Fri, 24 Feb 2006 08:25:12 +0100 (CET) (envelope-from NKoch@demig.de) From: "Norbert Koch" To: Date: Fri, 24 Feb 2006 08:25:12 +0100 Message-ID: <000601c63913$72cf7c00$4801a8c0@ws-ew-3.demig.intra> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 In-Reply-To: <43FE64CF.6080009@savvis.net> Importance: Normal X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at absolute-media.de Subject: RE: [PATCH] does ukbd delay break scan codes? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2006 07:26:23 -0000 Hello Maksim, yes I too looked at ukbd code and found the same. I already put a patch on the bug list yesterday. In the mean time I compared the ukbd code to that of NetBSD and OpenBSD. Their code is quite different. I expect that the DragenFlyBSD guys may have the same problem, but did not find their cvs web site so far. Norbert > > Maksim Yevmenkin wrote: > > [...] > > >>> I still do not know where it comes from, > >>> but what I found so far is, > >>> that the usb keyboard (or ukbd driver) > >>> seems to delay the break codes for > >>> keys with prefix E0 (which may or may not > >>> have anything to do with my problem). > >>> > >>> E.g., I press Keypad-Enter and see > >>> E0 1C E0 > >>> ^prefix > >>> ^make code > >>> ^prefix > >>> and nothing else. As soon as I press > >>> e.g. Enter (any key works) I see > >>> 9C 1C 9C > >>> ^break code > >>> ^make code > >>> ^delayed break code. > >>> > >>> Does anyone have an idea where that > >>> may come from? > >> > >> > >> i see this to on week old -current. if ukbd(4) delays break code then > >> this might explain state synchronization problem with kbdmux(4). i > >> guess we should start digging into ukbd(4), starting with > >> ukbd_interrupt() to see why this happening. > > > > > > just by looking at the code, i think, that ukbd_check_char() > should also > > return "true" if ks_buffered_char[0] != 0, i.e. try the following > > untested patch > > i have tested the attached patch. it works for me. with this patch usb > keyboard return > > Feb 23 17:30:54 beetle kernel: e0 1c > Feb 23 17:30:54 beetle kernel: e0 9c > > when i press "gray enter" key and ps/2 keyboard return > > Feb 23 17:31:41 beetle kernel: e0 > Feb 23 17:31:41 beetle kernel: 1c > Feb 23 17:31:41 beetle kernel: e0 > Feb 23 17:31:41 beetle kernel: 9c > > also i tried to freeze my keyboards by pressing ctrl+f1 but i can not > reproduce it here. > > thanks, > max >