This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
userspace:windows_power_management [2013/10/21 09:32] 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 |
| - | * - monitor-timeout-dc minutes | + | * -monitor-timeout-dc |
| - | * - disk-timeout-ac minutes | + | * -disk-timeout-ac |
| - | * - disk-timeout-dc minutes | + | * -disk-timeout-dc |
| - | * - standby-timeout-ac minutes | + | * -standby-timeout-ac |
| - | * - standby-timeout-dc minutes | + | * -standby-timeout-dc |
| - | * - hibernate-timeout-ac minutes | + | * -hibernate-timeout-ac |
| - | * - hibernate-timeout-dc | + | * -hibernate-timeout-dc //minutes// |
| - | + | ||
| - | //The script featured here will change the monitor timeout to 30 mins and set standby timeout to 0 (disabled).// | + | |
| **Tree:** | **Tree:** | ||
| Line 28: | Line 26: | ||
| └ setup.ins | └ setup.ins | ||
| </ | </ | ||
| + | |||
| + | //The script featured here will change the monitor timeout to 30 mins and set standby timeout to 0 (disabled).// | ||
| ==== setup.ins ==== | ==== setup.ins ==== | ||
| <code winst> | <code winst> | ||
| [Actions] | [Actions] | ||
| + | DefVar $shut_off_screen$ | ||
| + | DefVar $standby$ | ||
| + | |||
| + | Set $shut_off_screen$ = GetProductProperty(" | ||
| + | Set $standby$ = GetProductProperty(" | ||
| + | |||
| Message " | Message " | ||
| winbatch_powersave | winbatch_powersave | ||
| Line 37: | Line 43: | ||
| [Winbatch_powersave] | [Winbatch_powersave] | ||
| - | powercfg -change -monitor-timeout-ac | + | powercfg -change -monitor-timeout-ac |
| - | powercfg -change -standby-timeout-ac 0 | + | powercfg -change -standby-timeout-ac |
| + | </ | ||
| + | |||
| + | ==== control-file ==== | ||
| + | < | ||
| + | [Package] | ||
| + | version: 1 | ||
| + | depends: | ||
| + | incremental: | ||
| + | |||
| + | [Product] | ||
| + | type: localboot | ||
| + | id: powersaveoptions | ||
| + | name: Powersave Options | ||
| + | description: | ||
| + | advice: | ||
| + | version: 0 | ||
| + | priority: 0 | ||
| + | licenseRequired: | ||
| + | productClasses: | ||
| + | setupScript: | ||
| + | uninstallScript: | ||
| + | updateScript: | ||
| + | alwaysScript: | ||
| + | onceScript: | ||
| + | customScript: | ||
| + | userLoginScript: | ||
| + | |||
| + | [ProductProperty] | ||
| + | type: unicode | ||
| + | name: shut_off_screen | ||
| + | multivalue: False | ||
| + | editable: True | ||
| + | description: | ||
| + | values: [" | ||
| + | default: [" | ||
| + | |||
| + | [ProductProperty] | ||
| + | type: unicode | ||
| + | name: standby | ||
| + | multivalue: False | ||
| + | editable: True | ||
| + | description: | ||
| + | values: [" | ||
| + | default: ["0"] | ||
| </ | </ | ||