Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2004 20:19:58 -0800 (PST)
From:      Garry Roseman <groseman@apple.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/61377: usb keyboard not functional after boot, can not attach using kbdcontrol
Message-ID:  <200401150419.i0F4Jw66040403@www.freebsd.org>
Resent-Message-ID: <200401150420.i0F4KKhs011072@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         61377
>Category:       i386
>Synopsis:       usb keyboard not functional after boot, can not attach using kbdcontrol
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 14 20:20:20 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Garry Roseman
>Release:        5.2 RELEASE
>Organization:
Apple Computer Inc
>Environment:
FreeBSD silver.studio 5.2-RELEASE FreeBSD 5.2-RELEASE #3: Wed Jan 14 21:03:50 CST 2004     fuper@silver.studio:/usr/obj/usr/src/sys/SILVER  i386
>Description:
5.0 and 5.1 releases worked on this system, Giga-Byte GA-6VTXD Socket 370 dual processor motherboard with dual Pentium 3 800EB cpus with on-board usb plus legacy ports.  I had been running with a USB keyboard and no AT keyboard attached. With the 5.2 release the keyboard does not work.  Logging in via ssh I see that there are two keyboard devices, apparently an AT keyboard was registered despite its absence.  Following the procedure of "man kbdcontrol"
   kbdcontrol -k /dev/kbd1 < /dev/console
does NOT attach the usb keyboard.  Recompiling the kernel and using the procedure of "man ukbd"
    kbdcontrol -k /dev/kbd0 < /dev/ttyv0 > /dev/null
also does NOT attach the usb keyboard.  Each approach was tried with and without "usb legacy support" enabled in the bios (with cold power-down after each change).  In all tests hint.sc.0.flags="0x100", as I understand it should be to detect the missing AT keyboard and attach the usb keyboard.   There appears to be no way to use the usb keyboard on this system with release 5.2!

Relevent portion of the dmesg using a kernel with no atkbd and no atkbdc device ---
uhci0: <VIA 83C572 USB controller> port 0xd000-0xd01f irq 10 at device 7.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1: Chicony Generic USB Hub, class 9/0, rev 1.10/1.00, addr 2
uhub1: 3 ports with 2 removable, bus powered
ukbd0: Chicony PFU-65 USB Keyboard, rev 1.10/1.00, addr 3, iclass 3/1
kbd0 at ukbd0
ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/13.00, addr 4, iclass 3/1
ums0: 4 buttons and Z dir.
uhci1: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 10 at device 7.3 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered

This dmesg shows the usb keyboard being detected and attached as kbd0. Over ssh I see /dev/kbd0 but the keyboard is non-functional.  The same keyboard DOES work with the BIOS and with my other systems which are still running FreeBSD 5.1.

>How-To-Repeat:
Install release 5.2 on a Gigabyte dual-cpu motherboard with on-board usb and ps/2 ports and attach a usb keyboard (with or without a ps/2 keyboard also attached).  The usb keyboard is not functioning on boot and can not be made functional by any procedure described in the man pages.
>Fix:
      
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401150419.i0F4Jw66040403>