All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Henrik Rydberg <rydberg@euromail.se>
Cc: Maurus Cuelenaere <mcuelenaere@gmail.com>, linux-input@vger.kernel.org
Subject: Re: [RFC] Microsoft Touch Mouse driver [was: Re: your mail]
Date: Wed, 8 Feb 2012 09:09:10 -0800	[thread overview]
Message-ID: <20120208170910.GA4181@core.coreip.homeip.net> (raw)
In-Reply-To: <20120207223824.GA15836@polaris.bitmath.org>

On Tue, Feb 07, 2012 at 11:38:24PM +0100, Henrik Rydberg wrote:
> > >>Any hints on how to do this in userspace? Of course I could hack up
> > >>xf86-input-evdev, but I'd like to do this at the highest possible
> > >>layer, ie the input subsystem.
> > >The application you describe could well be implemented in the driver
> > >you submitted; a simple handling of the MT data resulting in normal
> > >input events.
> > 
> > Yes, that was my initial idea. But as I had the impression that an
> > userspace solution was preferred, I wondered how to solve that.
> 
> The conclusion was that as is, the device is unsuitable as an MT
> device, needing either further in-kernel conversion or some other,
> non-MT way of getting the data to userspace. Converting the data as
> you describe, outputting normal input events, falls into the first
> category.

It should be possible to grab both interfaces using hidraw, perform
necessary decoding in userspace and route proper MT stream (including
button data) back into the kernel via uinput. This way the rest of the
stack doe not need to be touched.

Thanks.

-- 
Dmitry

      reply	other threads:[~2012-02-08 17:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BROWNM3h3vLgAusVxON00000cfa@brown.emailprod.vodafone.se>
2012-01-25 13:26 ` your mail Henrik Rydberg
2012-01-25 14:09   ` Maurus Cuelenaere
2012-01-25 14:13     ` Fwd: " Maurus Cuelenaere
2012-01-25 15:00     ` [RFC] Microsoft Touch Mouse driver [was: Re: your mail] Henrik Rydberg
2012-01-29 21:19       ` Maurus Cuelenaere
2012-01-30  7:27       ` Dmitry Torokhov
2012-02-07 12:07         ` Maurus Cuelenaere
2012-02-07 16:12           ` Henrik Rydberg
2012-02-07 21:09             ` Maurus Cuelenaere
2012-02-07 22:38               ` Henrik Rydberg
2012-02-08 17:09                 ` Dmitry Torokhov [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=20120208170910.GA4181@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=mcuelenaere@gmail.com \
    --cc=rydberg@euromail.se \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.