Jump to content

DSDT Auto-Patcher


MaLd0n
 Share

5,756 posts in this topic

Recommended Posts

Hi MaLdOn,

 

The dsdt you gave me for my P5K Deluxe WiFi works great! Add it to your list for the next release!

 

Actually, I spoke too soon, I'm having a problem, the computer will not go to sleep. I can put it to sleep manually, but it will not go to sleep by itself. I noticed that the UHC4 has a _DSM method with the same ID 0x39 as the UHC7 as follows:

 

 

Device (UHC4)
           {
               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))
               }
               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x02)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               0x39, 0x3A, 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }
           }

 

 

Device (UHC7)
           {
               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))
               }
               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x02)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               0x39, 0x3A, 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }
           }

 

 

Also, I noticed that there is no LAN0, LAN1 and SBRG patch. Do I need those?

Link to comment
Share on other sites

Actually, I spoke too soon, I'm having a problem, the computer will not go to sleep. I can put it to sleep manually, but it will not go to sleep by itself. I noticed that the UHC4 has a _DSM method with the same ID 0x39 as the UHC7 as follows:

 

 

Device (UHC4)
           {
               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))
               }
               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x02)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               0x39, 0x3A, 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }
           }

 

 

Device (UHC7)
           {
               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))
               }
               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x02)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               0x39, 0x3A, 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }
           }

I'm only using one on my motherboard

ids ended :)

 

Also, I noticed that there is no LAN0, LAN1 and SBRG patch. Do I need those?

now you understand why I asked you the files after the DSDT?

kextstat

lpc loaded

 

what happens to sleep?

Link to comment
Share on other sites

@ixxxion

 

a bit offtopic, and I don't have 5.1 speakers to test, but I believe you have to setup it in Applications - Utilities - Audio MIDI Setup

 

Wow! This worked!! Thank you so much! It was quite easy to setup... although I lose volume control, but at least now I can watch movies with 5.1 sound.

Link to comment
Share on other sites

I'm only using one on my motherboard

ids ended :)

 

 

now you understand why I asked you the files after the DSDT?

kextstat

lpc loaded

 

what happens to sleep?

 

So what should I do with the UHC4 ID? Change it?

 

Sleep: I'm able to put the computer to sleep if I manually go to the Apple menu and put it to sleep, that works fine. But with the "energy saver" preference panel set to 5min (or any value), it will never go to sleep.

 

Here is the send_me.zip file:

http://dl.dropbox.com/u/17374176/send_me.zip

Link to comment
Share on other sites

So what should I do with the UHC4 ID? Change it?

Nope

I use...

0x34, 0x3A, 0x00, 0x00

in UHC1, 2, 3, 4, 5 and 6

no problem

 

Sleep: I'm able to put the computer to sleep if I manually go to the Apple menu and put it to sleep, that works fine. But with the "energy saver" preference panel set to 5min (or any value), it will never go to sleep.

 

Here is the send_me.zip file:

http://dl.dropbox.com/u/17374176/send_me.zip

 

WoW

 

I do not know how to solve this

use the search forum

see if you find a solution

Link to comment
Share on other sites

Hy

 

Gigabyte GA EP45-UD3LR v.1.2 Cartri bios v.0.8 the latest patcher when try "extract DSDT from system" return this error:

[Line 4567 type Error message Name already exists in scope (PMRS)]

[Line 4571 type Error message Name already exists in scope (SLPE)]

 

Ok this bios is already patched, but i want try the system whit perfect DSDT and new Chameleon

Link to comment
Share on other sites

Hy

 

Gigabyte GA EP45-UD3LR v.1.2 Cartri bios v.0.8 the latest patcher when try "extract DSDT from system" return this error:

[Line 4567 type Error message Name already exists in scope (PMRS)]

[Line 4571 type Error message Name already exists in scope (SLPE)]

 

Ok this bios is already patched, but i want try the system whit perfect DSDT and new Chameleon

 

only original DSDT without mod

with the DSDT you can remove the unused devices, etc.

biosmod sucks

 

send me your DSDT

perl -e 'open(CMD, "ioreg -lw0 \| grep DSDT|") or die; while(<CMD>) { chomp; if($_ =~ /\"DSDT\.?\d?\"=<([^>]*)>/) { $buff = $1; open(PIP, "|xxd -r -p > ~/Desktop/dsdt.aml") or die; print PIP "$1"; } }'

Link to comment
Share on other sites

cosmetic

for your enjoyment in ioreg

Yeah, no big deal but i like everything to be perfect...

 

I was looking at your DSDT and there is a lot of stuff removed (LNKx, PEX1/2...), Method _INI added... From where you knew, what to remove, what to add, etc.? I know i'm asking noobish questions, but i don't fell like i want to study some 500 pages of Intel datasheets, ACPI documetations, etc. :D I just want to remove junk from my DSDT, that's all. :D

Link to comment
Share on other sites

Yeah, no big deal but i like everything to be perfect...

 

I was looking at your DSDT and there is a lot of stuff removed (LNKx, PEX1/2...), Method _INI added... From where you knew, what to remove, what to add, etc.? I know i'm asking noobish questions, but i don't fell like i want to study some 500 pages of Intel datasheets, ACPI documetations, etc. :D I just want to remove junk from my DSDT, that's all. :D

"read" and "see" MasterChief, mm67 and datasheet

:D

Link to comment
Share on other sites

MaLd0N,

 

The attached send_me.zip is for an EVGA P55 FTW motherboard. So far, no one has really done this I believe as most are for the X58s.

 

