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

2005-07-08 Thread Shawn Starr
It should be noted im using linux-2.6.git. --- Jens Axboe <[EMAIL PROTECTED]> wrote: > On Fri, Jul 08 2005, Jon Escombe wrote: > > Jens Axboe wrote: > > > > >On Thu, Jul 07 2005, Shawn Starr wrote: > > > > > > > > >>Model: HTS548080M9AT00 (Hitachi) > > >>Laptop: T42. > > >> > >

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

2005-07-08 Thread Vojtech Pavlik
On Fri, Jul 08, 2005 at 02:56:08AM +0200, Bodo Eggert wrote: > Clemens Koller <[EMAIL PROTECTED]> wrote: > > > Well, sure, it's not a notebook HDD, but maybe it's possible > > to give headpark a more generic way to get the heads parked? > > I remember my old MFM HDD, which had a Landing Zone

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

2005-07-08 Thread Jens Axboe
On Fri, Jul 08 2005, Jon Escombe wrote: > Jens Axboe wrote: > > >On Thu, Jul 07 2005, Shawn Starr wrote: > > > > > >>Model: HTS548080M9AT00 (Hitachi) > >>Laptop: T42. > >> > >>segfault:/home/spstarr# ./a /dev/hda > >>head parked > >> > >>Seems to park, heard it click :) > >> > >> > > > >Note

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

2005-07-08 Thread Jens Axboe
On Fri, Jul 08 2005, Bodo Eggert wrote: > Clemens Koller <[EMAIL PROTECTED]> wrote: > > > Well, sure, it's not a notebook HDD, but maybe it's possible > > to give headpark a more generic way to get the heads parked? > > I remember my old MFM HDD, which had a Landing Zone stored in the BIOS to >

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

2005-07-08 Thread Jens Axboe
On Fri, Jul 08 2005, Bodo Eggert wrote: Clemens Koller [EMAIL PROTECTED] wrote: Well, sure, it's not a notebook HDD, but maybe it's possible to give headpark a more generic way to get the heads parked? I remember my old MFM HDD, which had a Landing Zone stored in the BIOS to which the

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

2005-07-08 Thread Jens Axboe
On Fri, Jul 08 2005, Jon Escombe wrote: Jens Axboe wrote: On Thu, Jul 07 2005, Shawn Starr wrote: Model: HTS548080M9AT00 (Hitachi) Laptop: T42. segfault:/home/spstarr# ./a /dev/hda head parked Seems to park, heard it click :) Note on that - if the util says it parked,

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

2005-07-08 Thread Vojtech Pavlik
On Fri, Jul 08, 2005 at 02:56:08AM +0200, Bodo Eggert wrote: Clemens Koller [EMAIL PROTECTED] wrote: Well, sure, it's not a notebook HDD, but maybe it's possible to give headpark a more generic way to get the heads parked? I remember my old MFM HDD, which had a Landing Zone stored in

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

2005-07-08 Thread Shawn Starr
It should be noted im using linux-2.6.git. --- Jens Axboe [EMAIL PROTECTED] wrote: On Fri, Jul 08 2005, Jon Escombe wrote: Jens Axboe wrote: On Thu, Jul 07 2005, Shawn Starr wrote: Model: HTS548080M9AT00 (Hitachi) Laptop: T42. segfault:/home/spstarr# ./a /dev/hda head

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

2005-07-07 Thread Bodo Eggert
Clemens Koller <[EMAIL PROTECTED]> wrote: > Well, sure, it's not a notebook HDD, but maybe it's possible > to give headpark a more generic way to get the heads parked? I remember my old MFM HDD, which had a Landing Zone stored in the BIOS to which the park command would seek. Maybe you could do

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

2005-07-07 Thread Alejandro Bonilla
Jon Escombe wrote: Jens Axboe wrote: Note on that - if the util says it parked, you can be very sure that it actually did as the drive actually returns that status outside of just completing the command. It's worth noting that you'll need the libata passthrough patch to make this work on

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

2005-07-07 Thread Jon Escombe
Jens Axboe wrote: On Thu, Jul 07 2005, Shawn Starr wrote: Model: HTS548080M9AT00 (Hitachi) Laptop: T42. segfault:/home/spstarr# ./a /dev/hda head parked Seems to park, heard it click :) Note on that - if the util says it parked, you can be very sure that it actually did as the

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

