x86 硬件上的 Mac OS X 2008–2024 技术文献库
InfiniteMac OSx86 › OSx86 10.X 核心架构与安装配置 › 通过 DSDT 修复将 UHCI / EHCI USB 控制器识别为“内置 (Built-in)”以完美解决睡眠与唤醒
496,156 reads · 2009-08-30 – 2011-09-26
技术专卷 10.X 核心架构 DSDT Gigabyte G31M / P35 USB / EHCI

通过 DSDT 修复将 UHCI / EHCI USB 控制器识别为“内置 (Built-in)”以完美解决睡眠与唤醒

简体中文精译技术专卷 · 完整保留原始命令、Kext 名称、ACPI 节点与引导参数查看英文原版 (Original English) →

先说问题成因,再谈解决方案:

在未修补 DSDT 前,我主板上的 USB 1.1(UHCI)与 USB 2.0(EHCI)接口在“系统概述”(System Profiler)中均被识别为外接“PCI 扩展槽(Expansion Slots)”,这直接引发了两个严重问题:第一,电脑进入睡眠后无法通过键盘或鼠标唤醒,只能按机箱电源键;第二,睡眠时若插着 U 盘,唤醒后必定弹出“设备未正常推出(Device Removal Error)”警告。

我将论坛上两项分别针对 UHCI(showtopic=168014 ↗)与 EHCI(showtopic=155345 ↗)的 DSDT 补丁结合在一起:为各个 USB 节点注入 Intel ICH10 原生 device-id 与 built-in 属性。

修补完成后,现在只需点击一下 USB 鼠标即可秒速唤醒睡眠中的电脑,睡眠前也无需手动弹出 U 盘,且以 -v 啰嗦模式启动时不再出现 controller will be unloaded across sleep 错误!

此补丁已在技嘉 GA-EP35-DS3P 上完美工作,并适用于绝大多数采用 Intel ICH9 与 ICH10 南桥的技嘉主板。注意: 地址为 0x001D0003 的设备(在我的主板上名为 US31)请保持原样切勿修改。

参与贡献成员 (33)
@wwbsox (44)@Snow (23)@EnzoFX (13)@kDawg (12)@Ianxxx (8)@xwin78 (6)@osxfr33k (6)@twr (5)@Jedric (5)@sk1nhd33t (4)@stayupforever90 (4)@CyCLoBoT (3)@mormegil (2)@kramer2k (2)@ohwhyme (2)@sylvester328 (2)+17 more
相关硬件参考
高速 U 盘启动安装盘 ↗ 静音散热器与电源组件 ↗ Gigabyte 技嘉主板 ↗

社区实测与技术补充笔记

自 160 则原始讨论回帖中萃取 146 则高价值技术回应

技术笔记 #1 @Ianxxx 2009-08-31

这套补丁实在太赞了,从此再也不需要去改任何系统 Kext 了!

作者修订 #1 @wwbsox 2009-08-31 ↳ Re: @Ianxxx

EHCI 修复部分的功劳归于 Apex。

顺带一提,第一个链接里的 SATA 补丁即使在我这种 ICH9 主板上也非常好用!现在“系统概述”里的 AHCI 控制器会直接显示为 ICH10,而不再是“Unknown AHCI Controller(未知的 AHCI 控制器)”。我的 DSDT 里原本没有名为 SATA 的区段,但 IDE1 具有相同的地址,于是我把该方法加进 IDE1 底下就顺利生效了。

技术笔记 #2 @Snow 2009-08-31

我也遇到同样的问题:有时开机后键盘和鼠标会失去响应(在变色龙 Chameleon 加上 USB 相关引导参数后似乎改善了这点),但“系统概述”里依然显示为“扩展槽(Expansion Slot)”,而且睡眠后只能按机箱电源键唤醒。
我试着把一楼的代码加进 .dsl 文件,但在编译时却跳出以下报错(我的 DSDT 里原本已经有 DTGP 方法了):

/Users/Snow/Desktop/dsdt.dsl  4032:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

/Users/Snow/Desktop/dsdt.dsl  4066:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

/Users/Snow/Desktop/dsdt.dsl  4100:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

/Users/Snow/Desktop/dsdt.dsl  4134:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

/Users/Snow/Desktop/dsdt.dsl  4188:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

/Users/Snow/Desktop/dsdt.dsl  4222:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

/Users/Snow/Desktop/dsdt.dsl  4267:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

/Users/Snow/Desktop/dsdt.dsl  4306:                     DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error    4067 -   Object is not accessible from this scope ^  (DTGP)

请问各位知道原因吗?多谢!

技术笔记 #3 @Ianxxx 2009-08-31 ↳ Re: @Snow
@Snow我也遇到同样的问题:有时开机后键盘和鼠标会失去响应……我试着把一楼的代码加进 .dsl 文件,但在编译时却跳出以下报错(我的 DSDT 里原本已经有 DTGP 方法了)……

嗨,我附上了我自己 GA-P35-DS3L 用的 DSDT,你在里面搜索 DTGP 就能看到它应该放在哪个正确的层级位置了。

技术笔记 #4 @Snow 2009-08-31

试过了(原来我之前把 DTGP 放错区段了),但现在又跳出这两个新错误。

该死的 DSDT!

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20090521 [Jun 22 2009]
Copyright (C) 2000 - 2009 Intel Corporation
Supports ACPI Specification Revision 3.0a

/Users/Snow/Desktop/dsdt.dsl   203:         OSTP ()
Error    4063 -          Object does not exist ^  (OSTP)

/Users/Snow/Desktop/dsdt.dsl   254:             }Method         Notify (\_SB.PWRB, 0x02)
Error    4095 -                                       ^ syntax error, unexpected PARSEOP_METHOD, expecting $end


Elapsed time for major events


Miscellaneous compile statistics

        456 : Parse nodes
         82 : Namespace searches
         47 : Named objects
          4 : Control methods
         10 : Memory Allocations
     188850 : Total allocated memory
          0 : Constant subtrees folded

ASL Input:  /Users/Snow/Desktop/dsdt.dsl - 5646 lines, 189478 bytes, 96 keywords
Compilation complete. 2 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
作者修订 #2 @wwbsox 2009-08-31 ↳ Re: @Snow

GA-EP35-DS3P 的 DSDT

@snow

最后那个错误纯粹是语法错误(Syntax Error),只需仔细检查一下括号与标点符号即可——很可能是漏了逗号或空格位置不对。

你可以拿我附上的文件比对一下。

技术笔记 #5 @Snow 2009-08-31

好,抓到元凶了,原来是我某处多打了一个 } 右大括号,已经修好并成功编译了!

多谢各位指点,我下次重启时就加载新的 .aml 测试。

对了,套用这个 DSDT 补丁之后,我还需要在 com.apple.Boot.plist 里保留以下这几行参数吗?

<key>EHCIacquire</key>
<string>Yes</string>
<key>UHCIreset</key>
<string>Yes</string>
<key>USBBusFix</key>
<string>Yes</string>
技术笔记 #6 @aed0101@hotmail 2009-08-31

非常感谢!一试即灵(虽然编译时跳了 98 个语法问题,我稍后再慢慢整理)。

顺带问个题外话:我用外接的 USB 蓝牙适配器(Bluetooth Dongle)连接无线 Mighty Mouse 鼠标,但在系统设置里“允许蓝牙设备唤醒此电脑”的选项却是灰掉无法勾选的,因为该蓝牙适配器被识别为外接设备而非“内置(Built-in)”。请问有人知道能否像改以太网卡一样,通过 DSDT 或 EFI 字符串将 USB 蓝牙适配器强制标为 Built-in 吗?

作者修订 #3 @wwbsox 2009-08-31 ↳ Re: @aed0101@hotmail

@snow 我的 com.apple.Boot.plist 里完全没有加那几个 USB 参数,目前所有功能都正常工作。

技术笔记 #7 @Snow 2009-08-31

汇报:高速 USB 总线(EHCI)已经成功显示为“内置(Built-in)”了,但普通 USB(UHCI)却还是显示为“扩展槽(Expansion Slot)”。

更新:仔细看了一下,其实只有插着键盘和鼠标的那一条 UHCI 总线还显示为扩展槽,其余所有总线(包括高速 USB)都已经变成内置了!

技术笔记 #8 @Snow 2009-08-31

目前只剩 1 条 USB 总线还显示为“扩展槽”,我猜 DSDT 里漏掉了这条总线的修复代码。

看起来它的设备代号尾数是 37,我是不是该在 DSDT 里再新增一个像 USB6 之类的节点?

未变内置的 USB 总线:

主机控制器位置: 扩展槽(Uitbreidingssleuf)
主机控制器驱动程序: AppleUSBUHCI
PCI 设备 ID: 0x2937
PCI 修订版 ID: 0x0002
PCI 厂商 ID: 0x8086
总线编号: 0x1a

对比已变内置的总线:

主机控制器位置: 内置 USB 接口(Ingebouwde USB-interface)
主机控制器驱动程序: AppleUSBUHCI
PCI 设备 ID: 0x3a36
PCI 修订版 ID: 0x0002
PCI 厂商 ID: 0x8086
总线编号: 0x5d

更新:搞定了!原来是我 DSDT 里 USB3 与 US31 的 Name (_ADR, ...) 地址刚好对调了!修正回来后全部变成内置,我这就去把 com.apple.Boot.plist 里的旧参数删掉。

主机控制器位置: 内置 USB 接口(Ingebouwde USB-interface)
主机控制器驱动程序: AppleUSBUHCI
PCI 设备 ID: 0x3a37
PCI 修订版 ID: 0x0002
PCI 厂商 ID: 0x8086
总线编号: 0x1a

现在我终于可以直接按键盘上的睡眠键唤醒电脑了(就像在 Windows 下一样)!

再次感谢各位老兄的指导!

技术笔记 #9 @mormegil 2009-08-31

恭喜恭喜(Gelukwens)!

我这边试遍了所有方法,电脑连进入睡眠都做不到,更别提唤醒了。

作者修订 #4 @wwbsox 2009-09-01 ↳ Re: @mormegil

@mormegil

你有安装 Snow Leopard 专用的 SleepEnabler.kext 吗?另外还必须搭配 NullCPUPowerManagement.kext,否则 SleepEnabler 会跟原生电源管理发生冲突。我手头上没有你用的那块主板,但看过不少用户的反馈,它跑 OSx86 的兼容性似乎相当不错。

技术笔记 #10 @Snow 2009-09-01

Mormegil,请再次确认你有没有加载齐全所有适用于 Snow Leopard 的必备 Kext:

• FakeSMC
• IOAHCIBlockStorageInjector
• NullCPUPowerManagement
• OpenHaltRestart
• PlatformUUID
• SleepEnabler

外加正确修补的 DSDT,以及确认 KextUtility 有没有正确重建 mkext 缓存?

技术笔记 #11 @Ianxxx 2009-09-01
更新:搞定了!原来是我 DSDT 里 USB3 与 US31 的 Name (_ADR, ...) 地址刚好对调了!修正回来后全部变成内置,我这就去把 com.apple.Boot.plist 里的旧参数删掉。

我差点忘了提这点,我当初也是这两个名称跟地址刚好颠倒了!请问你也是用 Windows 下的 Patcher 0.2 Beta 5 生成基础 dsdt.aml 的吗?

技术笔记 #12 @mormegil 2009-09-01 ↳ Re: @wwbsox
@wwbsox@mormegil 你有安装 Snow Leopard 专用的 SleepEnabler.kext 吗?另外还必须搭配 NullCPUPowerManagement.kext,否则 SleepEnabler 会跟原生电源管理发生冲突……

终于破案了!原来是我 BIOS 里的第三方 JMicron 控制器设成了 IDE 而非 AHCI 模式!

没错,这块主板对 OS X 的兼容性实在太好了(我想所有 P45 主板都是如此):SATA 和 LAN 网卡原生免驱,声卡修补一下 AppleHDA 就完美工作,现在连 S3 内存睡眠(Suspend-to-RAM)也彻底搞定了!

作者修订 #5 @wwbsox 2009-09-01 ↳ Re: @mormegil

我是在 Windows 下使用 ACPI Patcher 的,因为它提供了更多自动化修复选项。至于节点名称叫 (USB3) 还是 (US31) 只是随意命名的代号,真正关键的是底下的硬件地址(_ADR)。

正如我在首帖所提醒的:“请特别留意地址为 0x001D0003 的 USB 设备(在我这里名为 US31),切勿修改此设备。”

另外顺带一问:有人见过支持 64 位模式的 IOATAFamily Kext 吗?我真的很想在 BIOS 里关掉 AHCI 模式。

