Jump to content

DSDT Auto-Patcher


MaLd0n
 Share

5,753 posts in this topic

Recommended Posts

Thanks for your help in my other thread! Just wanted to say that after testing some stuff out in the DSDT the following code seems to make sleep work fully for me (as long as I use USB2/ECHI devices ONLY! UCHI devices still causes failed sleep and CMOS-reset/corrupt):

(ofcourse the clock-id for ECH2 is 0x02)

Don't need the device-ids and such as they are already identified as bult-in and have correct IDs!

Just wanted to tell you if you want to include it in a future update!

 

Device ([color="#FF0000"][b]EHC2[/b][/color])
           {
               Name (_ADR, 0x001D0007)
               Method (_PRW, 0, NotSerialized)
               {
                   Return (GPRW (0x0D, 0x04))
               }

               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x0F)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               0x8C, 0x26, 0x00, 0x00
                           }, 

                           "built-in", 
                           Buffer (One)
                           {
                               0x00
                           }, 

                           "AAPL,clock-id", 
                           Buffer (One)
                           {
                               [color="#FF0000"][b]0x01[/b][/color]
                           }, 

                           "device_type", 
                           Buffer (0x05)
                           {
                               "EHCI"
                           }, 

                           "AAPL,current-available", 
                           0x05DC, 
                           "AAPL,current-extra", 
                           0x03E8, 
                           "AAPL,current-in-sleep", 
                           0x0BB8, 
                           Buffer (One)
                           {
                               0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }
           }

           Device ([color="#FF0000"][b]EHC1[/b][/color])
           {
               Name (_ADR, 0x001A0007)
               Method (_PRW, 0, NotSerialized)
               {
                   Return (GPRW (0x0D, 0x04))
               }

               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x0F)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               0x8C, 0x26, 0x00, 0x00
                           }, 

                           "built-in", 
                           Buffer (One)
                           {
                               0x00
                           }, 

                           "AAPL,clock-id", 
                           Buffer (One)
                           {
                               [color="#FF0000"][b]0x02[/b][/color]
                           }, 

                           "device_type", 
                           Buffer (0x05)
                           {
                               "EHCI"
                           }, 

                           "AAPL,current-available", 
                           0x05DC, 
                           "AAPL,current-extra", 
                           0x03E8, 
                           "AAPL,current-in-sleep", 
                           0x0BB8, 
                           Buffer (One)
                           {
                               0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }
           }

 

my mistake :)

 

The ids macpro3, 1 and correcting errata in ioreg

 

My DSDT

dsdt.MaLd0n.zip

 

Captura_de_tela_2011_04_20_a__s_15.24.14.png

Captura_de_tela_2011_04_20_a__s_15.25.14.png

 

try it

Method (_DSM, 4, NotSerialized)
			{
				Store (Package (0x04)
					{
						"device-id", 
						Buffer (0x04)
						{
							0x8C, 0x26, 0x00, 0x00
						}, 

						"AAPL,clock-id", 
						Buffer (One)
						{
							[color="#FF0000"][b]0x01[/b][/color]
						}
					}, Local0)
				DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
				Return (Local0)
			}

Link to comment
Share on other sites

DSDT didn't appear to make much difference. It might be my HP Bluetooth dongle not being fully compatible. I did pick up an Apple bluetooth dongle which I will get working so see how that makes out. But it does appear to be stable. Haven't tried putting it to sleep or binary patching AppleHDA. I'll see about getting my keyboard working first.

 

Maldon

 

I managed to get a ps2>USB adapter so I can at least use my keyboard. The binary patch for my ALC883 did not seem to work (have not tried to use the DSDT AUto Patcher for Audio yet).

 

One thing that is odd is when I try to put my machine to sleep it immediately wakes back up. Everything appears to go to sleep but then the machine wakes right up. Shutdown and restart works fine. I'm using the DSDT you last sent me.

 

Model Identifier is set to MacPro2,1. Should I use a more recent identifier? Also my HD icons are orange, will the kext on first post resolve this? Don't want to cause kernel panic.

 

Also my optical drives are not recognized.

