From owner-freebsd-usb@FreeBSD.ORG Mon Jun 16 06:18:35 2014 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E9FBD69F for ; Mon, 16 Jun 2014 06:18:35 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9F9602A8E for ; Mon, 16 Jun 2014 06:18:35 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id B110B1FE045; Mon, 16 Jun 2014 08:18:34 +0200 (CEST) Message-ID: <539E8C51.30903@selasky.org> Date: Mon, 16 Jun 2014 08:18:57 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Eitan Adler , usb@freebsd.org, Adrian Chadd Subject: Re: weird mouse: acts as keyboard and mouse References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2014 06:18:36 -0000 On 06/16/14 08:09, Eitan Adler wrote: > Hey Hans, > > I have a 2.00/84.01, addr 12> which is reporting itself as both a mouse and a > keyboard. I know that the mouse has the ability to remap itself as it > used to not do this (I was able to configure this on a mac). > > The annoying effect is that the "back" and "forward" keys now report > themselves as "[" and "]" keys. > > [1645919] ugen0.2: at usbus0 > [1645919] ums0: 2.00/84.01, addr 12> on usbus0 > [1645919] ums0: 16 buttons and [XYZT] coordinates ID=0 > [1645919] ukbd0: 2.00/84.01, addr 12> on usbus0 > [1645919] kbd2 at ukbd0 > > I think it would be a good idea to write a utility to configure this > stuff on FreeBSD. What information do I need to obtain / how should I > obtain it? I'm guessing its possible to talk to the mouse over USB > but I'm not sure how. > > Hi, Can you check the configuration descriptor first? usbconfig -d X.Y dump_device_desc dump_curr_config_desc Possibly you need to issue some HID command (set report descriptor) to make the device change behaviour. --HPS