Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Aug 2012 18:03:08 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org, Tomasz Olejniczak <tomek.apostata@gmail.com>, freebsd-gnats-submit@freebsd.org
Subject:   Re: usb/170358: [ums] Wrong (duplicate) button numbers
Message-ID:  <201208071803.08444.hselasky@c2i.net>
In-Reply-To: <201208060840.q768e3UX093093@freefall.freebsd.org>
References:  <201208060840.q768e3UX093093@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 06 August 2012 10:40:03 Tomasz Olejniczak wrote:
> The following reply was made to PR usb/170358; it has been noted by GNATS.
> 
> From: Tomasz Olejniczak <tomek.apostata@gmail.com>
> To: bug-followup@FreeBSD.org
> Cc:
> Subject: Re: usb/170358: [ums] Wrong (duplicate) button numbers
> Date: Mon, 6 Aug 2012 10:31:05 +0200
> 
>  Hi,
> 
>  Thanks for answer.
> 
>  > What does:
>  > dmesg | grep -C 4 ums
> 
>  ugen0.4: <Logitech> at usbus0
>  ukbd1: <Logitech USB Receiver, class 0/0, rev 2.00/12.01, addr 4> on
> usbus0 kbd3 at ukbd1
>  ums0: <Logitech USB Receiver, class 0/0, rev 2.00/12.01, addr 4> on usbus0
>  ums0: 16 buttons and [XYZT] coordinates ID=2
>  uhid1: <Logitech USB Receiver, class 0/0, rev 2.00/12.01, addr 4> on
> usbus0
> 
>  > Please also dump the HID descriptor of your USB mouse:
>  > usbconfig -d X.Y do_request 0x81 0x06 0x2200 0 0x100
> 
>  REQUEST = <0x05 0x01 0x09 0x06 0xa1 0x01 0x05 0x07 0x19 0xe0 0x29 0xe7
>  0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x08 0x81 0x02 0x81 0x03 0x95 0x05
>  0x05 0x08 0x19 0x01 0x29 0x05 0x91 0x02 0x95 0x01 0x75 0x03 0x91 0x01
>  0x95 0x06 0x75 0x08 0x15 0x00 0x26 0xa4 0x00 0x05 0x07 0x19 0x00 0x2a
>  0xa4 0x00 0x81 0x00 0xc0><)%u)uu&*>
> 

Hi,

I see that your mouse has many buttons. The order might be hardcoded by the 
hardware. Only if the HID descriptor has the information we need to 
distinguish the buttons, we can fix this issue.

The request in question is for the keyboard. I see you have a dual-
keyboard/mouse device. Re-run command like this:

usbconfig -d X.Y do_request 0x81 0x06 0x2200 1 0x100

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208071803.08444.hselasky>