All of lore.kernel.org
 help / color / mirror / Atom feed
* HID vendor access from user space
@ 2013-05-17 11:47 Nestor Lopez Casado
  2013-05-21 13:12 ` David Herrmann
  0 siblings, 1 reply; 15+ messages in thread
From: Nestor Lopez Casado @ 2013-05-17 11:47 UTC (permalink / raw)
  To: Jiri Kosina, Dmitry Torokhov, Benjamin Tissoires,
	Andrew de los Reyes, David Herrmann, open list:HID CORE LAYER,
	Olivier Gay

Hi,

In today's linux HID subsystem, a HID device can be accessed for
control and configuration via dev/hidraw, via a hid-specific driver,
as well as /dev/input (setting leds on a kbd for instance)

Some HID devices share multiple functionality in the same HID
interface, think of a keyboard with a touchpad and a vendor specific
collection for configuration, special status, etc.

For such device, there will be one hidraw node, and hid-input will
take care of parsing the keyboard/mouse collections into the proper
input objects.

The vendor collection will be ignored.

If a user wants to configure/control the device there are two choices,
either write a hid-specific driver to deal with the vendor specific
collection, or open the corresponding /hidraw node from userspace.

But a hidraw node that carries system input data requires root priviledges.

I'm interested in hearing your opinions on how to add the capability
for a normal user process to control/configure a HID device via
reports exchanged with a vendor collection.

I have one proposal, which is to create, say  "/dev/hidvendorX", nodes
for all top level HID collections which are today ignored by hid-input
and/or other subsystems.

These nodes would not require root priviledge by default and thus,
users could control/reconfigure their devices from a standard
application while keeping the "standard" input functionality intact.

Cheers,
Nestor

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-04-23  9:27 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-17 11:47 HID vendor access from user space Nestor Lopez Casado
2013-05-21 13:12 ` David Herrmann
2014-04-02  7:05   ` Nestor Lopez Casado
2014-04-03 13:57     ` Jiri Kosina
2014-04-07 16:15       ` Nestor Lopez Casado
2014-04-07 16:27         ` David Herrmann
2014-04-08 15:53           ` Nestor Lopez Casado
2014-04-14 10:00             ` Nestor Lopez Casado
2014-04-15  2:16               ` David Herrmann
2014-04-15  7:36                 ` Nestor Lopez Casado
2014-04-15  7:39               ` Jiri Kosina
2014-04-15  8:47                 ` Nestor Lopez Casado
2014-04-16 14:53                   ` Jiri Kosina
2014-04-23  9:14                     ` Nestor Lopez Casado
2014-04-23  9:27                       ` David Herrmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.