Away Mode in Windows Vista在Windows Vista模式了_第1頁
Away Mode in Windows Vista在Windows Vista模式了_第2頁
Away Mode in Windows Vista在Windows Vista模式了_第3頁
Away Mode in Windows Vista在Windows Vista模式了_第4頁
Away Mode in Windows Vista在Windows Vista模式了_第5頁
已閱讀5頁,還剩10頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、.Away Mode in Windows Vista - 15Away Mode in Windows VistaDecember 19, 2008AbstractAway Mode is a Windows Vista® feature that is designed for media PC scenarios. Away Mode enables the Windows Vistabased computer to appear turned off to the user, when the system is actually operational and proce

2、ssing background media tasks such as recording television content or streaming media to other devices. This paper documents the operation of Away Mode, configuration of power policies, and best practices for original equipment manufacturers (OEMs) that deploy systems with Away Mode functionality and

3、 independent software vendors (ISVs) that develop media software for Away Mode.This information applies for the Windows Vista operating system.References and resources discussed here are listed at the end of this paper.For the latest information, see: DisclaimerThe information contained in this docu

4、ment represents the current view of Microsoft Corporation on the issues discussed as of the date of publication. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any

5、information presented after the date of publication.This White Paper is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS DOCUMENT.Complying with all applicable copyright laws is the responsibility of the user. Without limiti

6、ng the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Micros

7、oft Corporation.Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any

8、 license to these patents, trademarks, copyrights, or other intellectual property.Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places and events depicted herein are fictitious, and no association with any real company, organiz

9、ation, product, domain name, email address, logo, person, place or event is intended or should be inferred.© 20072008 Microsoft Corporation. All rights reserved.Microsoft, Windows, and Windows Vista are either registered trademarks or trademarks of Microsoft Corporation in the United States and

10、/or other countries.The names of actual companies and products mentioned herein may be the trademarks of their respective owners.Revision HistoryDateChangeDecember 19, 2008Removed ref to SetThreadExecutionState exiting Away Mode. Updated template.February 1, 2007First publishedContentsIntroduction4B

11、ackground4Changes in Away Mode Support in Windows Vista4Away Mode Usage Scenarios5Away Mode and the Use of System Sleep States5Implementation Details6System Requirements6Entering Away Mode6Exiting Away Mode7Sleep Idle Time-Out7Away Mode and Windows Vista Power Policy7Enabling Away Mode8Enabling Away

12、 Mode with the SetThreadExecutionState API9Enabling Away Mode in the Windows Registry10How Windows Vista Uses Away Mode10Windows Media Center Extenders11Windows Media Sharing11Using Away Mode in Applications12Designing Hardware for Away Mode13Changing the Hardware Power Indicator13Prompt for Passwor

13、d on Resume14Conclusion14Call to Action15Resources15IntroductionAway Mode is a feature originally introduced with Update Rollup 2 for Windows® XP Media Center Edition 2005. Away Mode was conceived as a new power management usage model for media PCs that lets the computer appear turned off

14、to the user while the system continues to perform tasks that do not require user input, such as recording television and viewing Media Center Extender sessions. Away Mode support is available in the Windows Vista® operating system. This paper provides details of Away Mode support in Windows Vis

15、ta, describes how Away Mode interacts with power policy in Windows Vista, and provides guidelines and implementation details for software developers who want to take advantage of Windows Vista Away Mode support in their media applications.BackgroundAway Mode in Windows Vista is designed to enable me

16、dia PC scenarios that include background media sharing and recording. When the computer is in Away Mode, the system appears turned off to the userthe display is turned off and audio is muted. However, the PC remains in the on state and otherwise fully operational, which allows background tasks to co

17、ntinue.Away Mode is designed specifically for scenarios where the user is finished interacting with the computer, but the system must remain powered on to record a TV broadcast or share media files with other systems and devices. For example, the system might be providing access to Windows Media Cen

18、ter Extender or other consumer electronics devices and therefore must remain available even though the user is not interacting with the system at the local console. Away Mode enables a living room media PC to respond to a users power-on to power-off requests in the same manner as a television or set

19、-top box that might appear turned off, but actually continues to work.Changes in Away Mode Support in Windows VistaBecause the Away Mode feature was originally developed specifically for Update Rollup 2 for Windows XP Media Center Edition 2005, supporting Away Mode required both support in the platf

20、orm BIOS, as well as add-on components such as filter drivers for the Windows operating system. However, support for Away Mode in Windows Vista was closely integrated with the design of the Windows power manager, which removed the need for specific platform support and additional software components

21、 outside the Windows kernel power manager. Subtle behavioral differences exist between the Away Mode support that originally released with Update Rollup 2 for Windows Media Center 2005 and the Away Mode implementation in Windows Vista. This paper describes those differences.Away Mode Usage Scenarios

