電源管理功能的使用方法

變更閒置定義

您可以從內定值變更系統的閒置定義,做法是將項目加進/etc/power.conf檔案中。這些項目會變更某些系統作業的臨界值,而且它可能會發生在仍然不在作用中的系統上:

但是您無法變更鍵盤或滑鼠活動的臨界值。任何與這兩種裝置相關的活動都會終止系統的閒置期間。

例如在下列情況,您可以修改power.conf檔案,來變更系統的閒置定義,使它仍然被認為是處於閒置的狀態:

所產生的/etc/power.conf檔案如下:


# 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