21 Jun
2001
21 Jun
'01
03:21
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