您可以從內定值變更系統的閒置定義,做法是將項目加進/etc/power.conf檔案中。這些項目會變更某些系統作業的臨界值,而且它可能會發生在仍然不在作用中的系統上:
ttychars變更系統被認為在作用中以前,所能輸入或輸出的TTY字元數(內定值為無字元)
diskreads變更系統被認為在作用中以前的磁碟讀取次數(內定值為無磁碟讀取)
nfsreqs變更系統被認為在作用中以前的NFS要求次數(內定值為無NFS的要求)
loadaverage(平均工作量)變更系統被認為在作用中以前,須達到的一分鐘平均工作量(內定值為0.04)
但是您無法變更鍵盤或滑鼠活動的臨界值。任何與這兩種裝置相關的活動都會終止系統的閒置期間。
例如在下列情況,您可以修改power.conf檔案,來變更系統的閒置定義,使它仍然被認為是處於閒置的狀態:
輸入或輸出的TTY字元不超過400個
所發生的磁碟讀取數不超過10次
所發生的NFS要求數不超過5次
每分鐘平均工作量不超過0.1
# Power Management Configuration File # # Putting an entry in this file will only be effective if the # driver for the device supports device power management. # After the file is modified, pmconfig(1M) command must be # executed to activate the new change. # # Fields must be separated by white space or semicolons. # Note that physical dependents are automatically considered # by the power management framework. # Name Threshold(s) Logical Dependent(s) /dev/kbd 1800 /dev/mouse 1800 # NOTE: The entries below are only used when no window # system is running. When running the window system, monitor # power management is done by the screen saver functions. /dev/fb 0 0 /dev/kbd /dev/mouse # Auto-Shutdown Idle(min) Start/finish(hh:mm) Behavior autoshutdown 30 15:00 8:00 default statefile /.CPR ttychars 400 diskreads 10 nfsreqs 5 loadaverage 0.1