2005-07-07 Thread Jens Axboe
On Thu, Jul 07 2005, Matthew Garrett wrote: > Jens Axboe <[EMAIL PROTECTED]> wrote: > > > What is needed is to flesh out what the kernel interface should looke > > like. I suggested a sysfs file for suspending and resuming access to the > > device, if people have other ideas they should voice

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

2005-07-07 Thread Folkert van Heusden
Doesn't park here: ehm:/home/folkert# ./park /dev/hda head not parked 4c ehm:/home/folkert# hdparm -i /dev/hda /dev/hda: Model=IC25N060ATMR04-0, FwRev=MO3OAD5A, SerialNo=MRG357K3KKN0XH Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs } RawCHS=16383/16/63, TrkSize=0, SectSize=0,

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

2005-07-07 Thread Jens Axboe
On Thu, Jul 07 2005, Dave Hansen wrote: > On Thu, 2005-07-07 at 19:27 +0200, Jens Axboe wrote: > > On Thu, Jul 07 2005, Clemens Koller wrote: > > > Well, sure, it's not a notebook HDD, but maybe it's possible > > > to give headpark a more generic way to get the heads parked? > > > > This _is_ the

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

2005-07-07 Thread Dave Hansen
On Thu, 2005-07-07 at 14:01 -0400, Lee Revell wrote: > On Thu, 2005-07-07 at 10:38 -0700, Dave Hansen wrote: > > On Thu, 2005-07-07 at 19:27 +0200, Jens Axboe wrote: > > > This _is_ the generic way, if your drive doesn't support it you are out > > > of luck. > > > > I do wonder what is done in

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

2005-07-07 Thread Lee Revell
On Thu, 2005-07-07 at 10:38 -0700, Dave Hansen wrote: > On Thu, 2005-07-07 at 19:27 +0200, Jens Axboe wrote: > > On Thu, Jul 07 2005, Clemens Koller wrote: > > > Well, sure, it's not a notebook HDD, but maybe it's possible > > > to give headpark a more generic way to get the heads parked? > > > >

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

2005-07-07 Thread Matthew Garrett
Jens Axboe <[EMAIL PROTECTED]> wrote: > What is needed is to flesh out what the kernel interface should looke > like. I suggested a sysfs file for suspending and resuming access to the > device, if people have other ideas they should voice them. That sounds quite reasonable. Does it need to do

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

2005-07-07 Thread Jens Axboe
On Thu, Jul 07 2005, Alejandro Bonilla wrote: > > > Hello, > > > > Just for the records > > - > > [EMAIL PROTECTED]:~$ ./headpark /dev/hda > > head not parked 4c > > - > > > > HDD is a desktop Maxtor Diamond MaxPlus 9 120GB > > on a Promise Ultra133 TX2 IDE Controller. > > > > Well,

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

2005-07-07 Thread Jens Axboe
On Thu, Jul 07 2005, Clemens Koller wrote: > Hello, > > Just for the records > - > [EMAIL PROTECTED]:~$ ./headpark /dev/hda > head not parked 4c > - > > HDD is a desktop Maxtor Diamond MaxPlus 9 120GB > on a Promise Ultra133 TX2 IDE Controller. > > Well, sure, it's not a notebook

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

2005-07-07 Thread Alejandro Bonilla
> Hello, > > Just for the records > - > [EMAIL PROTECTED]:~$ ./headpark /dev/hda > head not parked 4c > - > > HDD is a desktop Maxtor Diamond MaxPlus 9 120GB > on a Promise Ultra133 TX2 IDE Controller. > > Well, sure, it's not a notebook HDD, but maybe it's possible > to give headpark

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

2005-07-07 Thread Clemens Koller
Hello, Just for the records - [EMAIL PROTECTED]:~$ ./headpark /dev/hda head not parked 4c - HDD is a desktop Maxtor Diamond MaxPlus 9 120GB on a Promise Ultra133 TX2 IDE Controller. Well, sure, it's not a notebook HDD, but maybe it's possible to give headpark a more generic way to

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

