ports/122405: x11-servers/xorg-server update breaks scroll
wheel support on mouse
Сергей Иванов
123kash at gmail.com
Mon Apr 7 07:00:12 UTC 2008
The following reply was made to PR ports/122405; it has been noted by GNATS.
From: "=?KOI8-R?B?88XSx8XKIOnXwc7P1w==?=" <123kash at gmail.com>
To: bug-followup at FreeBSD.org, ls.colby at 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.<br>It was add 1 check what mouse driver are we using.<br>+ if ((dev = xf86FindOptionValue(pInfo->options, "Device")) &&<br>
+ !strcmp(dev, DEFAULT_SYSMOUSE_DEV)) {<br>+ i = 1;<br>+ ioctl(pInfo->fd, MOUSE_SETLEVEL, &i);<br>+ }<br><br>BUT if we're using another driver 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--
More information about the freebsd-x11
mailing list