linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alberto Mardegan <mardy@users.sourceforge.net>
To: linux-kernel@vger.kernel.org
Cc: "Javier S. Pedro" <maemo@javispedro.com>, linux-input@vger.kernel.org
Subject: Reporting screen/laptop orientation data to userspace
Date: Sun, 29 May 2011 10:49:19 +0300	[thread overview]
Message-ID: <4DE1FA7F.3050308@users.sourceforge.net> (raw)

Hi all,
  the WMI interfaces in some Lenovo Ideapad laptops provide notification
callbacks when the laptop orientation changes, reporting 4 different
values defining the new orientation.

I'd like to extend the ideapad-laptop driver with this information; but
how should it be reported to userspace? I initially thought of the input
subsystem, but I cannot find any suitable event codes; then I would
probably export it as a device under /sys, or are there better options?

Are there other devices which provide coarse orientation data to
userspace, which I might want to use as a reference?
I guess that at least some display screens have this feature.

TIA,
  Alberto

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

             reply	other threads:[~2011-05-29  7:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-29  7:49 Alberto Mardegan [this message]
2011-06-02 22:19 ` Reporting screen/laptop orientation data to userspace Pavel Machek
2011-06-03 15:55 ` Bastien Nocera
2011-06-04 17:13   ` Mohamed Ikbel Boulabiar
2011-06-06 17:53     ` Bastien Nocera
2011-06-06  6:53   ` Alberto Mardegan
2011-06-06  8:42     ` Jonathan Cameron
2011-06-06 17:50     ` Bastien Nocera
2011-06-06 18:41       ` Alan Cox
2011-06-20 14:53         ` Bastien Nocera

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=4DE1FA7F.3050308@users.sourceforge.net \
    --to=mardy@users.sourceforge.net \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maemo@javispedro.com \
    /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).