Date: Tue, 9 Sep 2008 17:14:53 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: usb@freebsd.org Subject: Re: usbhidaction with non-HID devices Message-ID: <alpine.BSF.2.00.0809091708300.28535@wonkity.com> In-Reply-To: <alpine.BSF.2.00.0809091306460.27673@wonkity.com> References: <alpine.BSF.2.00.0809091306460.27673@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 9 Sep 2008, Warren Block wrote: > My Epson scanner has one button. I'd like to have that button activate a > program. usbhidaction(1) does that for uhid devices. > > Of course, the scanner is not a HID, and usbhidaction doesn't like non-HID > devices: > > % usbhidaction -v -c usbhid.conf -f uscanner0 > usbhidaction: hid_get_report_desc() failed: Operation not supported by > device > > Is there an existing way to do this? Responding to my own post: /usr/ports/sysutils/scanbuttond can do this--if you use ugen instead of uscanner. It polls, but the port shows a clever way to set it up so devd starts scanbuttond when the scanner is turned on, and kills it when the scanner is turned off. All of this leads me to ask: Besides a known device name (uscanner), what does uscanner provide that ugen does not? -Warren Block * Rapid City, South Dakota USA
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.0809091708300.28535>