Date: Fri, 27 May 2011 12:45:56 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: David Demelier <demelier.david@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Adding a devd entry for a specified uhid Message-ID: <alpine.BSF.2.00.1105271237350.45242@wonkity.com> In-Reply-To: <4DDFC302.2090400@gmail.com> References: <4DDFC302.2090400@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 27 May 2011, David Demelier wrote: > Hello, > > I have a USB keyboard that use uhid for multimedia keys, it works pretty well > with usbhidaction but I need to run the command by hand each time. > > Because I also have gamepad that are uhid too, I would like to get the vendor > and product id of this keyboard uhid to match the good hid device with devd > and do not try to run usbhidaction on the gamepad. > > usbconfig need ugenx.y to deal with vendor and product id so how can I know > the vendor and product id of my uhid device ? devd returns a device-name value. I thought there was an example in the scanner section of the Handbook, but no. A rough example: attach 20 { device-name "ugen[0-9].[0-9]"; match "vendor" "0x09999"; match "product" "0x9999"; action "/usr/bin/usbhidaction $device-name ..."; };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1105271237350.45242>