From owner-freebsd-questions@FreeBSD.ORG Sun Oct 24 20:12:37 2010 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 31F84106566C for ; Sun, 24 Oct 2010 20:12:37 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id B23018FC0C for ; Sun, 24 Oct 2010 20:12:36 +0000 (UTC) Received: by bwz3 with SMTP id 3so2483479bwz.13 for ; Sun, 24 Oct 2010 13:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=gxRFd7gYDcQYjsG9Pmu/4rUBcioYL8QRKqOzrtE5/RE=; b=Ez0QAOs/oFuJ+Dlf8tesyldKZHGkXuarnJCGPkrNujbT/GXDU2BL8SVFIKTgamX3T/ f79qnpS0FGnRylUk6xe49+10ijKsm9m3T0HdKQaKDd6LMKWI7y2xIZu+PQq28AUVNHiE C2WMGFlTc8cyBgr6cS+JKUbbwWqGUequV5bFk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=nxMyb0rf9/iSNVHXGyWXxfseJgHNXUZiunL2EYEWgKH2dwOu6nJpWnaFvrD1CM58Mo 0ua0hGlppCj3YQavYYxNnGKUvw/p8td9ktz9KnhRKXGbILcV3zAn1fbZosRUymKcmHEt /x6JnfgVjQq3sh3I8Tn2rPGD3TaEvX3X5kJS8= MIME-Version: 1.0 Received: by 10.204.50.204 with SMTP id a12mr4231402bkg.117.1287951154726; Sun, 24 Oct 2010 13:12:34 -0700 (PDT) Received: by 10.204.77.1 with HTTP; Sun, 24 Oct 2010 13:12:34 -0700 (PDT) In-Reply-To: <20101024154850.GA43549@slackbox.erewhon.net> References: <20101024154850.GA43549@slackbox.erewhon.net> Date: Sun, 24 Oct 2010 22:12:34 +0200 Message-ID: From: David DEMELIER To: Roland Smith Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Questions Subject: Re: Auvisio USB remote 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: Sun, 24 Oct 2010 20:12:37 -0000 2010/10/24 Roland Smith : > On Sun, Oct 24, 2010 at 10:36:16AM +0200, David DEMELIER wrote: >> Hello folks; >> >> I have a USB remote >> (http://www.ortek.com/upimg/200732111364392163.jpg). It's an auvisio >> VRC-1100 Ro, there is no much information on it. It's recognized as a >> simple keyboard and mouse. >> >> The buttons sends some keypress events like "p" "enter" and numbers, >> but there is also multimedia keys, these don't send keypress events so >> I guess this is send via the HID device but I don't know how I can use >> them on FreeBSD. >> >> This is the message when I plug the remote controller. >> ugen2.2: at usbus2 >> ukbd0: > 2> on usbus2 >> kbd2 at ukbd0 >> ums1: o= n usbus2 >> ums1: 5 buttons and [XYZ] coordinates ID=3D1 >> >> What can I try for the multimedia keys ? > > Try using usbhidctl(1) to see if the multimedia keys generate data. In th= e file > /usr/share/misc/usb_hid_usages you can find some possible actions. > > If you have found the values that the multimedia keys give, you can use > usbhidaction(1) to execute commands when certain values appear on a HID. > > Roland > -- > R.F.Smith =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://www.xs4all.n= l/~rsmith/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] > pgp: 1A2B 477F 9970 BA3C 2914 =C2=A0B7CE 1277 EFB0 C321 A725 (KeyID: C321= A725) > Thanks for your answer, I tried usbhidctl(1) like this : markand@Abricot ~ $ sudo usbhidctl -f /dev/ugen2.2 -a usbhidctl: USB_GET_REPORT_DESC Is this behavior expected? --=20 Demelier David