From owner-freebsd-questions@FreeBSD.ORG Mon Mar 14 20:19:16 2005 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 5A78116A4CE for ; Mon, 14 Mar 2005 20:19:16 +0000 (GMT) Received: from april.chuckr.org (april.chuckr.org [66.92.151.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 792FA43D53 for ; Mon, 14 Mar 2005 20:19:15 +0000 (GMT) (envelope-from chuckr@chuckr.org) Received: from april.chuckr.org (localhost [127.0.0.1]) by april.chuckr.org (8.13.1/8.12.11) with ESMTP id j2EKKtPo079517; Mon, 14 Mar 2005 15:20:55 -0500 (EST) (envelope-from chuckr@chuckr.org) Received: from localhost (chuckr@localhost)j2EKKtjU079514; Mon, 14 Mar 2005 15:20:55 -0500 (EST) (envelope-from chuckr@chuckr.org) X-Authentication-Warning: april.chuckr.org: chuckr owned process doing -bs Date: Mon, 14 Mar 2005 15:20:55 -0500 (EST) From: Chuck Robey To: Eric In-Reply-To: <4235ADFE.2050400@bsdunix.us> Message-ID: <20050314151838.K74062@april.chuckr.org> References: <4234F80A.80901@bsdunix.us> <20050313215820.B74062@april.chuckr.org> <4235ADFE.2050400@bsdunix.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: logitech cordless mouse w/ freebsd 5.3 stable 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: Mon, 14 Mar 2005 20:19:16 -0000 On Mon, 14 Mar 2005, Eric wrote: > I removed above this to save some bandwidth, as bandwidth is not free > every where in the world :) > > Chuck Robey wrote: > > >>I then edit the pointer section of /etc/X11/xorg.conf to: > >> > >> Identifier "Mouse1" > >> Driver "mouse" > >> Option "Protocol" "Auto" > >> Option "Device" "/dev/bpsm0" > >> > >> > > > >I am running FreeBSD-6.0-current, but I bet it works for you like it works > >(just fine) for me. Try it, what have you got to lose? However, if it > >works, you owe us a usage report, Sirrah! > > > >Anyhow, FreeBSD is not terribly willing to share the mouse. When it > >boots, the stupid thing will start 'moused' processes on both mouses. > >Check this with: > > > >ps -ax | grep mouse > > > >if it's like I think it is, one of the lines that come back will report a > >device filename of ums0. You need this process dead, dead, dead. You > >*could*, I suppose, edit /etc/usbd.conf ... > > > >After you do that, the stuff you have above for Xorg isn't enough either, > >cause you left out the wheel. take those lines out and replace them with > > > >Section "InputDevice" > > Identifier "Mouse0" > > Driver "mouse" > > Option "Protocol" "auto" > > Option "Device" "/dev/ums0" > > Option "Buttons" "5" > > Option "ZAxisMapping" "4 5" > >EndSection > > > >Don't forget, at the top: > > > >Section "ServerLayout" > > Identifier "X.org Configured" > > Screen 0 "Screen0" 0 0 > > InputDevice "Mouse0" "CorePointer" > > InputDevice "Keyboard0" "CoreKeyboard" > >EndSection > > > > > >Try this, tell me how it works. > > > > > > > Chuck, > Setting my mouse driver to "ums0", will make X crash before loading. > My box never reported the ums0 device/the usb mouse. The usbd is > running. There is no moused processes running on this box, as it is > disabled in /etc/rc.conf. I get the scroll wheel to work as a middle > button, but you are right, the scroll feature does not work. Just 1 thing I need to confirm: did you kill the moused process BEFORE starting X? Because if you didn't, that's exactly what happens to me. I need to kill the moused process that is tying up ums0, then I can start up X. > > Option "Buttons" "5" > Option "ZAxisMapping" "4 5" > > Setting those two options does not enable the scroll wheel. I think that > is due to the generic PS/2 driver reported in dmesg. Having a working > scroll wheel was never a issue for me :) Also note, I never tried > FreeBSD 6.x . > No, let's fix the mouse first, then we worry about the mouse wheel. > I am not sure if the following info matters or not: > > This is included as it may give you some hints for fixing the wheel > feature. This mouse config was a combination of some google hints that > led me to look at, 'man psm', 'man device.hints', and my experience > with Freebsd 4.x. FreeBSD 4.x taught me that using /dev/bpsm0 in > the X config would work, with this mouse and this kvm. I didn't try > setting up the moused in /etc/rc.conf with FreeBSD 5.x. In FreeBSD 4.x > adding the bpsm0 config to /etc/rc.conf just lead to error messages > getting reported to my shells every so often. > > Here is some additional info: > > > %ls /dev > acd0 ata fido psm0 ttyv3 > acpi atkbd0 geom.ctl ptyp0 ttyv4 > ad0 audio0.0 io ptyp1 ttyv5 > ad0s1 audio0.1 kbd0 ptyp2 ttyv6 > ad0s10 bpf0 klog ptyp3 ttyv7 > ad0s1a bpsm0 kmem random ttyv8 > ad0s1b console log sndstat ttyv9 > ad0s1c consolectl lpt0 stderr ttyva > ad0s1d ctty lpt0.ctl stdin ttyvb > ad0s1e cuaa0 mdctl stdout ttyvc > ad0s1f cuaia0 mem sysmouse ttyvd > ad0s2 cuala0 mixer0 ttyd0 ttyve > ad0s3 devctl net ttyid0 ttyvf > ad0s4 devstat net1 ttyld0 urandom > ad0s5 dsp0.0 net2 ttyp0 usb > ad0s6 dsp0.1 net3 ttyp1 usb0 > ad0s7 dspW0.0 network ttyp2 usb1 > ad0s8 dspW0.1 nfs4 ttyp3 usb2 > ad0s9 dspr0.1 null ttyv0 xpt0 > agpgart fd pci ttyv1 zero > apm fd0 ppi0 ttyv2 > %cat /etc/rc.conf > > # -- sysinstall generated deltas -- # Mon Jan 3 05:51:08 2005 > # Created: Mon Jan 3 05:51:08 2005 > # Enable network daemons for user convenience. > # Please make all changes to this file, not to /etc/defaults/rc.conf. > # This file now contains just the overrides from /etc/defaults/rc.conf. > hostname="demon-spawn.bsdunix.us" > ifconfig_rl0="DHCP" > linux_enable="YES" > usbd_enable="YES" > moused_port="/dev/psm0" > moused_type="auto" > moused_enable="NO" > % > %ps auxw | grep usbd > root 362 0.0 0.2 1240 780 ?? Ss 5:51AM 0:00.01 /usr/sbin/usbd > eric 871 0.0 0.1 348 232 p3 R+ 7:38AM 0:00.00 grep usbd > > %ps auxw | grep mouse > eric 1240 0.0 0.5 2276 1760 p1 RV 9:18AM 0:00.00 grep mouse > (csh) > > this seems like a waste of bandwidth but... > > %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 5.3-STABLE #0: Sun Mar 13 08:53:16 CST 2005 > root@demon-spawn.bsdunix.us:/usr/obj/usr/src/sys/CUSTOM > ACPI APIC Table: > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel(R) Celeron(R) CPU 2.80GHz (2790.96-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf34 Stepping = 4 > > Features=0xbfebfbff > real memory = 394199040 (375 MB) > avail memory = 376037376 (358 MB) > ioapic0 irqs 0-23 on motherboard > npx0: [FAST] > npx0: on motherboard > npx0: INT 16 interface > acpi0: on motherboard > acpi0: Power Button (fixed) > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 > cpu0: on acpi0 > acpi_button0: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > agp0: mem > 0xdff80000-0xdfffffff,0xd0000000-0xd7ffffff irq 16 at device 2.0 on pci0 > agp0: detected 8060k stolen memory > agp0: aperture size is 128M > uhci0: port 0xe400-0xe41f > irq 16 at device 29.0 on pci0 > uhci0: [GIANT-LOCKED] > 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 0xe800-0xe81f > irq 19 at device 29.1 on pci0 > uhci1: [GIANT-LOCKED] > 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 > uhci2: port 0xec00-0xec1f > irq 18 at device 29.2 on pci0 > uhci2: [GIANT-LOCKED] > 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: at device 29.7 (no driver attached) > pcib1: at device 30.0 on pci0 > pci3: on pcib1 > pci3: at device 5.0 (no driver attached) > rl0: port 0xcc00-0xccff mem > 0xdfdfbf00-0xdfdfbfff irq 17 at device 10.0 on pci3 > miibus0: on rl0 > rlphy0: on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > rl0: Ethernet address: 00:0b:6a:66:64:b3 > isab0: at device 31.0 on pci0 > isa0: on isab0 > atapci0: port > 0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 > ata0: channel #0 on atapci0 > ata1: channel #1 on atapci0 > pcm0: port 0xdc00-0xdc3f,0xe000-0xe0ff mem > 0xdff7b900-0xdff7b9ff,0xdff7ba00-0xdff7bbff irq 17 at device 31.5 on pci0 > pcm0: [GIANT-LOCKED] > pcm0: > fdc0: port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3 irq 6 > drq 2 on acpi0 > fdc0: [FAST] > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on > acpi0 > sio0: type 16550A > ppc0: port 0x778-0x77b,0x378-0x37f irq 7 drq > 3 on acpi0 > ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode > ppc0: FIFO with 16/16/9 bytes threshold > ppbus0: on ppc0 > plip0: on ppbus0 > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > atkbdc0: port 0x64,0x60 irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > psm0: flags 0x204 irq 12 on atkbdc0 > psm0: [GIANT-LOCKED] > psm0: model Generic PS/2 mouse, device ID 0 > pmtimer0 on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > Timecounter "TSC" frequency 2790956669 Hz quality 800 > Timecounters tick every 10.000 msec > acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0% > ad0: 38166MB [77545/16/63] at ata0-master > UDMA100 > acd0: CDROM at ata1-master UDMA33 > Mounting root from ufs:/dev/ad0s1a > % > > I hope all the above answered your questions Chuck and maybe gives you > and others some more info :) > YMMV, > Eric > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > ---------------------------------------------------------------------------- Chuck Robey | Interests include C & Java programming, FreeBSD, chuckr@chuckr.org | electronics, communications, and SF/Fantasy. New Year's Resolution: I will not sphroxify gullible people into looking up fictitious words in the dictionary (on the wall at my old fraternity, Signa Phi Nothing). ----------------------------------------------------------------------------