Thread (7 messages) 7 messages, 3 authors, 2017-02-03

uinput really needs a custom sleep time?

From: Marcos Paulo de Souza <hidden>
Date: 2017-01-31 02:00:50

Hi input guys,

after playing with uinput, it seems an sleep call is necessary before emitting new events. If this really required?

While reading code of cwiid project, another user of uinput interface, it seems this sleep time isn't necessary[1].

In the other hang, when trying to send a simple event in my desktop, an sleep is necessary, take a look in my example[2].

Another interesting fact: kernel documentation lacks of an uinput example. Do you think this would be interesting to have one?

Thanks for your time,
Marcos

[1] https://github.com/abstrakraft/cwiid/blob/master/wminput/uinput.c#L193
[2] https://github.com/marcosps/kernel_experiments/blob/master/userspace/uinput.c#L65
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help