Date: Tue, 03 Oct 2006 11:35:48 +0200 From: Rene Ladan <r.c.ladan@gmail.com> To: Jindra Fucik <fulda@seznam.cz> Cc: freebsd-hackers@freebsd.org, freebsd-usb@freebsd.org Subject: Re: anyone working on setting output items with usbhidctl(1) ? Message-ID: <45222EF4.5000101@gmail.com> In-Reply-To: <049001c6e6cb$1c70c560$c4cd9109@PC2088> References: <450DA217.9080602@gmail.com> <049001c6e6cb$1c70c560$c4cd9109@PC2088>
next in thread | previous in thread | raw e-mail | index | archive | help
Jindra Fucik schreef: >> Hi, >> >> is anyone working on setting output items with usbhidctl(1) ? >> >> I thought that something like -s "feature1=value1,feature2=value2,..." >> would be nice to have. > > Hi Rene, have you any progress? I do some tests on uhid & write and have > no positive feedback. > There is some progress. I've sent PR usb/103418 containing a patch to usbhidctl(1). You can test the patch if you have a hid with a known output descriptor: # usbhidctl -f /dev/uhid0 -w name=value should do the trick. When I test the patch with my Xbox 360 controller which contains a reverse-engineered output descriptor it crashes when calling hid_set_data() from libusbhid. I guess I'm not initializing the variable *buf correctly (it contains 0x800). Alternatively you can import usbhidctl(1) from OpenBSD/NetBSD (some trivial patches are needed, like s/hid_start()/hid_init() ) which has hopefully a working -w option. Regards, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45222EF4.5000101>