On 06/11/10 20:45, Dmitry Torokhov wrote:
Hi Russell,
On Fri, Nov 05, 2010 at 03:42:19PM +1100, Russell Shaw wrote:
Hi,
In X, i want an application program to apply settings to a specific
mouse/puck device, regardless of how many other devices have been
plugged in since the last session.
Prefereably, a manufacturer-model-serial_number call would be available
from evdev.
Minimally, a uniq non-changing ID could be useful. I found this in
linux-2.6.31.1/drivers/input/evdev.c:
if (_IOC_NR(cmd) == _IOC_NR(EVIOCGUNIQ(0)))
return str_to_user(dev->uniq, _IOC_SIZE(cmd), p);
How is "dev->uniq" constructed?
USB HID devices populate this field with data from descriptor.iSerialNumber.
I suppose we should do that in other USB drivers as well, patches are
welcome.
Hi Dmitry.T,
I was just getting around to seeing if i could add manufacturer-model-
serial_number ioctl functionality.
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html