From: Andy Ross <andy.ross@windriver.com>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Anisse Astier <anisse@astier.eu>,
linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org,
Dmitry Torokhov <dtor@mail.ru>,
Corentin Chary <corentin.chary@gmail.com>
Subject: Re: [RFC] Reporting "orientation changed" event
Date: Mon, 09 May 2011 08:37:55 -0700 [thread overview]
Message-ID: <4DC80A53.7050609@windriver.com> (raw)
In-Reply-To: <20110509143828.GA2632@srcf.ucam.org>
On 05/09/2011 07:38 AM, Matthew Garrett wrote:
> On Thu, Apr 07, 2011 at 06:18:00PM +0200, Anisse Astier wrote:
> > Pegatron Lucid tablet sends an ACPI hotkey event(0xEA) when the
> > accelerometer detects coarse orientation change
>
> I'd say that it ought to be hooked into the accelerometer driver and
> that should indicate that the orientation has changed.
How would that work? If it's an extra sysfs node, it would require an
extra file descriptor in the reader. And if it's an event inside the
input stream, that would require the reader implement handling to throttle
the polling rate. The point here was to avoid having to poll the
(noisy) accelerometer stream just for gross orientation changes.
Just to add a little iconoclasm, is this really something that needs
to be designed? Right now, it's limited to one device. And the only
reason we care about this event is that the accelerometer device* is
noisy and very slow. If it worked like "regular" accelerometers we'd
just use the standard code path for polling an accelerometer device
and do it all in userspace.
The specific use case here is the MeGo integration for the
ExoPC/WeTab. You can see the code here:
http://build.meego.com/package/files?package=sensorfw-pegatron&project=Trunk
It's just a one-liner acpid hook which uses dbus-send to tickle a
method in the sensor daemon plugin. It's clean, works well, and owing
to acpid's configuration scheme is trivial to package.
Does it really need to be "fixed"? If this were a whole class of
hardware, then I guess I'd agree. But right now it's one quirky
device.
Andy
* The upstreaming of which is still waiting on me to get back to the
panics I saw and triage them. I haven't forgotten Corentin, I just
haven't been able to find the time.
next prev parent reply other threads:[~2011-05-09 15:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-07 16:18 [RFC] Reporting "orientation changed" event Anisse Astier
2011-04-07 16:37 ` Bastien Nocera
2011-04-07 16:44 ` Anisse Astier
2011-04-07 17:01 ` Jonathan Cameron
2011-04-07 17:19 ` Anisse Astier
2011-05-09 14:38 ` Matthew Garrett
2011-05-09 15:37 ` Andy Ross [this message]
2011-05-09 15:47 ` Matthew Garrett
2011-05-09 15:59 ` Andy Ross
2011-05-09 16:30 ` Anisse Astier
2011-05-09 16:40 ` Matthew Garrett
2011-05-09 17:58 ` Anisse Astier
2011-05-09 18:06 ` Matthew Garrett
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=4DC80A53.7050609@windriver.com \
--to=andy.ross@windriver.com \
--cc=anisse@astier.eu \
--cc=corentin.chary@gmail.com \
--cc=dtor@mail.ru \
--cc=linux-input@vger.kernel.org \
--cc=mjg59@srcf.ucam.org \
--cc=platform-driver-x86@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).