Unicode Explained

The power-management system in Windows 2000, Windows XP, and Windows Server 2003 is an integrated approach to power management within the whole computer system (for both hardware and software). This means that the computer system supporting power management must include both hardware and software support for the following functions:

Requirements for power-aware hardware and software are defined by the OnNow initiative. Windows XP and Windows Server 2003 provide this support and both the PC as a whole and each individual device consume the minimum amount of power (if the hardware meets the OnNow requirements). Notice that power management and PnP are interrelated and depend on each other.

This approach provides the following advantages:

By using the Power Options applet in the Control Panel, it is possible to decrease energy consumption by any device installed in the system. However, this is only the case if you have an ACPI-compliant computer system.

The Power Schemes Tab

To start the Power Options applet, proceed as follows:

  1. From the Start menu, select Settings | Control Panel. Double-click Power Management.

  2. The Power Options Properties window will appear (Fig. 5.13).

    Figure 5.13: The Power Schemes tab of the Power Options Properties window

  3. To reduce the power consumption of your computer devices - or of your entire system - choose a power scheme, which is a collection of settings that manage the power usage of your computer. You can select one of the existing power schemes or create a user-defined power scheme. For example, depending on your hardware, you can do the following:

    • Specify the conditions where the system will automatically turn off your monitor and hard disks to save power.

    • Put the computer on standby if it is idle for a long period of time. While on standby, your entire computer switches to a low power state, where devices such as the monitor and hard disks turn off and your computer uses less power. When you want to use the computer again, it comes out of standby quickly, and your desktop is restored exactly as you left it. Standby is particularly useful for conserving battery power in portable computers.

    • Put your computer in hibernation. The hibernate feature saves everything in memory on disk, turns off your monitor and hard disk, and then turns off your computer. When you restart your computer, your desktop is restored exactly as you left it. It takes longer to bring your computer out of hibernation than out of standby.

Table 5.2 lists the registry keys that you can modify using the Power Schemes tab of the Power Management Properties windows.

Table 5.2: Registry Keys Modified Using the Power Schemes Tab Controls

Power Schemes option

Registry key


Power schemes

HKCU\Control Panel\PowerCfg\CurrentPowerPolicy

Standby detection threshold values (for the system, monitor, hard disk-System hibernates, Turn off monitor, Turn off hard disks fields, respectively)

Binary-encoded parameters HKCU\Control Panel\ PowerCfg\PowerPolicies\n\Policies

Deleting the power scheme (the Delete button)

Deletes the following key HKCU\Control Panel\PowerCfg\ PowerPolicies\n\Policies

 

Decreases the following index counter: HKLM\SOFTWARE\Microsoft\Windows\ CurrentVersion\Controls Folder\PowerCfg\LastID

Adding new power scheme (the Save As button)

Adds new subkey under the following key: HKCU\Control Panel\PowerCfg\ PowerPolicies\n\Policies

 

Increases the following index counter: HKLM\SOFTWARE\Microsoft\Windows \CurrentVersion\Controls Folder\PowerCfg\LastID

Generally, you need to turn off your monitor or hard disk for a short period of time to conserve power. The most convenient mode for this is the standby mode, which puts your entire system in a low-energy state.

The Hibernate Tab

Beside the standby mode, the Power Options applet allows you to put your system into hibernation mode. As already mentioned, the hibernate feature saves everything in memory on disk, turns off your monitor and hard disk, and then turns off your computer. After rebooting the system, your desktop is restored exactly as you left it. It takes longer to bring your computer out of hibernation than out of standby.

If you are planning to be away from your computer for any length of time, it is recommended to put the system into hibernation. To activate hibernation support, proceed as follows:

  1. Open the Power Options Properties window and go to the Hibernate tab (Fig. 5.14). If your system doesn't support this option, the tab will be unavailable.

    Figure 5.14: The Hibernate tab of the Power Options Properties window

  2. Set the Enable hibernate support checkbox. Please note that when your computer is set to hibernation, everything in the physical memory is saved to the hard disk. Because of this, you need to have sufficient disk space on the hard disk (the file storing memory dump will be as large as your RAM).

After hibernation support is activated, the What do you want the computer to do? list in the Shut Down Windows dialog will contain a new option - Hibernate, which allows you to put the computer into hibernation manually (Fig. 5.15).

Figure 5.15: When you enable hibernation support, the Shut Down Windows window will display a new option - Hibernate, allowing you to put the system to hibernation manually

The Advanced Tab

The Advanced tab of the Power Options Properties window (Fig. 5.16) allows you to do the following:

Figure 5.16: The Advanced tab of the Power Options Properties window

Registry keys that correspond to the parameters set using this tab are listed in Table 5.3.

Table 5.3: Registry Keys Modified by Setting Parameters of the Advanced Tab

Advanced tab option

Registry key


Always show icon on the taskbar checkbox

HKCU\Control Panel\PowerCfg \GlobalPower Policy\Policies

Display a prompt for a password when the computer goes off standby checkbox

HKCU\Control Panel\PowerCfg \Global PowerPolicy\Policies

The UPS Tab

If Uninterruptible Power Supply (UPS) is present in your system, it can also be managed via Power Options. To configure and manage the UPS service, start the Power Options applet in Control Panel, and go to the UPS tab (Fig. 5.18). This tab displays the current power status, details on your UPS equipment and the current status of the UPS service.

Figure 5.18: The UPS tab of the Power Options Properties window

Power Management Tools in Windows 2000, Windows XP, and Windows Server 2003

Having already discussed the power-management tools provided by Windows 2000, Windows XP, and Windows Server 2003, let's now discuss the basic concepts that allow these tools to be implemented.

The topics covered here include:

Power Schemes

Power management configuration in Windows 2000, Windows XP, and Windows Server 2003 is based on the concept of power schemes. A power scheme is a group of preset power options that are passed to the Power Policy Manager component of the operating system to control the machine's power-management behavior.

Each power scheme consists of a global power-policy structure and a power-policy structure.

These power-policy structures are further divided into machine structures and user structures.

The data structures defining power management policy are listed below:

Registry Keys Intended for Power Management

In this section, we'll discuss the registry keys that are used for power management. You may edit any of them using one of the registry editors.

Note 

Changing registry entries responsible for power management won't have an immediate effect. Windows only reads settings from the registry when you log on, when you click OK in Control Panel, or when a Powerprof.dll function is called on to read the registry.

The registry keys used for power management are listed below.

Категории