First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 100167
Alias:
Product:
Component:
Status: RESOLVED
Resolution: INVALID
Assigned To: Default Assignee for New Packages <maintainer-wanted@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Joshua Megerman <gentoo@honorablemenschen.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
hdaps-0.02.ebuild HDAPS Alpha driver ebuild text/plain Joshua Megerman 2005-07-24 17:38 0000 694 bytes Details
hdaps-20050914.ebuild latest version (20050914-02) of hdaps text/plain Ruben Jenster 2005-10-06 15:36 0000 711 bytes Details
hdapsd.tar.bz2 ebuild for hdapsd - the daemon for the hdaps driver application/x-tbz Ruben Jenster 2005-10-06 17:46 0000 1.78 KB Details
hdapsd-01.tar.bz2 hdapsd-0.1.tar.bz2 application/x-tbz Ruben Jenster 2005-11-14 07:26 0000 1.59 KB Details
hdapsd-0.1-ebuild.tar.bz2 hdapsd-0.1-ebuild.tar.bz2 application/x-tbz Ruben Jenster 2005-11-14 07:30 0000 1.78 KB Details
hdapsd-20060117.tar.bz2 hdapsd-20060117.tar.bz2 application/x-tbz Ruben Jenster 2006-01-18 15:38 0000 3.76 KB Details
hdapsd-20060207.tar.bz2 hdapsd-20060207.tar.bz2 application/x-tbz Ruben Jenster 2006-02-07 05:25 0000 5.22 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 100167 depends on: Show dependency tree
Bug 100167 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-07-24 17:36 0000
Hi,

I'm attaching an ebuild for the IBM HDAPS driver currently in development at
http://hdaps.sourceforge.net, which is used to enable monitoring of the "IBM
Hard Drive Active Protection System" sensor, conmmonly refered to as a "Hard
Drive Airbag".  The driver is still very young, but it's proving useful for
those of us with newer IBM Thinkpads and a yen for the bleeding edge.

I suggest putting it into app-laptop where the other Thinkpad-specific drivers
reside.  My thanks to Henrik Brix Andersen, who took my first attempt and
writing an ebuild from scratch and turned it into something useful.

Thanks,

Josh

------- Comment #1 From Joshua Megerman 2005-07-24 17:38:13 0000 -------
Created an attachment (id=64222) [details]
HDAPS Alpha driver ebuild

hdaps-0.02.ebuild

------- Comment #2 From Ruben Jenster 2005-10-06 15:36:44 0000 -------
Created an attachment (id=70018) [details]
latest version of hdaps

This is the latest version of hdaps that works fine on my T41p with 2.6.13. 

------- Comment #3 From Ruben Jenster 2005-10-06 17:46:21 0000 -------
Created an attachment (id=70029) [details]
ebuild for hdapsd - the daemon for the hdaps driver

The hdaps daemon together with the disk-freeze patch that can be found at
the hdaps-devel mailinglist actually makes use out of the hdaps driver.
The hdaps daemon can park the hard disk in case the laptop is shaken.

I additionally wrote an initscript for hdapsd. In the configuration file for
the initscript you can set a threshold for hdapsd. The lower the threshold is
the earlier the heads of the disk get parkek.


Steps:

1. Patch your kernel with the disk-freeze patch.
2. Install the hdaps kernel driver
3. Extract hdapsd.tar.bz2 into the category "app-laptop" to your overlay unmask
hdapsd and emerge it.


description of the disk-freeze patch (taken from the hdaps-devel mailinglist):

I would like to submit the latest disk protection (a.k.a. parking and 
freezing) code from the hdaps-devel side for comment, along with a brief 
overview of what's in the patch -

During initialisation, disk drivers with 'protect' helper functions 
(currently ide and libata) fill in two new function pointers in the 
queue structure. A sysfs 'protect' queue attribute is then created in 
the block layer for devices who's lower level drivers have registered 
these helpers.

