linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Manuel Reimer <mail+linux-input@m-reimer.de>
To: linux-input@vger.kernel.org
Subject: Re: How to get the kernel to emulate force feedback events?
Date: Sun, 21 Feb 2016 15:07:16 +0100	[thread overview]
Message-ID: <56C9C494.6070500@m-reimer.de> (raw)
In-Reply-To: <56C8BE6D.7050409@m-reimer.de>

Resending message. Is the list broken?

On 02/20/2016 08:28 PM, Manuel Reimer wrote:
> But what could be the mistake, which allowed me to create a device
> driver which actually only supports FF_RUMBLE? Are there any special
> driver parameters that have to be present, so the kernel side emulation
> gets active?

After searching through the kernel source, I've found some more 
information. Event emulation is done here:

https://github.com/torvalds/linux/blob/master/drivers/input/ff-memless.c

And this is not triggered by the uinput kernel driver at all.

Would it be possible to add this feature to uinput?

Let's say: If only "FF_RUMBLE" is set and the device reports to be only 
able to handle one ff event, then initialize ff-memless.

I could try to create a patch for that, but it would be nice if someone 
of the "linux input pros" could at least tell what they think about 
this? Is this possible at all or is there anything which would make this 
fail?

Thanks in advance.

Best regards

Manuel

      parent reply	other threads:[~2016-02-21 17:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-20 19:28 How to get the kernel to emulate force feedback events? Manuel Reimer
2016-02-21 10:20 ` Manuel Reimer
2016-02-21 14:07 ` Manuel Reimer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56C9C494.6070500@m-reimer.de \
    --to=mail+linux-input@m-reimer.de \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).