kern/123510: [ums] Mouse Wheel Fails to Work [regression]
Kai Wang
kaiwang27 at gmail.com
Mon Aug 11 13:40:04 UTC 2008
The following reply was made to PR kern/123510; it has been noted by GNATS.
From: Kai Wang <kaiwang27 at gmail.com>
To: bug-followup at FreeBSD.org, tmdraney at verizon.net
Cc:
Subject: Re: kern/123510: [ums] Mouse Wheel Fails to Work [regression]
Date: Mon, 11 Aug 2008 15:10:01 +0200
Hello Merritt,
Since /usr/src/sys/dev/usb/ums.c rev 1.96.2.1 worked for you, I guess
this might be caused by rev 1.97 which removed "TWHEEL" stuff.
Could you please try the patch below and see if it also fix the
problem?
(Patch should apply to latest -STABLE or -CURRENT)
Thanks,
Kai
--- /sys/dev/usb/ums.c 2008-05-05 20:25:42.000000000 +0200
+++ ums.c.new 2008-08-11 15:00:37.000000000 +0200
@@ -283,6 +283,9 @@
/* Try the wheel first as the Z activator since it's tradition. */
wheel = hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP,
HUG_WHEEL),
+ hid_input, &sc->sc_loc_z, &flags) ||
+ hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP,
+ HUG_TWHEEL),
hid_input, &sc->sc_loc_z, &flags);
if (wheel) {
More information about the freebsd-usb
mailing list