技术笔记 #13 @kDawg 2009-09-01 ↳ Re: @wwbsox
@wwbsox先说问题成因,再谈解决方案:在未修补 DSDT 前,我主板上的 USB 1.1 (UHCI) 与 USB 2.0 (EHCI) 接口在“系统概述”中均被识别为外接“PCI 扩展槽”……

请问方便贴出你整份完整的 DSDT 吗?我很好奇你是怎样实现直接点击 USB 鼠标唤醒电脑的。

技术笔记 #14 @Ianxxx 2009-09-01 ↳ Re: @kDawg
@kDawg请问方便贴出你整份完整的 DSDT 吗?我很好奇你是怎样实现直接点击 USB 鼠标唤醒电脑的。

在本帖第 1 页就有我贴出的完整 DSDT,用键盘或鼠标唤醒睡眠都完全正常。

技术笔记 #15 @kDawg 2009-09-01 ↳ Re: @Ianxxx
@Ianxxx在本帖第 1 页就有我贴出的完整 DSDT,用键盘或鼠标唤醒睡眠都完全正常。

一楼贴的好像只有 USB/EHCI 那一小段代码而已。我用的是一模一样的主板,但始终无法用鼠标或键盘唤醒系统——肯定是你完整 DSDT 的某处细节或某个 BIOS 设置跟我不同,我很想找出到底差在哪里。

作者修订 #6 @wwbsox 2009-09-01 ↳ Re: @kDawg

更新:我已经把自己完整的 DSDT.aml 补进一楼首帖了,里面已包含修改好的 USB 区段以及注入 ICH10 Device ID 的 IDE1 区段。

技术笔记 #16 @kramer2k 2009-09-02

我也遇到了无法通过 USB 键盘或鼠标唤醒睡眠的问题。在我的“系统概述”里,所有 USB 口都已显示为内置,但不知该如何开启唤醒功能……

另外在“Serial-ATA”项目下,虽然看得到连接的硬盘,但原本应该显示芯片组名称的地方(比如 ICH10、ICH9 等)却是空白的——请问这是 DSDT 的问题还是 Kext 的问题?

声明一下我可不是新手菜鸟(我从当年 Deadmoo 镜像时代就开始玩黑苹果了),但这两个问题实在把我难倒了……

随帖附上我的 DSDT 恳请指点:

硬件配置:
GA-P31-DS3L (ICH7 南桥)
ALC888 声卡
Core 2 Duo E7200 @ 3.42 GHz

技术笔记 #17 @Snow 2009-09-02

太好了 wwbsox,多谢你关于 IDE1 的补充提示,现在我的 SATA 设备也全部显示为 ICH10 了!
请问你的 DSDT 里显卡(GFX)注入写在哪个位置?或者能否教我如何手动注入我的 8800 GT 代码?
我不太喜欢用那些自动修补程序,比较倾向手动修改。

附上注入 ICH10 前后的对比截图:

修改前(PRE)

修改后(POST)

技术笔记 #18 @kDawg 2009-09-02 ↳ Re: @Snow
@Snow太好了 wwbsox,多谢你关于 IDE1 的补充提示,现在我的 SATA 设备也全部显示为 ICH10 了!请问你的 DSDT 里显卡(GFX)注入写在哪个位置?或者能否教我如何手动注入我的 8800 GT 代码……

显卡注入代码每张卡都不一样,取决于你的显存大小、视频输出口配置,更重要的是插在哪一个 PCIe 插槽上。我已经在代码里加上注释标出需要留意的字段(你可以 Google 搜索 gfxutil 来查询自己显卡的 PCI 地址)。

以下是需要放进 Device (PCI0) 区段内的修补代码(此示例适用于配备双 DVI 口的 512MB 8800 GT):

            Device (PEGP)
            {
                Name (_ADR, 0x00010000) //<-- This is the location on the PCI bus (important)
                Method (_STA, 0, NotSerialized)
                {
                    Return (0x0F)
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (Package (0x02)
                    {
                        0x09, 
                        0x05
                    })
                }

                Device (GFX1)
                {
                    Name (_ADR, Zero)
                    Name (_SUN, 0x0B)
                    Method (_PRW, 0, NotSerialized)
                    {
                        Return (Package (0x02)
                        {
                            0x0B, 
                            0x04
                        })
                    }

                    Method (_DSM, 4, NotSerialized)
                    {
                        Store (Package (0x16)
                            {
                                "@0,compatible", 
                                Buffer (0x0B)
                                {
                                    "NVDA,NVMac"
                                }, 

                                "@0,device_type", 
                                Buffer (0x08)
                                {
                                    "display"
                                }, 

                                "@0,name", 
                                Buffer (0x0F)
                                {
                                    "NVDA,Display-A"
                                }, 

                                "@1,compatible", 
                                Buffer (0x0B)
                                {
                                    "NVDA,NVMac"
                                }, 

                                "@1,device_type", 
                                Buffer (0x08)
                                {
                                    "display"
                                }, 

                                "@1,name", 
                                Buffer (0x0F)
                                {
                                    "NVDA,Display-B"
                                }, 

                                "NVCAP", //<-- This denotes the ports in the card (not as important)
                                Buffer (0x18)
                                {
                                    /* 0000 */    0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 
                                    /* 0008 */    0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 
                                    /* 0010 */    0x00, 0x00, 0x00, 0x00
                                }, 

                                "VRAM,totalsize", //<-- How much RAM you have (important)
                                Buffer (0x04)
                                {
                                    0x00, 0x00, 0x00, 0x20
                                }, 

                                "device_type",
                                Buffer (0x0D)
                                {
                                    "NVDA,GeForce"
                                }, 

                                "model", 
                                Buffer (0x17)
                                {
                                    "NVIDIA Geforce 8800 GT"
                                }, 

                                "rom-revision", 
                                Buffer (0x06)
                                {
                                    "3173a"
                                }
                            }, Local0)
                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                        Return (Local0)
                    }
                }
            }
作者修订 #7 @wwbsox 2009-09-02 ↳ Re: @kDawg

DSDT 显卡注入(GFX)

@snow 你当然知道这部分配置是因显卡型号而异的,不过我还是把包含显卡注入的 DSDT 贴上来供你比对参考(请在 PCI0 底下搜索 PEGP 区段)。

而且看起来 kDawg 最新一帖贴出的代码正好就是针对你那张显卡型号的。

总之,我是在 Windows 下使用 ACPI Patcher 生成的:在 Graphics 分页下选择你的显卡型号与显存容量,NVCAP 我选了 Dual DVI(双 DVI,别选其它项),PCI 位置选 0,并勾选“Use DSDT GFX”与“PEGP”复选框。

在我这里工作正常;不过有个怪现象:如果我直接让 ACPI Patcher 输出 .aml 文件,拿回 Mac 用 iAslMe 反编译再重新编译都没问题;但如果我让 ACPI Patcher 输出 .dsl 源码,iAslMe 却会因为太多错误而无法编译?真奇怪……

祝好运!

技术笔记 #19 @Snow 2009-09-02

好的各位,我先直接试试 kDawg 这段代码,因为我的显卡规格完全一模一样:8800 GT、512 MB、双 DVI 口,而且同样插在第一条 PCIe 插槽上。

如果这样不行的话我再用 ACPI Patcher;我之所以不想用自动工具,是因为它会从头生成整份文件,我怕搞乱自己已经改好的其它段落。

试完再上来汇报结果!

更新:请问在 IORegistryExplorer 里要去哪个字段看显卡的 PCI 地址(_ADR)?

更新 2:我运行 gfxutil 查出来的路径是 DevicePath = PciRoot(0x1)/Pci(0x1,0x0)/Pci(0x0,0x0),这是否意味着 _ADR 应该写成:

0x101000000
作者修订 #8 @wwbsox 2009-09-02 ↳ Re: @Snow

显卡注入补充

@snow

我也不想把已经改好的 DSDT 推倒重来。所以我先用工具单独生成了一份只勾选显卡注入的临时 DSDT,然后把里面整段 PEGP 代码复制粘贴回我目前包含其它补丁的主力 DSDT 里。

另外,我很肯定我的显卡在 IORegistryExplorer 里显示的 PCI 地址是 1,但当我在 ACPI Patcher 里选择地址 1 时,它却完全没有把显卡代码写进 DSDT;必须选 PCI 0 才会正常生成。

技术笔记 #20 @Snow 2009-09-02

搞定了!

我一字不改直接粘贴了 kDawg 的代码,因为实际上我的 _ADR 地址同样是 0x00010000,而不是我刚才以为的那串数字。

再次万分感谢大家的帮忙!

技术笔记 #21 @Snow 2009-09-02

我想我现在只剩最后一个小问题了(直到我攒够钱去买一把漂亮的原厂 Mac 键盘为止):

很久以前我用 Ukelele 为自己的比利时布局 PC 键盘自定义了一份键盘布局文件(Keyboard Layout),原本完全吻合;但现在 OS X 三不五时就会自己跳回系统默认的比利时键盘布局(那是按 Apple 键盘排列的)。
我试过直接去 /System/Library/Keyboard Layouts 移走系统默认的多国语言键盘组件,想强迫它只加载我的自定义布局,结果却搞到整个键盘彻底失灵(不确定是移走文件造成的还是改 DSDT 的副作用)。
现在把系统原文件放回去后又恢复正常了。

看来我得研究一下用 QuicKeys 来改键位了。

技术笔记 #22 @Voyn1x 2009-09-02

多谢分享这个补丁!(Y)

为了搞定这个问题我已经跟 DSDT 搏斗了好几个星期,在此之前我一直只能靠 Slice 修改版的 IOUSBFamily 当作权宜之计。

作者修订 #9 @wwbsox 2009-09-02 ↳ Re: @Voyn1x
@Voyn1x多谢分享这个补丁!(Y) 为了搞定这个问题我已经跟 DSDT 搏斗了好几个星期,在此之前我一直只能靠 Slice 修改版的 IOUSBFamily 当作权宜之计。

很高兴对你有帮助!功劳归于原作者们,我所做的只是把这两个补丁整合在一起贴出来,省去大家在几十页帖子里大海捞针的工夫。

技术笔记 #23 @EnzoFX 2009-09-02

Snow,我也是用 ACPI Patcher 通过 DSDT 驱动我的 9800 GT,工作得非常完美,只要确保勾选正确的设置就行了。

我想问问有没有人在 GA-P35-DS3L 主板上套用本帖的 USB 补丁?
我的 USB 口在系统里同样显示为“扩展槽(Expansion Slot)”,而且只有 2 个显示为高速总线。
我目前无法用键盘或鼠标从睡眠中唤醒电脑;但更困扰的是,有时开机或重启时系统会完全抓不到我的 USB 键盘!我在 BIOS 里有开启 USB Keyboard Support(没开 Mouse Support),一直怀疑跟这项设置有没有关系。
补充:刚才插着 U 盘测试了一下睡眠,果不其然唤醒时也跳出了“设备未正常推出”警告!

我很想试试本帖的补丁(但我从未手动改过 DSDT)。请问为什么地址为 0x001D0003 的那个设备要特别保留不能动?
随帖附上我 dsdt.dsl 中的 USB 区段,看看有没有好心人能帮我加速处理一下 =P

技术笔记 #24 @EnzoFX 2009-09-03

万分感谢 wwbsox!

更新:
目前为止一切顺利 =D
我现在终于可以用键盘和鼠标唤醒电脑了,开心到飞起!接下来……就剩解决闲置自动睡眠(Sleep on Idle)失灵的问题了呵呵。

技术笔记 #25 @EnzoFX 2009-09-03

