From owner-freebsd-stable@FreeBSD.ORG Wed Dec 7 07:03:53 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 AF51B16A424 for ; Wed, 7 Dec 2005 07:03:53 +0000 (GMT) (envelope-from johnwrussell@comcast.net) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6659043D73 for ; Wed, 7 Dec 2005 07:03:22 +0000 (GMT) (envelope-from johnwrussell@comcast.net) Received: from rmailcenter79.comcast.net ([204.127.197.179]) by comcast.net (rwcrmhc12) with SMTP id <20051207070319014008g6rle>; Wed, 7 Dec 2005 07:03:19 +0000 Received: from [24.4.165.68] by rmailcenter79.comcast.net; Wed, 07 Dec 2005 07:03:19 +0000 From: johnwrussell@comcast.net To: freebsd-stable@freebsd.org Date: Wed, 07 Dec 2005 07:03:19 +0000 Message-Id: <120720050703.13264.43968936000DCA87000033D0220076106404040A9C9C9A9D9902080106@comcast.net> X-Mailer: AT&T Message Center Version 1 (Dec 17 2004) X-Authenticated-Sender: am9obndydXNzZWxsQGNvbWNhc3QubmV0 Subject: 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 07:03:54 -0000 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