From: Mohamed Ikbel Boulabiar <boulabiar@gmail.com>
To: felipe.balbi@nokia.com
Cc: ext Kim Kyuwon <q1.kim@samsung.com>,
ext Kim Kyuwon <chammoru@gmail.com>,
Trilok Soni <soni.trilok@gmail.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
Jonathan Cameron <jic23@cam.ac.uk>,
Kyungmin Park <kyungmin.park@samsung.com>,
Jean Delvare <khali@linux-fr.org>
Subject: Re: [RFC] Add Input IOCTL for accelerometer devices
Date: Tue, 19 May 2009 14:34:15 +0200 [thread overview]
Message-ID: <45cc95260905190534m561d666ds1fd5d38b4a08ba5b@mail.gmail.com> (raw)
In-Reply-To: <20090519104202.GB30597@nokia.com>
Hi,
>> > But then comes another question: what to do with
>> > magnetometers, gyroscopes, etc etc ??
>>
>> If we make a extensible sensor driver, I think we can add these new etc
>> sensors in the future. step by step.
>
> agreed here. But we have to think that this might get extended, so we
> should start thinking of an abstraction layer that could evolve for
> magnetometers, gyroscopes and other sensors
Agree with you, there should be an abstraction layer.
According to this, we should collect similar functionalities in one
module and make sub-module describing exceptions devices or ones that
needs special handling.
But in the end for the user space apps, they should "see" an
accelerometer in a standard way. All exceptions and pre-handling
should be done in the abstraction layer as described.
We can't bring as many full drivers as devices found, but one driver
serving for a group and that can load submodules when necessary.
The way HID is coded in Linux is an example for that, dealing with
many types of devices.
It isn't perfect, but its architecture can be used for other devices.
To stay with accelerometers, they are sensors, and sensors sense
physical properties.
Every device use its own methods but in the end they sense the same
thing and user wait for a similar feedback.
I post a link describing the HID standard, you can see in page 37 to
39 how they define units, and exponents for sensors.
http://www.usb.org/developers/devclass_docs/HID1_11.pdf
Also, we can't imagine all use cases and scenarios, we should bring
useful information to userspace apps and they do what they want with
these informations.
KDE developers may use sensors to automatically rotate the screen
90°/180° if the laptop is rotated. Others will use it to play games,
Some others will use light sensors to lighten the keyboard or to
change the brightness of the screen,...
What do you think ?
_
ikbel
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-05-19 12:34 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090515131636.GE4443@nokia.com>
2009-05-15 18:06 ` [RFC] Add Input IOCTL for accelerometer devices Trilok Soni
2009-05-15 19:30 ` Mohamed Ikbel Boulabiar
2009-05-15 20:02 ` Felipe Balbi
2009-05-16 4:19 ` Mohamed Ikbel Boulabiar
2009-05-16 12:50 ` Felipe Balbi
2009-05-18 7:45 ` Kim Kyuwon
2009-05-18 9:12 ` Felipe Balbi
2009-05-18 10:11 ` Jonathan Cameron
2009-05-18 10:31 ` Felipe Balbi
2009-05-18 11:37 ` Jonathan Cameron
2009-05-19 6:32 ` Kim Kyuwon
2009-05-21 11:42 ` Jonathan Cameron
2009-05-22 8:21 ` Kim Kyuwon
2009-05-22 13:35 ` Jonathan Cameron
2009-05-25 8:15 ` Kim Kyuwon
2009-05-25 8:52 ` Mohamed Ikbel Boulabiar
2009-05-25 11:07 ` Jonathan Cameron
2009-05-19 2:41 ` Kim Kyuwon
2009-05-19 10:42 ` Felipe Balbi
2009-05-19 12:34 ` Mohamed Ikbel Boulabiar [this message]
2009-05-21 10:21 ` Jonathan Cameron
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=45cc95260905190534m561d666ds1fd5d38b4a08ba5b@mail.gmail.com \
--to=boulabiar@gmail.com \
--cc=chammoru@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=felipe.balbi@nokia.com \
--cc=jic23@cam.ac.uk \
--cc=khali@linux-fr.org \
--cc=kyungmin.park@samsung.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=q1.kim@samsung.com \
--cc=soni.trilok@gmail.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).