唉,看来这个补丁并没有解决我每隔一两次重启就会抓不到 USB 键盘的问题 =(
如果我在 BIOS 里关掉 USB Keyboard Support,在变色龙引导菜单画面就不能按方向键选系统了对吧?哈哈看来也不能关 =/

至于我闲置无法自动睡眠的问题是这样的:
之前我是因为接了 DVD 刻录机导致闲置睡眠失败(详见这篇帖子最后一楼我的反馈:http://www.insanelymac.com/forum/index.php?showtopic=17… ↗)。
更早之前则是 U 盘造成的;但这次我全新重装系统后完全没接任何 DVD 光驱(直接从硬盘对硬盘安装),结果到了设定时间它依然无法自动进入睡眠。时间到的时候我确实听到硬盘发出咔哒一声,代表系统真的有尝试进入睡眠,但被某个东西拦住了。

另外还有一个怪问题:屏幕保护程序永远不会自动启动 =P 无论我把屏保、关闭显示器、电脑睡眠的时间间隔设成多少都一样。我原本是想靠屏保来绕过我这张显卡的唤醒花屏问题——具体来说,当屏幕刚熄灭断电、而我人还坐在电脑前立刻晃动鼠标唤醒屏幕时(特别是在显示器还没完全进入待机状态前马上唤醒),画面刚亮起来的前几秒钟会出现满屏幕雪花噪点,过好几秒后才会重新初始化恢复正常桌面(无论我是用 EFI 字符串还是 DSDT 注入都有这个毛病)。如果有人知道怎样根治这个显卡唤醒雪花问题就太感激了;目前我只好拿屏保当作缓冲阶段,在显示器真正断电前晃一下鼠标就能瞬间回到桌面哈哈 =P 等我真的离开座位时,再让它关闭显示器并进入睡眠。

技术笔记 #26 @Ianxxx 2009-09-03 ↳ Re: @Snow
@Snow我想我现在只剩最后一个小问题了(直到我攒够钱去买一把漂亮的原厂 Mac 键盘为止):很久以前我用 Ukelele 为自己的比利时布局 PC 键盘自定义了一份键盘布局文件……

我找到唯一能让自定义键盘布局永久生效的方法,是在安装完成“第一次开机进入设置助理之前”就先把键盘布局文件放进系统里,并在初次设置向导中直接选取它。

技术笔记 #27 @Snow 2009-09-03

这样设过之后就不会再跳掉了?哇,真是奇特的解法,不过管用就好!但我可不想为了这个再去重装一次系统呵呵。

顺带一问:我刚发现我的 8800 GT 在“系统概述”里也出现在“PCI 卡(PCI Cards)”列表中。目前所有功能都正常,我是完全照搬 kDawg 的代码放在 PCI0 底下(没有另外去改 PCI 总线位置)。

这样应该没问题吧?

技术笔记 #28 @Ianxxx 2009-09-03

你应该可以不用重装系统、直接重新触发运行一次开机“设置助理(Setup Assistant)”,我记得有命令可以做到。

技术笔记 #29 @EnzoFX 2009-09-03

我看唯一差别只有总线显示为 Bus: PCIe 而已……

请问有人知道该如何解决开机时偶尔抓不到 USB 键盘的问题吗?
我的配置是 GA-P35-DS3L、Chameleon 2,并通过 DSDT 注入了显卡、LAN 网卡、本帖的 USB 补丁以及 Legacy HDA 声卡。

补充:我刚发现连要打印文档时都必须先把 USB 打印机拔掉重插才有反应 =/ 到底是谁在搞鬼?偏偏我的 USB 鼠标从来没受过影响……

我应该试试在变色龙的 com.apple.Boot.plist 加入这几个参数吗?
<key>EHCIacquire</key>
<string>Yes</string>
<key>UHCIreset</key>
<string>Yes</string>
<key>USBBusFix</key>
<string>Yes</string>

我不确定这些引导参数会不会跟本帖的 DSDT 补丁起冲突,有人试过吗?

作者修订 #10 @wwbsox 2009-09-04 ↳ Re: @EnzoFX

@EnzoFX

我私信问过几位跟你用同一块主板的用户,他们都没有遇到你说的这个问题。如果你愿意的话,不妨把你的 DSDT 贴上来让我看看能不能找出原因。

作者修订 #11 @wwbsox 2009-09-04

DSDT 原生 SpeedStep 变频

@各位使用技嘉主板的朋友

有人成功纯靠 DSDT 实现 CPU 的 P-States / C-States 原生变频与降压吗?

我正在考虑为技嘉主板开一个专属的 DSDT SpeedStep 讨论帖……除非大家知道哪里已经有写得很好的专帖。

我自己还没动手为 SpeedStep 修改 DSDT,但用 CPU-i 观察发现它似乎已经有一半作用:倍频与主频会随负载高低自动升降,唯独核心电压始终保持在最高档 P-State 的数值(这样就失去省电降温的意义了)。

作者修订 #12 @wwbsox 2009-09-04

CPU-i 是我从俄罗斯论坛 applelife.ru 下载的小工具。我会同时开 4 个 CPUTest 实例(类似 Mac 版的 Prime95 烤机程序)配合 CPU-i,借此对比待机与全速满载时的 CPU 读数。CPU-i 另一个很赞的功能是它会完整列出你这颗 CPU 支持的所有 P-States 档位及其对应的倍频与电压组合(我的 CPU 共有 6 个档位)。

利用这些数据,我应该就能把全部 6 个 P-States 写进 DSDT 里;而 C-States 信息则可以从 SSDT 表提取出来并整合进 DSDT 中。我已经找到非常详尽的参考资料,甚至包括针对我这颗处理器(Q9550)编译好的现成 DSDT.aml,但那是基于华硕主板编译的,DSDT 结构跟技嘉差异颇大。

我打算这个周末把相关软件和屏幕截图整理贴上来。

先分享两篇极佳的参考专帖:http://www.insanelymac.com/forum/index.php?showtopic=17… ↗ 以及 http://www.insanelymac.com/forum/index.php?showtopic=14… ↗(不过我认为现在引导时已经不需要单独加载 SSDT 表了,因为这些表可以直接合并写进 DSDT 里……我想应该是这样)。

技术笔记 #30 @EnzoFX 2009-09-04

wwbsox,如果你能帮我看看我的 DSDT 就太感激了!我刚才甚至开始怀疑这一切怪病是不是从我改用 DSDT 之后才出现的(虽然应该不是,但我现在实在毫无头绪)。

我仔细观察过,每当发作时,我的 USB 键盘与 USB 打印机必定是同时失灵的。会不会跟主板 BIOS 版本有关?另外还有一个较少见的现象:有时开机后显示器的色彩描述文件(Color Profile)没有加载,必须打开“系统偏好设置”点一下“显示器”才会强制加载生效。会不会是我通过 DSDT 注入显卡的配置不够完善?或许我可以试试在 ACPI Patcher 里换几种参数。

还有一个疑问:如果我在 BIOS 里禁用了好几项硬件功能(比如关闭所有 Legacy 串口/并口控制器),但 DSDT 文件里却依然保留了它们的全部启用定义,这样两者之间会产生冲突吗?

我的硬件配置:
GA-P35-DS3L Rev. 2.0
9800 GT(连同网卡、声卡一并通过 ACPI Patcher 写入 DSDT)
这是我的 dsdt.dsl 文件:kt tns.org/0zjbl
顺带确认一点:我这台机器有做双系统,切去 Windows 7 时所有硬件与 USB 设备都百分百正常。

作者修订 #13 @wwbsox 2009-09-05 ↳ Re: @EnzoFX

当你打开“系统概述”查看时,所有的 USB 端口都已经显示为“内置(Built-in)”了吗?你的打印机和键盘是挂在普通 USB 还是高速 USB(High-Speed USB)底下?我记得你提过已经试过在 BIOS 里关闭“Legacy USB Support”对吧?我看过有其它主板用户靠这招解决问题,但在技嘉 P35 系列主板上倒没遇到过你这种情况。我今晚稍后会帮你看看你的 DSDT。

至于在 BIOS 里关闭硬件功能……这并不会改变你的 DSDT 内容。因为 DSDT 是直接从完整的 BIOS ROM 镜像提取出来的,无论你在 BIOS 菜单里有没有启用某个端口,DSDT 里都会包含所有硬件定义。不过请务必确保你已经将主板刷到最新版的 BIOS,我看过不少人更新 BIOS 后就自动解决了许多古怪问题。

如果你怀疑是自己改过的 DSDT 引发问题,不妨试着用 ACPI Patcher 直接从官网下载的原始 BIOS ROM 文件提取一份只做基础编译、不加任何额外硬件注入的干净 DSDT;如果问题依旧存在,就能肯定根源不在 DSDT 上。

展开其余 103 则社区技术笔记完整历史讨论记录
技术笔记 #31 @Snow 2009-09-05 ↳ Re: @Ianxxx
@IanxxxCan you re-run set up without installing I'm sure theres a way

Missed your post m8

I don't think setup assistant will even show my modded keyboard layout because it isnt included in the bundle.
I wish there was a way to extract the dat files in the bundle though so I could actualy mod the default belgian keyboard layout.

@wwbsox, your keyboard and mouse are listed as High Speed USB devices? because on my rig they are not but the printer is.

Thx for the above info btw and good luck with the dsdt patching

技术笔记 #32 @Snow 2009-09-05 ↳ Re: @Snow
@SnowAnd that sticked? dang, odd solution but hey if it works. I'm not going to reinstall though hehe. btw, I just noticed I have my 8800GT listed in sys prof as PCI card. Everything works and I have input kDawgs code exactly as listed but without checking the proper PCI bus so at PCI0. This is still ok right?

I haven't changed anything except remove the dsdt.aml from my root dir and keep it in E/E and the GFX is now listed as PCI-e

I'm not complaining though, just an odd observation, has a mind on its own apparently.

作者修订 #14 @wwbsox 2009-09-05 ↳ Re: @Snow

@Snow

在我的“系统概述”里,我的 Apple 键盘是显示在“高速 USB 总线(High-Speed USB Bus)”底下,而 Rocketfish 鼠标则显示在普通 USB 总线下。另外,我之前看过一个网页有提供专为你那颗 Q6600 开启全部 P-States 的 DSDT 代码,等我找回链接再传给你;我自己则还在找 Q9550 的参数。

随帖附上 CPU-i 工具。

技术笔记 #33 @Snow 2009-09-05

Hmm, I really should get me one of those fancy apple keyboards. I guess the apple KB is USB2.0 and this Logitech Media KB is still at USB1.1.
Speedstep ey? I'm using VoodooPower in Leo, havent found a proper solution for Snow so that would be very welcome.
Thx a bunch for CPU-i m8, is that kext 64bit compatible btw?

Laters

ps. the above was a stupid mistake I made by checking PCI tab the first time and video tab on the second screenshot

技术笔记 #34 @Snow 2009-09-05

Temps in Leo are low 30's, especially now with colder climate. I guess it doesn't drop the voltage properly.

作者修订 #15 @wwbsox 2009-09-05 ↳ Re: @Snow

我也遇到完全相同的问题:倍频与主频会自动调降,但电压却始终钉死在最高档 P-State。

不过确实有办法将 CPU 的 P-States 与 C-States 直接写进 DSDT 里,我还在深入研究中,准备动手试试。

技术笔记 #35 @infinitek 2009-09-06

Thanx for posting your dsdt wwbsox… not only did it fix my USB ports allowing me to sleep..
but it also fixed my built-in audio on SL as well…!

I noticed 2 things i wanted to ask about.
Y did my serial-ATA go from ich9 to JMicron AHCI...?
How do you get rid of sound assertion lines on boot?

Thanx again…

技术笔记 #36 @Snow 2009-09-06

JMicron should be a diff path no? nothing to do with other ports. I still have 2 unknown devices which are prob the JMicron.
In Leo they were listed properly but I used a custom JMicron kext.

作者修订 #16 @wwbsox 2009-09-06 ↳ Re: @Snow

主板上的物理 ICH9/R 南桥芯片(OS X 原生不支持)当然没有变,我只是在 DSDT 里把它的 Device ID 伪装成 ICH10(OS X 原生支持)的数值——换言之就是欺骗 Mac OS X,让它误以为我们跑在受支持的原生硬件上。

我已经把 BIOS 里的第三方 JMicron SATA 控制器关掉了,正在等有高手编译出支持 64 位的对应 Kext(既然 Apple 已经放出 Snow Leopard 源码,相信不用等太久)。

至于开机时的 Sound assertion 声卡报错,我还没开始处理那部分,但我猜是因为 DSDT 里注入的 layout-id 及 PinConfigurations 跟 HDA Kext 里定义的不一致(不过 Kext 的数值应该会覆盖掉 DSDT 的配置)。

等我先把原生 SpeedStep(P-States / C-States)加进 DSDT 之后,就会动手整理声卡部分。

技术笔记 #37 @EnzoFX 2009-09-07 ↳ Re: @wwbsox
@wwbsoxWhen you look in system profiler. All your usb ports show as internal? Does the printer and keyboard show up under usb or high speed usb? I believe you stated you already tried disabling "Legacy usb" in the bios, maybe? I've read where that helped on other MB's but havent experienced your problem on the gigabyte p35 boards. I will…

Yeah, after applying the fix in this thread, my usb ports now show up as internal. Also, all my usb devices show up under a regular USB Bus, and not a "High-Speed" Bus, of which I have 2. There are 6 regular "USB Bus"

For BIOS settings, I have all legacy support disabled, except for KB support, because that'd render my usb keyboard useless at the Chameleon prompt, though I haven't tried since going to Cham 2.

I am also running the latest BIOS version, and built the dsdt from it.
I will try out a "clean" dsdt without fixes/patching, and see how that goes. In the meantime, any insight into my DSDT.dsl file would be greatly appreciated.

作者修订 #17 @wwbsox 2009-09-09 ↳ Re: @EnzoFX

EnzoFX,你试过套用本帖里其他人贴出的 DSDT 吗?Ianxxx 和另外几位朋友用的都是跟你同一块主板。我在 BIOS 里没有关闭任何 USB 选项,只关掉了附加的 JMicron 磁盘控制器。

技术笔记 #38 @EnzoFX 2009-09-13

I see a dsdt for an EP35-DS3L, but not P35-DS3L, worth a shot?

The last few restarts have been good, but still no sleep on idle. Could it be because I have no DVD drive connected? I know some drives are causing issues, so what about having none, like I do? haha maybe I'm just hoping for a quick fix.

Edit:
In your guys' experience, if GFX is enabled through DSDT, is it simply a matter of it working or not working? I.e. QE/CI on or off. OR, can it be something where like it looks like QE/CI is on, but can still get graphical glitches that can mean something is wrong with dsdt implementation? I hope this makes sense.
Basically, my issue is that every now and then my display color profile isn't loaded @ login.

作者修订 #18 @wwbsox 2009-09-14 ↳ Re: @EnzoFX

我通过 DSDT 注入 8800 GTS 完全没有遇到任何画面异常。顺带一提,到了 Snow Leopard,“系统概述”里已经不再显示 QE/CI 字样了。EP35 跟 P35 采用相同的芯片组,架构应该非常接近,只是 EP35 多了动态节能设计。

至于闲置自动睡眠(Sleep on Idle),我的机器可以正常工作,但有一个小特点:当显示器按设定时间熄灭后,系统必定会再等整整 5 分钟才会真正进入睡眠。比如我设置 1 小时后睡眠,显示器会在满 1 小时的时候熄灭,然后主机继续运转 5 分钟后才正式断电睡眠。这对我来说倒完全不成问题。

技术笔记 #39 @kramer2k 2009-09-14

@VWbsox
Are you able to wake from your USB2.0 keyboard? I've got the newest apple kb, which is identified as Highspeed with EHCI, but I'm unable to wake from it. However, my logitech mouse, when plugged directly to a port (as opposed to the KB) will wake my machine.

Waking from my KB is important as I also have a BT mighty mouse, which can't wake it from sleep either.

GA-P31-DS3L - e7200 - BFG 8800GT - 10.6.1 retail

技术笔记 #40 @Ianxxx 2009-09-14 ↳ Re: @EnzoFX
@EnzoFXAnyone recommend a fix for my usb-kb not being detected every now and then on startup? I'm on a GA-P35-DS3L, Cham2. GFX, Ether, this USB-fix, Legacy HDA, through DSDT.

Enzo if your still having this prob, I know it might sound stupid but make sure that your keyboard is plugged in to one of the usb sockets nearest the board, I sometimes have this glitch with my microsoft habu mouse but doesn't happen if I plug it in to one of those two ports "same board as you ga-p35-ds3l rev 2"

作者修订 #19 @wwbsox 2009-09-14 ↳ Re: @Ianxxx

不行,我也没法用 Apple 铝合金有线键盘唤醒电脑;我是靠 Rocketfish 鼠标来唤醒系统的。我之前看过另一种针对 EHCI 端口的 DSDT 改法,等我找回那篇帖子就去试试,如果有效的话我会更新到一楼首帖。

很多人用普通 USB 键盘都能成功唤醒电脑……唯独 Apple 原厂铝合金键盘不行。

技术笔记 #41 @sk1nhd33t 2009-09-14 ↳ Re: @kramer2k
@kramer2k@VWbsox Are you able to wake from your USB2.0 keyboard? I've got the newest apple kb, which is identified as Highspeed with EHCI, but I'm unable to wake from it. However, my logitech mouse, when plugged directly to a port (as opposed to the KB) will wake my machine. Waking from my KB is important as I also have a BT mighty mouse,…
@wwbsoxNo I cant wake from my apple aluminum keyboard. I have a rocketfish apple mouse that wakes the system from sleep. I found a different dsdt setup for the ehci ports that I want to try (as soon as I find it again). If it works I will add it to the original post Many people have had sucess waking with usb keyboard... if its not an apple…

same here on my ES2L mobo, i have an aluminum wired KB w/o numpad and i cant wake my machine from sleep too, same goes to my wireless BT mighty mouse.. not an issue though since i barely use sleep but if anyone has a fix i would be the first one to try it :-d anyone tried the aluminum kb w/ numpad?

ow i also have an Apple wired KB (white one) and it wakes my machine fine, beats me why it works haha..

技术笔记 #42 @EnzoFX 2009-09-14

Thanks lanxxx,
The last several restarts have been good, no screw ups, so next time it happens I will definitely try it out. My mouse is always the one that's connected closest to the MB. Now that I think about it, the Printer is on the second set of USB ports, which ALSO is on the further end, away from the MB. But then, where do I move that one to? haha there are only 2 ports closest to the MB =P

Anyways, is it possible to force a device to run at High-Speed? My mouse, a Logitech G9, isn't supported under OS X. I have worked well around this, but it is supposed to run at high-speed, but just doesn't under OS X. If I could fix this, it might make it feel as smooth as it does on Windows.

技术笔记 #43 @Snow 2009-09-15 ↳ Re: @wwbsox
@wwbsoxNo I cant wake from my apple aluminum keyboard. I have a rocketfish apple mouse that wakes the system from sleep. I found a different dsdt setup for the ehci ports that I want to try (as soon as I find it again). If it works I will add it to the original post Many people have had sucess waking with usb keyboard... if its not an apple…

Yeah no issues here whatsoever, both devices (Logitech Media Keyboard and Creative Mouse 5500) wake the PC. I can't even make this happen in Windows go figure.

作者修订 #20 @wwbsox 2009-09-16 ↳ Re: @Snow

唉,我又试了几种不同的 DSDT USB 配置,依然无法用 Apple 铝合金键盘从睡眠中唤醒电脑。奇怪的是在我另一块 GA-EP45-DS3L 主板上,完全不改 DSDT 就能直接用 Apple 键盘唤醒——想必是因为 EP45 采用原生 ICH10 南桥的缘故。

技术笔记 #44 @kDawg 2009-09-16

Post DSDT

Have you posted your most current DSDT file somewhere? Let me take a look. Both my MOBOs woke on keyboard or mouse a GA-EP35-DS4 and GA-EP45-UD3P.

Update:
I grabbed your DSDT from an earlier post. Try the attached DSDT. I modified the EHCI devices. Also you should have your USB mouse and keyboard connected directly to the motherboard and not any kind of hub? If you're using Slice's IOUSBFamily.kext I would try reverting back to the vanilla. Let me know if this helps.

Update #2:
Retract the last post. It seems you might have tried the approach I detail above.

作者修订 #21 @wwbsox 2009-09-16 ↳ Re: @kDawg

@kDawg

请问在你的 DS4 主板上……你用的是 Apple 铝合金有线键盘吗?

技术笔记 #45 @kDawg 2009-09-16 ↳ Re: @wwbsox
@wwbsox@kDawg On your DS4… Are you using an Apple Aluminum Keybaord?

It's an older extended Apple USB keyboard not an aluminum.

If you use the DSDT above do you get your EHCI devices showing up as ICH10 built-in?

技术笔记 #46 @xwin78 2009-09-17

@wwbsox--will you post your most current DSDT. I am having issues with the SATA/USB fix not compiling & I have the same hardware set up except 8800 GT 512 instead of GTS.

技术笔记 #48 @xwin78 2009-09-17

kDawg--thanks I saw this post & just wanted to be sure it was the MOST CURRENT DSDT file.

I read the entire thread...there have been so many hacks and revisions.

技术笔记 #49 @kDawg 2009-09-18 ↳ Re: @xwin78
@xwin78kDawg--thanks I saw this post & just wanted to be sure it was the MOST CURRENT DSDT file. I read the entire thread...there have been so many hacks and revisions.

I created that DSDT so I know it compiles fine.

技术笔记 #50 @twr 2009-09-18

been working for a while on my dsdt using pieces of code taken here and there, and everything but keyboard/mouse (wired Apple alu. + Razer Diamondback plasma) wake-on-sleep and shutdown menu call from power button (even with the _CID trick ...)

for now, using retail 10.5.8 with boot-think 2.3.18 (modded AppleLPC, fakesmc v.2, CPUPMdisabler, R1000 & vanilla IONet + IOPCI and sleepenabler in D/L/E.mkext) ; EFI strings for TM / en0 builtin fix and video (GeForce 8800GS + 384 Mo DDR3 SDRAM, PEG) on a GA G31M-ES2L rev. 1.1.

I know it could look kind of rude, but kDawg, would you be kind enough to take a look at my .dsl (compiles fine, no error nor warning) and tell me what might be wrong ? :

thx by advance.

技术笔记 #51 @kDawg 2009-09-18 ↳ Re: @twr
@twrbeen working for a while on my dsdt using pieces of code taken here and there, and everything but keyboard/mouse (wired Apple alu. + Razer Diamondback plasma) wake-on-sleep and shutdown menu call from power button (even with the _CID trick ...) for now, using retail 10.5.8 with boot-think 2.3.18 (modded AppleLPC, fakesmc v.2,…

I'm not sure what you're saying is the problem. Do you have a sleep/wake problem?

技术笔记 #52 @twr 2009-09-18

1°my usb keyboard & mouse aren't able to wake up OSX from S3 mode (whereas they do it in Windows) ;

2°I can put OSX into S3 mode with the power button if this option is activated in pref. sys., but when not, it does nothing ; it should make the shutdown menu show up.

I'm assuming it might be a DSDT issue.

edit: so sorry, I forgot some words ... I wanted to say : everything is working as it should, but USB wake-on-sleep & shutdown menu from power button.

wanna help me anyway ?

技术笔记 #53 @xwin78 2009-09-18 ↳ Re: @kDawg

Dsdt--sweetness

@kDawgI created that DSDT so I know it compiles fine.

Sorry--it was not an issue of compiling ---I wanted to make sure I got all the hacks for ethernet/usb etc.

I added some stuff and after 17 revisions I now have a fully functional SL machine w/ only 1 modded kext (thanks SNOW) for 5.1 Surround Sound!
that is more vanilla than my MacBook Pro.

Thanks to kDawg----wwbsox---SNOW and all you others!

技术笔记 #54 @kDawg 2009-09-19 ↳ Re: @xwin78
@xwin78Sorry--it was not an issue of compiling ---I wanted to make sure I got all the hacks for ethernet/usb etc. I added some stuff and after 17 revisions I now have a fully functional SL machine w/ only 1 modded kext (thanks SNOW) for 5.1 Surround Sound! that is more vanilla than my MacBook Pro. Thanks to kDawg----wwbsox---SNOW and all you…

That's great. Would you mind sharing your setup, i.e. what's in your extras folder?

技术笔记 #55 @xwin78 2009-09-19

I'd be glad to:

Gigabyte EP35-DS3P Rev.2.1 w/F6c BIOS
Xeon E3110 (e8400)
EVGA 8800 GT 512

Chameleon 2 RC3
Extras folder includes: com.apple.Boot.plist, dsdt.alm, SMBIOS.plist
fakesmc.kext
IOAHCIBlockStorageInjector.kext
NullCPUPowerManagement.kext
OpenHaltRestart.kext
PlatformUUID.kext
SleepEnabler.kext

I am still working to get sleep enabled & tryign to reduce boot time...LONG compared to Leo

Thanks for your help

技术笔记 #56 @Jedric 2009-09-19

Compile Error.

Need some help. EHCI is now working. I followed the guide to replace dsdt code for UHCI suddenly im getting this error on compile. I did this over and over and I always get the same error. I put the old code back and compiles ok. There was no reference on the original code that I replaced to this lines so I'm stummped.

Mac-Pro:Tools admin$ ./iasl dsdt.dsl

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20080926 [Oct 4 2008]
Copyright (C) 2000 - 2008 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl 9195: If (SS1)
Error 4095 - ^ syntax error, unexpected PARSEOP_IF

dsdt.dsl 9239: \_SB.PCI0.SBRG.SIOS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SIOS)

dsdt.dsl 9240: \_SB.PCI0.SBRG.SPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SPTS)

dsdt.dsl 9241: \_SB.PCI0.NPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.NPTS)

