linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* uinput: ioctls for UI_BEGIN_FF_UPLOAD fails (returns -1). How to debug?
@ 2016-03-27 18:53 Manuel Reimer
  2016-03-27 19:11 ` Clément VUCHENER
  0 siblings, 1 reply; 9+ messages in thread
From: Manuel Reimer @ 2016-03-27 18:53 UTC (permalink / raw)
  To: linux-input

Hello,

I'm writing on an usermode input driver.

Currently my force feedback support just consists of some printf's as a 
first try.

My problem is, that it seems like as soon as I first sent something to 
my open uinput device (some buttons that were pressed on the device) the 
uinput backend seems to get into some bad state.

My "force feedback thread" gets the "EV_UINPUT" event trigger, but if I 
try to call

ioctl(args->fduinput, UI_BEGIN_FF_UPLOAD, &upload);

in this case, then the return value is "-1"...

The same code works without any problem if no buttons are pressed and 
"fftest" is called directly after startup of the driver application.

Can someone help me with debugging this problem? My understanding is, 
that this call shouldn't return -1 if the "EV_UINPUT" event was 
successfully received, right?

My system:

$ uname -a
Linux manuelspc 4.4.5-1-ARCH #1 SMP PREEMPT Thu Mar 10 07:38:19 CET 2016 
x86_64 GNU/Linux

Thank you very much in advance.

Manuel

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

end of thread, other threads:[~2016-04-05 19:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-27 18:53 uinput: ioctls for UI_BEGIN_FF_UPLOAD fails (returns -1). How to debug? Manuel Reimer
2016-03-27 19:11 ` Clément VUCHENER
2016-03-28  8:53   ` Manuel Reimer
2016-03-29 10:21     ` Clément VUCHENER
2016-03-29 16:48       ` Manuel Reimer
2016-03-31 17:46         ` Manuel Reimer
2016-04-03 10:02           ` Manuel Reimer
2016-04-03 10:21             ` Clément VUCHENER
2016-04-05 19:10               ` Manuel Reimer

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).