Package Details: hpfall-git r5.be24a8b-2

Git Clone URL: https://aur.archlinux.org/hpfall-git.git (read-only, click to copy)
Package Base: hpfall-git
Description: Disk protection for HP machines.
Upstream URL: https://github.com/srijan/hpfall.git
Licenses: GPL2
Submitter: ewaller
Maintainer: ewaller
Last Packager: ewaller
Votes: 6
Popularity: 0.000005
First Submitted: 2015-08-28 19:26
Last Updated: 2018-07-20 23:28

Latest Comments

leopseft commented on 2020-09-30 20:03

ewaller Thank you very much for your time and your detailed response! Im sorry but I haven't took any look at all before I ask, I thought it would be more complicated so the first thing I did was the question! Keep it simple brothers!!

ewaller commented on 2020-09-26 00:52

digital_mystik: Sorry I have been traveling for work in places where communications were near impossible. This is not a kernel module. It is a user space application that watches the accelerometer and sends a user space command to the drive to park it when low g's are detected. You need to enable (and start) the hpfall service with systemctl to enable this program.

When you tried systemctl and it failed, what messages were added to the journal?

ewaller commented on 2020-09-26 00:45

leapseft: The question is, to which device node does the spinning disk map? The source file (which I did not write -- I adopted it) hard codes the default drive to park /dev/sda in line 97 for hpfall.c. If you pass in a parameter to hpfall, it will be used as the drive which is to be parked.

What you will need to do is edit the service file line that says "ExecStart=/usr/bin/hpfall" and append /dev/sdx, where x is the drive that needs be parked. It might be easiest just to edit /usr/lib/systemd/system/hpfall.service and save a copy at /etc/systemd/system/hpfall.service

Be advised that I too updated my system to use a SDD, but I no longer having a spinning disk -- and therefore no reason to use this package myself.

leopseft commented on 2020-09-25 18:52

Hello mates, I ll transfer the HDD in the cdrom with a HDD caddy and in the "main" sata port I will use an SSD. Do I have to change the config to recognize the hdd at the different sata port and ignore the SSD?

digital_mystik commented on 2019-09-07 22:25

Hello,

I am not sure what I am doing wrong but the systemd service fails to start. I have followed the wiki entry by making the required conf file.

I have also tried enabling hp_accel with modprobe, adding a conf file to modules-load.d for automatic loading, and doing the mkinitcpio entry as mentioned here and reinstalling the kernel. No luck in getting it running. The GitHub page does not have information on how to get it running; any suggestions?

leonardof commented on 2017-12-30 02:58

@ewaller, dmesg says: "Configuration file /usr/lib/systemd/system/hpfall.service is marked executable. Please remove executable permission bits. Proceeding anyway." Indeed, this is the only executable service file in the directory. You might want to change the second "install -Dm755" to "install -Dm644".

leonardof commented on 2017-12-30 02:54

@vlamnire0, I solved that adding hp_accel to MODULES in /etc/mkinitcpio.conf, running mkinitcpio again (I'm lazy so I just reinstall the kernel) and rebooting.

ewaller commented on 2017-12-13 15:54

I have been out of the county for a few days. I will look at this in the next couple days after I get caught up at $DAYJOB

vlamnire0 commented on 2017-12-11 15:15

Sometimes this service fails on startup.

hpfall.service - HP laptop freefall disk protection daemon Loaded: loaded (/usr/lib/systemd/system/hpfall.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2017-12-11 09:03:25 CST; 11min ago Process: 397 ExecStart=/usr/bin/hpfall (code=exited, status=1/FAILURE)

Dec 11 09:03:24 laptop systemd[1]: Starting HP laptop freefall disk protection daemon... Dec 11 09:03:24 laptop hpfall[397]: /dev/freefall: No such file or directory Dec 11 09:03:25 laptop systemd[1]: hpfall.service: Control process exited, code=exited status=1 Dec 11 09:03:25 laptop systemd[1]: hpfall.service: Failed with result 'exit-code'. Dec 11 09:03:25 laptop systemd[1]: Failed to start HP laptop freefall disk protection daemon.

After log in, I can run ls /dev/ | grep freefall and the device does exist and I can restart the service just fine. Is there something that can be added to the service file to wait until this device is available? Maybe something like this: https://unix.stackexchange.com/questions/186899/how-to-wait-for-a-dev-video0-before-starting-a-service