dsdt.dsl 9242: \_SB.PCI0.GFX0.OPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.GFX0.OPTS)

dsdt.dsl 9248: \_SB.PCI0.SBRG.SIOW (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SIOW)

dsdt.dsl 9249: \_SB.PCI0.SBRG.SWAK (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SWAK)

dsdt.dsl 9250: \_SB.PCI0.NWAK (Arg0)
Error 4063 - ^ Object does not exist (\_SB.PCI0.NWAK)

dsdt.dsl 9251: \_SB.PCI0.GFX0.OWAK (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.GFX0.OWAK)

ASL Input: dsdt.dsl - 9256 lines, 295803 bytes, 4252 keywords
Compilation complete. 9 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

Original DSDT code that is being replaced.

Device (USB0)
            {
                Name (_ADR, 0x001D0000)
                OperationRegion (BAR0, PCI_Config, 0xC4, One)
                Field (BAR0, ByteAcc, NoLock, Preserve)
                {
                    USBW,   2, 
                            Offset (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (0x03)
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, USBW)
                    }
                    Else
                    {
                        Store (Zero, USBW)
                    }
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x03, 0x04))
                }
            }

            Device (USB1)
            {
                Name (_ADR, 0x001D0001)
                OperationRegion (BAR0, PCI_Config, 0xC4, One)
                Field (BAR0, ByteAcc, NoLock, Preserve)
                {
                    USBW,   2, 
                            Offset (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (0x03)
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, USBW)
                    }
                    Else
                    {
                        Store (Zero, USBW)
                    }
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x04, 0x04))
                }
            }

            Device (USB2)
            {
                Name (_ADR, 0x001D0002)
                OperationRegion (BAR0, PCI_Config, 0xC4, One)
                Field (BAR0, ByteAcc, NoLock, Preserve)
                {
                    USBW,   2, 
                            Offset (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (0x03)
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, USBW)
                    }
                    Else
                    {
                        Store (Zero, USBW)
                    }
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x0C, 0x04))
                }
            }

            Device (USB3)
            {
                Name (_ADR, 0x001D0003)
                OperationRegion (BAR0, PCI_Config, 0xC4, One)
                Field (BAR0, ByteAcc, NoLock, Preserve)
                {
                    USBW,   2, 
                            Offset (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (0x03)
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, USBW)
                    }
                    Else
                    {
                        Store (Zero, USBW)
                    }
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x0E, 0x04))
                }
            }

            Device (USB4)
            {
                Name (_ADR, 0x001A0000)
                OperationRegion (BAR0, PCI_Config, 0xC4, One)
                Field (BAR0, ByteAcc, NoLock, Preserve)
                {
                    USBW,   2, 
                            Offset (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (0x03)
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, USBW)
                    }
                    Else
                    {
                        Store (Zero, USBW)
                    }
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x0E, 0x04))
                }
            }

            Device (USB5)
            {
                Name (_ADR, 0x001A0001)
                OperationRegion (BAR0, PCI_Config, 0xC4, One)
                Field (BAR0, ByteAcc, NoLock, Preserve)
                {
                    USBW,   2, 
                            Offset (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (0x03)
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, USBW)
                    }
                    Else
                    {
                        Store (Zero, USBW)
                    }
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x05, 0x04))
                }
            }

            Device (USB6)
            {
                Name (_ADR, 0x001A0002)
                OperationRegion (BAR0, PCI_Config, 0xC4, One)
                Field (BAR0, ByteAcc, NoLock, Preserve)
                {
                    USBW,   2, 
                            Offset (0x01)
                }

                Method (_S3D, 0, NotSerialized)
                {
                    If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
                    {
                        Return (0x02)
                    }
                    Else
                    {
                        Return (0x03)
                    }
                }

                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, USBW)
                    }
                    Else
                    {
                        Store (Zero, USBW)
                    }
                }

                Method (_PRW, 0, NotSerialized)
                {
                    Return (GPRW (0x20, 0x04))
                }
            }
        }