2005-07-07 Thread Jens Axboe
On Thu, Jul 07 2005, Alejandro Bonilla wrote: > Jens, > > Thanks for this util. :-) It will make things easier for us and do part > of > the Job we are looking for. I will post this script in the hdaps.sf.net for > people if it's ok with you. Knock yourself out, I have no interest in

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

2005-07-07 Thread Jens Axboe
On Thu, Jul 07 2005, Shawn Starr wrote: > > Model: HTS548080M9AT00 (Hitachi) > Laptop: T42. > > segfault:/home/spstarr# ./a /dev/hda > head parked > > Seems to park, heard it click :) Note on that - if the util says it parked, you can be very sure that it actually did as the drive actually

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

2005-07-07 Thread Shawn Starr
Model: HTS548080M9AT00 (Hitachi) Laptop: T42. segfault:/home/spstarr# ./a /dev/hda head parked Seems to park, heard it click :) Shawn. On July 7, 2005 04:03, Jens Axboe wrote: > On Mon, Jul 04 2005, Jens Axboe wrote: > > On Mon, Jul 04 2005, Lenz Grimmer wrote: > > > -BEGIN PGP SIGNED

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

2005-07-07 Thread Alejandro Bonilla
Jens, Thanks for this util. :-) It will make things easier for us and do part of the Job we are looking for. I will post this script in the hdaps.sf.net for people if it's ok with you. Thanks again, .Alejandro > > #include > > #include > > #include > > #include > > #include > >

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

2005-07-07 Thread Shawn Starr
Model: HTS548080M9AT00 (Hitachi) Laptop: T42. segfault:/home/spstarr# ./a /dev/hda head parked Seems to park, heard it click :) Shawn. On July 7, 2005 04:03, Jens Axboe wrote: > On Mon, Jul 04 2005, Jens Axboe wrote: > > On Mon, Jul 04 2005, Lenz Grimmer wrote: > > > -BEGIN PGP SIGNED

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

2005-07-07 Thread Jens Axboe
On Mon, Jul 04 2005, Jens Axboe wrote: > On Mon, Jul 04 2005, Lenz Grimmer wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Hi, > > > > Jens Axboe wrote: > > > > > It isn't too pretty to rely on such unreliable timing anyways. I'm > > > not too crazy about spinning the disk

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

2005-07-07 Thread Jens Axboe
On Mon, Jul 04 2005, Jens Axboe wrote: On Mon, Jul 04 2005, Lenz Grimmer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Jens Axboe wrote: It isn't too pretty to rely on such unreliable timing anyways. I'm not too crazy about spinning the disk down either, it's

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

2005-07-07 Thread Shawn Starr
Model: HTS548080M9AT00 (Hitachi) Laptop: T42. segfault:/home/spstarr# ./a /dev/hda head parked Seems to park, heard it click :) Shawn. On July 7, 2005 04:03, Jens Axboe wrote: On Mon, Jul 04 2005, Jens Axboe wrote: On Mon, Jul 04 2005, Lenz Grimmer wrote: -BEGIN PGP SIGNED

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

2005-07-07 Thread Alejandro Bonilla
Jens, Thanks for this util. :-) It will make things easier for us and do part of the Job we are looking for. I will post this script in the hdaps.sf.net for people if it's ok with you. Thanks again, .Alejandro #include stdio.h #include unistd.h #include fcntl.h #include

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

2005-07-07 Thread Shawn Starr
Model: HTS548080M9AT00 (Hitachi) Laptop: T42. segfault:/home/spstarr# ./a /dev/hda head parked Seems to park, heard it click :) Shawn. On July 7, 2005 04:03, Jens Axboe wrote: On Mon, Jul 04 2005, Jens Axboe wrote: On Mon, Jul 04 2005, Lenz Grimmer wrote: -BEGIN PGP SIGNED

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

2005-07-07 Thread Jens Axboe
On Thu, Jul 07 2005, Shawn Starr wrote: Model: HTS548080M9AT00 (Hitachi) Laptop: T42. segfault:/home/spstarr# ./a /dev/hda head parked Seems to park, heard it click :) Note on that - if the util says it parked, you can be very sure that it actually did as the drive actually returns

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

