linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* uinput really needs a custom sleep time?
@ 2017-01-31  2:00 Marcos Paulo de Souza
  2017-01-31  2:21 ` Dmitry Torokhov
  2017-02-02 22:19 ` Peter Hutterer
  0 siblings, 2 replies; 7+ messages in thread
From: Marcos Paulo de Souza @ 2017-01-31  2:00 UTC (permalink / raw)
  To: linux-input

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

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

end of thread, other threads:[~2017-02-03  2:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-31  2:00 uinput really needs a custom sleep time? Marcos Paulo de Souza
2017-01-31  2:21 ` Dmitry Torokhov
2017-02-01  1:11   ` Marcos Paulo de Souza
2017-02-02 22:19 ` Peter Hutterer
2017-02-03  0:56   ` Marcos Paulo de Souza
2017-02-03  2:20   ` Marcos Paulo de Souza
2017-02-03  2:59     ` Peter Hutterer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).