Force feedback upload of effects through the event device (ioctl EVIOCSFF) is not working in 32 bit apps like wine.
64 bit apps like fftest work.
This is due to the fact that struct ff_effect contains a pointer, resulting in the structure having different sizes in 64 and 32 bit programs. This means that the ioctl issued from 32 bit code isn't handled, because it has a different number.
Created attachment 147267 [details, diff]
This patch makes force feedback work in 32 bit apps for me.
Are you the author? Has this been submitted upstream?
We typically only backport patches from the official upstream development kernel tree.
Are your plans to submit this upstream?
It seems I don't have a choice ;]
I'll get on it right away.
Adam, did you have a chance/are you still planning on submitting this upstream?
I'm having trouble getting through to the devs.
I posted the patch to the linux-input list (this archive tells me that the mail got through: http://article.gmane.org/gmane.linux.kernel.input/4493), but got no reply. I then mailed Dmitry Torokhov, the maintainer of the input subsystem, but also got no reply. I must be doing something wrong...
Nevermind, I got a response from Dmitry.
Any movement on your patch from Dmitry?
Nope. Nothing on the list either. I'll poke Dmitry again.
Dmitry came up with a better patch and it should get commited Real Soon Now(TM).
The patch got accepted into upstream input tree
We'll include it in the next 2.6.25 release.
fixed in gentoo-sources-2.6.25-r6