怎么让系统支持S1
来源:互联网 发布:淘宝免费推广有哪些 编辑:程序博客网 时间:2024/04/28 20:07
前两天,一位前辈问我,怎么样让系统支持S1呢?一时无语。
平时我接触的都是笔记本,只支持S3,S4和S5,也没有仔细看是怎么支持的。
做了一个支持S1的试验,进入S1后看起来和进入S3差别是:Power灯不是闪而是一直亮的,进入和退出时间要短得多。
那么怎么样让OS知道我们支持S1呢?OS怎么样进入S1呢?
在ACPI spec中有说到,System /_Sx states
All system states supported by the system must provide a package containing the DWORD value of the following format in the static
Definition Block. The system states, known as S0–S5, are referenced in the namespace as /_S0–/_S5 and for clarity the short Sx
names are used unless specifically referring to the named /_Sx object. For each Sx state, there is a defined system behavior.
System State Package
Byte Byte Length Offset Description
1 0 Value for PM1a_CNT.SLP_TYP register to enter this system state.
1 1 Value for PM1b_CNT.SLP_TYP register to enter this system state. To enter any given state, OSPM must write the PM1a_CNT.SLP_TYP register before the PM1b_CNT.SLP_TYP register.
2 2 Reserved
例如:Name(/_S1, Package(4){0x1,0x0,0,0}),就申明了_S1这个system state,用于告诉OS,系统支持S1!
S0,S3,S4和S5都是这样的(当然,S0和S5是每个都支持的)。并且这个Package也说明了进入S1的方法:
将0x1写如到PM1a_CNT.SLP_TYP,0x0写入到PM1b_CNT.SLP_TYP,设置SLP_EN位。
其中PM1a_CNT和PM1b_CNT在Fixed ACPI Description Table (FADT)中有回报,
SLP_TYP和SLP_EN是PM1 Control Registers中的的bit12~10和bit13,在ACPI spec中都有定义。
这里也体现了ACPI架构的优点:OS只要得到ACPI Tables和AML code就几乎得到了他想得到的一切,底层的都不用去管。
- 怎么让系统支持S1
- 怎么让MAC系统CrossOver支持中文软件运行
- 怎么让系统既支持PC访问也支持手机访问
- 怎么让tomcat支持中文文件名???
- 怎么让blackberry的模拟器支持中文?
- 怎么让Nginx/apache支持shtml格式
- 【转】怎么让VI支持中文显示
- S1 商品信息管理系统
- 让英文Windows系统支持中文
- 让虚拟机(VMWare)支持OEM系统
- ubuntu系统如何让php支持GD
- linux64bit系统下让firefox支持jre
- 让XP系统支持GPT硬盘
- 让linux系统支持xfs文件系统
- 如何让Ubuntu系统支持WebP图片格式
- 如何让Ubuntu系统支持WebP图片格式
- 如何让Ubuntu系统支持WebP图片格式
- 怎么让你的窗口支持文件拖入功能
- 《程序员密码学》 学习笔记 - 02 - ASN.1编码学习
- [java]junit4的参数化测试
- DataSet 组件
- 如何获得TextBox里光标位置
- DataReader 组件
- 怎么让系统支持S1
- DataReader 组件
- 人生哲理名言
- [转载]用servlet写的一个验证码的例子
- DataSet和DataAdapter组件
- ASP.NET 2.0中Gridview控件高级技巧
- 奋斗
- 让Vista知道系统是Mobile平台-----应该具有的Hibernate选项
- 语录