Re: IBM HDAPS things are looking up (was: Re: [Hdaps-devel] Re: [ltp] IBM HDAPS Someone interested? (Accelerometer))

Lenz Grimmer
2005-07-04T10:31:52Z

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jens,

thanks for your quick reply!

Jens Axboe wrote:

> Dunno if there's something that explicitly only parks the head, the
> best option is probably to issue a STANDBY_NOW command. You can test
> this with hdparm -y.

Thanks for the hint! As others already mentioned, STANDBY_NOW may not be
the best option in this case - we shall investigate what the IBM Windows
driver is using here.

> Generel observation on this driver - why isn't it just contained in
> user space? You need to do the monitoring and sending of ide commands
> from there anyways, I don't see the point of putting it in the
> kernel.

Sorry, my comments may have been misleading - I agree that this should
be better done in userspace.

The kernel module just reads out the accelerometer, a user space app
could then interpret the values and take appropriate action (e.g.
parking the hdd head). This allows other apps to make use of these
acceleratometer values as well (think SDL for games).

Bye,
LenZ
- --
- ------------------------------------------------------------------
Lenz Grimmer <lenz@grimmer.com> -o)
[ICQ: 160767607 | Jabber: LenZGr@jabber.org] /\\
http://www.lenzg.org/ V_V
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCyQ9XSVDhKrJykfIRAktdAJ9eltvz0sjTfKT7oVgqikGFEYJwHQCfdr7n
b7M02yR0n2UrUFLL03xA804=
=MHtj
-----END PGP SIGNATURE-----