22、Many systems that run Windows Vista are used primarily for entertainment and media scenarios. These machines might be in the living room and used with Windows Media Center to watch and record television or used to store and transmit media content to other computers and devices in the home.These medi

23、a scenarios require the Windows Vista computer to remain on to record television content and respond to requests for media content from remote computers and devices. However, users might want the system to appear and behave as if it were turned off when they finish interacting with the PC at the pri

24、mary display device.To meet these scenarios, Windows Vista features Away Mode. Away Mode allows the system to appear and sound turned off while it remains on to respond to requests for remote media transmission and record television content. Away Mode enables the PC to deliver an experience that res

25、embles that of a consumer electronics device, such as a set-top box.Away Mode is designed specifically for media sharing scenarios, including:· Windows Media Center Extenders. The Windows Vistabased computer must be continually available to extender devices for streaming media and recorded tele

26、vision content.· Windows Vista Media Sharing. The Windows Vistabased computer must be continually available to other Windows PCs and consumer electronics devices to enable remote audio playback, picture viewing, and so on.· Living room PC (LRPC). A Windows Vistabased computer as part of an

27、 entertainment system must remain available to remote devices for media sharing, but appear and behave as if it were turned off when the user is finished viewing media locally.Away Mode allows the PC to remain operational to provide access and process background tasks, but appear turned off to the u

28、ser with the display turned off and audio muted.Away Mode and the Use of System Sleep StatesBe aware that Away Mode is not designed to replace other power management sleep states or to function as a workaround to existing availability solutions such as Wake-on-LAN (WoL). Away Mode is not intended fo

29、r corporate deployments. Because the system is left fully running, power consumption is commensurate with system usage. Away Mode should not be used to replace correct implementation and support of Sleep and other low-power system turned off states. System designers and software developers should pl

30、an to design and test to ensure that their media applications allow the use of system sleep with unattended operation.Implementation DetailsThis section provides details on how Away Mode in Windows Vista works, lists system requirements for Away Mode, and describes usage models when Windows Vis

31、ta components can enable Away Mode.System RequirementsAway Mode as implemented in Windows Vista has no specific hardware or firmware dependencies. No Away Modespecific ACPI object or interface is required to enable or use Away Mode. As long as Sleep is availablethat is, the system supports the ACPI

32、S3 Standby state (suspend to RAM)Away Mode can be used. Away Mode is available on all Windows Vista systems and available on all versions of Windows Vista.When Away Mode is enabled in Windows Vista, any user-initiated request to put the system into Standby sends the system into Away Mode. From the u

33、sers perspective, Standby and Away Mode appear almost identical.Entering Away ModeIf Away Mode is enabled on the PC, any power action mapped to Sleep causes the PC to enter Away Mode. Power actions include:· System button presses mapped to Sleep:· Hardware Power button.· Hardware Slee

34、p button.· Mobile lid switch.· Human interface device (HID) button events:· HID Sleep button (such as on a USB keyboard).· HID Power button (such as on an IR remote control).· Windows Start menu power button.· Windows Start menu Sleep option.· Programmatically, wit

35、h the SetSystemPowerState or SetSuspendState API.The following power actions do not cause the PC to enter Away Mode:· Any power action mapped to Hibernate.· Automatically entering Sleep or Hibernate because of an idle time-out.When the PC enters Away Mode, the following actions occur:·

36、; The primary display is turned off.· Analog audio is muted.· A notification is delivered to registered drivers and applications that the system has entered Away Mode. For more information, see “Registering for Away Mode Notifications” later in this paper.Exiting Away ModeIf the PC is in A

37、way Mode, any of the following events cause the PC to exit Away Mode:· Any system button press:· Hardware Power button.· Hardware Sleep button.· Mobile lid switch.· Any HID Power or Sleep button event.· Any user input (such as keyboard or mouse input).If a system button

38、 is pressed to exit Away Mode, the action that is associated with that button is not executed and the PC exits Away Mode. For example, if the hardware Power button is mapped to Shut Down in power policy, when the Power button is pressed, the system does not shut down but only exits Away Mode.When th

39、e PC exits Away Mode, the following actions occur:· The primary display is turned on.· Analog audio is un-muted.· A notification is delivered to registered drivers and applications that the system has exited Away Mode. For more information, see “Registering for Away Mode Notifications

40、” later in this paper.Sleep Idle Time-OutWhen the PC is in Away Mode, the PC might automatically enter Sleep if an idle time-out is configured in power policy. The PC automatically enters Sleep when the idle time-out expires unless the PC exits Away Mode or an application requests the system to stay

41、 awake by using the SetThreadExecutionState(ES_SYSTEM_REQUIRED) API.When the PC wakes from Sleep because of a hardware Power button press, such as the Sleep or Power buttons, the display is turned on and audio is un-muted. If the PC wakes from Sleep because of a timer or WoL, the PC wakes but the sc

