All of lore.kernel.org
 help / color / mirror / Atom feed
* Accelerometer and orientation sensor on Lenovo Ideapad S10-3t
@ 2011-05-26 18:27 Alberto Mardegan
  2011-05-27 16:33 ` Matthew Garrett
  2011-05-28 12:03 ` Richard Schütz
  0 siblings, 2 replies; 8+ messages in thread
From: Alberto Mardegan @ 2011-05-26 18:27 UTC (permalink / raw)
  To: platform-driver-x86; +Cc: Javier S. Pedro, Ike Panhc

Hi all,
  I'd like to add support for the accelerometer sensor which is found in
the Lenovo Ideapad S10-3t.

I would use this code as a starting point (kudos to Javier):
http://gitorious.org/iaps/lsrot/blobs/master/lsrot.c
The code uses the WMI interfaces to get notified of coarse orientation
changes.
But how should these changes be reported to userspace? Should they go
through the input subsystem (I didn't find any suitable key codes to
report these events), or via the /sys filesystem? In the latter case, is
there a convention on naming and reporting data from devices of this kind?


Secondly, I'd like to add support for reading the accelerometer values,
as it's done here (again, kudos to Javier):
http://gitorious.org/iaps/iaps/blobs/master/iaps.c
I know that no one is happy of directly accessing the raw I/O ports, but
all my attempts of reading these values through the ACPI interfaces or
the EC fields have failed: the fields are always set to 0.
So, what I plan to do is to check the DMI information, and if the
machine is a S10-3t I would you the code linked above to read and report
the accelerometer values. Would that be acceptable?


And finally: should the changes above be made to the existing
ideapad-laptop.c file, or should they go to a separate file/module?

TIA,
  Alberto

-- 
http://blog.mardy.it <- geek in un lingua international!

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-06-08 10:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-26 18:27 Accelerometer and orientation sensor on Lenovo Ideapad S10-3t Alberto Mardegan
2011-05-27 16:33 ` Matthew Garrett
2011-05-28  7:15   ` Alberto Mardegan
2011-06-08  8:52   ` Anisse Astier
2011-06-08 10:49     ` Alberto Mardegan
2011-05-28 12:03 ` Richard Schütz
2011-06-01  7:23   ` Ike Panhc
2011-06-01 19:29     ` Richard Schütz

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.