{"id":114,"date":"2006-08-13T00:35:00","date_gmt":"2006-08-13T00:35:00","guid":{"rendered":"http:\/\/blog.trungson.com\/?p=114"},"modified":"2006-08-13T00:35:00","modified_gmt":"2006-08-13T00:35:00","slug":"powercfg-save-power-when-using-battery","status":"publish","type":"post","link":"http:\/\/blog.trungson.com\/?p=114","title":{"rendered":"powercfg &#8211; Save power when using battery"},"content":{"rendered":"<p>A not-very-popular tool to adjust power configurations in command mode. Run &#8220;powercfg \/?&#8221;<\/p>\n<p>C:\\Documents and Settings\\mathie>powercfg \/?<\/p>\n<p><textarea name=\"code\" class=\"xml\"><br \/>\nPOWERCFG [\/LIST | \/QUERY [name] | \/CREATE name | \/DELETE name |<br \/>\n       \/SETACTIVE name | \/CHANGE name settings |<br \/>\n       \/HIBERNATE {ON|OFF} | \/EXPORT name [\/FILE filename] |<br \/>\n       \/IMPORT name [\/FILE filename] | \/GLOBALPOWERFLAG {ON|OFF} \/OPTION flag |<br \/>\n       \/BATTERYALARM {LOW|CRITICAL} [settings] |<br \/>\n       \/DEVICEQUERY queryflags | \/DEVICEENABLEWAKE devicename |<br \/>\n       \/DEVICEDISABLEWAKE devicename | \/?]<\/p>\n<p>Description:<br \/>\n    This command line tool enables an administrator to control<br \/>\n    the power settings on a system.<\/p>\n<p>Parameter List:<br \/>\n    \/LIST, \/L       Lists the names of existing power schemes.<br \/>\n    \/QUERY, \/Q      Displays the configuration of the specified power scheme.<br \/>\n                    If no name is specified, the configuration of the currently<br \/>\n                    active power scheme is displayed.<br \/>\n    \/CREATE, \/C     Creates a power scheme with the specified name.  The new<br \/>\n                    scheme is created with the properties of the currently<br \/>\n                    active scheme.<br \/>\n    \/DELETE, \/D     Deletes the power scheme with the specified name.<br \/>\n    \/SETACTIVE, \/S  Makes the power scheme with the specified name active.<br \/>\n    \/CHANGE, \/X     Changes settings of the specified power scheme. Additional<br \/>\n                    switches specify the changes as follows:<br \/>\n                        \/monitor-timeout-ac <minutes><br \/>\n                        \/monitor-timeout-dc <minutes><br \/>\n                        \/disk-timeout-ac <minutes><br \/>\n                        \/disk-timeout-dc <minutes><br \/>\n                        \/standby-timeout-ac <minutes><br \/>\n                        \/standby-timeout-dc <minutes><br \/>\n                        \/hibernate-timeout-ac <minutes><br \/>\n                        \/hibernate-timeout-dc <minutes><br \/>\n                        \/processor-throttle-ac <throttle>\n                        \/processor-throttle-dc <throttle>\n                    AC settings are used when the system is on AC power.<br \/>\n                    DC settings are used when the system is on battery power.<br \/>\n                    Setting a timeout to zero will disable the corresponding<br \/>\n                    timeout feature.  Supported throttle settings are NONE<br \/>\n                    CONSTANT, DEGRADE, and ADAPTIVE.<br \/>\n    \/EXPORT, \/E     Exports the power scheme with the specified name to a<br \/>\n                    file.  If no filename is specified, the default is<br \/>\n                    SCHEME.POW.  This additional parameter is supported:<br \/>\n                        \/FILE <filename><br \/>\n    \/IMPORT, \/I     Imports the power scheme from a file under the specified<br \/>\n                    name.  If no filename is specified, the default is<br \/>\n                    SCHEME.POW.  If a scheme with that name already exists, it<br \/>\n                    is replaced with the new one.  This additional parameter<br \/>\n                    is supported:<br \/>\n                        \/FILE <filename><br \/>\n    \/HIBERNATE, \/H {ON|OFF}  Enables\/Disables the hibernate feature.  Hibernate<br \/>\n                    timeout is not supported on all systems.<br \/>\n    \/NUMERICAL, \/N  Allows the power scheme to be operated upon to be specified<br \/>\n                    using a numerical identifier.  When using this switch, in<br \/>\n                    place of the name of the power scheme on the command line,<br \/>\n                    specify its numerical identifier.  This switch may be used<br \/>\n                    in combination with the \/QUERY, \/DELETE, \/SETACTIVE,<br \/>\n                    \/CHANGE, \/EXPORT, and \/IMPORT commands.<br \/>\n    \/GLOBALPOWERFLAG, \/G {ON|OFF}  Turns one of the global power flags on\/off.<br \/>\n                    Valid flags (to be used after &#8220;\/OPTION &#8220;) are:<br \/>\n                         BATTERYICON:    Turns the battery meter icon in the<br \/>\n                                         system tray on\/off.<br \/>\n                         MULTIBATTERY:   Turns on\/off multiple battery display<br \/>\n                                         in system Power Meter.<br \/>\n                         RESUMEPASSWORD: Prompt for password on resuming the<br \/>\n                                         system.<br \/>\n                         WAKEONRING:     Turn on\/off wake on ring support.<br \/>\n                         VIDEODIM:       Turn on\/off support for dimming video<br \/>\n                                         display on battery power.<br \/>\n    \/AVAILABLESLEEPSTATES, \/A  Reports the sleep states available on the<br \/>\n                    system.  Attempts to report reasons why sleep states are<br \/>\n                    unavailable.<br \/>\n    \/BATTERYALARM, \/B {LOW|CRITICAL}  Configures the battery alarm.  The<br \/>\n                    following switches can be specified:<br \/>\n                        \/activate <on|off><br \/>\n                            Enables or disables the alarm.<br \/>\n                        \/level <percentage (0 - 100)>\n                            The alarm will be activated when the power level<br \/>\n                            reaches this percentage.<br \/>\n                        \/text <on|off><br \/>\n                            Turns the text notification on or off.<br \/>\n                        \/sound <on|off><br \/>\n                            Turns the audible notification on or off.<br \/>\n                        \/action <none|shutdown|hibernate|standby><br \/>\n                            Specifies the action to take when this alarm goes<br \/>\n                            off.  Not all actions are always available.<br \/>\n                        \/forceaction <on|off><br \/>\n                            Force stand by or shutdown even if a program stops<br \/>\n                            responding.<br \/>\n                        \/program <on|off><br \/>\n                            Specifies a program to run.  schtasks.exe \/change<br \/>\n                           may be used to configure the program.<br \/>\n    \/DEVICEQUERY <queryflags> will return a list of devices that meet the<br \/>\n                    criteria specified in <queryflags>.  Possible values<br \/>\n                    for <queryflags> are:<br \/>\n                    wake_from_S1_supported &#8211; return all devices that support<br \/>\n                             waking the system from a light sleep state.<br \/>\n                    wake_from_S2_supported &#8211; return all devices that support<br \/>\n                             waking the system from a deeper sleep state.<br \/>\n                    wake_from_S3_supported &#8211; return all devices that support<br \/>\n                             waking from the deepest sleep state.<br \/>\n                    wake_from_any &#8211; return all devices that support waking<br \/>\n                             from any sleep state.<br \/>\n                    S1_supported &#8211; list devices supporting light sleep states.<br \/>\n                    S2_supported &#8211; list devices supporting deeper sleep.<br \/>\n                    S3_supported &#8211; list devices supporting deepest sleep.<br \/>\n                    S4_supported &#8211; list devices supporting system hibernation.<br \/>\n                    wake_programmable &#8211; list devices that are user-configurable<br \/>\n                             to wake the system from a sleep state.<br \/>\n                    wake_armed &#8211; list devices that are currently configured to<br \/>\n                             wake the system from any sleep state.<br \/>\n                    all_devices &#8211; return all devices present in the system.<br \/>\n                    all_devices_verbose &#8211; return verbose list of devices.<br \/>\n    \/DEVICEENABLEWAKE <devicename> enable the device to wake the system from a<br \/>\n                    sleep state. <devicename> is a device retrieved using<br \/>\n                    the &#8216;\/DEVICEQUERY wake_programmable&#8217; parameter.<br \/>\n    \/DEVICEDISABLEWAKE <devicename> disable the device from waking the system<br \/>\n                    from a sleep state. <devicename> is a device retrieved<br \/>\n                    using the &#8216;\/DEVICEQUERY wake_armed&#8217; parameter.<br \/>\n    \/HELP, \/?       Displays information on command-line parameters.<\/p>\n<p>Examples:<br \/>\n    POWERCFG \/LIST<br \/>\n    POWERCFG \/QUERY scheme<br \/>\n    POWERCFG \/QUERY<br \/>\n    POWERCFG \/CREATE scheme<br \/>\n    POWERCFG \/DELETE scheme<br \/>\n    POWERCFG \/SETACTIVE scheme<br \/>\n    POWERCFG \/CHANGE scheme \/monitor-timeout-dc 15<br \/>\n    POWERCFG \/CHANGE scheme \/monitor-timeout-dc 0<br \/>\n    POWERCFG \/HIBERNATE on<br \/>\n    POWERCFG \/EXPORT scheme \/file file<br \/>\n    POWERCFG \/QUERY number \/NUMERICAL<br \/>\n    POWERCFG \/GLOBALPOWERFLAG on \/OPTION BATTERYICON<br \/>\n    POWERCFG \/AVAILABLESLEEPSTATES<br \/>\n    POWERCFG \/BATTERYALARM low<br \/>\n    POWERCFG \/BATTERYALARM critical \/ACTIVATE on \/LEVEL 6 \/ACTION hibernate<br \/>\n    POWERCFG \/DEVICEQUERY wake_armed<br \/>\n    POWERCFG \/DEVICEENABLEWAKE &#8220;Microsoft USB IntelliMouse Explorer&#8221;<br \/>\n<\/textarea><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A not-very-popular tool to adjust power configurations in command mode. Run &#8220;powercfg \/?&#8221; C:\\Documents and Settings\\mathie>powercfg \/? POWERCFG [\/LIST | \/QUERY [name] | \/CREATE name | \/DELETE name | \/SETACTIVE name | \/CHANGE name settings | \/HIBERNATE {ON|OFF} | \/EXPORT name [\/FILE filename] | \/IMPORT name [\/FILE filename] | \/GLOBALPOWERFLAG {ON|OFF} \/OPTION flag | \/BATTERYALARM [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/114"}],"collection":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":0,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}