Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2002 00:41:08 -0400
From:      Chris Pepper <pepper@reppep.com>
To:        freebsd-questions@freebsd.org
Subject:   USB problems & questions
Message-ID:  <a05200112b94f8400f4a5@[129.85.219.160]>

next in thread | raw e-mail | index | archive | help
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: <Intel 82801AA (ICH) USB controller> port 0x1080-0x109f irq 11 at device 31.2 on pci0
>usb0: <Intel 82801AA (ICH) USB controller> 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 <http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/faq/hardware.html#USBKBD>; 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
>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: <math processor> on motherboard
>npx0: INT 16 interface
>pcib0: <Intel 82810 (i810 GMCH) Host To Hub bridge> on motherboard
>pci0: <PCI bus> on pcib0
>pci0: <Intel 82810 (i810 GMCH) SVGA controller> at 1.0 irq 9
>pcib1: <Intel 82801AA (ICH) Hub to PCI bridge> at device 30.0 on pci0
>pci1: <PCI bus> 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: <MII bus> on xl0
>xlphy0: <3c905C 10/100 internal PHY> on miibus0
>xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>pci1: <unknown card> (vendor=0x11c1, dev=0x044e) at 10.0 irq 10
>isab0: <Intel 82801AA (ICH) PCI to LPC bridge> at device 31.0 on pci0
>isa0: <ISA bus> on isab0
>atapci0: <Intel ICH ATA66 controller> port 0x10a0-0x10af at device 31.1 on pci0
>ata0: at 0x1f0 irq 14 on atapci0
>ata1: at 0x170 irq 15 on atapci0
>uhci0: <Intel 82801AA (ICH) USB controller> port 0x1080-0x109f irq 11 at device 31.2 on pci0
>usb0: <Intel 82801AA (ICH) USB controller> 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: <unknown card> (vendor=0x8086, dev=0x2413) at 31.3 irq 9
>chip1: <Intel 82801AA (ICH) AC'97 Audio Controller> port 0x1300-0x133f,0x1200-0x12ff irq 0 at device 31.5 on pci0
>orm0: <Option ROMs> at iomem 0xc0000-0xc9fff,0xd8000-0xdbfff,0xe0000-0xe07ff on isa0
>fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
>fdc0: FIFO enabled, 8 bytes threshold
>fd0: <1440-KB 3.5" drive> on fdc0 drive 0
>atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
>atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
>kbd0 at atkbd0
>psm0: <PS/2 Mouse> irq 12 on atkbdc0
>psm0: model Generic PS/2 mouse, device ID 0
>vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
>sc0: <System console> at flags 0x100 on isa0
>sc0: VGA <16 virtual consoles, flags=0x300>
>sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
>sio0: type 16550A
>sio1 at port 0x2f8-0x2ff irq 3 on isa0
>sio1: type 16550A
>ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
>ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
>ppc0: FIFO with 16/16/8 bytes threshold
>plip0: <PLIP network interface> on ppbus0
>lpt0: <Printer> on ppbus0
>lpt0: Interrupt-driven port
>ppi0: <Parallel I/O> on ppbus0
>ad0: 38166MB <WDC WD400AB-22BTA0> [77545/16/63] at ata0-master UDMA66
>acd0: CDROM <OEM CD-ROM F522B> at ata1-master PIO4
>Mounting root from ufs:/dev/ad0s2a


						Thanks much,


						Chris Pepper
-- 
Chris Pepper:               <http://www.reppep.com/~pepper/>;
Rockefeller University:        <http://www.rockefeller.edu/>;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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