-
-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hdparm spindown not working after boot #3420
Comments
@lukaszm89 Okay while there is more to do, your suggestion can be done quickly for now. I also checked my own tests and indeed I also have |
@lukaszm89
|
@MichaIng thank you for quick response :-)
|
@lukaszm89 Changelog: 8090774 |
Problem with this in general is that hdparm does not work with all externall hdd's. I have 2 Western Digital's (from 2019 an 2020) and a Seagate (from 2019) and all 3 are not supported by hdparm for some reason. guide used: https://www.htpcguides.com/spin-down-and-manage-hard-drive-power-on-raspberry-pi/ |
@GvY85 Hmm, does Since hdparm indeed ships a bunch of features that we do not need, hd-idle seems to be a more lightweight (and simple, hence reliable) solution that serves what we need. However it is only available since Buster backports currently, hence not from repo at all on current stable RPi images: https://packages.debian.org/hd-idle |
Hey, |
Yes, setting spindown/APM via hdparm command is not boot persistent. For this /etc/hdparm.conf needs to be adjusted. However there is this issue (the other linked issue above) where the hdparm udev rules do not apply spindown times on boot if the drive does not support APM. There have been made some changes from Debian Stretch to Buster to Bullseye and it is kinda messy with different scripts being invoked.
|
I found a problem with setting spin down time for disks using dietp-drive_manager.
It is producing wrongly formatted /etc/hdparm.conf witch is than read by function hdparm_options() from /lib/hdparm/hdparm-functions during udev events handling.
Current format (wrong):
/dev/mmcblk0
{
apm = 127
spindown_time = 24
}
/dev/sda
{
apm = 127
spindown_time = 24
}
Working version (correct):
/dev/mmcblk0 {
apm = 127
spindown_time = 24
}
/dev/sda {
apm = 127
spindown_time = 24
}
First curly bracket needs to be in the same line as drive name.
Fix needs to be made to lines 988-997 of dietpi-drive_manager file.
File format part from man hdparm.conf:
/sbin/hdparm is not run unless a block of the form:
The text was updated successfully, but these errors were encountered: