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)」,這直接引發了兩個嚴重問題:第一,電腦進入睡眠後無法透過鍵盤或滑鼠喚醒,只能按機箱電源鍵;第二,睡眠時若插著 USB 手指,喚醒後必定彈出「裝置未正常退出(Device Removal Error)」警告。

我將論壇上兩項分別針對 UHCI(showtopic=168014 ↗)與 EHCI(showtopic=155345 ↗)的 DSDT 修正結合在一起:將各個 USB 節點注入 Intel ICH10 原生 device-id 與 built-in 屬性。

修補完成後,現在只需點擊一下 USB 滑鼠即可秒速喚醒睡眠中的電腦,睡眠前亦無需手動退出 USB 隨身碟,且以 -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
相關硬件參考
高速 USB 開機安裝手指 ↗ 靜音散熱器與電源組件 ↗ 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-bit 模式的 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),一直懷疑跟這項設定有沒有關。
補充:剛才插著 USB 手指測試了一下睡眠,果不其然喚醒時也跳出了「裝置未正常退出」警告!

我很想試試本帖的修正(但我從未手動改過 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,在 Chameleon 開機選單畫面就不能按方向鍵選系統了對吧?哈哈看來也不能關 =/

至於我閒置無法自動睡眠的問題是這樣的:
之前我是因為接了 DVD 燒錄機導致閒置睡眠失敗(詳見這篇討論串最後一樓我的回報:http://www.insanelymac.com/forum/index.php?showtopic=17… ↗)。
更早之前則是 USB 隨身碟造成的;但這次我全新重灌系統後完全沒接任何 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 滑鼠從來沒受過影響……

我應該試試在 Chameleon 的 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-bit 的對應 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 的供電水準,因為每當我把隨身碟等 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