[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#821389: xinput: please support distinct device IDs



On Mon, Apr 25, 2016 at 16:39:59 +0200, Harald Dunkel wrote:

> On 04/22/16 11:48, Julien Cristau wrote:
> > On Fri, Apr 22, 2016 at 08:15:20 +0200, Harald Dunkel wrote:
> > 
> >> BTW, the man page says
> >>
> >> 	device can be the device name as a string or the XID of the device.
> >>
> >> , but thats broken, too:
> >>
> >> 	% lsusb -d 046d:c525
> >> 	Bus 003 Device 002: ID 046d:c525 Logitech, Inc. MX Revolution Cordless Mouse
> >>
> >> 	% xinput list-props 046d:c525
> >> 	unable to find device 046d:c525
> >>
> > That's not an XID.  What's the output from "xinput list"?
> > 
> 
> % xinput list
> ⎡ Virtual core pointer                        id=2    [master pointer  (3)]
> ⎜   ↳ Virtual core XTEST pointer                    id=4    [slave  pointer  (2)]
> ⎜   ↳ Logitech USB Receiver                         id=6    [slave  pointer  (2)]
> ⎜   ↳ Logitech USB Receiver                         id=9    [slave  pointer  (2)]
> ⎣ Virtual core keyboard                       id=3    [master keyboard (2)]
>     ↳ Virtual core XTEST keyboard                     id=5    [slave  keyboard (3)]
>     ↳ Power Button                                    id=7    [slave  keyboard (3)]
>     ↳ Power Button                                    id=8    [slave  keyboard (3)]
>     ↳ Unicomp Inc Ruffian6_x Kbrd v3_xx               id=10   [slave  keyboard (3)]
> 
> 
> I had hoped for some "extended id".
> 
So there's two "Logitech USB Receiver" pointer devices, and you need to
use the id (6 or 9) to disambiguate.

Cheers,
Julien


Reply to: