From owner-freebsd-questions@FreeBSD.ORG Sun Aug 3 03:02:10 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 7FC3F37B401 for ; Sun, 3 Aug 2003 03:02:10 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 091B443FCB for ; Sun, 3 Aug 2003 03:02:05 -0700 (PDT) (envelope-from sandshrimp@comcast.net) Received: from comcast.net (12-231-125-23.client.attbi.com[12.231.125.23](untrusted sender)) by comcast.net (rwcrmhc11) with SMTP id <2003080310020501300g04kne> (Authid: sandshrimp); Sun, 3 Aug 2003 10:02:05 +0000 Message-ID: <3F2CDD48.7000306@comcast.net> Date: Sun, 03 Aug 2003 03:00:40 -0700 From: Ryan Merrick User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030418 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Frank Jahnke References: <1059768274.988.12.camel@jahnke.fmjassoc.com> In-Reply-To: <1059768274.988.12.camel@jahnke.fmjassoc.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: questions@FreeBSD.org Subject: Re: Mouse/X11 Documentation 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: Sun, 03 Aug 2003 10:02:10 -0000 Frank Jahnke wrote: > I'm writing you this message for assistance in getting my mouse wheel to > work with X11. Yes, another one of these requests. I have been through > the documentation (and numerous articles on the web) and yet I still > cannot get it to work. > > I am running BSD 4.8 with XFree86 v4.3.0 (downloaded last week, so it > should be a very current version of the latest stable release). My > window manager is currently Window Maker v0.80.1. The mouse is a > Logitech MouseMan Wheel, which I understand is equivalent to the > MouseMan+. > > With success I have installed support for the mouse using moused for the > console drivers. I added line allscreens_flags to my rc.conf file for > mouse support on the various virtual consoles. That works fine. I can > also use the same three buttons for text selection and pasting in X11. > > What I cannot get to work is text scrolling using the wheel. From > section 11.3 of the FAQ, first there is a description of /etc/XF86Config > (which is now located in /etc/X11/XF86Config) that is for XFree86 v3 > only. I currently have the 4.3 equivalent (see below) with SysMouse > replaced by Auto. Changing from one to the other did not make a > difference, as far as I could tell. > > Moving on to section 11.4 of the FAQ, I have tried without success to > use either moused or the X server for wheel support. For the former, I > added the moused_flags line and options to rc.conf, as suggested. > Moving now to Example 11-2, first the caption is incorrect. It DOES > describe use of XF86Config with moused Translations, does it not? I > needed to use an Identifier of "Mouse0" instead of "Mouse1", or else X11 > would crash (again, see below). > > Imwheel was downloaded and installed from the ports collection; the > configuration file moved to ~/.imwheelrc (which was used without > alteration). No success. > > Next I tried to use the X Server to translate wheel events. The > suggested use of "MouseManPlusPS/2" was not recognized by XFree; since > BSD recognized the mouse type on boot-up, I reverted to "Auto". Using > the device /dev/psm0 was not successful -- the device was busy, and X11 > would not load. I replaced psm0 with sysmouse. After imwheel was > loaded, the wheel still did not scroll the screen. > > I admit that it is frustrating to find files in different directories, > mislabeled headings in the documentation, and configurations that do not > work as suggested. It feels to me that XFree86 is new, and has not been > fully incorporated into the various texts. > > I am at loss on how best to proceed, and your suggestions would be most > appreciated. > > Frank Jahnke, Ph.D. > President, FMJ & Associates > Auburn, CA 95604 > frank@frankjahnke.com > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > Section "InputDevice" > > # Identifier and driver > > Identifier "Mouse0" > Driver "mouse" > Option "Protocol" "auto" > Option "Device" "/dev/sysmouse" > Option "Buttons" "5" > # Option "ZAxisMapping" "4 5" > # Option "Emulate3Buttons" "No" > > # Mouse-speed setting for PS/2 mouse. > > Option "Resolution" "100" > > # When using XQUEUE, comment out the above two lines, and uncomment > # the following line. > > # Option "Protocol" "Xqueue" > > # Baudrate and SampleRate are only for some Logitech mice. In > # almost every case these lines should be omitted. > > # Option "BaudRate" "9600" > # Option "SampleRate" "150" > > # Emulate3Buttons is an option for 2-button Microsoft mice > # Emulate3Timeout is the timeout in milliseconds (default is 50ms) > > # Option "Emulate3Buttons" > # Option "Emulate3Timeout" "50" > > # ChordMiddle is an option for some 3-button Logitech mice > > # Option "ChordMiddle" > > EndSection > > > _______________________________________________ > 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" > Uncomment this line in your XF86Config # Option "ZAxisMapping" "4 5" The imwheel port is more or less intergrated into the X11 since 4.2. I dont have it installed and the wheel works great in X11. You must use the device /dev/sysmouse in X11 if you run moused on the console. If you disable moused on the console you can use the device /dev/psm0. I suggest you get rid of moused to simplify the troubleshooting. Do check (#dmesg | grep psm0) what your mouse is being seen as by the kernel. I get flakey issues with my KVM that made my mouse into a generic ps2. You might need to change a flag on atkbd and rebuild the kernel. -Ryan Merrick