|
|
wmhdaps
| Category: |
General / Others |
|
|
| Maintainer: |
phg |
| Description: |
The goal of wmhdaps is to provide a tool
for configuration of the Harddisk Active Protection System (HDAPS)
found in some R/G/T thinkpad models. HDAPS is realized as
an acceleration sensor mounted on systemboard and a
userspace tool which detects based on acceleration values from sensor
shocks and freezes the harddrive(s) until the "shock" is over.
In the current version 0.02 actually is only able
to visualize the movements of the notebook as a 3D model based
on the acceleration values read from sensor.
|
Screenshots:
|
|
|
Available Versions:
|
User Comments
Patch for display hdd lock at recent kernels
There is no response from author, so I put patch for restore "display hdd lock" functionality here. (kerenl >=2.6.28, or hdaps patch http://cache.gmane.org/gmane/linux/drivers/hdaps/devel/1393-001.bin)
--- wmhdaps.c.orig 2006-05-01 13:04:01.000000000 +0300
+++ wmhdaps.c 2009-02-24 20:00:09.000000000 +0200
@@ -279,8 +279,8 @@
memset(buf, 0, sizeof(buf));
-
- sprintf(filename, "/sys/block/%s/queue/protect", device);
+
+ sprintf(filename, "/sys/block/%s/device/unload_heads", device);
if(stat(filename, &statbuf)) return 0;
fd = open (filename, O_RDONLY);
@@ -293,10 +293,6 @@
if (ret < 0) {
perror ("read");
goto out;
- } else if (ret == 0) {
- fprintf (stderr, "error: unexpectedly read zero!\n");
- ret = 1;
- goto out;
}
ret = atoi(buf);
|
|
|
|