From: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Alan Cox <gnomes-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org>
Cc: "Pandruvada,
Srinivas"
<srinivas.pandruvada-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
"linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [RFP] iio: Support of gesture sensor as a standard IIO sensor
Date: Sat, 6 Jan 2018 13:12:31 +0000 [thread overview]
Message-ID: <20180106131231.078492c3@archlinux> (raw)
In-Reply-To: <20180106002024.012f44c0@alans-desktop>
On Sat, 6 Jan 2018 00:20:24 +0000
Alan Cox <gnomes-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org> wrote:
> > >From an IIO sensor point of view A Gesture sensor:
> > Outputs
> > A pre defined activity type
> > WAKE
> > TILT
> > GLANCE
> > PICK_UP
> > &
> > more
> >
> > A user defined activity type as "string"
> >
> > Inputs
> > A raw binary cdev interface to download templates/patterns
> >
> >
> > I want to gather more opinions before submitting a RFC patch.
>
> The only question I have is should it appear under IIO or should it be an
> input event interface. It feels to me more like an input device in that in
> this case while it's not keys or joystick it is still 'please do X'. That
> might also make it much easier (in the non-Android space in particular)
> to bind these activities to actions in things like web browsers.
>
I agree that this may well be an option for many of the gestures specifically
metioned (flicks etc and glyphs).
However, there are other obvious uses of this technology such as step detection
or activity classification (running, walking sitting) that so far have fallen
in the scope of IIO as they aren't really things you expect the device to
perform an an action in response to. Another one of those messy corners
that fall through the gaps!
The drivers/iio/accel/mma9553.c does activity detection, but that isn't
really 'events' in the same way as we have here...
So right answer might be a hybrid of an underlying flexible IIO device
and an input front end for when it makes sense.
We probably need to get the in kernel use of IIO events sorted. Non event
stuff has been sorted for years, but this last corner was never of enough
interest to anyone to actually implement it (it's fairly straight forward
to do).
> (+ linux-input)
>
> Alan
next prev parent reply other threads:[~2018-01-06 13:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1515197240.26317.65.camel@intel.com>
2018-01-06 0:20 ` [RFP] iio: Support of gesture sensor as a standard IIO sensor Alan Cox
2018-01-06 13:12 ` Jonathan Cameron [this message]
2018-01-06 17:43 ` Pandruvada, Srinivas
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=20180106131231.078492c3@archlinux \
--to=jic23-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=gnomes-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org \
--cc=linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=srinivas.pandruvada-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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).