42、reen remains turned off and audio remains muted.Away Mode and Windows Vista Power PolicyWindows Vista provides robust configuration of Away Mode, including the ability to selectively allow Away Mode functionality for individual power plans. Away Mode can be enabled by an application or service by us

43、ing the SetThreadExecutionState API or permanently through Windows Registry. Software developers and system manufacturers must be cautious when enabling Away Mode because there is no graphical user interface for users to change the current Away Mode policy.Enabling Away ModeAlthough Away Mode is sup

44、ported on any Windows Vistabased computer, the mode must be explicitly allowed by the current power policy. The Allow Away Mode power setting enables the user to selectively allow Away Mode on one or more power plans or individually for AC and DC (on battery) power states.Allow Away Mode SettingDesc

45、riptionAllows the system to use Away Mode. If this setting is disabled, Away Mode is not used even if programs request it.GUID25dfa149-5dd1-4736-b5ab-e8a37b5b8187PowerCfg AliasNot applicablePossible ValuesIndexNameDescription0DisabledAway Mode is not available.1EnabledAway Mode is available.HiddenYe

46、sIf the Allow Away Mode power setting is set to Enabled for the currently active power plan, then Away Mode can be enabled by an application by using the SetThreadExecutionState API. When Away Mode is enabled by an application and allowed by the current power plan, any Sleep power action causes the

47、system to enter Away Mode. If the Allow Away Mode power setting is set to disabled for the currently active power plan, the system never enters Away Mode. Any Sleep power action results in the system entering Sleep, even if an application has enabled Away Mode with the SetThreadExecutionState API or

48、 Away Mode is enabled in the Windows Registry. If the system is in Away Mode and then transitions power sources to a state that does not allow Away Mode, the system immediately exits Away Mode. For example, this change may occur if Away Mode is not allowed on DC power for the active power plan and t

49、hen the user switches the PC to battery power.The Allow Away Mode power setting is hidden by default and is not shown in Power Options Advanced Settings. Therefore, to configure the Allow Away Mode power setting, use the PowerCfg tool. For more information about how to use the PowerCfg tool to confi

50、gure Windows Vista power policy, see “Windows Vista Power Policy Configuration and Deployment” in “Resources” at the end of this paper.You can examine the value of the Allow Away Mode power setting by using the /qh (Query Hidden settings) command. The following example shows how to view the value of

51、 the Allow Away Mode power setting in the default Power Saver power plan:C:>powercfg /qh SCHEME_MAX SUB_SLEEPPower Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a (Power saver) Subgroup GUID: 238c9fa8-0aad-41ed-83f4-97be242c8f20 (Sleep) Power Setting GUID: 25dfa149-5dd1-4736-b5ab-e8a37b5b8187 (

52、Allow Away Mode Policy) Possible Setting Index: 000 Possible Setting Friendly Name: No Possible Setting Index: 001 Possible Setting Friendly Name: Yes Current AC Power Setting Index: 0x00000001 Current DC Power Setting Index: 0x00000000The following example shows how to set the Allow Away Mode power

53、 setting to Enabled on AC power for the currently active power plan:C:>powercfg setdcvalueindex SCHEME_CURRENT SUB_SLEEP 25dfa149-5dd1-4736-b5ab-e8a37b5b8187 1The following example shows how to set the Allow Away Mode power setting to Disabled on DC power for the Windows default Power Saver plan:

54、C:>powercfg setdcvalueindex SCHEME_MAX SUB_SLEEP 25dfa149-5dd1-4736-b5ab-e8a37b5b8187 0After you change the power plan value, you must set the power plan active for the new Allow Away Mode setting value to be applied to the system. The following PowerCfg command reapplies the currently active pow

55、er plan:C:>powercfg setactive SCHEME_CURRENT Enabling Away Mode with the SetThreadExecutionState APITwo methods are available for enabling Away Mode in Windows Vista. The preferred method is for an application or service to use the SetThreadExecutionState API.Applications can request Away Mode to

56、 be enabled by using SetThreadExecutionState. Developers must be very cautious about enabling Away Mode in their applications because the user expects the system to transition to a Sleep state unless the system is being used for entertainment or media scenarios. Away Mode is not a substitute for cor

57、rect support of Sleep.Applications that require Away Mode can enable the mode by calling SetThreadExecutionState with both the ES_CONTINUOUS and ES_AWAYMODE_REQUIRED flags. When Away Mode is no longer required, the application should call SetThreadExecutionState with the ES_CONTINUOUS flag but witho

58、ut the ES_AWAYMODE_REQUIRED flag. The following code sample demonstrates these calls:/ Television recording is beginning, enable Away Mode and prevent/ the sleep idle timeout:/SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED | ES_AWAYMODE_REQUIRED);/ Wait until recording is complete/ Clear EXECUTION_STATE flags to disable Away Mode and allow the system into idle to sleep normally:/SetThreadExecutionState(ES_CONTINUOUS);Software developers should note that the system might still idle to the Sleep state aft

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論