2005-07-07 Thread Jens Axboe
On Thu, Jul 07 2005, Alejandro Bonilla wrote: Jens, Thanks for this util. :-) It will make things easier for us and do part of the Job we are looking for. I will post this script in the hdaps.sf.net for people if it's ok with you. Knock yourself out, I have no interest in this

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

2005-07-07 Thread Clemens Koller
Hello, Just for the records - [EMAIL PROTECTED]:~$ ./headpark /dev/hda head not parked 4c - HDD is a desktop Maxtor Diamond MaxPlus 9 120GB on a Promise Ultra133 TX2 IDE Controller. Well, sure, it's not a notebook HDD, but maybe it's possible to give headpark a more generic way to

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

2005-07-07 Thread Alejandro Bonilla
Hello, Just for the records - [EMAIL PROTECTED]:~$ ./headpark /dev/hda head not parked 4c - HDD is a desktop Maxtor Diamond MaxPlus 9 120GB on a Promise Ultra133 TX2 IDE Controller. Well, sure, it's not a notebook HDD, but maybe it's possible to give headpark a more

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

2005-07-07 Thread Jens Axboe
On Thu, Jul 07 2005, Clemens Koller wrote: Hello, Just for the records - [EMAIL PROTECTED]:~$ ./headpark /dev/hda head not parked 4c - HDD is a desktop Maxtor Diamond MaxPlus 9 120GB on a Promise Ultra133 TX2 IDE Controller. Well, sure, it's not a notebook HDD, but maybe

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

2005-07-07 Thread Jens Axboe
On Thu, Jul 07 2005, Alejandro Bonilla wrote: Hello, Just for the records - [EMAIL PROTECTED]:~$ ./headpark /dev/hda head not parked 4c - HDD is a desktop Maxtor Diamond MaxPlus 9 120GB on a Promise Ultra133 TX2 IDE Controller. Well, sure, it's not a notebook

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

2005-07-07 Thread Matthew Garrett
Jens Axboe [EMAIL PROTECTED] wrote: What is needed is to flesh out what the kernel interface should looke like. I suggested a sysfs file for suspending and resuming access to the device, if people have other ideas they should voice them. That sounds quite reasonable. Does it need to do

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

2005-07-07 Thread Lee Revell
On Thu, 2005-07-07 at 10:38 -0700, Dave Hansen wrote: On Thu, 2005-07-07 at 19:27 +0200, Jens Axboe wrote: On Thu, Jul 07 2005, Clemens Koller wrote: Well, sure, it's not a notebook HDD, but maybe it's possible to give headpark a more generic way to get the heads parked? This _is_

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

2005-07-07 Thread Dave Hansen
On Thu, 2005-07-07 at 14:01 -0400, Lee Revell wrote: On Thu, 2005-07-07 at 10:38 -0700, Dave Hansen wrote: On Thu, 2005-07-07 at 19:27 +0200, Jens Axboe wrote: This _is_ the generic way, if your drive doesn't support it you are out of luck. I do wonder what is done in Windows,

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

2005-07-07 Thread Jens Axboe
On Thu, Jul 07 2005, Dave Hansen wrote: On Thu, 2005-07-07 at 19:27 +0200, Jens Axboe wrote: On Thu, Jul 07 2005, Clemens Koller wrote: Well, sure, it's not a notebook HDD, but maybe it's possible to give headpark a more generic way to get the heads parked? This _is_ the generic way,

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

2005-07-07 Thread Folkert van Heusden
Doesn't park here: ehm:/home/folkert# ./park /dev/hda head not parked 4c ehm:/home/folkert# hdparm -i /dev/hda /dev/hda: Model=IC25N060ATMR04-0, FwRev=MO3OAD5A, SerialNo=MRG357K3KKN0XH Config={ HardSect NotMFM HdSw15uSec Fixed DTR10Mbs } RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4

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

2005-07-07 Thread Jens Axboe
On Thu, Jul 07 2005, Matthew Garrett wrote: Jens Axboe [EMAIL PROTECTED] wrote: What is needed is to flesh out what the kernel interface should looke like. I suggested a sysfs file for suspending and resuming access to the device, if people have other ideas they should voice them. That

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

