All of lore.kernel.org
 help / color / mirror / Atom feed
From: pavel@ucw.cz (Pavel Machek)
To: Henrique de Moraes Holschuh <hmh@debian.org>
Cc: lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org,
	hdaps-devel@lists.sourceforge.net,
	Stelian Pop <stelian@popies.net>,
	Michael Hanselmann <linux-kernel@hansmi.ch>
Subject: [lm-sensors] Generic interface for accelerometers (AMS, HDAPS,
Date: Tue, 04 Jul 2006 07:59:50 +0000	[thread overview]
Message-ID: <20060704075950.GA13073@elf.ucw.cz> (raw)
In-Reply-To: <20060703124823.GA18821@khazad-dum.debian.net>

On Mon 2006-07-03 09:48:23, Henrique de Moraes Holschuh wrote:
> We have now (or we are about to have, anyway) two drivers that export
> accelerometer data: IBM's HDAPS, and Apple's AMS.  More accelerometer
> drivers could be coming in the future.
> 
> Both drivers export one common set of data (accelerometer output), and some
> extra information that is not related to acellerometers.  Both have at least
> two functionality goals in common: to export accelerometer data to
> userspace, and also to allow somehow for HD head parking when the
> accelerometer detects a potentially incoming impact.
> 
> User?space utilities that interface to accelerometers like hdapsd and
> smackpad could benefit from a common interface, so that they work with
> HDAPS, AMS, and any other future accelerometer drivers.
> 
> If any kernel-space functionality needed by HDAPS and AMS is also shared, we
> would have benefits there too.  Some examples I can think of are: generic HD
> queue-freeze and HD head parking, and a generic acellerometer-driven
> joystick event interface.  This would also enable generic userspace
> notifiers that the HD heads have been parked, etc.
> 
> I am posting this message as a head's up for the two projects (HDAPS, AMS)
> to make sure that they are actively aware of each other.  I do so in hope
> that we can work in a joint, generic interface and port both drivers to this
> new interface in the near future, and also that we can make as much
> functionality shared between the two drivers as possible.

Just use input infrastructure and be done with that? You can do
parking from userspace.

Only piece of puzzle missing is marking that input device as "this
accelerometer actually watches the whole device".
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


WARNING: multiple messages have this Message-ID (diff)
From: Pavel Machek <pavel@ucw.cz>
To: Henrique de Moraes Holschuh <hmh@debian.org>
Cc: lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org,
	hdaps-devel@lists.sourceforge.net,
	Stelian Pop <stelian@popies.net>,
	Michael Hanselmann <linux-kernel@hansmi.ch>
Subject: Re: Generic interface for accelerometers (AMS, HDAPS, ...)
Date: Tue, 4 Jul 2006 09:59:50 +0200	[thread overview]
Message-ID: <20060704075950.GA13073@elf.ucw.cz> (raw)
In-Reply-To: <20060703124823.GA18821@khazad-dum.debian.net>

On Mon 2006-07-03 09:48:23, Henrique de Moraes Holschuh wrote:
> We have now (or we are about to have, anyway) two drivers that export
> accelerometer data: IBM's HDAPS, and Apple's AMS.  More accelerometer
> drivers could be coming in the future.
> 
> Both drivers export one common set of data (accelerometer output), and some
> extra information that is not related to acellerometers.  Both have at least
> two functionality goals in common: to export accelerometer data to
> userspace, and also to allow somehow for HD head parking when the
> accelerometer detects a potentially incoming impact.
> 
> User­space utilities that interface to accelerometers like hdapsd and
> smackpad could benefit from a common interface, so that they work with
> HDAPS, AMS, and any other future accelerometer drivers.
> 
> If any kernel-space functionality needed by HDAPS and AMS is also shared, we
> would have benefits there too.  Some examples I can think of are: generic HD
> queue-freeze and HD head parking, and a generic acellerometer-driven
> joystick event interface.  This would also enable generic userspace
> notifiers that the HD heads have been parked, etc.
> 
> I am posting this message as a head's up for the two projects (HDAPS, AMS)
> to make sure that they are actively aware of each other.  I do so in hope
> that we can work in a joint, generic interface and port both drivers to this
> new interface in the near future, and also that we can make as much
> functionality shared between the two drivers as possible.

Just use input infrastructure and be done with that? You can do
parking from userspace.

Only piece of puzzle missing is marking that input device as "this
accelerometer actually watches the whole device".
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2006-07-04  7:59 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-03 12:48 [lm-sensors] Generic interface for accelerometers (AMS, HDAPS, ...) Henrique de Moraes Holschuh
2006-07-03 12:48 ` Henrique de Moraes Holschuh
2006-07-04  7:59 ` Pavel Machek [this message]
2006-07-04  7:59   ` Pavel Machek
2006-07-04 10:26   ` [lm-sensors] [Hdaps-devel] Generic interface for accelerometers Shem Multinymous
2006-07-04 10:26     ` [Hdaps-devel] Generic interface for accelerometers (AMS, HDAPS, ...) Shem Multinymous
2006-07-04 10:33     ` [lm-sensors] [Hdaps-devel] Generic interface for accelerometers Shem Multinymous
2006-07-04 10:57     ` Pavel Machek
2006-07-04 10:57       ` [Hdaps-devel] Generic interface for accelerometers (AMS, HDAPS, ...) Pavel Machek
2006-07-04 15:02     ` Thomas Tuttle
2006-07-05  3:13     ` [lm-sensors] [Hdaps-devel] Generic interface for accelerometers Dmitry Torokhov
2006-07-05  3:13       ` [Hdaps-devel] Generic interface for accelerometers (AMS, HDAPS, ...) Dmitry Torokhov
2006-07-05  8:00     ` [lm-sensors] [Hdaps-devel] Generic interface for accelerometers Johannes Berg
2006-07-05  8:00       ` [Hdaps-devel] Generic interface for accelerometers (AMS, HDAPS, ...) Johannes Berg
2006-07-05 14:06       ` [lm-sensors] [Hdaps-devel] Generic interface for accelerometers Henrique de Moraes Holschuh
2006-07-05 14:06         ` [Hdaps-devel] Generic interface for accelerometers (AMS, HDAPS, ...) Henrique de Moraes Holschuh
2006-07-04 16:23   ` [lm-sensors] Generic interface for accelerometers (AMS, HDAPS, Henrique de Moraes Holschuh
2006-07-04 16:23     ` Generic interface for accelerometers (AMS, HDAPS, ...) Henrique de Moraes Holschuh
2006-07-04 23:57     ` [lm-sensors] Generic interface for accelerometers (AMS, HDAPS, Pavel Machek
2006-07-04 23:57       ` Generic interface for accelerometers (AMS, HDAPS, ...) Pavel Machek
2006-07-05  7:34       ` [lm-sensors] Generic interface for accelerometers (AMS, HDAPS, Vojtech Pavlik
2006-07-05  7:34         ` Generic interface for accelerometers (AMS, HDAPS, ...) Vojtech Pavlik
2006-07-05 13:58         ` [lm-sensors] Generic interface for accelerometers (AMS, HDAPS, Henrique de Moraes Holschuh
2006-07-05 13:58           ` Generic interface for accelerometers (AMS, HDAPS, ...) Henrique de Moraes Holschuh
2006-07-06  1:12           ` [lm-sensors] Generic interface for accelerometers (AMS, HDAPS, Pavel Machek
2006-07-06  1:12             ` Generic interface for accelerometers (AMS, HDAPS, ...) Pavel Machek
2006-07-05  7:59       ` [lm-sensors] Generic interface for accelerometers (AMS, HDAPS, Jean Delvare
2006-07-05  7:59         ` [lm-sensors] Generic interface for accelerometers (AMS, HDAPS, ...) Jean Delvare
     [not found] <fa.GOQkHC8inXir2wbg4bZayOWXzAY@ifi.uio.no>
     [not found] ` <fa.qLWuLxQd7Mhcnixy/TLVs/nPwig@ifi.uio.no>
2006-07-05 23:59   ` [lm-sensors] Generic interface for accelerometers (AMS, HDAPS, Robert Hancock
2006-07-06  6:19     ` Vojtech Pavlik
2006-07-07  2:46       ` Henrique de Moraes Holschuh
2006-07-07  5:28         ` Robert Hancock
2006-07-07  9:31         ` Vojtech Pavlik
     [not found] <fa.+TBrYxvBPaXCptm9JXDjMT6wk58@ifi.uio.no>
     [not found] ` <fa.KtXXXVDoa0Coj62aBgf3NuqbZMo@ifi.uio.no>
2006-07-07  1:40   ` Robert Hancock

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=20060704075950.GA13073@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=hdaps-devel@lists.sourceforge.net \
    --cc=hmh@debian.org \
    --cc=linux-kernel@hansmi.ch \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm-sensors@lm-sensors.org \
    --cc=stelian@popies.net \
    /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 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.