[PATCH libevdev 1/4] Add a doxygen page listing the ioctls and their current support

David Herrmann dh.herrmann at gmail.com
Fri Dec 6 02:23:27 PST 2013


Hi

On Thu, Dec 5, 2013 at 10:37 PM, Peter Hutterer
<peter.hutterer at who-t.net> wrote:
> On Thu, Dec 05, 2013 at 06:13:07PM +0100, David Herrmann wrote:
>> Hi
>>
>> Patch looks good, but besides ioctls, we also lack proper write()
>> support.
>
> can you extend on this - what support do we need here?

Well, any event can be written to an evdev device if you can read()
it. It usually doesn't make much sense but can be used to overwrite
driver values across all evdev readers. But I'm fine with not
supporting this unless we have a proper use-case.

However, there are a bunch of events which require write() support:
 - EV_PWR
 - REP_*
 - SND_*
And most important, all of the FF things require write() support. With
current libevdev, FF is not supported at all and users need to do all
the heavy lifting themselves (which is fine to me, but it's not
documented at all).

Cheers
David


More information about the Input-tools mailing list