User Tools

Site Tools


userspace:windows_power_management

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userspace:windows_power_management [2013/10/21 09:33]
bobzbobz
userspace:windows_power_management [2021/08/23 08:37] (current)
Line 10: Line 10:
  
 **Instructions:** **Instructions:**
-  * Use powercfg to edit the power settings - see powercfg /? for more info. +  * Use **powercfg** to edit the power settings - see powercfg /? for more info. 
-  * Possible values to edit with the -change parameter: +  * Possible values to edit with the **-change** parameter: 
-    * - monitor-timeout-ac minutes +    * -monitor-timeout-ac //minutes// 
-    * - monitor-timeout-dc minutes +    * -monitor-timeout-dc //minutes// 
-    * - disk-timeout-ac minutes +    * -disk-timeout-ac //minutes// 
-    * - disk-timeout-dc minutes +    * -disk-timeout-dc //minutes// 
-    * - standby-timeout-ac minutes +    * -standby-timeout-ac //minutes// 
-    * - standby-timeout-dc minutes +    * -standby-timeout-dc //minutes// 
-    * - hibernate-timeout-ac minutes +    * -hibernate-timeout-ac //minutes// 
-    * - hibernate-timeout-dc minutes+    * -hibernate-timeout-dc //minutes//
  
 **Tree:** **Tree:**
Line 32: Line 32:
 <code winst> <code winst>
 [Actions] [Actions]
 +DefVar $shut_off_screen$
 +DefVar $standby$
 +
 +Set $shut_off_screen$ = GetProductProperty("shut_off_screen", "30")
 +Set $standby$ = GetProductProperty("standby", "0")
 +
 Message "Settings for Power Management is being changed" Message "Settings for Power Management is being changed"
 winbatch_powersave winbatch_powersave
Line 37: Line 43:
  
 [Winbatch_powersave] [Winbatch_powersave]
-powercfg -change -monitor-timeout-ac 30 +powercfg -change -monitor-timeout-ac $shut_off_screen$ 
-powercfg -change -standby-timeout-ac 0+powercfg -change -standby-timeout-ac $standby$ 
 +</code> 
 + 
 +==== control-file ==== 
 +<code> 
 +[Package] 
 +version: 1 
 +depends:  
 +incremental: False 
 + 
 +[Product] 
 +type: localboot 
 +id: powersaveoptions 
 +name: Powersave Options 
 +description: Control the Windows Powersave options 
 +advice:  
 +version: 0 
 +priority: 0 
 +licenseRequired: False 
 +productClasses:  
 +setupScript: setup.ins 
 +uninstallScript:  
 +updateScript:  
 +alwaysScript:  
 +onceScript:  
 +customScript:  
 +userLoginScript:  
 + 
 +[ProductProperty] 
 +type: unicode 
 +name: shut_off_screen 
 +multivalue: False 
 +editable: True 
 +description: When should the screen shut off? 
 +values: ["0", "120", "15", "30", "60"
 +default: ["30"
 + 
 +[ProductProperty] 
 +type: unicode 
 +name: standby 
 +multivalue: False 
 +editable: True 
 +description: When should the PC enter standby? 
 +values: ["0", "120", "15", "30", "60"
 +default: ["0"]
 </code> </code>
userspace/windows_power_management.1382348002.txt.gz · Last modified: 2021/08/23 08:37 (external edit)