usb/103418: [usb] [patch] usbhidctl: add ability to write output
and feature items
Rene Ladan
r.c.ladan at gmail.com
Wed Oct 11 11:20:23 UTC 2006
The following reply was made to PR usb/103418; it has been noted by GNATS.
From: Rene Ladan <r.c.ladan at gmail.com>
To: bug-followup at FreeBSD.org, r.c.ladan at 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--
More information about the freebsd-usb
mailing list