作者修订 #22 @wwbsox 2009-09-19 ↳ Re: @Jedric

如果方便的话,请把你尚未修改前的完整 dsdt.dsl 贴上来,我可以帮你打上补丁并重新编译。因为报错信息指向好几个不同的行号,没有完整的 DSDT 文件我没法追踪出错位置。

另外也请列出你的硬件配置,方便用相同主板的朋友提供协助。

技术笔记 #57 @xwin78 2009-09-20

@ wwbsox

could you post your DSDT file---I would like to compare it to mine for order etc.

技术笔记 #58 @Jedric 2009-09-20

Apparently my EHCI was being detected built-in even without the DSDT. So its just the UHCI that im really having problems with being detected as Expansion slot.

AppleUSBUHCI[0x6e76000]::start unable to initialize UIM

技术笔记 #59 @ohwhyme 2009-09-20

I have a P35-DS3P and I just downloaded your dsdt.aml file and the ethernet works, sound, sata is displayed as ich10 but cant seem to wake up the computer with the keyboard or mouse. My old dsdt showed the removal device when I woke up from sleep and my pci network card worked so now I can just use the internal card I have the apple aluminum keyboard as well hehe. The Usb mouse works for waking up which is odd but the keyboard doesnt do anything. Does hibernate work for anyone? Does wake from bluetooth work for anything? I read the only way you can wake from bluetooth is via internal apple or a dlink 120 bluetooth adapter is this true?

技术笔记 #60 @kDawg 2009-09-21 ↳ Re: @twr
@twr1°my usb keyboard & mouse aren't able to wake up OSX from S3 mode (whereas they do it in Windows) ; 2°I can put OSX into S3 mode with the power button if this option is activated in pref. sys., but when not, it does nothing ; it should make the shutdown menu show up. I'm assuming it might be a DSDT issue. edit: so sorry, I forgot some…

#1: You have a ICH7 motherboard? If you've tried the USB/EHCI pathces in the attached DSDT file → then you might have to try Slice's IOUSBFamily.kext ↗. The problem might be that your USB/EHCI port aren't being reported as "built-in". Other than that as long as your keyboard and mouse are attached directly to the back of your motherboard it should work. Try Slices' kext and see if that fixes it. If so there may be something else going on. Perhaps a BIOS setting.

I believe your #2 problem is normal behavior for a OSX86 machine. When I push my power button my sleep menu does not show up. It will however go to sleep.

This patch had at one point worked for me. It doesn't anymore.
Various DSDT mods. →

k

作者修订 #23 @wwbsox 2009-09-21 ↳ Re: @kDawg

@xwin78

我的完整 DSDT 就放在一楼首帖附件里。

另外想问问大家:有人手头上还有老式的 USB 1.1 Hub 集线器吗?我正在研究怎样让 Apple 铝合金键盘也能唤醒电脑。

我的 Rocketfish 鼠标之所以能唤醒电脑,是因为它被识别为 USB 1.1(UHCI)设备;而 Apple 铝合金键盘内置了 USB 2.0 Hub,因此会被挂载到高速 USB(EHCI)控制器下。我的推论是:如果把 Apple 键盘插在一个老的 USB 1.1 Hub 上,强制让它降速挂载在 UHCI 总线下,说不定就能正常唤醒电脑了!可惜我手边没有老的 USB 1.1 Hub 可以实测。

技术笔记 #61 @osxfr33k 2009-09-21

My DSDT Won't compile when I added the Graphics section

I have the Asus Maximus Formula and the GA-EP35-DS$ very similar to the posts here.

I used DSDTSE and all the fixes are in place. DTGP, HPET and RTC. I am trying to figure out exactly where the graphics section go. Here is the one I tried to fix, look in the section DEVICE (PCI0). Its very obvious where I started the the code. I could not move it over to the left and align everything.

Do I need to start the code right under DEVICE (PCI0)? I started the code right between DEVICE (PCI0) and Name (_HID, EisaId ("PNP0A08")). I have a feeling I have placed it incorrectly or something?

Is there an easy way in DSDTSE to insert the code generated into the main editor and have it automatically go to the correct section and insert correctly?

File Attached

技术笔记 #62 @osxfr33k 2009-09-21

Sorry the file did not attach the first time before I clicked Submit. I see there was a Submit below where the attached window was so I had to post this file in a reply. Sorry about that. Any help on formatting this correctly would be greatly appreciated!

技术笔记 #63 @sk1nhd33t 2009-09-21

@wwbsox

hopefully we can find a fix for our aluminum keyboard waking from sleep, on my ES2L mobo it's the only thing that's missing since automatic sleep is now working thanks to PleaseSleep

BTW are you using the one with num pad or without?

技术笔记 #64 @twr 2009-09-21 ↳ Re: @kDawg
@kDawg#1: You have a ICH7 motherboard? If you've tried the USB/EHCI pathces in the attached DSDT file then you might have to try Slice's IOUSBFamily.kext (http://www.projectosx.com/forum/index.php?showtopic=337 ↗). The problem might be that your USB/EHCI port aren't being reported as "built-in". Other than that as long as your keyboard and…

gonna check my EHCI/UHCI DSDT.dsl editing ...

my mobo is a G31M-ES2L : it looks as if I'm not the only one facing its USB/sleep issues !

my BIOS settings are OK (S3 + USB wake from S3 in advanced options) : if the DSDT trick doesn't make it, I'm gonna try the Slices' .kext.

thx for your help !

