From: Anisse Astier <anisse@astier.eu>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Alberto Mardegan <mardy@users.sourceforge.net>,
platform-driver-x86@vger.kernel.org,
"Javier S. Pedro" <maemo@javispedro.com>,
Ike Panhc <ike.pan@canonical.com>
Subject: Re: Accelerometer and orientation sensor on Lenovo Ideapad S10-3t
Date: Wed, 8 Jun 2011 10:52:18 +0200 [thread overview]
Message-ID: <20110608105218.29a7e776@destiny.ordissimo> (raw)
In-Reply-To: <20110527163346.GD16769@srcf.ucam.org>
On Fri, 27 May 2011 17:33:46 +0100, Matthew Garrett <mjg59@srcf.ucam.org> wrote :
> On Thu, May 26, 2011 at 09:27:30PM +0300, Alberto Mardegan wrote:
>
> > 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?
>
> If we're not interested in providing continual fine-grained data then
> the easiest approach may be to present as an input device and then just
> send updated values whenever you receive the coarse udpate signal. But
> you probably want to bring this up on LKML so we can make sure
> everyone's exposing this in the same way.
>
We already had this discussion here:
http://www.spinics.net/lists/platform-driver-x86/msg01850.html
and the conclusion was that if you need to poll the device to get the
fined grain data, and you have a separate event(was ACPI hotkey, not
WMI) for coarse orientation changes, you should send a KOBJ_CHANGE uevent
for that.
IMHO, deciding if we need or not "continual fine-grained data" is policy
and up to userspace.
--
Anisse
next prev parent reply other threads:[~2011-06-08 8:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
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=20110608105218.29a7e776@destiny.ordissimo \
--to=anisse@astier.eu \
--cc=ike.pan@canonical.com \
--cc=maemo@javispedro.com \
--cc=mardy@users.sourceforge.net \
--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