Jump to content

DSDT Auto-Patcher


MaLd0n
 Share

5,753 posts in this topic

Recommended Posts

if you find a solution

share with us

:)

 

try it

I did what you said: the same result

I edited _PTS to its original (untouched) state: Sleep -the same, Shutdown -like when the shutdown fix is not applied (CPU fan keeps spinning)

 

So i looks like this part is not affecting sleep at all. ;) It's a shame that MasterChief is gone. I bet he would sniff it out.

 

EDIT: Haha! It's just IMPOSSIBLE to figure it out from Intel's datasheet. I would have to have a LOT of knowledge. :D I will try to post about my problem in DSDT editing section.

Link to comment
Share on other sites

I'm not sure what the Apple style name for USB0 / USB2 is. UHC1 and UHC2?

Should i delete everything in the Device(USB*) part or should i just add a method?

rename

makes no difference

 

 

I edited _PTS to its original (untouched) state

 

 

 

_pts

Method (_PTS, 1, NotSerialized)
{
	Or (Arg0, 0xF0, Local0)
	Store (Local0, DBG1)
	OSTP ()
	If (LEqual (Arg0, One)) {}
	If (LEqual (Arg0, 0x03)) {}
	If (LEqual (Arg0, 0x05))
	{
		[color="#FF0000"][b]Store (Zero, SLPE)
		Sleep (0x10)[/b][/color]
	}

	If (LEqual (Arg0, 0x04))
	{
		If (LNot (PICF))
		{
			Sleep (0x64)
		}
	}

 

definitionblock

 

OperationRegion (PMRS, SystemIO, 0x0430, One)\n
Field (PMRS, ByteAcc, NoLock, Preserve)
{
	,   4,
SLPE,   1
}

Link to comment
Share on other sites

Yes, i tried that.

 

 

I was just testing, what will happen if i put a non-edited part there. And i found out, that sleep behavior is not changing at all...

these are for the shutdown

has nothing to do with sleep

Link to comment
Share on other sites

this way?

 
   Device (USB0) //or UHCI1 / EHC1
            {
                Name (_ADR, 0x000B0000)
		   Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0f)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x34, 0x3A, 0x00, 0x00  //the values below
                            },
                            "AAPL,clock-id",   // property needed for sleep support
                            Buffer (One)
                            {
                                0x0a   
                            }, 

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

                              "device_type",   //not sure it is useful
                              Buffer (0x05)
                              {
                                  "EHCI"
                              },

                            
                            "AAPL,current-available", 
                            0x04B0, 
                            "AAPL,current-extra", 
                            0x02BC, 
                            "AAPL,current-in-sleep",  // to solve a problem with sleep when stick is inserted
                            0x03E8, 

                            Buffer (0x01)
                            {
                                0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }

 

and in device-id one of that values:

nForce
USB1 - 0x0aa5
USB2 - 0x0aa7
EHC1 - 0x0aa6
EHC2 - 0x0aa9

(found at projectosx.com)

Link to comment
Share on other sites

and in device-id one of that values:
nForce
USB1 - 0x0aa5
USB2 - 0x0aa7
EHC1 - 0x0aa6
EHC2 - 0x0aa9

(found at projectosx.com)

 

UHCI

try it

Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x02)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               0x[b]XX[/b], 0x[b]XX[/b], 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }
           }

 

EHCI

look at the log

see the error

cat /var/log/kernel.log

 

this fix does not solve?

Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x04)
                       {
                           "AAPL,clock-id", 
                           Buffer (One)
                           {
                               0x01
                           }, 

                           "device_type", 
                           Buffer (0x05)
                           {
                               "EHCI"
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }
           }

 

 

 

Thanks MaLd0n for update ! :)

;)

 

 

 

:)

 

Hi ,

Maldon ...I come to Rio for the carnival, you come to take to me?

 

:gun::gun:

 

I can carry also mine dsdt?

 

:)

 

auhuheuhUhsuhUheuhUhsuhUha

Yep

you're(and DSDT) welcome

Link to comment
Share on other sites

dsdt.pctmac.zip

 

DTGP

EHCI

IRQs

LPC

PNLF

RENAME

SMBUS

UHCI

FIX WARNINGS

 

your video is not supported in OsX

Wireless too

 

Just tried to boot with your file but I got a KP with the error "NO HPETS available ... CPUs configured incorrectly....."

Strange as I tried by just changing your file. Any idea?

 

Other question on power management: with my own file, I had powermanagement in the dsdt file and DrapSSDT=Yes in com.apple.boot.plist file.

 

With your file, should I keep it (did you add pstates et cstates in dsdt?) or do I need to use the "GeneratePStates"="Yes and GenerateCStates"="Yes" in com.apple.boot.plist to get Chameleon to load p/c states in DSDT table?

 

Please note I am using the Deviato's mod of Chameleon RC4 to get the native resolution of my display.

