From owner-freebsd-usb@FreeBSD.ORG Wed Oct 11 11:20:23 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3373D16A407 for ; Wed, 11 Oct 2006 11:20:23 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2C1543D55 for ; Wed, 11 Oct 2006 11:20:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k9BBKMgA050675 for ; Wed, 11 Oct 2006 11:20:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k9BBKMML050674; Wed, 11 Oct 2006 11:20:22 GMT (envelope-from gnats) Date: Wed, 11 Oct 2006 11:20:22 GMT Message-Id: <200610111120.k9BBKMML050674@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Rene Ladan Cc: Subject: Re: usb/103418: [usb] [patch] usbhidctl: add ability to write output and feature items X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rene Ladan List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2006 11:20:23 -0000 The following reply was made to PR usb/103418; it has been noted by GNATS. From: Rene Ladan To: bug-followup@FreeBSD.org, r.c.ladan@gmail.com Cc: Subject: Re: usb/103418: [usb] [patch] usbhidctl: add ability to write output and feature items Date: Wed, 11 Oct 2006 13:16:18 +0200 This is a multi-part message in MIME format. --------------060002000308090501080105 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Attached is the patch for the corresponding manual page. Rene. -- GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 (subkeys.pgp.net) "It won't fit on the line." -- me, 2001 --------------060002000308090501080105 Content-Type: text/x-patch; name="pr-usbhidctl.1.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pr-usbhidctl.1.diff" --- /usr/src/usr.bin/usbhidctl/usbhidctl.1 Tue Jan 18 14:43:55 2005 +++ usbhidctl.1 Tue Sep 19 23:46:47 2006 @@ -35,7 +35,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd July 12, 1998 +.Dd September 20, 2006 .Dt USBHIDCTL 1 .Os .Sh NAME @@ -51,13 +51,22 @@ .Op Fl t Ar table .Op Fl v .Op Ar item ... +.Nm +.Fl f Ar device +.Op t ar table +.Fl w Ar name Ns = Ar value ... .Sh DESCRIPTION The .Nm -utility can be used to dump the state of a USB HID (Human Interface Device). +utility can be used to dump or modify the state of a USB HID (Human Interface Device). Each named .Ar item is printed. +If the +.Fl w +flag is specified +.Nm +attempts to set the specified items to the given values. .Pp The options are as follows: .Bl -tag -width Ds @@ -67,6 +76,7 @@ Specify a path name for the device to operate on. .It Fl l Loop and dump the device data every time it changes. +Only 'input' items are displayed in this mode. .It Fl n Suppress printing of the item name. .It Fl r @@ -75,6 +85,9 @@ Specify a path name for the HID usage table file. .It Fl v Be verbose. +.It Fl w +Change item values. +Only 'output' and 'feature' kinds can be set with this option. .El .Sh FILES .Pa /usr/share/misc/usb_hid_usages @@ -91,4 +104,4 @@ .Sh BUGS The .Nm -utility cannot show nor set output and feature items. +utility cannot show feature items. --------------060002000308090501080105--