When a value (in seconds) is written to the protect attribute, the block 
layer code calls the driver 'protect' helper function. This helper 
parks/suspends the disk, and then stops the queue. Control then returns 
to the block layer which re-uses the plugging timer to set an automatic 
timeout to restart the queue. When 0 is written to the protect 
attribute, or the timer expires, the queue is restarted using the 
'unprotect' helper function, and the plugging timer is restored.

This interface is intended to be used by a daemon process, that monitors 
the hdaps driver output for excessive changes in acceleration, and keeps 
the device parked and the queue stopped until the values become normal.

Patch applies to 2.6.14-rc3 (also 2.6.13.x), and requires libata_passthru..

Regards,
Jon.

------- Comment #4 From Ruben Jenster 2005-11-14 07:26:57 0000 -------
Created an attachment (id=72872) [details]
hdapsd source

------- Comment #5 From Ruben Jenster 2005-11-14 07:30:53 0000 -------
Created an attachment (id=72873) [details]
hdapsd-0.1-ebuild.tar.bz2

Updated digest file of ebuild. Extract package to the category app-laptop of
your portage overlay.

------- Comment #6 From Ruben Jenster 2005-11-14 07:31:26 0000 -------
(From update of attachment 72872 [details])
hdapsd source

------- Comment #7 From Ruben Jenster 2006-01-11 20:08:52 0000 -------
Get the disk-freeze patches from:

http://thinkwiki.org/wiki/HDAPS#Security_.26_Safety

------- Comment #8 From Joshua Megerman 2006-01-12 06:12:04 0000 -------
hdaps is now part of the mainstream kernel as of 2.6.14 - this ebuild is no
longer necessary.

------- Comment #9 From Ruben Jenster 2006-01-18 15:38:50 0000 -------
Created an attachment (id=77468) [details]
hdapsd-20060117.tar.bz2

Updated daemon from http://www.dresco.co.uk/hdaps and adjusted initscript.
Just extract the package to your ${PORTDIR_OVERLAY}/app-laptop and emerge
hdapsd.

------- Comment #10 From Ruben Jenster 2006-02-07 05:25:30 0000 -------
Created an attachment (id=79112) [details]
hdapsd-20060207.tar.bz2

improved version of hdapsd

* Better handling of diagonal movement: use Pythagoras's theorem

------- Comment #11 From Ruben Jenster 2006-02-07 05:25:30 0000 -------
Created an attachment (id=79112) [details]
hdapsd-20060207.tar.bz2

improved version of hdapsd

* Better handling of diagonal movement: use Pythagoras's theorem
  when comparing to threshold.
* The kernel patch already handles unfreeze timeout, so rely on it
  instead of duplicating that functionality (simplifies the code).
* Constify some numbers, and increase sampling frequency from 10Hz to
  50Hz (IBM says typical laptop falling time is just 200ms, and there's a
  unloading latency)
* Rename sanity_check() to read_protect(), add error checking.

------- Comment #12 From Tobias Sager 2006-02-07 08:44:52 0000 -------
This bug should be reopened (and renamed).
This is about hdapsd, a daemon reacting to the disk behaviour, not hdaps
reading support (which is in the kernel).

Ruben, do you know which patch exactly should be used on the a 2.6.15? Is there
still a neccessity for patching it? Maybe we should get that patch in
gentoo-sources then.

------- Comment #13 From Henrik Brix Andersen 2006-02-07 09:02:35 0000 -------
Please open a seperate enhancement request for the user space hdapsd daemon.

------- Comment #14 From Tobias Sager 2006-02-07 09:23:49 0000 -------
That's bug 119845 then.

------- Comment #15 From Jakub Moc (RETIRED) 2006-06-20 00:42:39 0000 -------
*** Bug 137338 has been marked as a duplicate of this bug. ***

First Last Prev Next    No search results available      Search page      Enter new bug