From owner-freebsd-current@FreeBSD.ORG Sun Jan 2 14:56:16 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 872051065670 for ; Sun, 2 Jan 2011 14:56:16 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id 11AC18FC14 for ; Sun, 2 Jan 2011 14:56:15 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=jVx+AExU5EFhK37+rVAQq6jxd4lXLYohjT2gqEoUpuc= c=1 sm=1 a=dq2f58wT9zoA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=pGLkceISAAAA:8 a=AsRLeHs3dbwEm_LtRL0A:9 a=FhHTcthYd0vpVmLa3EwA:7 a=-l8rJN9t39f-PTXGT--P2bB8vQwA:4 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 68964089; Sun, 02 Jan 2011 15:56:14 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org, AANLkTi=uMUPvXt4gS+gqPmpQT5LZWLNjt_9d2UfHTULM@mail.gmail.com Date: Sun, 2 Jan 2011 15:56:21 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20110102174242.014ddca5.too.much.dudes@gmail.com> In-Reply-To: <20110102174242.014ddca5.too.much.dudes@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201101021556.21645.hselasky@c2i.net> Cc: Subject: Re: keyboard driver problem? 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: Sun, 02 Jan 2011 14:56:16 -0000 On Sunday 02 January 2011 15:42:42 too.much.dudes@gmail.com wrote: > already tried variants : > offset+=4 && len-=4 > offset+=0 && len-=4 > and yours, but they doesn't have correct effect > (yours variant gives some addition lags: > for example pressing "o" presses Scroll Lock, "h" - WIN_L and etc) Hi, Maybe you can add a printout, to dump the len bytes: uint32_t yy; printf("UKBD data: "); for (yy = 0; yy != len; yy++) { uint8_t temp; usbd_copy_out(pc, offset + yy, &temp, 1); printf("0x%02x ", (int)temp); } printf("\n"); I guess the reason your keyboard doesn't work is that we don't parse any HID descriptors in UKBD. --HPS