From owner-freebsd-questions@FreeBSD.ORG Wed Oct 1 21:35:02 2003 Return-Path: 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 C6EEA16A4BF for ; Wed, 1 Oct 2003 21:35:02 -0700 (PDT) Received: from www.mmlab.cse.yzu.edu.tw (www.mmlab.cse.yzu.edu.tw [140.138.145.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D2C143FF7 for ; Wed, 1 Oct 2003 21:34:56 -0700 (PDT) (envelope-from avatar@mmlab.cse.yzu.edu.tw) Received: by www.mmlab.cse.yzu.edu.tw (qmail, from userid 1000) id A852A4EFCD8; Thu, 2 Oct 2003 12:34:39 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by www.mmlab.cse.yzu.edu.tw (qmail) with ESMTP id 9BFB94EFCD0 for ; Thu, 2 Oct 2003 12:34:39 +0800 (CST) Date: Thu, 2 Oct 2003 12:34:39 +0800 (CST) From: Tai-hwa Liang To: freebsd-questions@freebsd.org Message-ID: <03100212325316.38163@www.mmlab.cse.yzu.edu.tw> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: USB mouse doesn't work X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2003 04:35:02 -0000 X-List-Received-Date: Thu, 02 Oct 2003 04:35:02 -0000 Hi, I'm wondering about whether there's any trick to get an USB mouse to work on FreeBSD. I've tried one(forgot its model) a couple months before but out of luck. Recently I got the similar symptom on another optical USB mouse modelled "ELECOM M-MAPP1KHBK" which can be probed by kernel/usbd, but not respond to any mouse event such like moving, button clicking or wheel scrolling. This test has been conducted on FreeBSD 4.6-RELEASE, 4.8-RELEASE, 4.9-RC and 5.1-RELEASE(installation disc 2); all of them probed the mouse; however, there's no correspondence mouse event output to /dev/ums0 if I killed the moused and did a "cat /dev/ums0" to get the event output. I've also tried the same mouse on OpenBSD 3.3 and just gotten the same result(probed but no output to /dev/ums0 while moving/clicking the mouse). Apparently it's true that people said [Free|Net|Open]BSD shared the same USB stack.... However, this mouse works flawlessly on Linux(2.4.x kernel), MacOS X 10.2.6 and M$ Windoze 2000/XP. I've tried the mouse on 4 different laptops: Apple PowerBoot G4(MacOS X of course...), IBM Thinkpad T40, Sony Vaio R505 and Twinhead Slimnote VX266. If I swap the ELECOM with a Logitech one(modelled M-BD58, an optical USB wheel mouse) then everything works again.... A blindly try to add new entry/flag such like UQ_SPUR_BUT_UP in sys/dev/usb/usb_quirks.c doesn't work, neither. Following is the dmesg with hw.usb.ums.debug=9999 and hw.usb.debug=1 set. You may aware that there's a couple of status=6 within ums_intr such like "ums_intr: sc=0xc0a89800 status=6." That's because I killed the moused manually and then did a "cat /dev/ums0" to see what happened during the mouse movement. In this test, the ELECOM one were attached first, then replaced with a Logitech one. I would be very appreciate it if someone can enlighten me about what's really going on some USB mouse such like this ELECOM one. ----------- dmesg ripped from Thinkpad T40 -------------- Copyright (c) 1992-2003 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.9-RC #5: Thu Oct 2 10:14:37 CST 2003 root@odin:/usr/src/sys/compile/rtfm_dbg Calibrating clock(s) ... TSC clock: 1395466472 Hz, i8254 clock: 1193178 Hz Timecounter "i8254" frequency 1193178 Hz Timecounter "TSC" frequency 1395466472 Hz CPU: Intel(R) Pentium(R) M processor 1400MHz (1395.47-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x695 Stepping = 5 Features=0xa7e9f9bf real memory = 267714560 (261440K bytes) Physical memory chunk(s): 0x000001000 - 0x00009efff, 647168 bytes (158 pages) 0x0003f4000 - 0x00ff45fff, 263528448 bytes (64338 pages) avail memory = 256520192 (250508K bytes) bios32: Found BIOS32 Service Directory header at 0xc00f6b70 bios32: Entry = 0xfd780 (c00fd780) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0x1f6 pnpbios: Found PnP BIOS data at 0xc00f6bf0 pnpbios: Entry = f0000:9c73 Rev = 1.0 pnpbios: Event flag at 4b4 Other BIOS signatures found: ACPI: 000f6ba0 Preloaded elf kernel "kernel" at 0xc03cd000. Preloaded elf module "splash_bmp.ko" at 0xc03cd09c. Preloaded splash_image_data "/boot/chuck1.bmp" at 0xc03cd140. Preloaded elf module "if_wi.ko" at 0xc03cd190. VESA: information block 56 45 53 41 00 02 00 01 00 01 01 00 00 00 22 00 00 01 ff 01 00 01 19 01 00 01 2f 01 00 01 34 01 00 01 82 01 0d 01 0e 01 0f 01 20 01 92 01 93 01 94 01 95 01 96 01 a2 01 a3 01 a4 01 a5 01 a6 01 VESA: 0 mode(s) found module_register_init: MOD_LOAD (vesa, c0264c1c, 0) error 6 Pentium Pro MTRR support enabled splash: image@0xc03720f0, size:308278 splash_bmp: No appropriate video mode found bmp_start(): splash_mode:-1 module_register_init: MOD_LOAD (splash_bmp, c036f7a4, 0) error 19 pci_open(1): mode 1 addr port (0x0cf8) is 0x8000f904 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=33408086) Using $PIR table, 15 entries at 0xc00fdea0 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard found-> vendor=0x8086, dev=0x3340, revid=0x03 class=06-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[10]: type 1, range 32, base d0000000, size 28 found-> vendor=0x8086, dev=0x3341, revid=0x03 class=06-04-00, hdrtype=0x01, mfdev=0 subordinatebus=1 secondarybus=1 found-> vendor=0x8086, dev=0x24c2, revid=0x01 class=0c-03-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 intpin=a, irq=4 map[20]: type 1, range 32, base 00001800, size 5 found-> vendor=0x8086, dev=0x24c4, revid=0x01 class=0c-03-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=b, irq=10 map[20]: type 1, range 32, base 00001820, size 5 found-> vendor=0x8086, dev=0x24c7, revid=0x01 class=0c-03-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=c, irq=9 map[20]: type 1, range 32, base 00001840, size 5 found-> vendor=0x8086, dev=0x24cd, revid=0x01 class=0c-03-20, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=d, irq=11 map[10]: type 1, range 32, base c0000000, size 10 found-> vendor=0x8086, dev=0x2448, revid=0x81 class=06-04-00, hdrtype=0x01, mfdev=0 subordinatebus=8 secondarybus=2 found-> vendor=0x8086, dev=0x24cc, revid=0x01 class=06-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x8086, dev=0x24ca, revid=0x01 class=01-01-8a, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=255 map[10]: type 1, range 32, base 00000000, size 3 map[14]: type 1, range 32, base 00000000, size 2 map[18]: type 1, range 32, base 00000000, size 3 map[1c]: type 1, range 32, base 00000000, size 2 map[20]: type 1, range 32, base 00001860, size 4 found-> vendor=0x8086, dev=0x24c3, revid=0x01 class=0c-05-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=b, irq=6 map[20]: type 1, range 32, base 00001880, size 5 found-> vendor=0x8086, dev=0x24c5, revid=0x01 class=04-01-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=b, irq=6 map[10]: type 1, range 32, base 00001c00, size 8 map[14]: type 1, range 32, base 000018c0, size 6 map[18]: type 1, range 32, base c0000c00, size 9 map[1c]: type 1, range 32, base c0000800, size 8 found-> vendor=0x8086, dev=0x24c6, revid=0x01 class=07-03-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=b, irq=6 map[10]: type 1, range 32, base 00002400, size 8 map[14]: type 1, range 32, base 00002000, size 7 pci0: on pcib0 agp0: mem 0xd0000000-0xdfffffff at device 0.0 on pci0 agp0: allocating GATT for aperture of size 256M pcib1: at device 1.0 on pci0 found-> vendor=0x1002, dev=0x4c66, revid=0x02 class=03-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=4 map[10]: type 1, range 32, base e0000000, size 27 map[14]: type 1, range 32, base 00003000, size 8 map[18]: type 1, range 32, base c0100000, size 16 pci1: on pcib1 drm0: port 0x3000-0x30ff mem 0xc0100000-0xc010ffff,0xe0000000-0xe7ffffff irq 4 at device 0.0 on pci1 info: [drm] AGP at 0xd0000000 256MB info: [drm] Initialized radeon 1.8.0 20020828 on minor 0 uhci0: port 0x1800-0x181f irq 4 at device 29.0 on pci0 uhci0: LegSup = 0x0000003b 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 uhci1: port 0x1820-0x183f irq 10 at device 29.1 on pci0 uhci1: LegSup = 0x00000010 usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ums0: ELECOM ELECOM M.A.P.P. series, rev 1.10/1.01, addr 2, iclass 3/1 ums0: 3 buttons and Z dir. uhci2: port 0x1840-0x185f irq 9 at device 29.2 on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pci0: (vendor=0x8086, dev=0x24cd) at 29.7 irq 11 pcib2: at device 30.0 on pci0 found-> vendor=0x104c, dev=0xac55, revid=0x01 class=06-07-00, hdrtype=0x02, mfdev=1 subordinatebus=5 secondarybus=3 intpin=a, irq=4 map[10]: type 1, range 32, base b0000000, size 12 found-> vendor=0x104c, dev=0xac55, revid=0x01 class=06-07-00, hdrtype=0x02, mfdev=1 subordinatebus=8 secondarybus=6 intpin=b, irq=6 map[10]: type 1, range 32, base b1000000, size 12 found-> vendor=0x8086, dev=0x101e, revid=0x03 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=4 map[10]: type 1, range 32, base c0220000, size 17 map[14]: type 1, range 32, base c0200000, size 16 map[18]: type 1, range 32, base 00008000, size 6 found-> vendor=0x8086, dev=0x1043, revid=0x04 class=02-80-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=9 map[10]: type 1, range 32, base c0210000, size 12 pci2: on pcib2 pcic0: mem 0xb0000000-0xb0000fff irq 4 at device 0.0 on pci2 pcic0: TI12XX PCI Config Reg: [speaker enable][pwr save][CSC serial isa irq] using shared irq4. pcic0: PCI Configuration space: 0x00: 0xac55104c 0x02100107 0x06070001 0x00824008 0x10: 0xb0000000 0x020000a0 0xb0050302 0x00000000 0x20: 0x00000000 0x00000000 0x00000000 0x00000000 0x30: 0x00000000 0x00000000 0x00000000 0x07600104 0x40: 0x05121014 0x00000001 0x00000000 0x00000000 0x50: 0x00000000 0x00000000 0x00000000 0x00000000 0x60: 0x00000000 0x00000000 0x00000000 0x00000000 0x70: 0x00000000 0x00000000 0x00000000 0x00000000 0x80: 0x0844d070 0x00000000 0x00000000 0x01d21022 0x90: 0x606402c0 0x00000000 0x00000000 0x00000000 0xa0: 0xfe120001 0x00c00000 0x00000000 0x0000000f 0xb0: 0x00000000 0x00000000 0x00000000 0x00000000 0xc0: 0x00000000 0x00000000 0x00000000 0x00000000 0xd0: 0x00000000 0x00000000 0x00000000 0x00000000 0xe0: 0x00000000 0x00000000 0x00000000 0x00000000 0xf0: 0x00000000 0x00000000 0x00000000 0x00000000 pccard0: on pcic0 pcic1: mem 0xb1000000-0xb1000fff irq 6 at device 0.1 on pci2 pcic1: TI12XX PCI Config Reg: [speaker enable][pwr save][CSC serial isa irq] pcic1: PCI Configuration space: 0x00: 0xac55104c 0x02100107 0x06070001 0x00824008 0x10: 0xb1000000 0x020000a0 0xb0080602 0x00000000 0x20: 0x00000000 0x00000000 0x00000000 0x00000000 0x30: 0x00000000 0x00000000 0x00000000 0x07600206 0x40: 0x05121014 0x00000001 0x00000000 0x00000000 0x50: 0x00000000 0x00000000 0x00000000 0x00000000 0x60: 0x00000000 0x00000000 0x00000000 0x00000000 0x70: 0x00000000 0x00000000 0x00000000 0x00000000 0x80: 0x0844d070 0x00000000 0x00000000 0x01d21022 0x90: 0x606402c0 0x00000000 0x00000000 0x00000000 0xa0: 0xfe120001 0x00c00000 0x00000000 0x0000000f 0xb0: 0x00000000 0x00000000 0x00000000 0x00000000 0xc0: 0x00000000 0x00000000 0x00000000 0x00000000 0xd0: 0x00000000 0x00000000 0x00000000 0x00000000 0xe0: 0x00000000 0x00000000 0x00000000 0x00000000 0xf0: 0x00000000 0x00000000 0x00000000 0x00000000 pccard1: on pcic1 em0: port 0x8000-0x803f mem 0xc0200000-0xc020ffff,0xc0220000-0xc023ffff irq 4 at device 1.0 on pci2 bpf: em0 attached em0: Speed:N/A Duplex:N/A pci2: (vendor=0x8086, dev=0x1043) at 2.0 irq 9 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1860-0x186f,0-0x3,0-0x7,0-0x3,0-0x7 at device 31.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0x1860 ata0: mask=03 ostat0=50 ostat2=00 ata0-master: ATAPI 00 00 ata0-slave: ATAPI 00 00 ata0: mask=03 stat0=50 stat1=00 ata0-master: ATA 01 a5 ata0: devices=01 ata0: at 0x1f0 irq 14 on atapci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0x1868 ata1: mask=03 ostat0=50 ostat2=00 ata1-master: ATAPI 14 eb ata1-slave: ATAPI 14 eb ata1: mask=03 stat0=00 stat1=00 ata1: devices=0c ata1: at 0x170 irq 15 on atapci0 ichsmb0: port 0x1880-0x189f irq 6 at device 31.3 on pci0 using shared irq6. smbus0: on ichsmb0 smb0: on smbus0 pcm0: port 0x18c0-0x18ff,0x1c00-0x1cff mem 0xc0000800-0xc00008ff,0xc0000c00-0xc0000dff irq 6 at device 31.5 on pci0 pcm0: pcm0: Codec features headphone, 20 bit DAC, 5 bit master volume, no 3D Stereo Enhancement pcm0: Primary codec extended features variable rate PCM, AMAP, reserved 4 pcm0: sndbuf_setmap 47000, 4000; 0xdb3df000 -> 47000 pcm0: sndbuf_setmap 4b000, 4000; 0xdb3e3000 -> 4b000 chip0: port 0x2000-0x207f,0x2400-0x24ff irq 6 at device 31.6 on pci0 pcic-: pcic0 exists, using next available unit number Trying Read_Port at 203 Trying Read_Port at 243 Trying Read_Port at 283 Trying Read_Port at 2c3 Trying Read_Port at 303 Trying Read_Port at 343 Trying Read_Port at 383 Trying Read_Port at 3c3 isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices orm0: