您可指定系統裝置(例如是螢幕)開始省電模式前,應先閒置的時間。做法是變更/etc/power.conf檔案的臨界值的欄位。
以高階使用者的身份,編輯/etc/power.conf 檔案。鍵入:
| example# vi /etc/power.conf |
修改相關的項目。
如下所示,在/etc/power.conf 檔案中,鍵盤和滑鼠裝置的閒置臨界值已修改為300秒(5分鐘)。
# 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 300 /dev/mouse 300 # 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 9:00 9:00 default statefile /.CPR
| example# /usr/sbin/pmconfig |
執行pmconfig,依據臨界值,讓「電源管理」系統知道新的設定值,這些臨界值現在定義在/etc/power.conf檔案中。