电池电量不足时 Windows 将关闭而不是休眠

电池电量不足时 Windows 将关闭而不是休眠

根据电源选项,我的笔记本电脑在电池电量达到临界值(定义为 2%)时设置为休眠。我以为昨晚发生的情况就是这样,在我收到电池警告后,显示屏很快就变暗了,硬盘开始旋转。然后我将其插入电源插座。然而,当我今天早上开机时,我收到 Windows 异常关闭的警告,我选择正常启动。我之前的登录会话消失了,我不得不清理临时文件。显然,Windows 强制关闭而不是休眠,即使我的电源设置指定了后者。是否有任何其他系统设置可能导致此问题?我的帐户是非管理员帐户。

在发布这篇文章时,我被引述这个超级用户页面,但症状并不完全相同,即,我没有看到开机时关机,我看到开机过程就像我关机而不是休眠一样。此外,这是一篇相当老的文章,所以这个问题不太可能现在还存在,而且我无论如何也无法访问注册表(这是引用的解决方案)。

我之前发布过这个问题微软网站。我正在使用 Windows 7 企业版。

powercfg /query以下是与电池电量相关的命令摘录Critical。不幸的是,我没有权限将电量提高 2% Critical

Power Scheme GUID: 999a9999-a999-99a9-9999-aa9aa999aa9a  (Balanced)

  <...snip...>

  Subgroup GUID: a99a999a-aa99-9a99-9999-9a9999a9999a  (Battery)
    Power Setting GUID: 999aa99a-aaaa-9999-9a9a-a9a9a9a9a999  (Critical battery action)
      Possible Setting Index: 000
      Possible Setting Friendly Name: Do nothing
      Possible Setting Index: 001
      Possible Setting Friendly Name: Sleep
      Possible Setting Index: 002
      Possible Setting Friendly Name: Hibernate
      Possible Setting Index: 003
      Possible Setting Friendly Name: Shut down
    Current AC Power Setting Index: 0x00000000
    Current DC Power Setting Index: 0x00000002

    <...snip...>

    Power Setting GUID: 9a99a9a9-9aa9-9aa9-a9a9-9a999aa9a999  (Critical battery level)
      Minimum Possible Setting: 0x00000002
      Maximum Possible Setting: 0x00000064
      Possible Settings increment: 0x00000001
      Possible Settings units: %
    Current AC Power Setting Index: 0x00000002
    Current DC Power Setting Index: 0x00000002

有人建议使用该powercfg命令来尝试获取有关原因的提示。到目前为止,仍在寻找该命令的正确选项。帮助如下powercfg

POWERCFG <command line options>
Description:
  This command line tool enables users to control the power settings
  on a system.

