以 PDF 格式下载本书 (2840 KB)
Chapter 23 Power ManagementThis chapter gives an overview of Power ManagementTM and explains the features that apply to your system by default when you use this SolarisTM release. This chapter also explains how to customize the Power Management features. Value of Power ManagementReducing the amount of power consumed by a computer reduces electricity costs, and reduces the effort required to control the heat surrounding the computer. Reducing power consumption also can extend the effective life of the hardware you use. The United States Environmental Protection Agency (EPA) has established Energy Star® guidelines for computer products. Other nations have issued similar energy efficiency guidelines. To meet these guidelines, hardware products are designed to use power efficiently. The Power Management software provided in the Solaris operating environment works in conjunction with the hardware to reduce overall consumption of electricity. In some cases, you may need to use this software for your workstation to meet the Energy Star guidelines that apply to that hardware. Note – As an Energy Star Partner, Sun Microsystems, Inc. has determined that its hardware products that have the Energy Star symbol on the shipping box or on the product meet the Energy Star guidelines for energy efficiency. Types of Power ManagementPower Management software enables two ways of reducing power consumption: Device power management and Suspend-Resume. Device Power ManagementDevice power management automatically reduces the amount of power that individual devices use when they are not performing an function. Disk drives, monitors, adapters, and even CPUs can provide this power-saving feature. The effect of device power management is transparent to the computer user. The overall system is still in operation, and is able to respond to requests for service from devices. Those devices are able to power up for full service within seconds when needed. Suspend-ResumeSuspend-Resume is a time-saving feature that allows you to turn off the power to your system without losing the state of your current activities. When you use this feature, your workspace and files are preserved when the system is powered off and restored to the same state when the system is powered on. For example, if you are in the middle of revising a document when you decide to leave, you can power off your system using the Suspend feature and your work session is automatically saved. The next time you power on the system, the Resume feature causes your work to appear in the same state as when you switched off the power. Whether a shutdown is initiated automatically through Power Management software, or manually through keystrokes, the Suspend-Resume feature saves checkpoint information about the state of the system at that time. Suspend-Resume can be active on your system in the following ways:
Do not use System Power Management on systems that do work that should not be interrupted. Conditions where you should choose to not use the Suspend-Resume features are described in Using the Suspend-Resume Feature. Hardware Support for Power Management FeaturesAll SPARC workstations can use some features of the Power Management software. However, some features only work on certain types of hardware. Some default power states vary from one type of system to another. The following section describes the Power Management features that are supported by your hardware, as well as the defaults that are in effect when you first use this Solaris release with your hardware. Note – Intel hardware running the Solaris operating environment does not support Power Management. Power Management Features on Different Hardware SystemsThe Power Management features are enabled by both the power-saving capability of the hardware, and the software provided with the Solaris operating environment. The exact nature of the power-saving mode your system goes into depends on your hardware and the compliance of the hardware with Energy Star. To determine the version of Energy Star to which your system complies, use the prtconf -vp | grep energystar command. Power Management-capable hardware provides the features discussed in the following sections. Energy Star 3.0-Compliant SystemsThe Energy Star 3.0-compliant SPARCTM hardware reduces power consumption by entering a low-power mode from which devices can resume full operation automatically. This hardware can turn off monitors and frame buffers, spin down disks, and drop the devices' power consumption significantly when they are idle — all while leaving the system up and running, ready for use, and visible on the network. When a job appears on the system, either through a cron process, or an external demand through a network, the devices and other hardware snap back into full-power mode within seconds. Energy Star 2.0-Compliant SystemsEnergy Star 2.0-compliant SPARC hardware does not have the capability of going into a reduced-power mode. Instead, the system completely shuts down after the designated number of minutes of idleness. The exception to this are the monitors, which do have the capability of going into low-power mode and continuing to operate. When you restart, the system takes a minute to reboot. Systems Noncompliant with Energy StarSystems that are noncompliant with Energy Star regulations perform power management for only the monitor. Power management is not performed for any other devices. System Architecture Distinctions and Default SettingsThe SPARC architecture of a workstation determines which Power Management features are available. The default behavior in Power Management functions varies on systems, as described in Table 23–1. To determine your system's architecture, use the uname -m command. If you have Sun MicrosystemsTM hardware that is not described in this manual, refer to the Sun Hardware Platform Guide for this Solaris release. The Sun Hardware Platform Guide may contain additional information about how Power Management software functions on your system. Table 23–1 Power Management Features in Different SPARC Architectures
Note – The SPARCstationTM Voyager is a sun4m-architecture system, but is not supported in this Solaris release. Power Management SoftwareIn most cases, the default Power Management settings should suffice. If you would like to change the default settings, however, you can do so through Dtpower, the Power Management software. Dtpower SoftwareDtpower launches a graphical user interface (GUI) that allows you change your power saving scheme. Dtpower also enables you to designate periods of inactivity after which the devices, including the monitor and the disk drives, and the system go into a power saving mode. You can also use the Dtpower GUI to set the time of day to activate the Suspend-Resume feature (called AutoShutdown when configured through Dtpower). For example, if you want the AutoShutdown feature to activate only after your regular work hours. On sun4u-architecture workstations, you can also activate the AutoWakeup feature of the Dtpower software, which will power on the system at a specific time following an AutoShutdown. Power Saving SchemesThe simplest way to manage your system power is by selecting one of three power-saving schemes offered by the Dtpower program:
In addition to these three schemes, you can also create a customized power scheme, which is discussed in Customizing Power Schemes. Basic Dtpower Settings and ConfigurationsThis section describes the Dtpower GUI and the associated conventions. This section also explains the preset power-saving schemes for Dtpower. Accessing DtpowerIn previous releases, you needed superuser permissions to start Dtpower and then edit the configurations. In this release, you can start the program in a number of ways, all of which enable you to change the configurations. Note – If you are unable to access Dtpower for editing purposes, you might not have the correct permissions. See the dtpower(1M) man page for details. If Dtpower is already running, the program might appear on your desktop as the following icon: Figure 23–1 The Dtpower IconTo Start Dtpower Through the CDE Workspace
To Start Dtpower From the Applications Manager
To Start Dtpower From the Command LineNote – Due to system initialization, Dtpower can take some time to launch. Overview of the Dtpower GUIBasic Dtpower Window ControlsEvery Dtpower window has one or more of the following buttons:
Figure 23–2 The Dtpower Basic Window
Power Saving SchemesThe simplest way to select a level of power management for your system is to choose one of the preset power saving schemes. The schemes appear in the Current Power Saving Scheme box in the Dtpower basic window. The default scheme is Standard, as shown in Figure 23–2. The implementation of the power saving schemes depends on the architecture and the Energy Star capability of the hardware that is running Dtpower. The implementation of the power schemes depends on the power saving capabilities of your hardware. In addition to the schemes described below, you can also modify any one of these schemes and save the scheme as a Customized scheme. For more information on creating a customized power saving scheme, see Customizing Power Schemes. The available power schemes are:
To Select a Power-Saving Scheme
Customizing Power SchemesThis chapter explains how you can create a customized power scheme, overriding the schemes that come preset in the Dtpower software. You cannot overwrite the schemes that the system provides, but you can create a customized scheme. When you change a system-shipped scheme, a new scheme called “Customized” is created. When you edit another scheme, the first Customized scheme is overwritten by the new one. Thus, you can only save one customized scheme at any time. The Customized scheme remains the default scheme even if you reboot your system. The Customized scheme only remains in the system until you select one of the three preset schemes. When you select a preset scheme, the Customized scheme is deleted and removed from the pull-down list of available schemes. Power Management of Overall SystemThe system idle time defines the length of time for which the CPU and the devices connected to your system must be idle before they power down. Although you can use the GUI to assign only one idle time for all devices and the CPU, the idle time of each device is measured separately. If a system has two external hard drives, for example, and you are only using one of them, the other drive switches to power-saving mode after 30 minutes of idleness. The first drive switches to the power-saving mode separately, after an idle time of 30 minutes. For information on configuring a different idle time for each device, refer to the power.conf(4) man page. To Change System Power Management
Power Management of MonitorsYou can override the power management for the monitor from the overall system power management through the Dtpower GUI. When you change the idle time for monitor power, only the idle time for the monitor power changes. The idle time for all other devices and the system remains as specified in the Default System Idle Time box. When the screen goes blank, some monitors can power down, and then power up when you use the computer again. Other monitors only blank the screen but do not power down. Power management of workstations that have two monitors is also handled through Dtpower. In such a case, both monitors receive the same idle time setting. Note – In some earlier versions of the Solaris operating environment, power management for monitors was handled through the screensaver options of your windowing system, rather than through the Dtpower program. That is no longer the case. Power management for the monitor, disk drive, and system power are now all handled uniformly through the Dtpower program. To Change Monitor Power Management
To Reactivate the MonitorThis restores the power to the monitor, but you may find that your screen is locked. The screen lock option is set through the Style Manager in CDE. Unlike in previous versions of the Power Management software, the screen lock is now completely independent of the Power Management software. If your screen is locked, enter your password to return to the desktop. Power Management of Disk DrivesYou can override the power management of disk drives just as you can for monitors. When you change the idle time for disk drives, only the power management settings for the disks changes. All disk drives connected to the system receive the same idle time. The idle time for all other devices and the system remains as specified in the Default System Idle Time box, see Figure 23–3. For information on setting a different idle time for each disk drive, refer to the power.conf(4) man page. To Change Disk Drive Power Management
Using the Suspend-Resume FeatureThis section discusses the issues to consider when you use the Suspend-Resume feature, for example:
This section points out the differences in how the Dtpower program operates on sun4m-architecture desktop machines, such as the SPARCstationTM 20, and on sun4u-architecture desktop machines, such as the Sun UltraTM 1. Note – The Solaris operating environment also provides a command line interface so that a system administrator can change the default settings and idleness definition of a system. For more information, see the power.conf(4) man page. Choosing to Use Suspend-ResumePowering off a desktop system may interfere with some operations that involve that machine. This section presents some guidelines to take into account before you use system Power Management features on a desktop machine. Electronic Mail IssuesMail is not sent to any mail spool file on a machine while the machine is suspended. Typically, if mail can not be delivered for more than three days, then the mail is returned to the sender as undeliverable. If you suspend your system for three days or longer, and your machine has a local mail spool, you might not receive messages that the mail application has sent back to the sender. Mail Alias IssuesMail aliases on a machine are not available to other users while that machine is suspended. If the machine is suspended long enough, typically three days, messages sent to an alias on that machine are sent back to the sender. Remote Login IssuesWhile your machine is suspended, you can not access the machine by remote dial-in. In other words, you can not use rlogin(1) to connect to a machine while that machine is suspended. Networked Software IssuesThe Suspend-Resume feature might have an impact on a networked application. A networked program might fail if the program is not resilient when a peer system is suspended and does not respond to network traffic. One example of this is when you run an Xhosted application from one system and display the application on a second system. If the Power Management software suspends the second system, the application software might fail. Solstice AutoClient IssuesDo not use Suspend-Resume features on a machine that uses Solstice™ AutoClient™ software. ATM IssuesThe Power Management software is not supported on SunATM™ devices. The ATM protocol requires that calls must be established between two endpoints, such as workstations, before data can be transferred. Each end of the call must maintain the connection actively, so neither end of an ATM connection can use the Power Management software to suspend and, later, resume the connection. Cron Job IssuesOperations specified in a cron file do not run during the time a machine is suspended. When a system resumes, cron jobs scheduled to run during the time the system was suspended with the Power Management software are handled in the following way:
Normally, the cron command identifies the next job to run and calculates the interval to wait to run that job. When a system resumes, the cron command calculates the interval until the first job has expired, then this already-queued cron job is run. The cron process then rechecks the queue of cron jobs. The cron process only considers jobs whose execution time has not yet passed, so any additional jobs whose run time fell during the time the system was suspended are not run. Calendar Manager IssuesThe Calendar Manager software does not display pop-up windows for scheduled events that occur while the desktop machine is suspended. Thermal Stress IssuesThe goal of the Power Management software is to conserve electricity. You should also take into account how an increase in power cycling affects the overall reliability of the hardware. The Power Management software is active by default on sun4u systems, such as the Sun Ultra 1. Accordingly, the Power Management system for those machines evaluates each automatic power-cycle request that occurs due to the system being idle. If an evaluation determines that the thermal shock of power cycling on a particular occasion would decrease hardware reliability, then that power-cycle request is deferred. Despite this feature, you can choose to turn off a sun4u system manually at any time. This checking feature prevents an excessive number of automatic power-cycle requests to the hardware. Suspending and Resuming Your System ManuallyThe Power Management software includes a timesaving feature called Suspend-Resume. This feature is used by default through the AutoShutdown and AutoWakeup features of the Dtpower program. You can also suspend and resume your system whenever you choose by following the procedures in this section. The traditional process of powering off your system can be time consuming. Similarly, the process of rebooting and setting up your workspace can also take some time. With the Suspend-Resume feature, you can power off your system and save all your current work-in-progress automatically. When you power on the system, the saved workspace is restored. You can leave your system suspended and powered off for an indefinite length of time without losing data. However, there are some outside operations, such as receiving mail, that might be affected while your system is suspended. Before you use the Suspend-Resume feature, read Choosing to Use Suspend-Resume. Note – The Suspend-Resume feature is not supported on systems configured as diskless clients. You can suspend your system automatically using the AutoShutdown feature in the Power Management software. To suspend your system manually, follow the instructions in this section. Suspend allows you to do the following without losing the current state of your system:
Note – Do not use the Suspend feature if you need to reconfigure your system. You must halt the operating system whenever you want to reconfigure your system. Before you suspend a system, you must wait for operations such as the following to finish: Initiating a Suspend and a subsequent Resume usually requires less than a minute. You can initiate Suspend in several ways:
To Suspend Your System Using the Keyboard
To Immediately Suspend Your System Using the Keyboard
To Disable the Power Key
To Suspend Your System Using the Standby SwitchSome systems, such as the Sun Ultra 5 and Sun Ultra 10, have a standby switch on the front of the system.
To Suspend Your System Using CDE
To Initiate Suspend Using the sys-suspend CommandNote – You do not need to run a windowing system, such as CDE, for the sys-suspend shell command to work, nor do you need to be superuser.
To Resume a Suspended System
System AutoShutdown and AutoWakeup ControlsYou can use the Dtpower program to specify times for your system to shut down automatically. This feature is called AutoShutdown. If you have a sun4u desktop machine, you can also set your system to power on automatically at a specified time. This feature is called AutoWakeup. Note – Read Choosing to Use Suspend-Resume before you change the AutoShutdown settings. AutoShutdown uses the Suspend feature to automatically power off your system. When the system powers up again, the system resumes in the state in which the system was suspended. Through the Dtpower window, you can activate or deactivate the AutoShutdown and AutoWakeup features. You can also specify the following values:
Figure 23–11 AutoShutdown Configuration for All Day
Note – AutoWakeup does not occur after you suspend a system manually. AutoWakeup can occur only after an AutoShutdown. To Set an Idle Time for AutoShutdown
To Disable AutoShutdown
To Enable AutoWakeupNote – The AutoWakeup feature is available only on sun4u desktop systems.
The time the computer restarts is the second time you specify for AutoShutdown. To Disable AutoWakeup
To Exit DtpowerTroubleshooting Power Key ProblemsIf pressing the Power key does not suspend your system, refer to the following procedure. To Respond When the Power Key Does Not Suspend the System
Troubleshooting Suspend FailuresWhen the system fails to suspend, an alert appears. The exact message within the pop-up window may vary, depending on the cause of the problem, but the Suspend Failed window appears similar to the following figure. Figure 23–13 Suspend Failed Window
When any Suspend Failed window appears, click either of the buttons at the bottom of the window:
To Respond to a Device Suspend Failure
To Respond to a Process Suspend Failure
To Respond to an Abnormal Condition
Troubleshooting a Shortage of Disk SpaceWhen you execute a Suspend command, your system creates a statefile to preserve the current state of your system. If the file system that contains the statefile is full, a Suspend Failed window appears with the following message: Suspend requires more disk space for statefile. Perform the following procedure in response to this message. To Respond to a Disk Space Limitation
Disabling the Screen LockAfter a Resume, the system screen lock is invoked by default. To disable the screen lock before you use the power key to Suspend, use the following procedure. Note – You cannot disable screen locking that is put into effect by AutoShutdown. This is a security feature. It ensures that only someone who knows your password can get access to your work session when the system resumes. To Disable the Screen Lock After Using the Power Key to Suspend
|
||||||