- 积分
- 573
- 最后登录
- 2024-4-23
- 精华
- 2
- 阅读权限
- 205
- 主题
- 35
- UID
- 38564
- 帖子
- 1153
- PB币
- 5526
- 威望
- 17
- 贡献
- 1
- 技术
- 172
- 活跃
- 558
- UID
- 38564
- 帖子
- 1153
- PB币
- 5526
- 贡献
- 1
- 技术
- 172
- 活跃
- 558
|
沙发
发表于 2009-7-21 19:35:35
IP属地上海
本帖最后由 威廉第三 于 2009-7-21 19:39 编辑
补充一下
HDEF.rtf里代码往DSDT.dsl文件里拷贝需要注意,里面有两个部分和其中HDEF起的作用相当于HDAEnabler,因为部分AMI bios里没有这项,因此需要手动添加,
添加的位置是在Device (PCI0)里,可以放在最后,以ALC888为例- Device (PCI0)
- {
- ...
- //在这里添加
- Device (HDEF)
- {
- Name (_ADR, 0x001B0000)
- Method (_PRW, 0, NotSerialized)
- {
- Return (Package (0x02)
- {
- 0x0D,
- 0x05
- })
- }
- Method (_DSM, 4, NotSerialized)
- {
- Store (Package (0x08)
- {
- "codec-id",
- Buffer (0x04)
- {
- 0x88, 0x08, 0xEC, 0x10
- },
- "layout-id",
- Buffer (0x04)
- {
- 0x78, 0x03, 0x00, 0x00
- },
- "device-type",
- Buffer (0x11)
- {
- "Realtek ALC888-0"
- },
- "PinConfigurations",
- Buffer (0x28)
- {
- /* 0000 */ 0x50, 0x70, 0x21, 0x01, 0x40, 0x01, 0x13, 0x90,
- /* 0008 */ 0x20, 0x30, 0x81, 0x01, 0x41, 0x40, 0x01, 0x01,
- /* 0010 */ 0x30, 0xE0, 0xC5, 0x01, 0x60, 0xE0, 0x45, 0x01,
- /* 0018 */ 0x0F, 0x00, 0x00, 0x40, 0x0F, 0x00, 0x00, 0x40,
- /* 0020 */ 0x10, 0x01, 0xA0, 0x90, 0x11, 0x01, 0xA0, 0x90
- }
- }, Local0)
- DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
- Return (Local0)
- }
- }
- }
复制代码 HDEF.rtf里的HDEF代码多了一个右括号(}),那个正是Device (PCI0)的右括号,
这个添加的时候大家需要看清楚,可以使用一些代码编辑器确定Device (PCI0)一对括号的范围再添加
我是用Source Insight这款软件的
而Scope (\_GPE)是本来就有的,我只是在里面注册了HDEF的信息,
具体是在Method (_L0D, 0, NotSerialized)里添加Notify (\_SB.PCI0.HDEF, 0x02),以asus P5k se/epu为例- Scope (\_GPE)
- {
- Method (_L09, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.P0P2, 0x02)
- Notify (\_SB.PCI0.P0P5, 0x02)
- Notify (\_SB.PCI0.P0P6, 0x02)
- Notify (\_SB.PCI0.P0P7, 0x02)
- Notify (\_SB.PCI0.P0P8, 0x02)
- Notify (\_SB.PCI0.P0P9, 0x02)
- Notify (\_SB.PCI0.P0P4, 0x02)
- Notify (\_SB.PWRB, 0x02)
- }
- Method (_L0B, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.P0P1, 0x02)
- Notify (\_SB.PWRB, 0x02)
- }
- Method (_L08, 0, NotSerialized)
- {
- \_SB.PCI0.SBRG.SIOH ()
- }
- Method (_L1D, 0, NotSerialized)
- {
- \_SB.PCI0.SBRG.SIOH ()
- }
- Method (_L0D, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.EUSB, 0x02)
- Notify (\_SB.PCI0.USBE, 0x02)
- Notify (\_SB.PWRB, 0x02)
- //添加到Method (_L0D, 0, NotSerialized)里面
- Notify (\_SB.PCI0.HDEF, 0x02)
- }
- Method (_L03, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.USB0, 0x02)
- Notify (\_SB.PWRB, 0x02)
- }
- Method (_L04, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.USB1, 0x02)
- Notify (\_SB.PWRB, 0x02)
- }
- Method (_L0C, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.USB2, 0x02)
- Notify (\_SB.PWRB, 0x02)
- }
- Method (_L0E, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.USB3, 0x02)
- Notify (\_SB.PCI0.USB4, 0x02)
- Notify (\_SB.PWRB, 0x02)
- }
- Method (_L05, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.USB5, 0x02)
- Notify (\_SB.PWRB, 0x02)
- }
- Method (_L20, 0, NotSerialized)
- {
- Notify (\_SB.PCI0.USB6, 0x02)
- Notify (\_SB.PWRB, 0x02)
- }
- }
复制代码 |
|