2005-07-07 Thread Jon Escombe
Jens Axboe wrote: On Thu, Jul 07 2005, Shawn Starr wrote: Model: HTS548080M9AT00 (Hitachi) Laptop: T42. segfault:/home/spstarr# ./a /dev/hda head parked Seems to park, heard it click :) Note on that - if the util says it parked, you can be very sure that it actually did as the

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

2005-07-07 Thread Alejandro Bonilla
Jon Escombe wrote: Jens Axboe wrote: Note on that - if the util says it parked, you can be very sure that it actually did as the drive actually returns that status outside of just completing the command. It's worth noting that you'll need the libata passthrough patch to make this work on

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

2005-07-07 Thread Bodo Eggert
Clemens Koller [EMAIL PROTECTED] wrote: Well, sure, it's not a notebook HDD, but maybe it's possible to give headpark a more generic way to get the heads parked? I remember my old MFM HDD, which had a Landing Zone stored in the BIOS to which the park command would seek. Maybe you could do

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

2005-07-05 Thread Sander
Alejandro Bonilla wrote (ao): > If you check the IBM software in Windows, it shows 2 things. > First, when it pauses the HD and when it stops the HD. It all > depends on how hard you hit the PC. In one we suspend the drive > and in the other we park the drive. This is not

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

2005-07-05 Thread Alejandro Bonilla
> Alejandro Bonilla wrote (ao): > > If you check the IBM software in Windows, it shows 2 things. > > First, when it pauses the HD and when it stops the HD. It all > > depends on how hard you hit the PC. In one we suspend the drive > > and in the other we park the drive. > > This is

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