This would be a great addition! So little work has been done for EVGA boards despite their prevalence as enthusiast equipment on the PC side!

 

Thanks in advance for all your work!

 

It might be worth noting (or not, I'm a noob at this), I'm running a GTX 580 that isn't recognized properly when I boot normally. However, when I boot in safe mode, it is detected and runs properly (less QE/CI) at 1920x1080x32 with the full 1532MB vram. On normal boot, I'm stuck at 1024x768x32 and the card is just listed as an NVIDIA.

send_me.zip

Link to comment
Share on other sites

MaLd0N,

 

The attached send_me.zip is for an EVGA P55 FTW motherboard. So far, no one has really done this I believe as most are for the X58s.

 

This would be a great addition! So little work has been done for EVGA boards despite their prevalence as enthusiast equipment on the PC side!

 

Thanks in advance for all your work!

 

It might be worth noting (or not, I'm a noob at this), I'm running a GTX 580 that isn't recognized properly when I boot normally. However, when I boot in safe mode, it is detected and runs properly (less QE/CI) at 1920x1080x32 with the full 1532MB vram. On normal boot, I'm stuck at 1024x768x32 and the card is just listed as an NVIDIA.

dsdt.mwparrish.zip

ALIAS

DTGP

HID/CID

IRQs

LAN

MUTE

REMOVE

RENAME

SMBUS

SHUTDOWN

Link to comment
Share on other sites

Nope

I use...

0x34, 0x3A, 0x00, 0x00

in UHC1, 2, 3, 4, 5 and 6

no problem

 

 

 

WoW

 

I do not know how to solve this

use the search forum

see if you find a solution

 

Well, I've been looking into this all day, still no solution. I had idle-sleep working fine before, so I'm not sure what has changed. I tried all sorts of different DSDT combination. No luck. Could the version of Chameleon affect this in any way?

 

@ixxxion

 

you can try a workaround like this

 

http://www.insanelymac.com/forum/index.php?showtopic=182535

 

Ya, thanks, I might end up doing that if I can't solve it.

Link to comment
Share on other sites

Well, I've been looking into this all day, still no solution. I had idle-sleep working fine before, so I'm not sure what has changed. I tried all sorts of different DSDT combination. No luck. Could the version of Chameleon affect this in any way?

 

I honestly do not know

 

somehow this problem is common

but I do not know of a solution

;)

 

without EHCI

dsdt.ixxxion.zip

Link to comment
Share on other sites

Nope

I use...

0x34, 0x3A, 0x00, 0x00

in UHC1, 2, 3, 4, 5 and 6

no problem

 

 

 

WoW

 

I do not know how to solve this

use the search forum

see if you find a solution

 

Ok, I have a fix!! Everything works, including sleep. For the P5K Deluxe WiFi, here are the patches needed:

 

DTGP

HDEF

AD1988B

HID/CID

IRQs

LAN

RENAMED DEVICES

SBUS

IGBE <---- not sure this is needed, but I have it

SHUTDOWN

REMOVED DEVICES

FIX WARNINGS

ICH9 USB SLEEP

 

Note the following:

- both the HDEF and AD1988B are required, the first installed HDEF device, the second adds some AD1988B stuff

- the EHCI sleep fix is NOT required, I think this was screwing up my idle sleep

- I do not have a _DSM method in UHC4 (0x001D0003) as the ICH9 patch does not install one, doesn't seem to affect anything

 

How I did it:

- I ran the P5K3 auto-patcher on my original dsdt.aml

- I added the AD1988B patch

- I added the IGBE patch

 

/Extra/Extensions:

- fakesmc.kext

- AD1988BFix.kext

- LegacyAppleAHCIPort.kext

- Yukon-88E8056Injector.kext <--- custom kext that I created by adding the ID 0x436411ab to plist

 

 

com.apple.Boot.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AtiConfig</key>
<string>Uakari</string>
<key>EthernetBuiltIn</key>
<string>Yes</string>
<key>GenerateCStates</key>
<string>Yes</string>
<key>GeneratePStates</key>
<string>Yes</string>
<key>Graphics Mode</key>
<string>1920x1200x32</string>
<key>GraphicsEnabler</key>
<string>Yes</string>
<key>Kernel</key>
<string>mach_kernel</string>
<key>Kernel Flags</key>
<string>-v arch=x86_64</string>
<key>Timeout</key>
<string>10</string>
</dict>
</plist>

 

 

 

 

 

I honestly do not know

 

somehow this problem is common

but I do not know of a solution

;)

 

without EHCI

dsdt.ixxxion.zip

 

Thanks MaLdOn!! I think this was the problem. I'm up and running and everything is working perfect now. Thanks for all the help!

dsdt.aml.zip

Yukon_88E8056Injector.kext.zip

LegacyAppleAHCIPort.kext.zip

AD1988bFix.kext.zip

Link to comment
Share on other sites

Hello MaLd0n,

 

could you please take a look at my send_me folder ?

 

i´ve got a ASUS P5K-Pro and till now i used a dsdt from Masterchief.

http://www.insanelymac.com/forum/index.php...p;#entry1280888

 

but:

WARNING: The attached DSDT's includes many patches, including the newly added HDEF/DTGP/LAN/SBUS methods, included USB patches, but most importantly the following Intel Q9300 specific P-State fix to lower the CPU temperature:

 

I´ve got a E7600 and tried to insert peaces from my own dsdt into his one with no luck.

 

would be great if you could help because i don´t get generated speedstep with MacPro3.1 but within dsdt.

Carstiman_send_me.zip

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...