技术笔记 #65 @sk1nhd33t 2009-09-21 ↳ Re: @twr
@twrbeen working for a while on my dsdt using pieces of code taken here and there, and everything but keyboard/mouse (wired Apple alu. + Razer Diamondback plasma) wake-on-sleep and shutdown menu call from power button (even with the _CID trick ...) for now, using retail 10.5.8 with boot-think 2.3.18 (modded AppleLPC, fakesmc v.2,…

it wont work, tried a few dsdt patch on leo and snow and still the KB wont wake my machine from sleep.. we have the same mobo and kb except that for the mouse im using wireless mighty mouse. I can wake from sleep using a keyboard if i use my old wired apple keyboard (plastic w/ white clear keys).

for the PWRB dsdt hack, same goes here. my machine just sleeps but it's not showing the shutdown menu .. not a biggie though, im much more interested in waking from sleep using a Kb instead of my power button.

作者修订 #24 @wwbsox 2009-09-21 ↳ Re: @sk1nhd33t

@osxfr33k 如果你能把整份完整的 DSDT 贴上来,要帮你修复会容易得多。

@sk1nhd33t 我用的是带小键盘的 Apple 全尺寸铝合金有线键盘(Extended Keyboard)。

技术笔记 #66 @EnzoFX 2009-09-21

If your still using IOAHCIBlockStorageInjector and/or AHCIPortInjector, try the SATA Fix, then you can omit those 2 kexts.

I also want to add that with this fix, I can wake from sleep with usb kb+mouse. I am using an old MS Keyboard, and a Logitech G9.

My power button can only sleep the system with the setting ticked in sys prefs. This is after the pwrb dsdt fix. Otherwise, with the option disabled, it does nothing.

My snow leopard is running beautifully. I have but one issue, that is switching between spaces, it is laggy!. I don't think this is on my side, because every other thing is incredibly smooth, smoother than Leopard, and this animation in Leopard worked well. Am I correct in assuming this much?

I think a few real mac users are experiencing this, and there is one "fix" that involves messing with QE, and I'm not sure I'm ready to do that. Some reported it went away eventually, other say it's only when booting in 64bit, which alludes to the issue residing on apple's drivers? I dunno... Right now, I'm just trying to ignore it...

作者修订 #25 @wwbsox 2009-09-21 ↳ Re: @EnzoFX

好……我还在继续攻关 Apple 键盘唤醒问题,但事实证明我们的“USB 1.1 推论”方向完全正确!Apple 键盘之所以无法唤醒电脑,正是因为它被识别为 USB 2.0(EHCI)设备。

当我进 BIOS 的“Integrated Peripherals”把“USB 2.0 Controller”直接设为 Disabled 关闭后,Apple 铝合金键盘每次都能百发百中唤醒睡眠中的系统!

当然这算不上真正的完美解法,尤其是如果你需要使用外接 USB 移动硬盘的话(我自己外接硬盘都是走 eSATA)。另一个副作用是关闭 USB 2.0 控制器后,主板背板的 8 个 USB 口中只有 2 个还能工作。

但这足以证明,如果有人把 Apple 键盘插在老的 USB 1.1 Hub 上再接电脑,应该就能在保留其它 USB 2.0 口的同时实现键盘唤醒!

这一切都让我坚信,只要进一步修改 DSDT 的 EHCI 区段就一定能彻底解决问题。虽然我试过 4、5 种不同的 EHCI 修补法都还没成功,但答案肯定就在某处……我会继续找下去。

技术笔记 #67 @ohwhyme 2009-09-22

does that mean that I can turn off that option and 2 of the ports will be usb 1.1 and the rest will be 2.0? That would work fine for me .

技术笔记 #68 @osxfr33k 2009-09-22

wwbsox here ya go. The DSDT.dsl is the one that works I would say 100% except for the graphics not being inserted. I used DSDTSE to create the DSDT.dsl. The dropdown had separate fixes for DTGP, HPET and RTC etc and it seems that they must have gotten put into place or maybe not? I am not sure if powermanagement is working but I have sleep/awake/restart/shutdown is flawless. USB no problems.

Graphics is 7300GT 256mb, which I have changed a few things as you will see in the dsdt-graphics.dsl file. Also will be putting in a 9800 GT 512MB one day to

I would like to incorporate that into the DSDT.dsl and remove the EFI string from the com.apple.boot.plist if its possible. The Marvell Lan's work Great! I do see kexts for the marvel in my Extra/extensions so I would like to have that ready made in the DSDT so I don't have to load them unless its not being used and its already fixed in the DSDT file?

I am unsure if the CMOS fix was done but I don't suffer any changes in my Bios? I am in Snow 10.6.1 using an Asus Maximus Formula X38 chipset with the latest Bios. I also have the GA-EP35-DS4 gigabyte that I willbe working on next after I solve the remaining minor details on this ASus Board.

I am attaching now. Hope you can help and greatly appreciated to. dsdt.dsl's generated by DSDTSE.

CAn you let me know exactly where the Graphics-dsdt.dsl script should be placed or maybe place it for me so I can see. I think I shoul dhave maybe put it further down the Device (PCI0) script or not? I got scripting erros when I merged it between the Device (PCI0) and Name (_HID, EisaId ("PNP0A08")).

Should it be placed somewhere else?

EDITED a Few Minutes later.

It does not look like I have the RTC, CMOS nor PWRB fix? I assumed it was put into place with DSDTSE. Now I wonder if HPET and DTGP fixes are in place? If not its weird how well the DSDT is working so far except a major crash when I launch Chess is OSX. I verfied with other utils etc that acceleration is working fine.

作者修订 #26 @wwbsox 2009-09-22 ↳ Re: @osxfr33k

@osxfr33k

并不是所有主板升上 Snow Leopard 都需要做 CMOS Reset(RTC)修复(不过你的技嘉主板确实需要)。

我快速看了一眼你的文件,Method (DTGP) 已经在你的 DSDT 里了,但你放入显卡(Graphics)区段的位置看起来不太对。我们先把这部分修好,这样你就能把 com.apple.Boot.plist 里的 EFI 字符串拿掉了。

我已经从华硕官网下载了你那块主板的最新 BIOS ROM,准备在 Windows 下用 ACPI Patcher 生成一份包含所有补丁与显卡注入的参考 DSDT。

等下班回家后,我就拿它来比对显卡区段的正确位置并帮你修好 DSDT,同时也会把新生成的 DSDT 上传供你测试。

作者修订 #27 @wwbsox 2009-09-22

@ohwhyme

不是那样的……遗憾的是在我的主板上,一旦在 BIOS 关闭 USB 2.0 控制器,背板就只剩最底下那 2 个 USB 口有反应(跑 USB 1.1),其余背板口全部失效(机箱前置的 2 个口我没测,而插在那两个可用口上的 Apple 键盘自带的 2 个 USB 口则依然可用)。

要知道 USB 2.0 与 USB 1.1 并不是按物理插孔固定的(如果能指定某个孔只跑 USB 1.1 就太棒了),而是取决于插上去的设备规格:只要插入 USB 2.0 设备,系统就会自动将该连接交由 EHCI 控制器接管;插入 USB 1.1 设备则交由 UHCI 接管。

所以核心问题在于:如何强制让 Apple 铝合金键盘在系统里注册为 USB 1.1 设备,这样就能彻底解决睡眠唤醒问题。

技术笔记 #69 @Jedric 2009-09-22 ↳ Re: @wwbsox
@wwbsoxIf you could...post the entire dsdt.dsl before any changes. I will try to patch the dsdt and recompile. The errors list different line numbers to look at, but without a complete dsdt I cant track those down. Also, what hardware are you using, this info may help people with the same setup offer help.

wwbsox did you get a chance to look at my dsdt, pertaining to the errors I was getting when replacing the USB0-USB6?

技术笔记 #70 @osxfr33k 2009-09-22

wwbsox, If you do that I would feel more comfortable to donate. I am the kind of person that if someone can do you a favor you should return the favor as well. Please PM you paypal address. I have to check my bios make sure its the latest one. I am sure it is from december2008/jan 2009.

That seems to be a very compatible board with osx86.

Could you send me one with graphics and without. Reason is because it seems chameleon is handling my 7300GT well. Dunno about when I install my 9800 GT 512 mb card? Will the dsdt have to be extracted again with a different Graphics card as long as the code for it is not in the dsdt?

Could I have the source or .dsl file with it to so I can compare it to a couple I have already.

Not sure about the Dual Marvel Lan but most users have to have a kext for it in the extra/extensions.

The new version of DSDTSE seems to automatically put in the three fixes RTC, DTGP and HPET even though they are in the drop down hack menu?

I wish there aw a tutorial on where to actually place the hacks in DSDTSE?

I get a kernel panic when I launch Chess and only Chess. I have checked Acceleration with the usual ways with no panics.

I have BIOS Version 1302 back in December 2008 is when that was released. The DSDT.aml is the one extracted from the Linux Ubuntu Live CD. The DSDT.dsl-working_but-possibly-not-all-fixes.zip shoudl be the one I already attached for you. The log.txt.zip I think I already attached from my prior thread but here it is again just in case

Thanks again

EDITED a few hours later:

I did not think about this but let me also send to you the DSDT.aml created in Ubnuntu 9.04 Live CD because that DSDT.dsl I sent you was created on a nearly working Asus Maximus Formula in Snow. So I am not sure if it is extracting some of the exsiting DSDT already loaded from the /extra folder or not? I am also attaching my error log file again about the graphics and really important my ioreg dump from leopard. Just in case you need them.

技术笔记 #71 @EnzoFX 2009-09-22

If you get your 9800gt working perfectly in Snow LMK your method!

I got it enabled through DSDT and for some reason, switching between spaces is noticeably choppy.

I also have an initialization issue/display sleep issue. It only arises when: The display is about to sleep and before the monitor even finishes going into standby mode, quickly move the mouse to wake it up, and I get this grey static image for a few seconds or more.
So only in this instant does it happen, maybe with Chameleon's vga rom injection this could be fixed? I should look into that.

作者修订 #28 @wwbsox 2009-09-23 ↳ Re: @EnzoFX

@Jedric

我已经帮你把 USB0 至 USB6 的补丁加进去了;既然你说你的 EHCI 部分原本就正常,那块我就没动它。编译过程零错误(0 Errors),只有几个跟你 DSDT 里 Vcore 电压设置段落有关的 Warning 警告,但不影响编译输出。随帖附上修改后的 .dsl 与编译好的 .aml 文件,拿去试试吧!比对一下 USB 区段就能看出改动的地方。祝好运!

作者修订 #29 @wwbsox 2009-09-23

@osxfr33k

我用你主板的最新 BIOS ROM 编译了一份 DSDT(编译时遇到一点溢出错误,可能是华硕主板的特性?),不过显卡区段已经成功生成出来了。

我把提取出的显卡 DSDT 区段整理成纯文本文件附在帖末,同时也附上由 Windows 版 ACPI Patcher 生成的完整 .dsl 文件供你对照参考,这样你就能清楚看到这段代码应该放在 PCI0 底下的哪个确切位置。希望对你有帮助!

技术笔记 #72 @Jedric 2009-09-23 ↳ Re: @wwbsox
@wwbsox@Jedric I added the fixes for usb0-usb6. I did not change the EHCI area as you stated that was working for you. It compiled with no errors. There were a few warning... related to section in your DSDT that has something to do with vcore voltage settings, but this did not prevent it from compiling. Attached is the .dsl and compiled…

BIG THANKS wwbsox. Works great

技术笔记 #73 @sylvester328 2009-09-23 ↳ Re: @wwbsox
@wwbsox@ohwhyme The problem is... trying to get the keyboard registered as USB1. This will fix wake from sleep issue.

I think even if you manage to do that, it is not really a solution. The Apple aluminium keyboard is a USB2 device because it is in fact a USB hub with two USB ports at both end. Will making it a USB1 device crapple the transfer speed of those ports? If so, I'll rather connect my mighty mouse (USB1 device) to a separate port on the motherboard and click on the mouse to wake up my hac.

作者修订 #30 @wwbsox 2009-09-23 ↳ Re: @sylvester328

@sylvester328

对,通过 USB 1.1 Hub 转接的话,Apple 键盘左右两侧自带的那两个 USB 口也会一并降速成 USB 1.1。不过老实说……我怀疑键盘上那两个扩展口本来就接近 USB 1.1 的供电水平,因为每当我把 U 盘等 USB 2.0 设备插到键盘侧边时,Snow Leopard 经常会弹出“USB 设备耗电量过大”警告并直接将设备推出。

但既然有这么多朋友都在问怎样才能用 Apple 铝合金键盘唤醒电脑,外接一个小 USB 1.1 Hub 至少是个立即可行的变通方案。

正如我前面所说,我依然相信一定有办法通过修补 DSDT 的 EHCI 区段,让高速 USB 口直接支持键盘唤醒,只是我还没试出来而已。

同一个键盘在我的 GA-EP45-DS3L 上完全不用打任何补丁就能直接唤醒电脑,偏偏在 GA-EP35-DS3P 上就不行。

技术笔记 #74 @osxfr33k 2009-09-23

wwbsox Thanks so much. Couple quick questions. I inserted the audio part where you have it but I get an error?

This stuff here was right after PCI0 but now I noticed its at the end of the graphics script and the number in "Name (_HID, EisaId ("PNP0A03"))
Name (_ADR, Zero)
Method (^BN00, 0, NotSerialized)"

which was PNP0A08 is now PNP0A03. if I change it back to 8 I get an error so I left it alone. SO what happened to this section below? LIke I said I see it at the end of the graphics script now with a "3" instead of 8?

Name (_HID, EisaId ("PNP0A08"))
Name (_ADR, Zero)
Method (^BN00, 0, NotSerialized)
{

I even compiled your dsdt and OSX stops at the 4096 cluster and io something.

Here is the log.

作者修订 #31 @wwbsox 2009-09-23 ↳ Re: @osxfr33k

@osxfr33k

首先,声卡部分请保持你原本的配置别动。因为 ACPI Patcher 内置只支持注入 ALC888 与 ALC889a 两款声卡芯片,而你的华硕主板用的不是这两颗;我生成那份文件纯粹是为了提取显卡注入段落。

其次,关于显卡代码插入的确切位置……那就是 ACPI Patcher 自动放置的位置,我不确定换个位置有没有影响,因为我手头没有这块主板可以实测。

第三,关于 PNP0A08 还是 PNP0A03 的问题,我也不太确定。我是直接拿你主板官网最新 BIOS(v1302)提取编译的;我检查过手边其它几块华硕与技嘉主板的 DSDT,在该设备下全都是写 Name (_HID, EisaId ("PNP0A03"))。

最后,我重新附上了文件——正如我之前提过的怪现象,在 Windows 下用 ACPI Patcher 直接导出的 .dsl 拿到 Mac 下用 iASL 总是无法编译;但若在 Windows 下直接输出成 .aml,拿回 Mac 反编译再重新编译就完全正常。所以这次附件我改放 .aml 供你反编译参考。

最稳妥的做法还是以你目前已经能正常开机的 DSDT 为基础,只把需要的显卡/USB 修补段落复制进去,而不要直接拿我这份未经实机测试的 .aml 开机。

祝好运!

技术笔记 #75 @osxfr33k 2009-09-23

Thanks will work on it some more. Is this extracting/patching etc similar to true hacking where one takes a compiled source code and dissasembles it, then uses a debuger to watch where the program lands it for example when the program asks for a serial then the hacker knows where ithat part of the code is being used? Then they do some trial and error changes and then assemble it and test it?

Are these DSDT.dsl files basically the same thing, starting out originally as source code that was compiled into a BIOS ROM and flashed to the MB.

We are dissasembling what was once source code but now machine code that is dissasembled?

Am I way off base with this analogy?

Because if this is kinda what we are doing no wonder it difficult to get things right.

技术笔记 #76 @CyCLoBoT 2009-09-23

I am having a problem with waking my computer up using USB keyboard/mouse. I tried to replace the USB fix code in my DSDT file but I started getting KP. Anyone know how I can fix the USB wake issue on a Gigabyte EP45-DQ6 board?

I have attached my current DSDT file that I'm using.

media fire.com/?mol3mzimzmz

作者修订 #32 @wwbsox 2009-09-24 ↳ Re: @CyCLoBoT

@cyclobot

我们还在设法攻克这个问题。如果你手边有普通 USB 1.1 的键盘或鼠标,它们现在就应该可以直接唤醒系统了。

我已经帮你把 USB 修复段落加进你的 DSDT 里了,试试这份文件吧。

技术笔记 #77 @twr 2009-09-24

after some new DSDT editings, still no luck on my G31M-ES2L with USB Alu. keyboard : sleeps very well, but won't wake without PWRB.

here is my .dsl ...

技术笔记 #78 @CyCLoBoT 2009-09-24 ↳ Re: @wwbsox
@wwbsox@cyclobot. Working on the issue. If you have a USB1 keyboard or mouse, they should wake the system. I added the usb section to your dsdt, give this a try.

Thanks wwbsox. It does wake up with the mouse without giving any errors.

Update:
Well after I started using your modified DSDT file, I started getting KP. Not sure what's causing it but I had to switch back to my original one.

作者修订 #33 @wwbsox 2009-09-24 ↳ Re: @CyCLoBoT

@cyclobot

那份就是你传给我的原始 DSDT 啊,我只修改了里面的 USB 区段而已。不过顺带确认一下:你的主板是 GA-EP45-DQ6,南桥应该已经是 ICH10 了吧?因为我另一块采用 ICH10 的 GA-EP45-DS3L 完全不需要任何 DSDT USB 补丁,睡眠与铝合金键盘唤醒天生就完全正常。

技术笔记 #79 @CyCLoBoT 2009-09-25 ↳ Re: @wwbsox
@wwbsox@cyclobot That was the dsdt that I got from you. I just edited the usb section. But for the record... You have an EP45-DQ6, is this ICH10 south bridge? I know my EP45-DS3L is and I dont need any DSDT patching. Sleeps ok. Wakes from keyboard fine too.

Yes it is ICH10R. My computer goes to sleep just fine and it does wake up as well but only with the power button.

技术笔记 #80 @spanakorizo 2009-09-25

jmicron

1) tried gfx injection of the 8800gt (by dsdt) and i had no luck, maybe the bus location could be wrong? (where do i find it exactly for my card?)

also my pci0 device starts likes this:
Device (PCI0)
{

Name (_HID, EisaId ("PNP0A08"))
could that be a problem? (some users said it should be 03)

2) i was able via dsdt to make the uhci and ahci appear as internal and the sata now shown as intel esb2 AHCI, but my mobo has also Jmircron and the 2 Jmicron devices shown as "Unknown"
any fix for this?

removed a lot of kexts in /e folder , now i only got FakeSMC and, UUID.kext (+ionetworking for my net and openhaltrestart)
i'll try now to rebuild mkext without openhaltrestart.kext and see if i still need it

技术笔记 #81 @spanakorizo 2009-09-25

kp

i was testing sleep after the UHCI/EHCI modifications to the dsdt and after a lot of time i have sleeep WORKING!
wake up via mouse works, no keyboard but my keyboard is ps2 and loaded with hacked kexts (voodoops2+appleacpips2nub)
but i noticed a strange KP...
when pc wakes if i go again to control panel and mess with the power settings i get kernel panic (no debug but the "you neeed to restart your computer..."
how can i see what caused the kp?
anyone else with this issue?

EDIT: KP is because of my 2nd pci audio card M-AUDIO and hacked drivers of envy24HT (known kp)
i switched to the onboard soundcard after wake and there is no kp so everything ok

技术笔记 #82 @EnzoFX 2009-09-28

For those with an Apple keyboard, what about getting a strictly USB 1.1 hub? and plug it in through there =P

技术笔记 #83 @BugsB 2009-10-03

I have been trying hard to correct my dsdt.dsl, but to no avail. My USB devices do not mount at all in SnowLeo. In Leo I have been using the EHCI mods from orByte, Slice or AnV.

Sorry, but I have already spent useless hours and could really need some help with this. If somebody kind could look at my dsdt and correct it I would be forever grateful. I would even be willing to contribute something back.

The dsdt.dsl for my Toshiba Satellite P100 is attached.

Hoping .. ,
Bugs

技术笔记 #84 @EnzoFX 2009-10-05

I got a question about the fact that your supposed to leave device 0x001D0003 alone,
I'm doing this to another board now, and none of it's usb devices have that Name/ID, so then do I not worry about leaving one alone now?

作者修订 #34 @wwbsox 2009-10-06 ↳ Re: @EnzoFX

@EnzoFX

我想这样是完全正常的。我看过其它几块主板的 DSDT 也没有 1D,3 这个地址;实际上需要修改注入的只有 1D,0、1D,1、1D,2 以及 1A,0、1A,1、1A,2 这六个 UHCI 控制器。

另外,对于“非用 Apple 铝合金键盘唤醒不可”的朋友来说,串接一个老的 USB 1.1 Hub 应该就能解决问题(可惜我手边没有旧 Hub 可测)。

技术笔记 #85 @xwin78 2009-10-07

@ wwbsox

thanks for all the help w/ my DSDT file--I just added my GFX info and all is well except I can not sleep, my system just powers down and when I strike the keyboard it boots back up (cold). I have the same setup as your sig---what is your BIOS rev and what are your BIOS settings (specifically your power related BIOS settings)?

技术笔记 #86 @kDawg 2009-10-07 ↳ Re: @wwbsox
@wwbsox@EnzoFX I believe that is correct. I have seen other boards without the D3 address. The actual addresses that get modified should be D0,D1,D2,A0,A1 and A2. Also, The USB1.1 hub should work for anybody that "MUST" wake from aluminum keyboard. But I dont have an old hub to test out.

I actually think this is a mistake on Gigabyte's behalf. The D3 device is a mystery. I have a GA-EP45-UD3P and it doesn't reference the D3 address. I also found an error in the USB device section in the DSDT for my other MOBO a GA-EP35-DS4.

Some companys do a better job generating their DSDT than others. I do happen to think Gigabyte does an OK job.

技术笔记 #87 @sylvester328 2009-10-09 ↳ Re: @kDawg
@kDawgI actually think this is a mistake on Gigabyte's behalf. The D3 device is a mystery. I have a GA-EP45-UD3P and it doesn't reference the D3 address. I also found an error in the USB device section in the DSDT for my other MOBO a GA-EP35-DS4. Some companys do a better job generating their DSDT than others. I do happen to think Gigabyte…

Just upgrading the BIOS for my EP45-DS3R. In the process of DSDT patching, I noticed that the new BIOS (F11e) no longer has this D3 device. They also fixed a couple of bugs which caused compilation warnings as well.

I really hope someone find a DSDT hack soon to enable the wake from sleep using USB2 keyboard.

技术笔记 #88 @kDawg 2009-10-09 ↳ Re: @sylvester328
@sylvester328Just upgrading the BIOS for my EP45-DS3R. In the process of DSDT patching, I noticed that the new BIOS (F11e) no longer has this D3 device. They also fixed a couple of bugs which caused compilation warnings as well. I really hope someone find a DSDT hack soon to enable the wake from sleep using USB2 keyboard.

Have you posted your DSDT somewhere? If not attach it here so I can take a quick look.

技术笔记 #89 @Ianxxx 2009-10-09 ↳ Re: @BugsB
@BugsBThe dsdt.dsl for my Toshiba Satellite P100 is attached. Bugs

I don't think it is?

作者修订 #35 @wwbsox 2009-10-11 ↳ Re: @Ianxxx

InsanelyMac 论坛上的 Master Chief 大神针对华硕 P5K 系列主板写出了一段 DSDT 补丁,成功让挂在 USB 2.0 下的键盘(包括 Apple 铝合金键盘)也能直接唤醒睡眠中的电脑!这几天我一直试着把他的方法移植到技嘉主板上,但暂时还没成功,我会继续努力尝试。

如果你用的是华硕 P5K 系列主板,强烈建议你去拜读他的专帖——他为那块主板开发的 DSDT 补丁多到让人眼花缭乱,真心佩服!

技术笔记 #90 @sk1nhd33t 2009-10-11 ↳ Re: @wwbsox
@wwbsoxMaster Chief over at insanelymac has a dsdt patch that on the p5k boards enables wake from usb2 keyboard, including apple keyboard. I have tried for a few days to get this to work on a gigabyte board to no avail. Still trying though. If you have a p5k, I suggest you look up him up. He has sooooo many dsdt patches for that board it…

i wanna take a look at this if you have a direct DL link and try? im also having issues waking from sleep using my aluminum keyboard... or maybe a dsdt.dsl will do if you dont mind :

技术笔记 #91 @pandar 2009-10-19

I have an installation of 10.6.1 on the ds3p and would like to borrow your solution. I have an 8600gt however. How would I deal with that? I'm using Chameleon RC3 and Netkas's latest boot file. If you can clue me in a bit, I'd appreciate it.

Pandar

作者修订 #37 @wwbsox 2009-10-20 ↳ Re: @pandar

@Pandar

如果你指的是 USB 内置修复,你只需要把你 DSDT 里的 USB 区段替换成一楼首帖的代码即可。

如果需要更详细的步骤说明,欢迎随时私信我。

请问你目前已经在用 DSDT 注入显卡了吗?如果是的话,修改 USB 区段完全不会影响到显卡部分;如果你是想把显卡也加进 DSDT 里,则需要在 Device (PCI0) 底下新增 Device (PEGP) 区段(我是用 ACPI Patcher 自动生成该区段代码的)。

技术笔记 #92 @kantok 2009-10-31

Works

Thanks wwbsox!
The combination of the methods works perfectly on my EP45-UD3P!
Wake-up issue by mouse and Keyboard has come!

技术笔记 #93 @stayupforever90 2009-11-04

Thanks to wwbsox to start with, also everyone else who has posted in this thread it has been a lot of help. I am having a problem adding graphics to my DSDT, have searched for PEGP but could not find it. I can find it in registry explorer but have to admit not very good at that bit. Also I think there may be a problem with my SATA fix as SATA shows up as ICH10 AHCI but I cant remove the IOAHCIBlockStorage.kext I am using, if anyone could take a look at my DSDT that would be great. I am using a GA-G33M-DS2R mother board with core2duo E6600 and 4GB ram Nvidia 8800 GTS 512mb graphics running 10.6.1 Retail . Also wondering does anyone's graphics card show up in the PCI cards section of system profiler, and to anyone who takes the time to look at my DSDT

技术笔记 #94 @atomiX_X 2009-11-05

I've had a working SL setup for months now but I'm still unable to make my Asus P5E wake from USB. Sleep works fine while waking from power button but not from USB. I got this to work in 10.5 using a modified IOUSBFamily.kext but I haven't been able to find one for SL. I realize that this can be fixed with DSDT edits.

I've tried to simply replace the USB section with the one displayed at the start of this thread as wwbsox and others have said but I get a ridiculous amount of compile errors. I get the same results using DSDTse and iASLMe. I'd really appreciate it if someone could take a look. Please see attached and let me know if more specific info is required.

FYI, DSDT is already patched to fake ICH9 as ICH10 and as a result, all my USB ports show as built in and any mass storage devices connected survive sleep/wake.

作者修订 #38 @wwbsox 2009-11-05 ↳ Re: @atomiX_X

@stayupforever90

我用的正是同一张显卡,我在第 32 楼附件上传的 DSDT 里面就有你需要的完整 PEGP 区段代码。

至于 IOAHCIBlockStorageInjector.kext 我就无法置评了,因为我没有使用它——ProjectOSX 网站上有 THe KiNG 写的 SATA DSDT Device ID 补丁,改好后就不再需要那个注入 Kext 了。

另外没错,通过 DSDT 注入后,我的显卡也会一并显示在“系统概述”的“PCI 卡(PCI Cards)”列表中。

作者修订 #39 @wwbsox 2009-11-05

@atomiX_X

因为你用的是华硕主板,架构命名与技嘉不同,不能直接整段照抄覆盖 USB 区段,否则一定会跳出一堆编译错误。不过我看你已经在自己原有的各个 USB 设备下正确加入了 Method (_DSM, 4, ...) 与对应的 Device ID;只是华硕的 EHCI 设备名称跟技嘉不一样(华硕叫 EUSB 和 USBE),我不确定这会不会有影响。

如果你目前唯一的问题是无法用 USB 设备唤醒电脑,请先打开“系统概述”,检查你的鼠标与键盘究竟是挂在普通 USB(UHCI)还是高速 USB(EHCI)总线底下。如果它们显示在高速 USB 底下,那就是无法唤醒的原因——正如我的 Rocketfish 鼠标(USB 1.1)可以正常唤醒,但 Apple 铝合金键盘(USB 2.0)就不行。

既然你用的是华硕主板,强烈建议你去参考 InsanelyMac 上 Master Chief 的 P5K Pro DSDT 专帖,他已经成功在华硕主板上纯靠 DSDT 实现 Apple 铝合金键盘唤醒了。祝好运!

技术笔记 #95 @atomiX_X 2009-11-05

Thanks for the info wwbsox. I checked and my keyboard and mouse show up under regular USB and not high speed. I tried with another mouse and keyboard to make sure and same deal.

Now that you mention it though this isn't the only issue I've had but it has been the only one that bothers me. The machine also can't do a full hardware restart or shutdown on it's own. Not exactly sure why since I'm using OpenHaltRestart. I'm thinking these might be related.

技术笔记 #96 @stayupforever90 2009-11-08

Thanks wwbsox but have come across a very strange issue with adding the graphics fix to my dsdt.aml. I have added it with dsdt patcher and my typing it my self all with the same result. My dsdt compiles fine with only one warning as before but OpenGL stops working. By this I mean spinning squares test is not visiable in xbench and also OpenGL Extensions Viewer.app has only Apple software as the render and no choice for my graphics card. My xbench scores fall from around 170 to 110 and my OpenGL Extensions Viewer.app scores fall from in the 3400 range to 60-70 range. I have try'd all different ways of editing both my com.apple.Boot.plist the system one and the one in my extra folder all to no avail. I have try'd to enable OpenGL with the dev tools app Quartz Debug also, the app tells me it is enabled but has no effect. Two really strange things are that front row and chess work though, and I thought both these apps needed OpenGL to run. I have attached a copy of my dsdt with graphics if you could take a look and see if i have made a mistake thank you, just don't know where I am going wrong.

Ps My card did start showing up in PCI cards in system profiler, would really like to get this working any help would be great

技术笔记 #97 @stayupforever90 2009-11-12

I have done it GFX are now fully working through through DSDT it seems the main issue was EFI strings. Let me explain I run a lot of different partitions for different reasons I have 3 snow leopard partitions 1 leopard partition there is also Linux and Windows 7 in the mix as well (see attached pic). I know its not the best but is just how things have gone as times gone by. Now I was trying to install the DSDT GFX to my SNOWGUID partition. First of all I did not remove the EFI strings from this partition's extra com.apple.Boot.plist but did remove the graphics enabler string. No joy the card would be in system profiler but i just had no QE/OpenGL working as such. So i spent some time working with DSDTSE.app as my DSDT is a bit strange any way. I try'd to many different with not much luck of inserting the graphics code with this great app (a big thank you to EvOSX86 for the app). Then I all most gave up and went back to EFI strings I say all most. My next step was thinking I have to be vanilla as possible so I disconected all of my drives apart from one and reinstalled Snow Leopard on a GUID partition and then I try'd a fresh DSDT.aml with USB SATA and GFX fix it worked how happy was I. Then I reconected my other two drives and it stopped working:'(:'(:'(. So from there I applied the same fixes to my other Snow partitions, but it didn't work on my main MBR Snow partition why? It seems at some time I had written my GFX string to my Library/Preferences/SystemConfiguration/com.apple.Bootplist once deleted I had working QE/OpenGL on all my partitions. I have feel have learned a lot from from doing this and just wanted to share my experience with others may be it could be of some use. For me I have learned EFI and DSDT do not mix but maybe thats just me. Am going to finish with a question though, how does Chameleon reference Boot.plists files from other partitions it is not booting though. And before you think it yes Chameleon was separately installed on all partitions. Thank you to wwbosx and all who have posted in this thread on to my next project speedstepping and sleep thank you again to all OSX86 fans

技术笔记 #98 @adityaxavier 2010-01-08

I was actually wondering if anyone know how to do it the other way round.. i.e. make the USB from built-in to external. Cause i have my bluetooth in USB3 and its turned off every time the laptop goes to sleep and doesnt work on wak..

Thanks,
Xavier

技术笔记 #99 @twistoflemon 2010-01-19

Is there a guide somehwere of how to do this? I try using dsdt patcher but when adding the usb code I get compilation errors.

As my ehci usb are also listed as expansion slots I'm hoping this might also help with some other usb problems I'm having like bandwidth problems for my usb webcam...

技术笔记 #100 @stayupforever90 2010-01-19

What i would say is download an app called DSDTSE it is a very good place to start. I found it very helpful also look at threads about DSDT for your motherboard. All the best and respect to all here

技术笔记 #101 @EnzoFX 2010-02-20

So I just got a BT Apple KB, and can't wake from sleep with it. Also, doesn't even re-connect or stay connected (however it's supposed to work) after waking. I have to manually disconnect and re-connect it.
I have this UHCI/EHCI implemented, is there something else I can try? Or should I just try another BT adapter. This is the second one I've tried, the first one is an old BT v1.1, and this is a v2.1.
I believe Apple only officially supports a D-Link, and even that one has some revisions that don't allow this functionality. I have found a Kensington that's known to work for someone else, and they are using the UHCI/EHCI fix implemented in Chameleon2. I'd hate to just go out and buy it and it still not work for me.
Any ides are welcomed, thanks guys.

技术笔记 #102 @xzeroGx 2010-03-07 ↳ Re: @EnzoFX

BT dongle & _WAK mod for wake

@EnzoFXI'd hate to just go out and buy it and it still not work for me. Any ides are welcomed, thanks guys.

Hey EnzoFX,

i've got a Targus ACB10US-B (the silver 4cm one)
bought it in the US for 7$...(shipping to europe was very expensive...)

wake from sleep works via mouse, wired apple alu KB and wireless BT apple KB.
i'm on a Gigabyte G33M-DS2R on 10.6.2 via DSDT mods.

to all who have problems with wake from sleep with a USB 2.0 device:

check your _WAK section in DSDT.
after various tests, i found the solution for me:

the section for "If (LEqual (Arg0, 0x04))" should look like this:
(maybe this works only on my board...)
…
If (LEqual (Arg0, 0x04))
{
If (LEqual (OSFL, Zero))
{
Store (0x58, SMIP)
}

If (LEqual (OSFL, One))
{
Store (0x56, SMIP)
}

If (LEqual (OSFL, 0x02))
{
Store (0x57, SMIP)
}

If (LEqual (OSFX, 0x03))
{
Store (0x59, SMIP)
}
}
...

Before patching, there were some nested if clauses... i deleted them and left only the code above. Maybe this helps someone
sorry for my english.

greets

xzeroGx

技术笔记 #103 @thepiecesfit 2010-07-03 ↳ Re: @wwbsox
@wwbsoxFirst the issues, than the fixes. My usb1 (UHCI) and usb2 (EHCI) ports were showing up in system profiler as "expansion slots". This was causing 2 main problems for me. First, I had to use the power button to wake the computer from sleep. Second, if I had a usb drive plugged in when the computer went to sleep, I would get a "device…

You are the man. This fixed my issues on p35-DS3L and now i can wake my 10.6.4 hack using the keyboard !

作者修订 #40 @wwbsox 2010-07-10 ↳ Re: @thepiecesfit

别客气……我有好长一段时间没上来这个论坛了,很高兴看到当年整理的资料现在依然能帮到大家!我刚帮朋友组了一台新主机,正好也遇到一模一样的 USB 问题,希望这套方法在他机器上也同样奏效。

技术笔记 #104 @Mack N Tosh 2010-07-21

Can this work on a netbook

Any idea if this fix can work on a hackintosh netbook? (It dismounts/crashes USB disks after sleep.) Any ideas? I realize this is an old thread.
thanks. Peace.

技术笔记 #105 @Epal 2010-08-16

well good news, it fix a part of the issue.

Now i can wake from an usb mouse directly connected to the mobo.

But i cant from the apple alu keyboard, although it is detected during sleep !

16/08/10 08:10:28 kernel Wake reason =
16/08/10 08:10:28 kernel System Wake
16/08/10 08:10:28 kernel USB (EHCI):Port 3 on bus 0xfd has remote wakeup from some device
16/08/10 08:10:28 kernel The USB device Keyboard Hub (Port 3 of Hub at 0xfd000000) may have caused a wake by issuing a remote wakeup
16/08/10 08:10:28 kernel The USB device Apple Keyboard (Port 2 of Hub at 0xfd300000) may have caused a wake by issuing a remote wakeup

but i had to wake up using power button or mouse to do this, then in the console, i see the USB controller saw the tries to wake up from USB keyboard !

Help ! what can i do to fix this ?

I've got GA P35 DS3R

here"s my DSL

技术笔记 #106 @hackaroni 2011-09-26

Thank you

Wow, 2 years later and @wwbsox's original post of the DSDT USB fix worked for me on a Gigabyte EP45-UD3P ... I believe it's ICH10R. Had success doing this method twice, once for the same board under 10.6.8 and one under 10.5.8.

I used these basic instructions http://tonymacx86.blogspot.com/2009/11/create-and-modif… ↗ to extract, modify, and compile my DSDT but had to add two fixes. Steps 1-4, 7, 8, 9.

Here's the general idea:
1) You get the DSDT tool, install it, and use it to extract your DSDT
2) You use Tonymac blog instructions about adding "Method DGTP" before the _WAK area... you only use part of the fix he mentions so don't copy/paste the whole thing...the important part of the "method" is at the beginning and then it has a sample area.
3) You find the USB section that starts with "Device (USB0)" and you'll replace the entire USB sections with the text from @wwbsox's fix in the first post here. You're basically swapping out the USB sections. I left a one-line space before and after my insertion.
4) If you just try to compile now, you'll probably get some warnings and errors so
5) One of the TonyMac comments tells you the first fix 'The gigabyte-included DSDT is flawed and will not compile. In the two error lines, change the first Local0 parameter to "Zero" (without the quotes).' What they mean is that there are two areas where you will see (Local0, Local0) and you want it to look like (Zero, Local0)
6) And add this at the end of the _WAK Method:
Return(Package(0x02){0x00, 0x00})
7) If you do it right, when you go to compile your DSDT you won't get any warnings.
8) I moved mine to /Extra, renamed it from dsdt.aml to DSDT.aml... and did a sudo chown 0:0 on the DSDT.aml file (or sudo chown root:wheel if you prefer) and sudo chmod 755 on it for good measure... and repaired permissions… then I restarted.
9) This enabled me to sleep/wake USB drives with no device removal errors! Wooohoooo! I have used some alternative IOUSBFamily.kexts before but believe I can remove them now... If your system hangs or something, you can probably boot into single user mode (-s) and remove the DSDT.aml file from there (rename it to DSDT.bak if you want)

