Thread (13 messages) 13 messages, 5 authors, 2011-05-09

Re: [RFC] Reporting "orientation changed" event

From: Andy Ross <hidden>
Date: 2011-05-09 15:46:07
Also in: platform-driver-x86

On 05/09/2011 07:38 AM, Matthew Garrett wrote:
On Thu, Apr 07, 2011 at 06:18:00PM +0200, Anisse Astier wrote:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help