2005-07-05 Thread Lee Revell
On Tue, 2005-07-05 at 06:29 -0600, Alejandro Bonilla wrote: > .Alejandro > (removing some people so they don't get triplicated emails) Please don't trim cc: lists! We *want* the duplicate emails, so that one goes in the Inbox and one in the LKML folder. See the list archives for more reasons

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

2005-07-05 Thread Alejandro Bonilla
> > As Lenz already suggested, you both pretty much seem to be describing > laptop mode. See the documentation. > > -- > Jens Axboe > Jens, Yes, I know about laptop_mode, I always use it, but HD APS does not automatically starts laptop_mode currently. That's why I was spitting out that

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

2005-07-05 Thread Jens Axboe
On Mon, Jul 04 2005, Alejandro Bonilla wrote: > Pavel Machek wrote: > > > > >Actually, "spin disk down and keep it down" would be nice for other > >reasons. Taking computer for a jog playing mp3s from ramdisk is > >something I'd like to do... > > Pavel > > > > > This

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

2005-07-05 Thread Jens Axboe
On Mon, Jul 04 2005, Alejandro Bonilla wrote: Pavel Machek wrote: Actually, spin disk down and keep it down would be nice for other reasons. Taking computer for a jog playing mp3s from ramdisk is something I'd like to do... Pavel This is exactly what I

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

2005-07-05 Thread Alejandro Bonilla
As Lenz already suggested, you both pretty much seem to be describing laptop mode. See the documentation. -- Jens Axboe Jens, Yes, I know about laptop_mode, I always use it, but HD APS does not automatically starts laptop_mode currently. That's why I was spitting out that it could

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

2005-07-05 Thread Lee Revell
On Tue, 2005-07-05 at 06:29 -0600, Alejandro Bonilla wrote: .Alejandro (removing some people so they don't get triplicated emails) Please don't trim cc: lists! We *want* the duplicate emails, so that one goes in the Inbox and one in the LKML folder. See the list archives for more reasons why

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

2005-07-05 Thread Alejandro Bonilla
Alejandro Bonilla wrote (ao): If you check the IBM software in Windows, it shows 2 things. First, when it pauses the HD and when it stops the HD. It all depends on how hard you hit the PC. In one we suspend the drive and in the other we park the drive. This is not true.

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

2005-07-05 Thread Sander
Alejandro Bonilla wrote (ao): If you check the IBM software in Windows, it shows 2 things. First, when it pauses the HD and when it stops the HD. It all depends on how hard you hit the PC. In one we suspend the drive and in the other we park the drive. This is not

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

2005-07-04 Thread Alejandro Bonilla
Pavel Machek wrote: Actually, "spin disk down and keep it down" would be nice for other reasons. Taking computer for a jog playing mp3s from ramdisk is something I'd like to do... Pavel This is exactly what I wanted to do. hdparm suspend which would send

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

2005-07-04 Thread Pavel Machek
Hi! > > > > This is exactly what I said. Use hdparm to make the HD park > > > > inmediatelly. I did send the email to the HDPARM developer, but he > > > > never > > > > replied. I asked him what would be the best way to make the HD park > > > > with > > > > no exception and then let it come

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

2005-07-04 Thread Pavel Machek
Hi! > > BTW, we are on irc.freenode.org in #hdaps If anyone is interested. > > > > .Alejandro > > > I just had a nice chat with the guys there and we got some > improvements made by them and us merged up. And I /think/ we agreed > that I'll maintain the driver, merge fixes/features etc and

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

2005-07-04 Thread Lenz Grimmer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Aaron Cohen wrote: > Can't the accelerometer be used as an input device in addition to just > being a "about to fall detector?" Yes, it can - the kernel driver just prints the data taken from the accelerometer. It's up to another application to

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

2005-07-04 Thread Aaron Cohen
On 7/4/05, Jens Axboe <[EMAIL PROTECTED]> wrote: > 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. > Can't the accelerometer be

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

2005-07-04 Thread Jens Axboe
(don't top post!) On Mon, Jul 04 2005, Shawn Starr wrote: > > We could put it in userspace, but if the system is > swapping like mad, can we still get a critical > response if this remains in userspace fully? Just make sure the program isn't swapped out. > Someone mentioned we should use a

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

2005-07-04 Thread Shawn Starr
We could put it in userspace, but if the system is swapping like mad, can we still get a critical response if this remains in userspace fully? Someone mentioned we should use a kernel thread(s) to handle stopping all I/O so we can safely park heads. Shawn. --- Jens Axboe <[EMAIL PROTECTED]>

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

2005-07-04 Thread Jens Axboe
On Mon, Jul 04 2005, Lenz Grimmer wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > Jens Axboe wrote: > > > It isn't too pretty to rely on such unreliable timing anyways. I'm > > not too crazy about spinning the disk down either, it's useless wear > > compared to just

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

2005-07-04 Thread Jesper Juhl
On 7/4/05, Pekka Enberg <[EMAIL PROTECTED]> wrote: > Hi Jesper, > > On 7/4/05, Jesper Juhl <[EMAIL PROTECTED]> wrote: > > static int > > ibm_hdaps_open(struct inode *inode, struct file *filp) > > { > > printk("%s() start\n", __func__); > > if (!atomic_dec_and_test(_hdaps_available)) {

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

2005-07-04 Thread Pekka Enberg
Hi Jesper, On 7/4/05, Jesper Juhl <[EMAIL PROTECTED]> wrote: > static int > ibm_hdaps_open(struct inode *inode, struct file *filp) > { > printk("%s() start\n", __func__); > if (!atomic_dec_and_test(_hdaps_available)) { > printk("%s() busy\n", __func__); >

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

2005-07-04 Thread Lenz Grimmer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Jens Axboe wrote: > It isn't too pretty to rely on such unreliable timing anyways. I'm > not too crazy about spinning the disk down either, it's useless wear > compared to just parking the head. Fully agreed, and that's the approach the IBM

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

2005-07-04 Thread Lenz Grimmer
-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

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

2005-07-04 Thread Andrey Panin
On 185, 07 04, 2005 at 08:00:12AM +0200, Lenz Grimmer wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi Jesper, > > Jesper Juhl wrote: > > > I just had a nice chat with the guys there and we got some > > improvements made by them and us merged up. And I /think/ we agreed > > that

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

2005-07-04 Thread Jens Axboe
On Mon, Jul 04 2005, Arjan van de Ven wrote: > > > > > Yeah, that likely needs a little help from the ide driver. If you force > > a spindown, you will effectively have parked the head for as long as the > > spindown + spinup takes. That could turn out to be enough, it will take > > more than

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

2005-07-04 Thread Arjan van de Ven
> > Yeah, that likely needs a little help from the ide driver. If you force > a spindown, you will effectively have parked the head for as long as the > spindown + spinup takes. That could turn out to be enough, it will take > more than 1-2 seconds anyways. I doubt it; laptop disks seem to be

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

2005-07-04 Thread Arjan van de Ven
Yeah, that likely needs a little help from the ide driver. If you force a spindown, you will effectively have parked the head for as long as the spindown + spinup takes. That could turn out to be enough, it will take more than 1-2 seconds anyways. I doubt it; laptop disks seem to be

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

2005-07-04 Thread Jens Axboe
On Mon, Jul 04 2005, Arjan van de Ven wrote: Yeah, that likely needs a little help from the ide driver. If you force a spindown, you will effectively have parked the head for as long as the spindown + spinup takes. That could turn out to be enough, it will take more than 1-2 seconds

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

2005-07-04 Thread Andrey Panin
On 185, 07 04, 2005 at 08:00:12AM +0200, Lenz Grimmer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Jesper, Jesper Juhl wrote: I just had a nice chat with the guys there and we got some improvements made by them and us merged up. And I /think/ we agreed that I'll maintain

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

2005-07-04 Thread Lenz Grimmer
-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

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

2005-07-04 Thread Lenz Grimmer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Jens Axboe wrote: It isn't too pretty to rely on such unreliable timing anyways. I'm not too crazy about spinning the disk down either, it's useless wear compared to just parking the head. Fully agreed, and that's the approach the IBM

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

2005-07-04 Thread Pekka Enberg
Hi Jesper, On 7/4/05, Jesper Juhl [EMAIL PROTECTED] wrote: static int ibm_hdaps_open(struct inode *inode, struct file *filp) { printk(%s() start\n, __func__); if (!atomic_dec_and_test(ibm_hdaps_available)) { printk(%s() busy\n, __func__);

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

2005-07-04 Thread Jens Axboe
On Mon, Jul 04 2005, Lenz Grimmer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Jens Axboe wrote: It isn't too pretty to rely on such unreliable timing anyways. I'm not too crazy about spinning the disk down either, it's useless wear compared to just parking the head.

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

2005-07-04 Thread Jesper Juhl
On 7/4/05, Pekka Enberg [EMAIL PROTECTED] wrote: Hi Jesper, On 7/4/05, Jesper Juhl [EMAIL PROTECTED] wrote: static int ibm_hdaps_open(struct inode *inode, struct file *filp) { printk(%s() start\n, __func__); if (!atomic_dec_and_test(ibm_hdaps_available)) {

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

2005-07-04 Thread Shawn Starr
We could put it in userspace, but if the system is swapping like mad, can we still get a critical response if this remains in userspace fully? Someone mentioned we should use a kernel thread(s) to handle stopping all I/O so we can safely park heads. Shawn. --- Jens Axboe [EMAIL PROTECTED]

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

2005-07-04 Thread Jens Axboe
(don't top post!) On Mon, Jul 04 2005, Shawn Starr wrote: We could put it in userspace, but if the system is swapping like mad, can we still get a critical response if this remains in userspace fully? Just make sure the program isn't swapped out. Someone mentioned we should use a kernel

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

2005-07-04 Thread Aaron Cohen
On 7/4/05, Jens Axboe [EMAIL PROTECTED] wrote: 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. Can't the accelerometer be used as

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

2005-07-04 Thread Lenz Grimmer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Aaron Cohen wrote: Can't the accelerometer be used as an input device in addition to just being a about to fall detector? Yes, it can - the kernel driver just prints the data taken from the accelerometer. It's up to another application to

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

2005-07-04 Thread Pavel Machek
Hi! This is exactly what I said. Use hdparm to make the HD park inmediatelly. I did send the email to the HDPARM developer, but he never replied. I asked him what would be the best way to make the HD park with no exception and then let it come back 5 or 10 seconds

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

2005-07-04 Thread Pavel Machek
Hi! BTW, we are on irc.freenode.org in #hdaps If anyone is interested. .Alejandro I just had a nice chat with the guys there and we got some improvements made by them and us merged up. And I /think/ we agreed that I'll maintain the driver, merge fixes/features etc and eventually try

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

2005-07-04 Thread Alejandro Bonilla
Pavel Machek wrote: Actually, spin disk down and keep it down would be nice for other reasons. Taking computer for a jog playing mp3s from ramdisk is something I'd like to do... Pavel This is exactly what I wanted to do. hdparm suspend which would send