I'd like to know how to arrange to have my hard disk go into standby mode when my system has been inactive for a while. Having seen several references here to the hdparm program for setting hard disk parameters, I took a look at the man page for it. It provides parameters for placing the disk into various standby modes, but it doesn't have anything for checking inactivity. If my system has been inactive for X minutes, I could use hdparm to place the disk into standby mode. But then the question is: what can I use to detect the inactivity so as to initiate the hdparm call? Paul
On Wednesday 20 June 2001 18:26, Paul Abrahams wrote:
If my system has been inactive for X minutes, I could use hdparm to place the disk into standby mode. But then the question is: what can I use to detect the inactivity so as to initiate the hdparm call?
Actually this is what hdparm does. I just checked the manpage and I can see how the wording is confusing. For example the effect of: hdparm -S 240 /dev/hda would be that after 20 minutes of inactivity (240 secs) the drive will spin down. Cheers, Chris. -- Chris Clarke security@cfourconsulting.com http://cfourconsulting.com
Chris Clarke wrote:
On Wednesday 20 June 2001 18:26, Paul Abrahams wrote:
If my system has been inactive for X minutes, I could use hdparm to place the disk into standby mode. But then the question is: what can I use to detect the inactivity so as to initiate the hdparm call?
Actually this is what hdparm does. I just checked the manpage and I can see how the wording is confusing. For example the effect of:
hdparm -S 240 /dev/hda
would be that after 20 minutes of inactivity (240 secs) the drive will spin down.
Ah yes. But there isn't a similar numerical parameter for either -y (standby) or -Y (sleep) modes. I wonder if there's a way to cause either standby or sleep to occur after a particular amount of inactivity. Paul
participants (2)
-
Chris Clarke
-
Paul Abrahams