Good luck everybody!

参与实测与协作验证成员: @omargoa @Snow @Jedric @twr @Stone-D
文献来源与贡献者溯源名录(共 33 位具名成员 · 原始讨论串 #3849)
成员用户名本卷贡献角色发帖数活跃时间窗
@wwbsox主笔作者442009-08-30 → 2010-07-10
@Snow核心贡献者232009-08-31 → 2009-09-15
@EnzoFX核心贡献者132009-09-02 → 2010-02-20
@kDawg核心贡献者122009-09-01 → 2009-10-09
@Ianxxx核心贡献者82009-08-31 → 2009-10-09
@xwin78核心贡献者62009-09-17 → 2009-10-07
@osxfr33k核心贡献者62009-09-21 → 2009-09-23
@twr核心贡献者52009-09-18 → 2009-09-24
@Jedric核心贡献者52009-09-19 → 2009-09-23
@sk1nhd33t核心贡献者42009-09-14 → 2009-10-11
@stayupforever90核心贡献者42009-11-04 → 2010-01-19
@CyCLoBoT核心贡献者32009-09-23 → 2009-09-25
@mormegil协作成员22009-08-31 → 2009-09-01
@kramer2k协作成员22009-09-02 → 2009-09-14
@ohwhyme协作成员22009-09-20 → 2009-09-22
@sylvester328协作成员22009-09-23 → 2009-10-09
@spanakorizo协作成员22009-09-25
@atomiX_X协作成员22009-11-05
@omargoa协作成员12009-08-31
@aed0101@hotmail协作成员12009-08-31
@Voyn1x协作成员12009-09-02
@infinitek协作成员12009-09-06
@BugsB协作成员12009-10-03
@pandar协作成员12009-10-19
@kantok协作成员12009-10-31
@adityaxavier协作成员12010-01-08
@twistoflemon协作成员12010-01-19
@xzeroGx协作成员12010-03-07
@Stone-D协作成员12010-04-03
@thepiecesfit协作成员12010-07-03
@Mack N Tosh协作成员12010-07-21
@Epal协作成员12010-08-16
@hackaroni协作成员12011-09-26

选择语言 · Choose your language