Summary: | hdaps-0.02.ebuild (New Package) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Joshua Megerman <gentoo> |
Component: | New packages | Assignee: | Default Assignee for New Packages <maintainer-wanted> |
Status: | RESOLVED INVALID | ||
Severity: | enhancement | CC: | anton.bugs, gentoo, mobile+disabled, moixa, phuber |
Priority: | High | Keywords: | EBUILD |
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://hdaps.sourceforge.net | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
HDAPS Alpha driver ebuild
latest version (20050914-02) of hdaps ebuild for hdapsd - the daemon for the hdaps driver hdapsd-0.1.tar.bz2 hdapsd-0.1-ebuild.tar.bz2 hdapsd-20060117.tar.bz2 hdapsd-20060207.tar.bz2 |
Description
Joshua Megerman
2005-07-24 17:36:20 UTC
Created attachment 64222 [details]
HDAPS Alpha driver ebuild
hdaps-0.02.ebuild
Created attachment 70018 [details]
latest version (20050914-02) of hdaps
This is the latest version of hdaps that works fine on my T41p with 2.6.13.
Created attachment 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.
Created attachment 72872 [details]
hdapsd-0.1.tar.bz2
Created attachment 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 on attachment 72872 [details]
hdapsd-0.1.tar.bz2
hdapsd source
Get the disk-freeze patches from: http://thinkwiki.org/wiki/HDAPS#Security_.26_Safety hdaps is now part of the mainstream kernel as of 2.6.14 - this ebuild is no longer necessary. Created attachment 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. Created attachment 79112 [details]
hdapsd-20060207.tar.bz2
improved version of hdapsd
* Better handling of diagonal movement: use Pythagoras's theorem
Created attachment 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.
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. Please open a seperate enhancement request for the user space hdapsd daemon. That's bug 119845 then. *** Bug 137338 has been marked as a duplicate of this bug. *** |