From owner-freebsd-usb@FreeBSD.ORG Tue Jul 26 11:30:30 2005 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1017F16A41F for ; Tue, 26 Jul 2005 11:30:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 931FF43D46 for ; Tue, 26 Jul 2005 11:30:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6QBUTFH082768 for ; Tue, 26 Jul 2005 11:30:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6QBUTMJ082767; Tue, 26 Jul 2005 11:30:29 GMT (envelope-from gnats) Date: Tue, 26 Jul 2005 11:30:29 GMT Message-Id: <200507261130.j6QBUTMJ082767@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/83756: Microsoft Intellimouse Explorer 4.0A doesn't work. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2005 11:30:30 -0000 The following reply was made to PR usb/83756; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Adrian Czerniak , freebsd-gnats-submit@freebsd.org Subject: Re: usb/83756: Microsoft Intellimouse Explorer 4.0A doesn't work. Date: Tue, 26 Jul 2005 13:28:18 +0200 On Wednesday 20 July 2005 00:55, Adrian Czerniak wrote: > >Number: 83756 > >Category: usb > >Synopsis: Microsoft Intellimouse Explorer 4.0A doesn't work. > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Jul 19 23:00:34 GMT 2005 > >Closed-Date: > >Last-Modified: > >Originator: Adrian Czerniak > >Release: 6-BETA1 > >Organization: > >Environment: > > FreeBSD xx-yy.is.net.pl 6.0-BETA1 FreeBSD 6.0-BETA1 #0: Tue Jul 19 01:05:47 > CEST 2005 abaddon@68-71.is.net.pl:/usr/obj/usr/src/sys/abaddon i386 > > >Description: > > My Microsoft Intellimouse Explorer 4.0A simply doesn't work. My > configuration: > > dmesg: > > Copyright (c) 1992-2005 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 6.0-BETA1 #0: Wed Jul 20 00:03:45 CEST 2005 > abaddon@68-71.is.net.pl:/usr/obj/usr/src/sys/abaddon > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: AMD Duron(tm) processor (800.03-MHz 686-class CPU) > Origin = "AuthenticAMD" Id = 0x631 Stepping = 1 > > Features=0x183f9ff,PAT,PSE36,MMX,FXSR> AMD > Features=0xc0440800,MMX+,3DNow+,3DNow> > real memory = 402587648 (383 MB) > avail memory = 388734976 (370 MB) > npx0: [FAST] > npx0: on motherboard > npx0: INT 16 interface > acpi0: on motherboard > acpi0: Power Button (fixed) > pci_link0: irq 10 on acpi0 > pci_link1: irq 12 on acpi0 > pci_link2: irq 11 on acpi0 > pci_link3: irq 5 on acpi0 > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 > cpu0: on acpi0 > acpi_throttle0: on cpu0 > acpi_button0: on acpi0 > acpi_button1: on acpi0 > pcib0: port > 0xcf8-0xcff,0x4000-0x407f,0x4080-0x40ff,0x5000-0x500f,0x6000-0x607f on > acpi0 pci0: on pcib0 > agp0: mem > 0xd0000000-0xd7ffffff at device 0.0 on pci0 pcib1: at > device 1.0 on pci0 > pci1: on pcib1 > pci1: at device 0.0 (no driver attached) > isab0: at device 7.0 on pci0 > isa0: on isab0 > atapci0: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc000-0xc00f at device 7.1 on pci0 > ata0: on atapci0 > ata1: on atapci0 > uhci0: port 0xc400-0xc41f irq 5 at device 7.2 > on pci0 uhci0: [GIANT-LOCKED] > usb0: 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 > uhci1: port 0xc800-0xc81f irq 5 at device 7.3 > on pci0 uhci1: [GIANT-LOCKED] > usb1: on uhci1 > usb1: USB revision 1.0 > uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub1: 2 ports with 2 removable, self powered > pci0: at device 7.4 (no driver attached) > rl0: port 0xcc00-0xccff mem > 0xe3000000-0xe30000ff irq 11 at device 9.0 on pci0 miibus0: on > rl0 > rlphy0: on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > rl0: Ethernet address: 00:80:48:10:e3:65 > pcm0: port 0xd000-0xd03f irq 12 at device 13.0 on pci0 > pcm0: > pcm0: [GIANT-LOCKED] > atapci1: port > 0xd400-0xd407,0xd800-0xd803,0xdc00-0xdc07,0xe000-0xe003,0xe400-0xe4ff irq > 11 at device 19.0 on pci0 ata2: on atapci1 > ata3: on atapci1 > atkbdc0: port 0x60,0x64 irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > pmtimer0 on isa0 > orm0: at iomem 0xc0000-0xcb7ff on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > ums0: Microsoft Microsoft IntelliMouseŽ Explorer, rev 2.00/4.24, addr > 2, iclass 3/1 ums0: 5 buttons and Z dir and a TILT dir. > Timecounter "TSC" frequency 800033959 Hz quality 800 > Timecounters tick every 1.000 msec > acd0: DMA limited to UDMA33, device found non-ATA66 cable > acd0: DVDR at ata0-master UDMA33 > acd1: CDRW at ata0-slave PIO4 > ad4: 38166MB at ata2-master UDMA100 > cd0 at ata0 bus 0 target 1 lun 0 > cd0: Removable CD-ROM SCSI-0 device > cd0: 16.000MB/s transfers > cd0: Attempt to query device size failed: NOT READY, Medium not present > cd1 at ata0 bus 0 target 0 lun 0 > cd1: Removable CD-ROM SCSI-0 device > cd1: 33.000MB/s transfers > cd1: Attempt to query device size failed: NOT READY, Medium not present > Trying to mount root from ufs:/dev/ad4s3a > rl0: link state changed to UP > > > kernel configuration: > > machine i386 > cpu I686_CPU > ident abaddon > options SCHED_4BSD # 4BSD scheduler > options INET # InterNETworking > options FFS # Berkeley Fast Filesystem > options SOFTUPDATES # Enable FFS soft updates support > options UFS_DIRHASH # Improve performance on big > directories options MSDOSFS # MSDOS Filesystem > options CD9660 # ISO 9660 Filesystem > options PSEUDOFS # Pseudo-filesystem framework > options GEOM_GPT # GUID Partition Tables. > options COMPAT_43 # Compatible with BSD 4.3 [KEEP > THIS!] options SCSI_DELAY=1000 # Delay (in ms) before > probing SCSI options SYSVSHM # SYSV-style shared > memory options SYSVMSG # SYSV-style message queues > options SYSVSEM # SYSV-style semaphores > options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time > extensions options KBD_INSTALL_CDEV # install a CDEV entry > in /dev options ADAPTIVE_GIANT # Giant mutex is adaptive. > device apic # I/O APIC > device isa > device pci > device ata > device atadisk # ATA disk drives > device atapicd # ATAPI CDROM drives > device atapicam > options ATA_STATIC_ID # Static device numbering > device scbus # SCSI bus (required for SCSI) > device cd # CD > device pass # Passthrough device (direct SCSI access) > device atkbdc # AT keyboard controller > device atkbd # AT keyboard > device psm # PS/2 mouse > device vga # VGA video card driver > device sc > device agp # support several AGP chipsets > device npx > device pmtimer > device miibus # MII bus support > device rl # RealTek 8129/8139 > device loop # Network loopback > device mem # Memory and kernel memory devices > device io # I/O device > device random # Entropy device > device ether # Ethernet support > device pty # Pseudo-ttys (telnet etc) > device bpf # Berkeley packet filter > device uhci > device usb > device ugen > device uhid > device ums > > options PREEMPTION > options CPU_FASTER_5X86_FPU > options DEVICE_POLLING > options HZ=1000 > options CPU_UPGRADE_HW_CACHE > options TCP_DROP_SYNFIN > > fragment of /etc/rc.conf > > moused_nondefault_enable="NO" > #moused_ums0_port="/dev/ums0" > moused_ums0_enable="NO" > #moused_port="/dev/ums0" > #moused_type="auto" > moused_enable="NO" > mountd_enable="NO > > fragment of /etc/X11/xorg.conf: > > Identifier "Mouse1" > Driver "mouse" > Option "Protocol" "auto" > Option "Device" "/dev/ums0" > Option "ZAXisMapping" "4 5" > > And: > > Device /dev/ums0 is present. cat /dev/ums0 shows nothing (optical sensor > lights all the time)... I've booted linux (kernel version was 2.6.12.2) > livecd and this mouse worked well so It's not broken (it works also under > Windows). > > (My configuration is probably good, I've tried to connect another mouse, > aptly named Microsoft Intellimouse Explorer 3.0 and it worked as > expected...) > > >How-To-Repeat: > > Connect Microsoft Intellimouse Explorer 4.0A to the usb port. > > >Fix: > > > >Release-Note: > >Audit-Trail: > >Unformatted: > I had some similar problems with an USB mouse and did some debugging, and found out that the mouse doesn't work when clearstall is enabled. I did some testing and my mouse completely ignores the clearstall command, so could you have tried the following (FreeBSD 5/6): Download the three files below into a new directory and type "make install" (to uninstall type "make deinstall") http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 And then in the file "/sys/dev/usb/ums.c" add the flag "USBD_CUSTOM_CLEARSTALL": ... err = usbd_open_pipe_intr(sc->sc_iface, sc->sc_ep_addr, USBD_CUSTOM_CLEARSTALL|USBD_SHORT_XFER_OK, &sc->sc_intrpipe, sc, sc->sc_ibuf, sc->sc_isize, ums_intr, USBD_DEFAULT_INTERVAL); ... Then compile and install new kernel or just the USB modules (/sys/modules): aue/Makefile axe/Makefile cdce/Makefile cue/Makefile if_ndis/Makefile kue/Makefile ndis/Makefile netgraph/bluetooth/ubtbcmfw/Makefile netgraph/bluetooth/ubt/Makefile rue/Makefile sound/driver/uaudio/Makefile ubsa/Makefile ubser/Makefile ucom/Makefile ucycom/Makefile udav/Makefile udbp/Makefile ufm/Makefile uftdi/Makefile ugen/Makefile uhid/Makefile ukbd/Makefile ulpt/Makefile umass/Makefile umct/Makefile umodem/Makefile ums/Makefile uplcom/Makefile ural/Makefile urio/Makefile usb/Makefile uscanner/Makefile uvisor/Makefile uvscom/Makefile --HPS