hdapsd --version (return code: 0)
hdapsd 20141203
hdapsd --help (return code: 1)
Usage: hdapsd [OPTIONS]
-c --cfgfile=<cfgfile> Load configuration from <cfgfile>.
By default, configuration is read from /etc/hdapsd.conf
-d --device=<device> <device> is likely to be hda or sda.
Can be given multiple times
to protect multiple devices.
-f --force Force unloading heads, even if kernel thinks
differently (on pre ATA7 drives).
This only works when adding devices by hand (-d).
-r --force-rotational Autodetect drives as rotational, even if
kernel thinks they are not.
-s --sensitivity=<sensitivity> How sensitive hdapsd should be to movements.
Defaults to 15, higher value means less
sensitive.
-a --adaptive Adaptive threshold (automatic increase
when the built-in keyboard/mouse are used).
-v --verbose Get verbose statistics.
-b --background Run the process in the background.
-p --pidfile[=<pidfile>] Create a pid file when running
in background.
If <pidfile> is not specified,
it's set to /var/run/hdapsd.pid.
-t --dry-run Don't actually park the drive.
-y --poll-sysfs Force use of sysfs interface to
accelerometer.
-H --hardware-logic Use the hardware fall detection logic instead of
the software one (-s/--sensitivity and -a/--adaptive
have no effect in this mode).
-S --software-logic Use the software fall detection logic even if the
hardware one is available.
-L --no-leds Don't blink the LEDs.
-l --syslog Log to syslog instead of stdout/stderr.
-V --version Display version information and exit.
-h --help Display this message and exit.
You can send SIGUSR1 to deactivate hdapsd for 8 seconds.
Send bugs, comments and suggestions to hdaps-devel@lists.sourceforge.net