Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Apr 2008 07:00:11 GMT
From:      "=?KOI8-R?B?88XSx8XKIOnXwc7P1w==?=" <123kash@gmail.com>
To:        freebsd-x11@FreeBSD.org
Subject:   Re: ports/122405: x11-servers/xorg-server update breaks scroll wheel support on mouse
Message-ID:  <200804070700.m3770Bej027202@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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&nbsp;trouble&nbsp;in&nbsp;x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-bsd-bsd_mouse.c. patch.<br>It was add 1 check what mouse driver are we using.<br>+    if ((dev = xf86FindOptionValue(pInfo-&gt;options, &quot;Device&quot;)) &amp;&amp;<br>
 +	!strcmp(dev, DEFAULT_SYSMOUSE_DEV)) {<br>+	i = 1;<br>+	ioctl(pInfo-&gt;fd, MOUSE_SETLEVEL, &amp;i);<br>+    }<br><br>BUT if we&#39;re using another driver&nbsp;MOUSE_SETLEVEL stays undefined. I commented those check and got wellworking mouse wheel.<br>
 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). <br> <br><br>
 
 ------=_Part_13265_33335618.1207549404047--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804070700.m3770Bej027202>