Coder Social home page Coder Social logo

zdzichu / hdapsd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from linux-thinkpad/hdapsd

1.0 1.0 0.0 195 KB

HDAPS daemon for IBM/Lenovo ThinkPads

Home Page: http://hdaps.sf.net

License: GNU General Public License v2.0

Shell 0.49% C 99.51%

hdapsd's Introduction

hdapsd - Hard Drive Active Protection System Daemon
===================================================

This is a disk protection user-space daemon. It monitors the acceleration
values through the various motion interfaces and automatically initiates
disk head parking if a fall or sliding of the laptop is detected.

Currently, the following motion interfaces are supported:
 * HDAPS on IBM/Lenovo ThinkPads
 * AMS on Apple iBooks and PowerBooks (G4)
 * HP3D on Hewlett-Packard laptops
 * APPLESMC on Apple MacBooks and MacBooks Pro (Intel) (UNTESTED!)

1. Compilation
--------------
./configure
make
make install

2. Usage
--------
hdapsd (it will try to autodetect everything itself)
for more options, please read man hdapsd

3. Compatibility
----------------
Since kernel 2.6.28 you don't need to patch your kernel, as support for
IDLE_IMMEDIATE is present in mainline.
 NOTE: The new interface only allows IDLE_IMMEDIATE for drives that
       announce to be ATA-7 conform. But threre are also drives that
       support ATA-6 only but do IDLE_IMMEDIATE fine. For those you
       need to force the interface with:
       echo -1 > /sys/block/$DISK/device/unload_heads
   OR: Call hdapsd like this: hdapsd -f -d $DISK

For kernels <2.6.28, please have a look at
http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch
and patch your kernel with the appropriate patch before using hdapsd.

4. mainline hdaps module vs tp_smapi (ThinkPad only)
----------------------------------------------------
The mainline hdaps module present in Linux kernels does not support all
hdaps-enabled ThinkPads, thus it is recommended to use the one provided
by tp_smapi.
Additionally the tp_smapi version provides a input interface to the data,
which stops hdapsd from polling the data itself all the time, saving your
battery.

hdapsd's People

Contributors

evgeni avatar t-8ch avatar unbrice avatar zdzichu avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.