Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win7 一鍵休眠/睡眠捷徑建立教學:rundll32 powrprof.dll,SetSuspendState

編輯:Windows 7 系統介紹

Win7 強化休眠/睡眠功能,但預設需「開始→關機旁箭頭→休眠」多步操作。建立桌面捷徑並指派熱鍵,實現真正一鍵進入休眠/睡眠。

建立休眠捷徑

  1. 桌面右鍵 → 「新增」 → 「捷徑」。
  2. 位置輸入:
    rundll32.exe powrprof.dll,SetSuspendState 0,1,0
    (參數 0,1,0 代表:休眠、關閉混合睡眠、不強制關機)。
  3. 名稱「休眠」 → 完成。

建立睡眠捷徑

位置輸入:rundll32.exe powrprof.dll,SetSuspendState 0,0,0(最後參數 0 為睡眠)。

指派熱鍵(如 Ctrl+Alt+Z)

  1. 捷徑右鍵 → 「內容」 → 「捷徑」標籤 → 「快速鍵」欄位按下組合鍵(如 Ctrl+Alt+Z)。
  2. 套用 → 確定。

休眠 vs 睡眠 差異

  • 睡眠(待機): 資料留在記憶體,僅供電記憶體,喚醒極快(秒級),耗微量電。
  • 休眠: 記憶體內容寫入硬碟 hiberfil.sys,完全斷電,喚醒較慢(讀取硬碟),零耗電,適合長時間不使用。
若系統未啟用休眠,powercfg /h on 開啟;powercfg /h off 關閉並刪除 hiberfil.sys 釋放空間(等同記憶體大小)。
Copyright © Windows教程網 All Rights Reserved