Re: USB keyboard rollover problem [PATCHED]

2004-02-21 Thread Brian Candler
On Fri, Feb 20, 2004 at 03:56:02PM +, Brian Candler wrote:
> Here's what I get if I compile in and turn on USB keyboard debugging in
> the kernel, and type "asd" as
> "a" down, "s" down, "a" up, "d" down: this generates "asds" on screen.

I have just spent a couple of hours debugging and documenting the problem
and submitted a kernel patch:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/63171

But dammit, I've just discovered that the fix was posted already on
27th September last year:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/57273

To prevent further time wasting, can someone please commit one of these?
(Both fix the rollover problem, but kern/63171 also fixes a pointer type
mismatch problem)

Thanks,

Brian Candler.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: USB keyboard rollover problem

2004-02-20 Thread Brian Candler
On Fri, Feb 20, 2004 at 02:49:43PM +, Brian Candler wrote:
> Additional information: if I reboot my laptop into Windows 98 (forgot I had
> that partition!), the keyboard works properly with no rollover problem. So
> it looks suspiciously like FreeBSD is not initialising it properly or
> communicating correctly.

Here's what I get if I compile in and turn on USB keyboard debugging in
the kernel, and type "asd" as
"a" down, "s" down, "a" up, "d" down: this generates "asds" on screen.

Feb 20 15:21:21 vaio /kernel: 0x428 (1064) released
Feb 20 15:21:21 vaio /kernel: 
Feb 20 15:21:26 vaio /kernel: 0x4 (4) pressed <<< a
Feb 20 15:21:26 vaio /kernel: 4 
Feb 20 15:21:26 vaio /kernel: 0x16 (22) pressed   <<< s
Feb 20 15:21:26 vaio /kernel: 4 22 
Feb 20 15:21:26 vaio /kernel: 0x404 (1028) released
Feb 20 15:21:26 vaio /kernel: 0x416 (1046) released
Feb 20 15:21:26 vaio /kernel: 22 
Feb 20 15:21:26 vaio /kernel: 0x7 (7) pressed <<< d
Feb 20 15:21:26 vaio /kernel: 0x16 (22) pressed   <<< s
Feb 20 15:21:26 vaio /kernel: 7 22 
Feb 20 15:21:26 vaio /kernel: 0x416 (1046) released
Feb 20 15:21:26 vaio /kernel: 7 
Feb 20 15:21:27 vaio /kernel: 0x407 (1031) released
Feb 20 15:21:27 vaio /kernel: 

I replaced ukbd.c with the latest (1.46) from cvsweb and rebuilt; no
difference. I also set the debug level to 10 instead of 1, and all I got
were a stream of extra messages of the form

Feb 20 15:48:13 vaio /kernel: ukbd_intr: status=0

There doesn't seem to be a USB mailing list, so if nobody has any better
suggestions I suppose I'd better file a bug report...

Cheers,

Brian.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: USB keyboard rollover problem

2004-02-20 Thread Brian Candler
On Fri, Feb 20, 2004 at 01:59:03PM +, Brian Candler wrote:
> However I have a problem with keyboard rollover, meaning I get duplicate
> characters when typing quickly. Example:

Additional information: if I reboot my laptop into Windows 98 (forgot I had
that partition!), the keyboard works properly with no rollover problem. So
it looks suspiciously like FreeBSD is not initialising it properly or
communicating correctly.

W98 installed three default drivers (I think USB.INF, USBHID.INF and
something else) when I first inserted it. There was no special driver disk
which came with the keyboard. So I think it must be doing the "default"
thing for a USB keyboard.

Regards,

Brian.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"