From owner-freebsd-stable@FreeBSD.ORG Wed Dec 7 08:30:29 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51AA616A41F for ; Wed, 7 Dec 2005 08:30:29 +0000 (GMT) (envelope-from adrian@ct.netstat.ro) Received: from mamaia.datanet.ro (mamaia.datanet.ro [86.105.32.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 024CD43D55 for ; Wed, 7 Dec 2005 08:30:27 +0000 (GMT) (envelope-from adrian@ct.netstat.ro) Received: from localhost (86-105-32.datanet.ro [86.105.32.4] (may be forged)) by mamaia.datanet.ro (8.12.10/8.12.10) with ESMTP id jB78UHr8003987 for ; Wed, 7 Dec 2005 10:30:18 +0200 (EET) Date: Wed, 07 Dec 2005 10:30:19 +0200 To: freebsd-stable@freebsd.org References: <120720050703.13264.43968936000DCA87000033D0220076106404040A9C9C9A9D9902080106@comcast.net> From: Adrian Organization: Afterglow.ro Content-Type: multipart/mixed; boundary="----------=_1133944218-2450-17" MIME-Version: 1.0 Message-ID: In-Reply-To: <120720050703.13264.43968936000DCA87000033D0220076106404040A9C9C9A9D9902080106@comcast.net> User-Agent: Opera M2/8.51 (FreeBSD, build 1462) X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.53 on 86.105.32.1 Subject: Re: Adventurous fix for wheel mouse not working in FreeBSD 6.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 08:30:29 -0000 This is a multi-part message in MIME format... ------------=_1133944218-2450-17 Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii Content-Transfer-Encoding: 8bit Content-Disposition: inline On Wed, 07 Dec 2005 09:03:19 +0200, wrote: > After installing FreeBSD 6.0, I was no longer able to scroll using the > wheel on my Logitech Optical Mouse. I ran moused with the -fd flags and > confirmed that the mouse daemon was catching the z-axis events. My > xorg.conf looked OK to me: > > Section "InputDevice" > Identifier "Mouse0" > Driver "mouse" > Option "Device" "/dev/sysmouse" > Option "CorePointer" > Option "AlwaysCore" > Option "Protocol" "Auto" > Option "Buttons" "5" > Option "ZAxisMapping" "4 5" > Option "Emulate3Buttons" "no" > EndSection > > I struggled for days and tried dozens of things. I came to suspect that > the > problem was related to changes in the way ZAxisMapping is handled by > Xorg. Based on stuff in an Xorg mailing list, I suspect further > changes, likely to be corrective, will be in future versions of the > FreeBSD xorg-server port. > > However, for the adventurous and impatient, this is what I did to fix my > problem: > > 1. Edit > /usr/ports/x11-servers/xorg-server/work/xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c > and change from NULL to "4 5" in the following line: > > 530c530 > < s = xf86SetStrOption(pInfo->options, "ZAxisMapping", "4 5"); > --- >> s = xf86SetStrOption(pInfo->options, "ZAxisMapping", NULL); > > 2. portupgrade -Wwf xorg-server > > 3. Restart the X server with CTRL-ALT-Backspace. > > I don't really know why it works, so I recommend it only for daredevils, > unless someone wiser can say it is sound. > > Cheers, > > John Funny, besides upgrading from 5.4 to 6.0, I changed from nVidia to Radeon and from a bloated old mouse to a Logitech Optical USB mouse. Anyway, the video cards were easy to change. But the mouse was tricky. The generic /dev/sysmouse didn't work for me so i had to specify /dev/ums0 and "ZAxisMapping" "4 5" and the rest was history. I don't use xdm/gdm/kdm though, i have startx with kde for now. And sometimes i have to kill the moused daeomn before starting X. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ------------=_1133944218-2450-17 Content-Type: text/plain; name="info.txt" Content-Disposition: inline; filename="info.txt" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.418 (Entity 5.418) ++++++++++++++++++++++++++++++++++ Serverele DataNet scaneaza automat toate mesajele dumneavoastra impotriva virusilor pentru a mentine un mediu cat mai curat. Retineti ca exista intotdeauna un risc pe care vi-l asumati atunci cand deschideti un mesaj e-mail. This message has been scanned automatically against viruses on DataNet servers. Please note that you allways assume a risk when you open an e-mail message. ------------=_1133944218-2450-17--