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:36] bobzbobz |
userspace:windows_power_management [2014/01/28 12:25] bobzbobz |
||
---|---|---|---|
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"] | ||
</ | </ |