From owner-freebsd-x11@FreeBSD.ORG Mon Apr 7 07:00:12 2008 Return-Path: Delivered-To: freebsd-x11@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48692106566C for ; Mon, 7 Apr 2008 07:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3999D8FC0A for ; Mon, 7 Apr 2008 07:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3770B8Y027203 for ; Mon, 7 Apr 2008 07:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3770Bej027202; Mon, 7 Apr 2008 07:00:11 GMT (envelope-from gnats) Date: Mon, 7 Apr 2008 07:00:11 GMT Message-Id: <200804070700.m3770Bej027202@freefall.freebsd.org> To: freebsd-x11@FreeBSD.org From: "=?KOI8-R?B?88XSx8XKIOnXwc7P1w==?=" <123kash@gmail.com> Cc: Subject: Re: ports/122405: x11-servers/xorg-server update breaks scroll wheel support on mouse X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?KOI8-R?B?88XSx8XKIOnXwc7P1w==?= <123kash@gmail.com> List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2008 07:00:12 -0000 The following reply was made to PR ports/122405; it has been noted by GNATS. From: "=?KOI8-R?B?88XSx8XKIOnXwc7P1w==?=" <123kash@gmail.com> To: bug-followup@FreeBSD.org, ls.colby@gwirynybyd.com Cc: Subject: Re: ports/122405: x11-servers/xorg-server update breaks scroll wheel support on mouse Date: Mon, 7 Apr 2008 10:23:24 +0400 ------=_Part_13265_33335618.1207549404047 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Found trouble in x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-bsd-bsd_mouse.c. patch. It was add 1 check what mouse driver are we using. + if ((dev = xf86FindOptionValue(pInfo->options, "Device")) && + !strcmp(dev, DEFAULT_SYSMOUSE_DEV)) { + i = 1; + ioctl(pInfo->fd, MOUSE_SETLEVEL, &i); + } BUT if we're using another driver MOUSE_SETLEVEL stays undefined. I commented those check and got wellworking mouse wheel. Resolve: or disable those check or add else state where set another value. according psm.c (kernel src) it can take 3 values: 0 (PSM_LEVEL_BASE ), 1(PSM_LEVEL_STANDARD ) and 2 (PSM_LEVEL_NATIVE). ------=_Part_13265_33335618.1207549404047 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Found trouble in x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-bsd-bsd_mouse.c. patch.
It was add 1 check what mouse driver are we using.
+ if ((dev = xf86FindOptionValue(pInfo->options, "Device")) &&
+ !strcmp(dev, DEFAULT_SYSMOUSE_DEV)) {
+ i = 1;
+ ioctl(pInfo->fd, MOUSE_SETLEVEL, &i);
+ }

BUT if we're using another driver MOUSE_SETLEVEL stays undefined. I commented those check and got wellworking mouse wheel.
Resolve: or disable those check or add else state where set another value. according psm.c (kernel src) it can take 3 values: 0 (PSM_LEVEL_BASE ), 1(PSM_LEVEL_STANDARD ) and 2 (PSM_LEVEL_NATIVE).


------=_Part_13265_33335618.1207549404047--