From owner-freebsd-usb@FreeBSD.ORG Sun Dec 10 20:36:23 2006 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3928F16A412 for ; Sun, 10 Dec 2006 20:36:23 +0000 (UTC) (envelope-from tamaru@myn.rcast.u-tokyo.ac.jp) Received: from mail1.ecc.u-tokyo.ac.jp (mail1.ecc.u-tokyo.ac.jp [133.11.50.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8917B43CB7 for ; Sun, 10 Dec 2006 20:34:49 +0000 (GMT) (envelope-from tamaru@myn.rcast.u-tokyo.ac.jp) Received: from spam001.ecc.u-tokyo.ac.jp (spam001.ecc.u-tokyo.ac.jp [133.11.50.194]) by mail1.ecc.u-tokyo.ac.jp (Postfix) with ESMTP id 89ADD10064 for ; Mon, 11 Dec 2006 05:36:01 +0900 (JST) Received: from md001.ecc.u-tokyo.ac.jp (192.168.160.21 [192.168.160.21]) by spam001.ecc.u-tokyo.ac.jp (SpamBlock.pst 3.4.94) with ESMTP id for ; Mon, 11 Dec 2006 05:35:24 +0900 Received: from amulet.amuletic.net (v055252.ppp.asahi-net.or.jp [124.155.55.252]) by md001.ecc.u-tokyo.ac.jp (MOS 3.4.5-GR) with ESMTP id BOR04480 (AUTH via LOGINBEFORESMTP); Mon, 11 Dec 2006 05:35:23 +0900 (JST) Date: Mon, 11 Dec 2006 05:35:23 +0900 Message-ID: From: Hiroharu Tamaru To: usb@freebsd.org User-Agent: User-Agent: Wanderlust/2.14.0 (Africa) Emacs/21.3 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-IP: 192.168.160.21 X-FROM-DOMAIN: myn.rcast.u-tokyo.ac.jp X-FROM-EMAIL: tamaru@myn.rcast.u-tokyo.ac.jp Cc: Subject: usb mouse losing connection frequently X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Dec 2006 20:36:23 -0000 Hi I have ASUSTek P1-AH2 barebone / NVidia MCP51 running i386 6.2-RC1 http://www.asus.com/products4.aspx?modelmenu=1&model=1151&l1=1&l2=3&l3=0 I set USB legacy emulation in BIOS since I am using an usb keyboard, if that matters. First, the usb keyboard gets detected at boot up, whereas the usb mouse does not; I have to unplug the mouse and replug it to get it recognized (watching all.log and with usbdevs). Then, this mouse gets lost every now and then: ums0: at uhub0 port 2 (addr 3) disconnected ums0: detached unable to open /dev/ums0: No such file or directory Sometimes, I also get this when it happens: uhub0: device problem (SET_ADDR_FAILED), disabling port 2 Anyway, I unplug + replug it when it happens to get it redetected: ums0: Giga-Hard Giga-Hard USB Wheel Mouse, rev 1.00/0.00, addr 3, iclass 3/1 ums0: 3 buttons and Z dir. I believe it only happens when the mouse is moving. This mouse itself was working fine on another machine that has uhci and running 4-STABLE. I've also tried http://people.freebsd.org/~markus/stuff/ums.ko as suggested in one of the mails in the archives, but I don't think it made any difference, frequency-wise and all. Is this a known problem? Is there anything I can try? Is there any way to emulate an unplug-and-replug from software? Then, at least I can work around by watching the log and reseting it from a syslog driven script. It appears that deleting ums from the kernel config and then kldunloading/loading the ums.ko does not have such effect. I've just subscribed to this list. If there are any keywords I should look up in the archives, please let me know. Thank you. Hiroharu Tamaru # usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 addr 3: low speed, power 100 mA, config 1, Giga-Hard USB Wheel Mouse(0x0001), Giga-Hard(0x04b4), rev 0.00 port 2 powered port 3 powered port 4 addr 2: full speed, power 100 mA, config 1, HHKB Professional(0x0100), Topre Corporation(0x0853), rev 1.02 port 5 powered port 6 powered port 7 powered port 8 powered Controller /dev/usb1: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered port 7 addr 2: high speed, power 96 mA, config 1, Flash Card Reader(0x2228), ASUS(0x0424), rev 3.95 port 8 powered These are the usb related dmesgs: ohci0: mem 0xfe02f000-0xfe02ffff irq 21 at device 11.0 on pci0 ohci0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xfe02f000 ioapic0: routing intpin 21 (PCI IRQ 21) to vector 50 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 8 ports with 8 removable, self powered ehci0: mem 0xfe02e000-0xfe02e0ff irq 22 at device 11.1 on pci0 ehci0: Reserved 0x100 bytes for rid 0x10 type 3 at 0xfe02e000 ioapic0: routing intpin 22 (PCI IRQ 22) to vector 51 ehci0: [GIANT-LOCKED] usb1: EHCI version 1.0 usb1: companion controller, 8 ports each: usb0 usb1: on ehci0 usb1: USB revision 2.0 uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub1: 8 ports with 8 removable, self powered umass0: ASUS Flash Card Reader, rev 2.00/3.95, addr 2 umass0:0:0:-1: Attached to scbus0 (snip) vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 uhub0: device problem (SET_ADDR_FAILED), disabling port 2 ukbd0: Topre Corporation HHKB Professional, rev 1.10/1.02, addr 2, iclass 3/1 kbd2 at ukbd0 Timecounter "TSC" frequency 1607418199 Hz quality 800 Timecounters tick every 1.000 msec And some basic info on this machine: the config is GENERIC without nve (to use if_nfe.ko), and somethimes without ums (to fiddle with ums.ko). FreeBSD 6.2-RC1 #3: Mon Dec 11 02:58:05 JST 2006 ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Sempron(tm) Processor 3000+ (1607.42-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x40ff2 Stepping = 2 Features=0x78bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x19,CR8> real memory = 1005518848 (958 MB) avail memory = 966488064 (921 MB) ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi0: Power Button (fixed) acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0