[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20061114030953.GA5810@khazad-dum.debian.net>
Date: Tue, 14 Nov 2006 01:09:53 -0200
From: Henrique de Moraes Holschuh <hmh@....eng.br>
To: Stelian Pop <stelian@...ies.net>
Cc: Jean Delvare <khali@...ux-fr.org>, Andrew Morton <akpm@...l.org>,
Dmitry Torokhov <dtor_core@...ritech.net>,
Michael Hanselmann <linux-kernel@...smi.ch>,
"Aristeu S. Rozanski F." <aris@...hedrallabs.org>,
Johannes Berg <johannes@...solutions.net>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>,
Robert Love <rml@...ell.com>,
Rene Nussbaumer <linux-kernel@...lerfox.forkbomb.ch>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] Apple Motion Sensor driver
On Mon, 13 Nov 2006, Stelian Pop wrote:
> I do believe that the proper place for ams is the hardware monitoring
> section (even if the missing HD parking APIs makes it not very useful
> right now).
>
> The fact that the accelerometer offers a (low res) joystick emulation is
> only a nice hack and I'm not even sure somebody (except Johannes) will
> find an use for it.
Sort of. Some accelerometers actually act more as input devices than as
monitoring devices. E.g. HDAPS has no intelligence whatsoever about what is
happening (it doesn't to any sort of threshold detection, unlike Apple's
motion sensing stuff), but it can give you reasonable resolution at a
maximum sample rate of 500Hz (I don't recommend getting it to go that fast,
though) for two axis, with configurable running-averaging. Looks a lot more
like a joystick to me than a hardware monitoring sensor.
It's just a matter of PoV, and one can easily make a case for accelerometers
to live in either hwmon or input. As long as they're all in one place :-)
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists