hpfall

hpfall is a simple daemon providing HDD shock protection for HP laptops supporting the feature officially called "HP Mobile Data Protection System 3D" or "HP 3D DriveGuard".

Installation

Install hpfall-gitAUR.

Configuration

You need to set your hard drive in the configuration file:

/etc/conf.d/hpfall
#
# Parameters to be passed to hpfall
#
DEVICE=/dev/sd''X''

Start and enable hpfall.service

Testing

After rebooting with new kernel, check if hp_accel was initialized correctly through the journal.

Testing Shock protection

Warning: Be careful while performing this test and keep your laptop above something soft. Simulating free fall over the desk is bad idea.

Find your HDD's unload_heads file:

# find /sys -name unload_heads

Go to its directory and run:

# watch --difference=permanent cat unload_heads

Lift your laptop into free space and simulate a free fall while holding it firmly with your hands (~10 cm should be enough). If the disk protection works, you should hear your HDD making "click" sound and see one of your laptop's LEDs flashing. The watch value's background should also permanently turn black.

gollark: That's Wikipedia with images, even; a raw dump with just text is 15GB.
gollark: Correction: my copy of Wikipedia (compressed ZIM file, including FTS index, including images too, dated 2020-08) is 92GB.
gollark: * accidentally adding a zero
gollark: *Wikipedia* is about 80GB, so I assume you're missing a zero.
gollark: It would take me about 12 hours to download 30GB of content over my network link.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.