Date: Mon, 11 Dec 2006 05:35:23 +0900 From: Hiroharu Tamaru <tamaru@myn.rcast.u-tokyo.ac.jp> To: usb@freebsd.org Subject: usb mouse losing connection frequently Message-ID: <sa67iwzzdys.wl%tamaru@myn.rcast.u-tokyo.ac.jp>
next in thread | raw e-mail | index | archive | help
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: <OHCI (generic) USB controller> 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: <OHCI (generic) USB controller> 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: <EHCI (generic) USB 2.0 controller> 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: <EHCI (generic) USB 2.0 controller> 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: <Generic ISA VGA> 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: <Nvidia AWRDACPI> 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> Features2=0x2001<SSE3,CX16> AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow+,3DNow> AMD Features2=0x19<LAHF,<b3>,CR8> real memory = 1005518848 (958 MB) avail memory = 966488064 (921 MB) ioapic0 <Version 1.1> irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: <Nvidia AWRDACPI> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?sa67iwzzdys.wl%tamaru>