Link to comment
Share on other sites

ICH10-originals (3a3a, 3a3c)

In your case...nothing

Macpro4,1 ids

 

Any ideas about the USB1/UHCI problems?

What happens?

 

Model Identifier is set to MacPro2,1. Should I use a more recent identifier? Also my HD icons are orange, will the kext on first post resolve this? Don't want to cause kernel panic.

 

Use Model Identifier iMac Core2duo(I think 8.1 or 9.1)

 

Orange Icons

http://www.insanelymac.com/forum/index.php...st&id=86095

 

run on terminal

grep Wake /var/log/kernel.log

Link to comment
Share on other sites

Use Model Identifier iMac Core2duo(I think 8.1 or 9.1)

 

Orange Icons

http://www.insanelymac.com/forum/index.php...st&id=86095

 

run on terminal

grep Wake /var/log/kernel.log

 

Do I need Jmicron kext for the optical drives? They are on IDE.

Apr 20 06:35:26 Andre-Aguiars-iMac kernel[0]: Wake reason = UHC4 US31
Apr 20 06:35:26 Andre-Aguiars-iMac kernel[0]: System Wake
Apr 20 06:35:45 Andre-Aguiars-iMac kernel[0]: Wake reason = UHC4 US31
Apr 20 06:35:45 Andre-Aguiars-iMac kernel[0]: System Wake

 

Also if I use the iMac9,1 identifier from the first post do I replace my Extra folder with that or just the smbios.plist?

Link to comment
Share on other sites

My main board is a Asus m4n89gtd-pro ACL892 audio attached is the run me out put + the dsdt dump from linux I have tryed to compile the dsdt my self but get the 200+ error (null valuses) Hope you can help!

 

This what osx thinks i have

 

Model Name: Mac Pro

Model Identifier: MacPro3,1

Processor Speed: 2.9 GHz

Number Of Processors: 1

Total Number Of Cores: 4

L2 Cache (per core): 512 KB

Memory: 8 GB

Bus Speed: 800 MHz

Boot ROM Version: MP31.88Z.006C.B02.0801021250

SMC Version (system): 1.30f3

Serial Number (system): G81029559XYL

Hardware UUID: 724698C3-91F7-5D8D-A1C2-CF9C7EFE2B0B

send_me_2.zip

Link to comment
Share on other sites

studio 1555

 

dsdt.tiksa1985.txt.zip

DTGP

EHCI

FN

HPET

IRQs

LPC

PNLF

RENAME

SMBUS

UHCI

 

Do I need Jmicron kext for the optical drives? They are on IDE.

Apr 20 06:35:26 Andre-Aguiars-iMac kernel[0]: Wake reason = UHC4 US31
Apr 20 06:35:26 Andre-Aguiars-iMac kernel[0]: System Wake
Apr 20 06:35:45 Andre-Aguiars-iMac kernel[0]: Wake reason = UHC4 US31
Apr 20 06:35:45 Andre-Aguiars-iMac kernel[0]: System Wake

 

Also if I use the iMac9,1 identifier from the first post do I replace my Extra folder with that or just the smbios.plist?

Only Smbios

send me your DSDT

Link to comment
Share on other sites

Is there any way to enable FireWire in my DSDT? I can drives in system profiler but they are not mounted, and not seen with disk utility. Is it possible to fix this problem?

 

Use the search forum

Link to comment
Share on other sites

Here is my latest DSDT file.

 

I have fixed the "FireWire runtime power conservation disabled. (2)" message from showing up, but now I've reverted back to the Firewire device (J380) preventing the system from sleeping.

 

Any assistance would be much appreciated. I'll update if I come up with anything myself.

dsdtdv7t.aml.zip

Link to comment
Share on other sites

Here is my latest DSDT file.

 

I have fixed the "FireWire runtime power conservation disabled. (2)" message from showing up, but now I've reverted back to the Firewire device (J380) preventing the system from sleeping.

 

Any assistance would be much appreciated. I'll update if I come up with anything myself.

dsdt.V8.zip

this fix _GPE

you can lose HotPlug

test this

Link to comment
Share on other sites