thx

Link to comment
Share on other sites

Just tried to boot with your file but I got a KP with the error "NO HPETS available ... CPUs configured incorrectly....."

Strange as I tried by just changing your file. Any idea?

 

Other question on power management: with my own file, I had powermanagement in the dsdt file and DrapSSDT=Yes in com.apple.boot.plist file.

 

With your file, should I keep it (did you add pstates et cstates in dsdt?) or do I need to use the "GeneratePStates"="Yes and GenerateCStates"="Yes" in com.apple.boot.plist to get Chameleon to load p/c states in DSDT table?

 

thx

 

try it

dsdt.pctmac.zip

 

add in boot.plist

generate P and C States

Link to comment
Share on other sites

try it

dsdt.pctmac.zip

 

add in boot.plist

generate P and C States

 

ok, much better: no KP anymore. Still an error:

ACPI_SMC_PlatformPlugin::registerLPCDriver - WARNING - LPC device initialization failed: C-state power management not initialized

VID2: Not usable

 

I made an error in my previous post: as added in my previous post, I am not using the Chameleon RC5 yet as I am using the Deviato's RC4 mod to get my LCD native resolution.

So If I want to get p/c states via RC5, how can I still get my native resolution on my Video ? (since it's not supportted by SL)

 

EDIT: just ran your script: here the result rigth now with your dsdt file and the error above:

send_me.zip

Link to comment
Share on other sites

ok, much better: no KP anymore. Still an error:

ACPI_SMC_PlatformPlugin::registerLPCDriver - WARNING - LPC device initialization failed: C-state power management not initialized

VID2: Not usable

 

I made an error in my previous post: as added in my previous post, I am not using the Chameleon RC5 yet as I am using the Deviato's RC4 mod to get my LCD native resolution.

So If I want to get p/c states via RC5, how can I still get my native resolution on my Video ? (since it's not supportted by SL)

 

use search forum

 

 

 

Whats is your chipset?

Link to comment
Share on other sites

use search forum

 

 

 

Whats is your chipset?

 

Dell Latitude E6400: Intel Mobile Core 2 Duo P8700 @ 2.53Ghz, 4Gb RAM, Video Intel GMA 4500MHD 1Gb Ram (id 8086:2a42 Rev B3), Intel Wifi 5100 AGN, Intel 82567LM, SATA Intel 82801IB/IR/IH (ICH9 Family), Audio IDT HD (id 111D:76B2 Chip 92HD75B3).

 

When you write search: this is for the native resolution or for the error on C-state?

For the resolution, the Deviato is by far the most easy one: I do not remember something else: do you ?

Link to comment
Share on other sites

When you write search: this is for the native resolution or for the error on C-state?

For the resolution, the Deviato is by far the most easy one: I do not remember something else: do you ?

 

try to find another way to get the native resolution

to you to use the Chameleon RC5

and add the boot.plist

 

Generate CStates=Yes

Link to comment
Share on other sites

try to find another way to get the native resolution

to you to use the Chameleon RC5

and add the boot.plist

 

Generate CStates=Yes

 

Ok. I will search for native resolution.

 

To test, I have installed RC5 r650 (BTW, I have 1280x768 instead of 1280x800 .... not too bad) and use P/C-States in boot.plist

 

But I still have the error ACPI_SMC_PlatformPlugin::registerLPCDriver - WARNING - LPC device initialization failed: C-state power management not initialized

 

What log should I look for or test should I do ?

Link to comment
Share on other sites

Hey Maldon, I have a p45-ud3r and i used the auto patch but I am having some issues. My temperatures seem be running much higher with the native power manager. Also when i set my computer to sleep after 20 mins it doesn't. The monitor only goes to sleep. Your help would be greatly appreciated. I included the run_me and boot list. Let me know if you need anything else. Also lastly should i be using the LegacyAppleAHCIPort.kext for this board ? Thanks

send_me.zip

com.apple.Boot.plist.zip

Link to comment
Share on other sites

But I still have the error ACPI_SMC_PlatformPlugin::registerLPCDriver - WARNING - LPC device initialization failed: C-state power management not initialized

 

old problem DELL

 

Hey Maldon, I have a p45-ud3r and i used the auto patch but I am having some issues. My temperatures seem be running much higher with the native power manager. Also when i set my computer to sleep after 20 mins it doesn't. The monitor only goes to sleep. Your help would be greatly appreciated. I included the run_me and boot list. Let me know if you need anything else. Also lastly should i be using the LegacyAppleAHCIPort.kext for this board ? Thanks

 

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

 

NativePM--> Chameleon RC5

Use topic

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

 

LegacyAppleAHCIPort.kext

MaLd0n_2011_02_14___s_13.11.38.png

 

 

 

Maldonnnnnnnn...what is this problem for my system?

 

:):D

:tomato::tomato:

 

Use fakesmc and plugins in S/L/E

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...