From owner-freebsd-usb@FreeBSD.ORG Tue Apr 22 06:52:59 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 530C3106564A for ; Tue, 22 Apr 2008 06:52:59 +0000 (UTC) (envelope-from osidorkin@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id D986F8FC1A for ; Tue, 22 Apr 2008 06:52:58 +0000 (UTC) (envelope-from osidorkin@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so2252145fgg.35 for ; Mon, 21 Apr 2008 23:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:from; bh=i6ubrW3vilwcQv6ZNNoJfImk4s2olbxYgl+y+A0xelY=; b=lSEw2D5WBPMM18nGBVlp++37PM0KSaD+8+NZtafQSNUDaZGMF0BbrcSXzXRqDHNZU6q00QQRXoz/POoXkX3AezyOCBQ5eDvO8q11BI9dy7+lJSH/UEQxG/wBDdtCeNhvPdmZNGnN8+qh08HzcKofgAMsc2fvtDfp7hltmZMs1UA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:from; b=IKJjUh6k/0HgauG5by6tonm5T4CKkdrF/7ocQWao1eOeNhhixby6Gno6H8MNNK0YDs+gw4P/zF4eQmoud/Z4J8n/h2b7/L4vQu6Ijnsq0QxFLUh2hP5v1jc7tdwwlDJhOF4vyfYA8YttOMVxzNbSUWT4yFLJVoIltwfcegq+cOI= Received: by 10.86.72.15 with SMTP id u15mr15250540fga.21.1208845430448; Mon, 21 Apr 2008 23:23:50 -0700 (PDT) Received: from ?10.10.10.3? ( [77.51.44.15]) by mx.google.com with ESMTPS id s10sm7455240mue.15.2008.04.21.23.23.47 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Apr 2008 23:23:48 -0700 (PDT) To: freebsd-usb@freebsd.org Date: Tue, 22 Apr 2008 10:23:43 +0400 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804221023.44519.OSidorkin@gmail.com> From: Oleg Sidorkin Subject: [ums][patch] mouse wheel doesn't work on -STABLE after recent update X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2008 06:52:59 -0000 Hello, my IntelliMouse Explorer 4.0 wheel stops working after recent update. Rolling back ums.c to the previous (1.96.2.1) version fixes the problem. I think, there is a typo in the latest version of ums.c: HUG_Z is verified twice instead of HUG_TWHEEL in previous version. The following patch seems working for me: diff -u ums.c.orig ums.c --- ums.c.orig 2008-04-15 11:09:02.000000000 +0400 +++ ums.c 2008-04-22 09:53:12.000000000 +0400 @@ -313,7 +313,7 @@ } } } else if (hid_locate(desc, size, HID_USAGE2(HUP_GENERIC_DESKTOP, - HUG_Z), + HUG_TWHEEL), hid_input, &sc->sc_loc_z, &flags)) { if ((flags & MOUSE_FLAGS_MASK) != MOUSE_FLAGS) { printf("\n%s: Z report 0x%04x not supported\n",