Parameter List:
  -LIST, -L   Lists all power schemes in the current user's environment.

              Usage: POWERCFG -LIST

  -QUERY, -Q  Displays the contents of the specified power scheme.

              Usage: POWERCFG -QUERY <SCHEME_GUID> <SUB_GUID>

              <SCHEME_GUID>  (optional) Specifies the GUID of the power scheme
                             to display, can be obtained by using powercfg -l.
              <SUB_GUID>     (optional) Specifies the GUID of the subgroup
                             to display.  Requires a SCHEME_GUID to be provided.

              If neither SCHEME_GUID or SUB_GUID are provided, the settings
              of the current user's active power scheme are displayed.
              If SUB_GUID is not specified, all settings in the specified 
              power scheme are displayed.

  -CHANGE, -X Modifies a setting value in the current power scheme.

              Usage: POWERCFG -X <SETTING> <VALUE>

              <SETTING>   Specifies one of the following options:
                          -monitor-timeout-ac <minutes>
                          -monitor-timeout-dc <minutes>
                          -disk-timeout-ac <minutes>
                          -disk-timeout-dc <minutes>
                          -standby-timeout-ac <minutes>
                          -standby-timeout-dc <minutes>
                          -hibernate-timeout-ac <minutes>
                          -hibernate-timeout-dc <minutes>

              Example:
                  POWERCFG -Change -monitor-timeout-ac 5

              This would set the monitor idle timeout value to 5 minutes
              when on AC power.

  -CHANGENAME Modifies the name of a power scheme and optionally it's 
              description.

              Usage: POWERCFG -CHANGENAME <GUID> <name> <scheme description> 

              If the description is omitted only the name will be changed.

  -DUPLICATESCHEME 
              Duplicates the specified power scheme.  The resulting 
              GUID which represents the new scheme will be displayed.

              Usage: POWERCFG -DUPLICATESCHEME <GUID> <destination GUID>

              <GUID>  Specifies a scheme GUID obtained by using the powercfg -l.

              If <destination GUID> is omitted, a new GUID will be
              created for the duplicated scheme.

  -DELETE, -D Deletes the power scheme with the specified GUID.

              Usage: POWERCFG -DELETE <GUID>

              <GUID>  obtained by using the LIST parameter.

  -DELETESETTING 
              Deletes a power setting.

              Usage: POWERCFG -DELETESETTING <SUB_GUID> <SETTING_GUID> 

              <SUB_GUID>      Specifies the subgroup GUID.
              <SETTING_GUID>  Specifies the power setting guid.

  -SETACTIVE, -S 
              Makes the specified power scheme active on the system.

              Usage: POWERCFG -SETACTIVE <SCHEME_GUID>

              <SCHEME_GUID>  Specifies the scheme guid.

  -GETACTIVESCHEME 
              Retrieve the currently active power scheme.

              Usage: POWERCFG -GETACTIVESCHEME 

  -SETACVALUEINDEX
              Sets a value associated with a specified power setting
              while the system is powered by AC power.

              Usage: POWERCFG -SETACVALUEINDEX <SCHEME_GUID> <SUB_GUID>
                                               <SETTING_GUID> <SettingIndex>

              <SCHEME_GUID>   Specifies a power scheme GUID and may be
                              obtained by using PowerCfg /L.
              <SUB_GUID>      Specifies a subgroup of power setting GUID and may
                              be obtained by using "PowerCfg /Q."
              <SETTING_GUID>  Specifies an individual power setting GUID and may
                              be obtained by using "PowerCfg /Q".
              <SettingIndex>  Specifies which of the list of of possible values
                              this power setting will be set to.

              Example:
                  POWERCFG -SetAcValueIndex <GUID> <GUID> <GUID> 5
                  This would set the power setting's AC value to the 5th entry
                  in the list of possible values for this power setting.

  -SETDCVALUEINDEX 
              Sets a value associated with a specified power setting
              while the system is powered by DC power.

              Usage: POWERCFG -SETDCVALUEINDEX <SCHEME_GUID> <SUB_GUID>
                                               <SETTING_GUID> <SettingIndex>
              <SCHEME_GUID>   Specifies a power scheme GUID and may be
                              obtained by using PowerCfg /L.
              <SUB_GUID>      Specifies a subgroup of power setting GUID and may
                              be obtained by using "PowerCfg /Q."
              <SETTING_GUID>  Specifies an individual power setting GUID and may
                              be obtained by using "PowerCfg /Q".
              <SettingIndex>  Specifies which of the list of possible values
                              this setting will be set to.

              Example:
                  POWERCFG -SetDcValueIndex <GUID> <GUID> <GUID> 5
                  This would set the power setting's DC value to the 5th entry
                  in the list of possible values for this power setting.

  -HIBERNATE, -H
              Enables-Disables the hibernate feature.  Hibernate timeout is not
              supported on all systems.

              Usage: POWERCFG -H <ON|OFF>
                     POWERCFG -H -Size <PercentSize>
              -Size  Specifies the desired hiberfile size in percentage of the
                     total memory. The default size cannot be smaller than 50.
                     This switch will also enable the hiberfile automatically.

  -AVAILABLESLEEPSTATES, -A  
              Reports the sleep states available on the system
              Attempts to report reasons why sleep states are unavailable.

  -DEVICEQUERY
              Return a list of devices that meet the specified criteria.

              Usage: POWERCFG -DEVICEQUERY <queryflags>

              <queryflags>  Secifies one of the following criteria:

              wake_from_S1_supported  Return all devices that support waking the
                                      system from a light sleep state.
              wake_from_S2_supported  Return all devices that support waking the
                                      system from a deeper sleep state.
              wake_from_S3_supported  Return all devices that support waking the 
                                      system from the deepest sleep state.
              wake_from_any           Return all devices that support waking the 
                                      system from any sleep state.
              S1_supported            List devices supporting light sleep.
              S2_supported            List devices supporting deeper sleep.
              S3_supported            List devices supporting deepest sleep.
              S4_supported            List devices supporting hibernation.
              wake_programmable       List devices that are user-configurable
                                      to wake the system from a sleep state.
              wake_armed              List devices that are currently configured
                                      to wake the system from any sleep state.
              all_devices             Return all devices present in the system.
              all_devices_verbose     Return verbose list of devices.
              Example:
                  POWERCFG -DEVICEQUERY wake_armed

  -DEVICEENABLEWAKE
              Enable the device to wake the system from a sleep state.

              Usage: POWERCFG -DEVICEENABLEWAKE <devicename>

              <devicename>  Specifies a device retrieved using
                            "PowerCfg -DEVICEQUERY wake_programmable".

              Example:
                  POWERCFG -DEVICEENABLEWAKE
                                       "Microsoft USB IntelliMouse Explorer"

  -DEVICEDISABLEWAKE <devicename> disable the device from waking the system
              Disable the device from waking the system from a sleep state

              Usage: POWERCFG -DEVICEDISABLEWAKE 

              <devicename>  Specifies a device retrieved using
                            "PowerCfg -DEVICEQUERY wake_armed".

  -IMPORT     Imports all power settings from the specified file.

              Usage: POWERCFG -IMPORT <filename> <GUID> 

              <filename>  Specify a fully-qualified path to a file generated by
                          using "PowerCfg -EXPORT parameter".
              <GUID>      (optional) The settings are loaded into a power scheme
                          represented by this GUID. If not supplied, powercfg
                          will generate and use a new GUID

              Example:
                  POWERCFG -IMPORT c:\scheme.pow

  -EXPORT     Exports power scheme, represented by the specified GUID, to the 
              specified file.

              Usage: POWERCFG -EXPORT <filename> <GUID> 

              <filename>  Specify a fully-qualified path to a destination file.
              <GUID>      specifies a power scheme GUID and may be obtained by
                          using "PowerCfg /L"

              Example:
                  POWERCFG -EXPORT c:\scheme.pow
                                   381b4222-f694-41f0-9685-ff5bb260df2e

  -LASTWAKE   Reports information about what woke the system from the last
              sleep transition

  -HELP, -?   Displays information on command-line parameters.

  -ALIASES    Displays all aliases and their corresponding GUIDs.
              The user may use these aliases in place of any GUID on
              the commandline.

  -SETSECURITYDESCRIPTOR
              Sets a security descriptor associated with a specified
              power setting, power scheme, or action.

              Usage: POWERCFG -SETSECURITYDESCRIPTOR <GUID|ACTION> <SDDL>

              <GUID>       Specifies a power scheme or a power setting GUID.
              <ACTION>     Can be one of the following strings:
                           ActionSetActive, ActionCreate, ActionDefault
              <SDDL>       Specifies a valid security descriptor string in SDDL
                           format. Call POWERCFG -GETSECURITYDESCRIPTOR to see
                           an example SDDL STRING.

  -GETSECURITYDESCRIPTOR
              Gets a security descriptor associated with a specified 
              power setting, power scheme, or action.

              Usage: POWERCFG -GETSECURITYDESCRIPTOR <GUID|ACTION> 
              <GUID>       Specifies a power scheme or a power setting GUID.
              <ACTION>     Can be one of the following strings:
                           ActionSetActive, ActionCreate, ActionDefault

  -REQUESTS
              Enumerate application and driver Power Requests. Power 
              Requests prevent the computer from automatically powering off 
              the display or entering a low-power sleep mode. 

  -REQUESTSOVERRIDE
              Sets a Power Request override for a particular Process, Service,
              or Driver. If no parameters are specified, this command displays
              the current list of Power Request Overrides. 

              Usage: POWERCFG -REQUESTSOVERRIDE <CALLER_TYPE> <NAME> <REQUEST> 
              <CALLER_TYPE>    Specifies one of the following caller type:
                               PROCESS, SERVICE, DRIVER. This is obtained by 
                               calling the POWERCFG -REQUESTS command. 
              <NAME>           Specifies the caller name. This is the name 
                               returned from calling POWERCFG -REQUESTS command.
              <REQUEST>        Specifies one or more of the following Power
                               Request Types: Display, System, Awaymode.
              Example:
                  POWERCFG -REQUESTSOVERRIDE PROCESS wmplayer.exe Display System

  -ENERGY
              Analyze the system for common energy-efficiency and battery life
              problems. The ENERGY command should be used when the computer is
              idle and with no open programs or documents. The ENERGY command
              will generate an HTML report file in the current path. The ENERGY
              command supports the following optional parameters:

              Usage: POWERCFG -ENERGY [-OUTPUT <FILENAME>] [-XML]
                                      [-DURATION <SECONDS>]
                     POWERCFG -ENERGY -TRACE [-D <FILEPATH>]
                                             [-DURATION <SECONDS>]
              -OUTPUT <FILENAME>   - Specify the path and filename to store the
                                     energy report HTML file.
              -XML                 - Format the report file as XML.
              -TRACE               - Record system behavior and do not perform
                                     analysis. Trace files will be generated in
                                     the current path unless the -D parameter
                                     is specified.
              -D <FILEPATH>        - Specify the directory to store trace data.
                                     May only be used with the -TRACE parameter.
              -DURATION <SECONDS>  - Specify the number of seconds to observe
                                     system behavior.  Default is 60 seconds.
  -WAKETIMERS
              Enumerate the active wake timers. If enabled, the expiration of a
              wake timer wakes the system from sleep and hibernate states.

答案1

您可能还处于启用了休眠模式的情况,但休眠模式有时可能会被暂时禁用,例如在系统认为没有足够的磁盘空间用于休眠文件的情况下。

(此外,检查是否可能发生休眠的另一种非常简单的方法是查看它是否有电源关闭菜单中的选项。如果 Windows 认为其休眠文件空间要求存在磁盘空间问题,您可能会注意到休眠选项出现和消失。)

另外,如果系统尝试休眠,然后断电(因为在休眠完成之前电源耗尽),那么当您再次启动 Windows 时,它将经历不正常关机的过程。因此,在这种情况下,我也鼓励您增加临界阈值百分比。

相关内容