From owner-freebsd-questions Mon Jul 8 21:41:35 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B5FD37B400 for ; Mon, 8 Jul 2002 21:41:29 -0700 (PDT) Received: from mail.reppep.com (www.reppep.com [64.81.19.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D03043E3B for ; Mon, 8 Jul 2002 21:41:28 -0700 (PDT) (envelope-from pepper@reppep.com) Received: from [64.81.19.109] (g4.reppep.com [64.81.19.109]) by mail.reppep.com (Postfix) with ESMTP id B783A17C0A for ; Mon, 8 Jul 2002 23:46:57 -0400 (EDT) Mime-Version: 1.0 X-Sender: pepper@mail.reppep.com Message-Id: Date: Tue, 9 Jul 2002 00:41:08 -0400 To: freebsd-questions@freebsd.org From: Chris Pepper Subject: USB problems & questions Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Fellow seekers, I have a 2-port USB KVM (MiniGear G-CS-102U), connected to a Power Mac G4 on one port, and an HP Pavilion 7915 running FreeBSD 4.6-STABLE/GENERIC (I used my kernel briefly, then switched back to GENERIC) on the other. The HP came with a PS/2 keyboard and mouse, but I'd like to use the Mac's Apple Extended USB Keyboard and XLR8 Point&Scroll mouse to save desk space. Unfortunately, my USB mouse is misbehaving, and my USB keyboard isn't doing anything at all, aside from appearing on the bus. Mouse protocol is set to auto on /dev/sysmouse. >FreeBSD guest.reppep.com 4.6-STABLE FreeBSD 4.6-STABLE #3: Sun Jul 7 02:08:43 EDT 2002 root@guest.reppep.com:/usr/obj/usr/src/sys/GENERIC i386 >[guest:~] root# grep usb /etc/rc.conf >usbd_enable="YES" >[guest:~] root# grep mouse /etc/rc.conf >moused_enable="YES" >moused_port="/dev/sysmouse" >moused_type="auto" >uhci0: port 0x1080-0x109f irq 11 at device 31.2 on pci0 >usb0: on uhci0 >usb0: USB revision 1.0 >uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 >uhub0: 2 ports with 2 removable, self powered >uhub1: Texas Instruments TUSB2046 hub, class 9/0, rev 1.10/1.25, addr 2 >uhub1: 4 ports with 4 removable, self powered >uhub2: Mitsumi Electric Hub in Apple Extended USB Keyboard, class 9/0, rev 1.10/1.22, addr 3 >uhub2: 3 ports with 2 removable, bus powered >ukbd0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr 4, iclass 3/1 >kbd1 at ukbd0 >uhid0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr 4, iclass 3/0 >ums0: Primax Electronics product 0x4d03, rev 1.00/4.41, addr 5, iclass 3/1 >ums0: 3 buttons and Z dir. Whenever the USB mouse is connected, after it's been probed, the mouse cursor flickers and jumps around. It moves left and down much faster than up and right, so tends to hover in the lower-left corner. I do not have XFree86 working on this system; this is in console mode, and in fact I can see control characters flashing, as if the charset's getting switched, under the mouse cursor. I can stop and restart the flickering with vidcontrol -m, but I haven't been able to make it work properly. I tried disconnecting all PS/2 and USB devices, shutting down, and connecting only a Logitech USB Wheel Mouse, and the Logitech showed the same flickering/jumping behavior. What am I doing wrong, and how can I fix this? Has anyone gotten the Apple Extended USB Keyboard working in FreeBSD? Do I really need to rebuild the kernel with "options KBD_INSTALL_CDEV" (not present in LINT) per before the keyboard will work? I'm not sure if this is as dated as the stuff that says all the USB modules must be compiled into the kernel -- they seem to load automatically as needed for the most part. Again, I tried removing all PS/2 & USB devices, connecting just the keyboard, and booting. I found "Legacy USB Support" in my PhoenixBIOS 6, and fiddled with it. In Disabled mode, I can't do anything at all with the keyboard. With Legacy USB support set to Auto or Enabled, I can use the USB keyboard to hit Return or an FKey at the slice selector. I *cannot* stop the 10-second kernel countdown via USB, but if I stop it with the PS/2 keyboard, and Legacy support is Auto or Enabled, I can type boot, or whatever, at the loader command line. How can I get the USB keyboard fully functional in FreeBSD (including slice selection and single-user mode)? My devices look right: >[guest:/dev] root# ls /dev/u* /dev/kbd* >/dev/kbd0 /dev/ugen0.12 /dev/ugen0.4 /dev/uhid0 /dev/urio0 >/dev/kbd1 /dev/ugen0.13 /dev/ugen0.5 /dev/ulpt0 /dev/usb >/dev/ugen0 /dev/ugen0.14 /dev/ugen0.6 /dev/umodem0 /dev/usb0 >/dev/ugen0.1 /dev/ugen0.15 /dev/ugen0.7 /dev/ums0 /dev/uscanner0 >/dev/ugen0.10 /dev/ugen0.2 /dev/ugen0.8 /dev/unlpt0 >/dev/ugen0.11 /dev/ugen0.3 /dev/ugen0.9 /dev/urandom Here's dmesg with Apple keyboard and Point&Scroll mouse, and both PS/2 devices, connected: >Copyright (c) 1992-2002 The FreeBSD Project. >Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. >FreeBSD 4.6-STABLE #3: Sun Jul 7 02:08:43 EDT 2002 > root@guest.reppep.com:/usr/obj/usr/src/sys/GENERIC >Timecounter "i8254" frequency 1193182 Hz >CPU: Pentium III/Pentium III Xeon/Celeron (1102.50-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x68a Stepping = 10 > Features=0x383fbff >real memory = 401539072 (392128K bytes) >config> di pcic0 >config> di sn0 >config> di lnc0 >config> di ie0 >config> di fe0 >config> di ed0 >config> di cs0 >config> di bt0 >config> di aic0 >config> di aha0 >config> di adv0 >config> q >avail memory = 385429504 (376396K bytes) >Preloaded elf kernel "kernel" at 0xc04db000. >Preloaded userconfig_script "/boot/kernel.conf" at 0xc04db09c. >Pentium Pro MTRR support enabled >md0: Malloc disk >Using $PIR table, 9 entries at 0xc00fdf30 >npx0: on motherboard >npx0: INT 16 interface >pcib0: on motherboard >pci0: on pcib0 >pci0: at 1.0 irq 9 >pcib1: at device 30.0 on pci0 >pci1: on pcib1 >xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0x2000-0x207f mem 0xf4100000-0xf410007f irq 9 at device 9.0 on pci1 >xl0: Ethernet address: 00:04:76:df:f2:82 >miibus0: on xl0 >xlphy0: <3c905C 10/100 internal PHY> on miibus0 >xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >pci1: (vendor=0x11c1, dev=0x044e) at 10.0 irq 10 >isab0: at device 31.0 on pci0 >isa0: on isab0 >atapci0: port 0x10a0-0x10af at device 31.1 on pci0 >ata0: at 0x1f0 irq 14 on atapci0 >ata1: at 0x170 irq 15 on atapci0 >uhci0: port 0x1080-0x109f irq 11 at device 31.2 on pci0 >usb0: on uhci0 >usb0: USB revision 1.0 >uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 >uhub0: 2 ports with 2 removable, self powered >pci0: (vendor=0x8086, dev=0x2413) at 31.3 irq 9 >chip1: port 0x1300-0x133f,0x1200-0x12ff irq 0 at device 31.5 on pci0 >orm0: