From owner-freebsd-questions@FreeBSD.ORG Fri May 27 15:29:27 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D209106564A for ; Fri, 27 May 2011 15:29:27 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8F8E68FC1E for ; Fri, 27 May 2011 15:29:26 +0000 (UTC) Received: by wyf23 with SMTP id 23so1803298wyf.13 for ; Fri, 27 May 2011 08:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=zdprlQbi5zaYxvdUJqk2Ony47ZT3AT1c6riAwksEdQA=; b=EGoec8J1J5BUPMuqaDgwaSLFBVEh7dyetrw5f/utv39au8Zj++iRf6BjRUfi08iUY+ 7Q/v5jKaCPBek5rRj9vuGhqpjbjyBv7G84D3lComO9PxxK+RwnOGxcNRZolyDnlBLKMo qeJRIkdXTYEWSadM62KPxY/BsPjguyAfYAHK8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=ceVyknEuKyC7wGTMLok4RXx6ZTJ2Tfidzov7ma5k06iD9codH1F0nOWy3DmTklyJ4W A8clukFx/8c/CvLeqQY6PKyRP97EvCdtDcdCS5y+NkqsDkZaUD4k5+HNL2sRFGeaer8V uNR4H8xcmijljZU2QloqorTQyFVTu5BnwIVcY= Received: by 10.216.136.207 with SMTP id w57mr6995037wei.63.1306510165515; Fri, 27 May 2011 08:29:25 -0700 (PDT) Received: from Melon.malikania.fr (65.21.102.84.rev.sfr.net [84.102.21.65]) by mx.google.com with ESMTPS id ej7sm1263787wbb.19.2011.05.27.08.29.24 (version=SSLv3 cipher=OTHER); Fri, 27 May 2011 08:29:24 -0700 (PDT) Message-ID: <4DDFC302.2090400@gmail.com> Date: Fri, 27 May 2011 17:28:02 +0200 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110508 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Adding a devd entry for a specified uhid X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 15:29:27 -0000 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 ? markand@Groseille ~ $ usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.3: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen0.4: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen0.5: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON markand@Groseille ~ $ dmesg | grep uhid uhid0: on usbus0 I suspect ugen0.2 to be the uhid but how to be sure? Cheers, -- David Demelier