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: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 |
- | * -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 minutes | + | * -hibernate-timeout-dc |
**Tree:** | **Tree:** | ||
Line 32: | Line 32: | ||
<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"] | ||
</ | </ |