When I return from hibernation all my disks seem to forget their 'hdparm' settings:
hdparm -S60y /dev/sda
hdparm -S60y /dev/sdb
... which I have in /etc/rc.local. I always have to reset the spindown time again at the command line. Is there some way of accomplishing this automatically?
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
harddisk spindown after return from hibernation
-
- Posts: 115
- Joined: 2014-01-31 21:32
- Has thanked: 5 times
- Been thanked: 1 time
Re: harddisk spindown after return from hibernation
The file /etc/hdparm.conf is reloaded thru the /usr/lib/pm-utils/power.d/95-hdparm-apm script when waking from suspend. You can put your settings there instead of rc.local but use the /dev/disk/by-uuid/ label instead of the examples shown at the end.
resigned by AI ChatGPT
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: harddisk spindown after return from hibernation
I think the tlp script, which has the latest version in backports, has a setting for that, too.
MX Linux packager and developer
-
- Posts: 115
- Joined: 2014-01-31 21:32
- Has thanked: 5 times
- Been thanked: 1 time
Re: harddisk spindown after return from hibernation
Steve, pardon, but you are way over my head there, what is the 'tlp script'?stevepusser wrote:I think the tlp script, which has the latest version in backports, has a setting for that, too.
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: harddisk spindown after return from hibernation
It's installed by the tlp package.
Then take a look at the script, /etc/default/tlp.
Code: Select all
apt install tlp
MX Linux packager and developer
-
- Posts: 115
- Joined: 2014-01-31 21:32
- Has thanked: 5 times
- Been thanked: 1 time
Re: harddisk spindown after return from hibernation
Nuthin' works, I even tried making a systemd service. Hafta just spin the disk down manually on restart, it's not the end of the world
Re: harddisk spindown after return from hibernation
Works fine here putting the settings in hdparm.confrayandrews wrote:Nuthin' works, I even tried making a systemd service. Hafta just spin the disk down manually on restart, it's not the end of the world
Code: Select all
# tail /etc/hdparm.conf
/dev/disk/by-id/ata-Maxtor_4R080L0_R2S6K4FE {
# apm = 127
spindown_time = 60
}
/dev/disk/by-id/ata-HDS728080PLAT20_PFD255S2CVB3LJ {
# apm = 127
spindown_time = 60
}
resigned by AI ChatGPT
-
- Posts: 115
- Joined: 2014-01-31 21:32
- Has thanked: 5 times
- Been thanked: 1 time
Re: harddisk spindown after return from hibernation
You know, I'm so used to using hibernation that I failed to notice that if I quit instead then boot to prompt, the spindown is accomplished. It's only when I start up xfce4 that it spins up again, so this seems to be an xfce4 issue.