got Sleep working!! Still don't have optical or Audio (do I need Legacy for ALC883 with Bin patching?)

 

optical

I have no idea, use search forum

 

Audio

Yep, HDEF(DSDT) + Legacy + AppleHda Patched

 

or HDEF + AppleHda patched(.plist / Binary)

Link to comment
Share on other sites

dsdt.V8.zip

this fix _GPE

you can lose HotPlug

test this

 

Same thing. No FireWire power conservation message, but it prevents the machine from sleeping.

 

Apr 20 19:30:31 HackBook-Pro kernel[0]: System sleep prevented by J380
Apr 20 19:30:33 HackBook-Pro kernel[0]: System Doze
Apr 20 19:30:37 HackBook-Pro kernel[0]: Previous Sleep Cause: 0

Link to comment
Share on other sites

Same thing. No FireWire power conservation message, but it prevents the machine from sleeping.

 

Apr 20 19:30:31 HackBook-Pro kernel[0]: System sleep prevented by J380
Apr 20 19:30:33 HackBook-Pro kernel[0]: System Doze
Apr 20 19:30:37 HackBook-Pro kernel[0]: Previous Sleep Cause: 0

try without patch

Link to comment
Share on other sites

optical

I have no idea, use search forum

 

Audio

Yep, HDEF(DSDT) + Legacy + AppleHda Patched

 

or HDEF + AppleHda patched(.plist / Binary)

 

Hmm ok I'm using DSDT and even used your DSDT patcher for Gigabyte Audio. Not using optical so I guess I need to find legacy for my chipset.

 

FYI, Fixed Optical by installing JMicron36x kext

 

Also here's a System Info you requested a few pages back. HOpe it helps.

 

Screen%20shot%202011-04-20%20at%208.43.12%20PM.png

Link to comment
Share on other sites

Is there a way, DSDT or otherwise, that I can just disable my firewire port? I don't use it, I never have, I never will, and I feel like that'd put an end to my sleep issues.

 

I have an insanely locked down HP BIOS, so I cannot disable it in there.

Link to comment
Share on other sites

 

The Firewire appears to activate during boot. We're back to showing the "FireWire runtime power conservation disabled. (2)" message.

 

We still get "FireWire (OHCI) VendorID 197b ID 2380 built-in now active, GUID 913f02007ee840d9; max speed s400." despite the DSDT, and it appears in System Profiler, but J380 does not appear in IORegistryExplorer.

 

As far as sleep goes, the machine goes to sleep now, but we're back to it not waking up.

 

State 0 - Just reboots when coming out of it

State 1 - Loads the image, but the screen goes white, and it reboots

State 3 - Combination of the first two.

Link to comment
Share on other sites

What happens?

The UHCI doesn't seem to unload correctly when I try to set the computer to sleep. The result is that the sleep fails, fan keeps spinning and I get a corrupt BIOS. This also happens with EHCI before I added the "clock-id". As long as I don't use any UHCI device I'm fine.

If this can't be fixed, is there a way to force use EHCI for all devices? Or maybe just disable UHCI?

Link to comment
Share on other sites

Maldon,

 

I think I may have lost Sleep but I'm on to getting Audio working. Does the below screen shot help in possibly modifying my previous DSDT to correct Sleep or get Audio working? I used the bin patch from the first post, do I need to modify that bin patch string to match the DevID listed?

 

 

Hmm ok I'm using DSDT and even used your DSDT patcher for Gigabyte Audio. Not using optical so I guess I need to find legacy for my chipset.

 

FYI, Fixed Optical by installing JMicron36x kext

 

Also here's a System Info you requested a few pages back. HOpe it helps.

 

Screen%20shot%202011-04-20%20at%208.43.12%20PM.png

Link to comment
Share on other sites

I think I may have lost Sleep but I'm on to getting Audio working. Does the below screen shot help in possibly modifying my previous DSDT to correct Sleep or get Audio working? I used the bin patch from the first post, do I need to modify that bin patch string to match the DevID listed?

Audio

http://www.projectosx.com/forum/index.php?showtopic=465

 

Sleep

What Happens?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...