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]"


USB keyboard rollover problem

2004-02-20 Thread Brian Candler
Since my old Vaio laptop has a broken key, I decided to get a USB keyboard
for it. I have been using a USB mouse successfully for a while.

However I have a problem with keyboard rollover, meaning I get duplicate
characters when typing quickly. Example:

  Depress "a"  -- a
  Depress "b"  -- b
  Release "a"
  Depress "c"  -- cb

So typing "questions" quickly tends to say "questioins". I am having to type
this very gingerly and still doing lots of backspaces!

My question is: is this something I can tweak in FreeBSD? (I can't see
anything under kbdcontrol). Is it a bug in FreeBSD? Or have I just bought a
useless keyboard?

System information:
- Sony Vaio PCG-C1F
- FreeBSD 4.8-RELEASE
- Packard Bell PB-KB400 USB "Night glow" keyboard (I didn't want the glow
  but it was the only small USB keyboard in stock locally :-)

Feb 20 13:38:14 vaio /kernel: ukbd0:   USB Multimedia Keyboard , rev 1.10/0.01, addr 
2, iclass 3/1
Feb 20 13:38:14 vaio /kernel: kbd1 at ukbd0
Feb 20 13:38:14 vaio /kernel: uhid0:   USB Multimedia Keyboard , rev 1.10/0.01, addr 
2, iclass 3/1

- After inserting the keyboard, I enable it using

#!/bin/sh
kbdcontrol -k /dev/kbd1 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"