Jump to content

DSDT editor and patcher


oldnapalm
 Share

999 posts in this topic

Recommended Posts

There is a kext in the topic (post #19)

[Edit] The dsdt fix doesn't work properly since it brings device removal error to ehci device after wake

However you can download a kext that works in Extra/Extensions and should pass the updates here cheers

but for what you said I believe your case is different.

 

Maybe this is more like your problem?

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

Link to comment
Share on other sites

There is a kext in the topic (post #19)

 

but for what you said I believe your case is different.

 

Maybe this is more like your problem?

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

 

This nearly all usb on dsdt

 Device (UHC1)
		{
			Name (_ADR, 0x00120000)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
		}
		Device (UHC2)
		{
			Name (_ADR, 0x00120001)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
		}
		Device (UHC3)
		{
			Name (_ADR, 0x00120002)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
		}
		Device (USB4)
		{
			Name (_ADR, 0x00130000)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
		}
		Device (UHC5)
		{
			Name (_ADR, 0x00130001)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
		}
		Device (UHC6)
		{
			Name (_ADR, 0x00130002)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
		}
		Device (UHC7)
		{
			Name (_ADR, 0x00140005)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
		}

what to do with it

this is 7 devices that unloaded during sleep

which lines should i add to every one to make it work correct

Link to comment
Share on other sites

It's not the same DSDT of post #238, is it?

 

Try inserting method _DSM into all USB devices

Method (_DSM, 4, NotSerialized)
{
  Store (Package (0x04)
   {
	 "AAPL,clock-id",
	 Buffer (0x01)
	 {
		 0x01
	 },
	 "device_type",
	 Buffer (0x05)
	 {
		"EHCI"
	 }
	}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}

Edit "device_type" for UHCI ports.

 

ApexDE uses a different "AAPL,clock-id" for each of the 2 EHCI ports (0x01 and 0x02 in the example), so I would use a different value for each port.

Link to comment
Share on other sites

It's not the same DSDT of post #238, is it?

 

Try inserting method _DSM into all USB devices

Method (_DSM, 4, NotSerialized)
{
  Store (Package (0x04)
   {
	 "AAPL,clock-id",
	 Buffer (0x01)
	 {
		 0x01
	 },
	 "device_type",
	 Buffer (0x05)
	 {
		"EHCI"
	 }
	}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}

Edit "device_type" for UHCI ports.

 

ApexDE uses a different "AAPL,clock-id" for each of the 2 EHCI ports (0x01 and 0x02 in the example), so I would use a different value for each port.

 

i did one for first

			Device (UHC1)
		{
			Name (_ADR, 0x00120000)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
			Method (_DSM, 4, NotSerialized)
					{
					   Store (Package (0x04)
						   {
							 "AAPL,clock-id",
							 Buffer (0x01)
							 {
								 0x01
							 },
							 "device_type",
							 Buffer (0x05)
							 {
								"UHCI"
							 }
							}, Local0)
						DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
						Return (Local0)
					}
		}

 

is this correct or need anther edit

 

This is all i fixed hope that it is correct will compile it and test it ;)

			Device (UHC1)
		{
			Name (_ADR, 0x00120000)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
			Method (_DSM, 4, NotSerialized)
					{
					   Store (Package (0x04)
						   {
							 "AAPL,clock-id",
							 Buffer (0x01)
							 {
								 0x01
							 },
							 "device_type",
							 Buffer (0x05)
							 {
								"UHC1"
							 }
							}, Local0)
						DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
						Return (Local0)
					}
		}
		Device (UHC2)
		{
			Name (_ADR, 0x00120001)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
			Method (_DSM, 4, NotSerialized)
					{
					   Store (Package (0x04)
						   {
							 "AAPL,clock-id",
							 Buffer (0x01)
							 {
								 0x02
							 },
							 "device_type",
							 Buffer (0x05)
							 {
								"UHC2"
							 }
							}, Local0)
						DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
						Return (Local0)
					}			  
		}
		Device (UHC3)
		{
			Name (_ADR, 0x00120002)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
			Method (_DSM, 4, NotSerialized)
					{
					   Store (Package (0x04)
						   {
							 "AAPL,clock-id",
							 Buffer (0x01)
							 {
								 0x03
							 },
							 "device_type",
							 Buffer (0x05)
							 {
								"UHC3"
							 }
							}, Local0)
						DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
						Return (Local0)
					}			  
		}
		Device (USB4)
		{
			Name (_ADR, 0x00130000)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
			Method (_DSM, 4, NotSerialized)
					{
					   Store (Package (0x04)
						   {
							 "AAPL,clock-id",
							 Buffer (0x01)
							 {
								 0x04
							 },
							 "device_type",
							 Buffer (0x05)
							 {
								"USB4"
							 }
							}, Local0)
						DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
						Return (Local0)
					}				
		}
		Device (UHC5)
		{
			Name (_ADR, 0x00130001)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
			Method (_DSM, 4, NotSerialized)
					{
					   Store (Package (0x04)
						   {
							 "AAPL,clock-id",
							 Buffer (0x01)
							 {
								 0x05
							 },
							 "device_type",
							 Buffer (0x05)
							 {
								"UHC5"
							 }
							}, Local0)
						DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
						Return (Local0)
					}				
		}
		Device (UHC6)
		{
			Name (_ADR, 0x00130002)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
			Method (_DSM, 4, NotSerialized)
					{
					   Store (Package (0x04)
						   {
							 "AAPL,clock-id",
							 Buffer (0x01)
							 {
								 0x06
							 },
							 "device_type",
							 Buffer (0x05)
							 {
								"UHC6"
							 }
							}, Local0)
						DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
						Return (Local0)
					}				
		}
		Device (UHC7)
		{
			Name (_ADR, 0x00140005)
			Method (_PRW, 0, NotSerialized)
			{
				Return (GPRW (0x0B, 0x04))
			}
			Method (_DSM, 4, NotSerialized)
					{
					   Store (Package (0x04)
						   {
							 "AAPL,clock-id",
							 Buffer (0x01)
							 {
								 0x07
							 },
							 "device_type",
							 Buffer (0x05)
							 {
								"UHC7"
							 }
							}, Local0)
						DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
						Return (Local0)
					}				
		}

Link to comment
Share on other sites

I believe "device_type" should be "UHCI" for all of them, don't use the device's name.

OK will rename them again and test it

 

it make error during compiling

Error 4064 - Object does not exist ^ (DTGP)

 

THE ERROR is on this line on 7usb

DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))

 

what is wrong ;)

 

solved

added this after wak

Method (DTGP, 5, NotSerialized)
 {
	 If (LEqual (Arg0, Buffer (0x10)
			 {
				 /* 0000 */	0xC6, 0xB7, 0xB5, 0xA0, 0x18, 0x13, 0x1C, 0x44, 
				 /* 0008 */	0xB0, 0xC9, 0xFE, 0x69, 0x5E, 0xAF, 0x94, 0x9B
			 }))
	 {
		 If (LEqual (Arg1, One))
		 {
			 If (LEqual (Arg2, Zero))
			 {
				 Store (Buffer (One)
					 {
						 0x03
					 }, Arg4)
				 Return (One)
			 }

			 If (LEqual (Arg2, One))
			 {
				 Return (One)
			 }
		 }
	 }

	 Store (Buffer (One)
		 {
			 0x00
		 }, Arg4)
	 Return (One)
 }

 

after testing

now usb controllers not loaded completely and dont work lol :D

what is the solution for that :(

Link to comment
Share on other sites

@ oldnapalm

 

I don't get it...

I made the changes you named to me, but I don't see any changes...

Also the model name inside the smbios.plist did nohing :blink:

 

I attached a new dsl for you. The other ones were identical as I booted with a modified one and legacy kernel :dev:

 

Please check my file and help me to bring working sleep to me.

Btw. native sound is not working. I still need help of the voodoo power

 

my log file:

Sep 19 09:27:19 localhost kernel[0]: npvhash=4095

Sep 19 09:27:19 localhost kernel[0]: PAE enabled

Sep 19 09:27:19 localhost kernel[0]: Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386

Sep 19 09:27:19 localhost kernel[0]: vm_page_bootstrap: 512546 free pages and 11742 wired pages

Sep 19 09:27:19 localhost kernel[0]: standard timeslicing quantum is 10000 us

Sep 19 09:27:19 localhost kernel[0]: mig_table_max_displ = 73

Sep 19 09:27:19 localhost kernel[0]: [sleepEnabler] Registering PowerManagement dispatch table...

Sep 19 09:27:19 localhost kernel[0]: [sleepEnabler] To disable (if the kernel panics), please specify the boot argument pmVersion=0

Sep 19 09:27:19 localhost kernel[0]: [sleepEnabler] Calling pmInitComplete()...

Sep 19 09:27:19 localhost kernel[0]: AppleACPICPU: ProcessorId=0 LocalApicId=0 Enabled

Sep 19 09:27:19 localhost kernel[0]: AppleACPICPU: ProcessorId=1 LocalApicId=1 Enabled

Sep 19 09:27:19 localhost kernel[0]: calling mpo_policy_init for Quarantine

Sep 19 09:27:19 localhost kernel[0]: Security policy loaded: Quarantine policy (Quarantine)

Sep 19 09:27:19 localhost kernel[0]: calling mpo_policy_init for Sandbox

Sep 19 09:27:19 localhost kernel[0]: Security policy loaded: Seatbelt sandbox policy (Sandbox)

Sep 19 09:27:19 localhost kernel[0]: calling mpo_policy_init for TMSafetyNet

Sep 19 09:27:19 localhost kernel[0]: Security policy loaded: Safety net for Time Machine (TMSafetyNet)

Sep 19 09:27:19 localhost kernel[0]: Copyright © 1982, 1986, 1989, 1991, 1993

Sep 19 09:27:19 localhost kernel[0]: The Regents of the University of California. All rights reserved.

Sep 19 09:27:19 localhost kernel[0]: MAC Framework successfully initialized

Sep 19 09:27:19 localhost kernel[0]: using 10485 buffer headers and 4096 cluster IO buffer headers

Sep 19 09:27:19 localhost kernel[0]: IOAPIC: Version 0x20 Vectors 64:87

Sep 19 09:27:19 localhost kernel[0]: ACPI: System State [s0 S3 S4 S5] (S3)

Sep 19 09:27:19 localhost kernel[0]: AppleIntelCPUPowerManagement: initialization completeRTC: Only single RAM bank (128 bytes)

Sep 19 09:27:19 localhost kernel[0]: mbinit: done (64 MB memory set for mbuf pool)

Sep 19 09:27:19 localhost kernel[0]: netkas presents fakesmc, a kext which emulates smc device

Sep 19 09:27:19 localhost kernel[0]: From path: "uuid",

Sep 19 09:27:19 localhost kernel[0]: Waiting for boot volume with UUID BF4F5614-159B-3BB6-96D5-D53DE9E0B496

Sep 19 09:27:19 localhost kernel[0]: Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>

Sep 19 09:27:19 localhost kernel[0]: com.apple.AppleFSCompressionTypeZlib kmod start

Sep 19 09:27:19 localhost kernel[0]: VoodooPS2SynapticsTouchPad loaded

Sep 19 09:27:19 localhost kernel[0]: com.apple.AppleFSCompressionTypeZlib load succeeded

Sep 19 09:27:19 localhost kernel[0]: AppleIntelCPUPowerManagementClient: ready

Sep 19 09:27:19 localhost kernel[0]: VoodooPS2Trackpad: Synaptics TouchPad v6.2

Sep 19 09:27:19 localhost kernel[0]: TX DESC Base V=0x2e96e000 P=0x4a5a000

Sep 19 09:27:19 localhost kernel[0]: RX DESC Base V=0x2e975000 P=0x4adc000

Sep 19 09:27:19 localhost kernel[0]: IOInterruptEventSource error

Sep 19 09:27:19 localhost kernel[0]: AppleBCM440XEthernet: initDriverObjects failed

Sep 19 09:27:19 localhost kernel[0]: BCM440X::free

Sep 19 09:27:19 localhost kernel[0]: Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleIntelPIIXATARoot/PRID@0/AppleIntelICHxSATA/ATADeviceNub@0/AppleATADiskDriver/IOATABlockStorageDevice/IOBlockStorageDriver/SAMSUNG HM250JI SAMSUNG HM250JI/IOGUIDPartitionScheme/Untitled@2

Sep 19 09:27:19 localhost kernel[0]: BSD root: disk0s2, major 14, minor 2

Sep 19 09:27:19 localhost kernel[0]: jnl: unknown-dev: replay_journal: from: 5194752 to: 6301696 (joffset 0x142000)

Sep 19 09:27:19 localhost kernel[0]: jnl: unknown-dev: journal replay done.

Sep 19 09:27:19 localhost kernel[0]: hfs: Removed 3 orphaned / unlinked files and 0 directories

Sep 19 09:27:20 localhost kernel[0]: systemShutdown false

Sep 19 09:27:27 localhost kernel[0]: Waiting for DSMOS...

Sep 19 09:27:33 Andreass-MacBook-Air kernel[0]: jnl: disk0s3: replay_journal: from: 4235264 to: 5284352 (joffset 0xf1000)

Sep 19 09:27:34 Andreass-MacBook-Air kernel[0]: jnl: disk0s3: journal replay done.

Sep 19 09:27:34 Andreass-MacBook-Air kernel[0]: jnl: disk0s4: replay_journal: from: 2857984 to: 3642880 (joffset 0x339000)

Sep 19 09:27:34 Andreass-MacBook-Air kernel[0]: NVDANV40HAL loaded and registered.

Sep 19 09:27:34 Andreass-MacBook-Air kernel[0]: jnl: disk0s4: journal replay done.

Sep 19 09:27:34 Andreass-MacBook-Air kernel[0]: Previous Shutdown Cause: 0

Sep 19 09:27:35 Andreass-MacBook-Air kernel[0]: Refusing new kext com.apple.iokit.IONetworkingFamily, v1.9: a loaded copy with a different executable UUID is already present.

Sep 19 09:27:35 Andreass-MacBook-Air kernel[0]: Atheros: mac 10.1 phy 6.1 radio 10.2

Sep 19 09:27:35 Andreass-MacBook-Air kernel[0]: AirPort_AthrFusion: Ethernet address 00:1a:4d:34:5f:37

Sep 19 09:27:35 Andreass-MacBook-Air kernel[0]: IO80211Controller::dataLinkLayerAttachComplete(): adding AppleEFINVRAM notification

Sep 19 09:27:35 Andreass-MacBook-Air kernel[0]: AirPort: Link Down on en0. Reason 1 (Unspecified).

Sep 19 09:27:35 Andreass-MacBook-Air kernel[0]: ath_set_rx_chainmask[5113] sc->sc_config.rxchainmask 5 mask 5

Sep 19 09:27:35 Andreass-MacBook-Air kernel[0]: ath_set_tx_chainmask[5124] sc->sc_config.txchainmask 5 mask 5

Sep 19 09:27:36 Andreass-MacBook-Air kernel[0]: DSMOS has arrived

Sep 19 09:27:36 Andreass-MacBook-Air kernel[0]: AirPort: Link Up on en0

Sep 19 09:27:36 Andreass-MacBook-Air kernel[0]: AirPort: RSN handshake complete on en0

 

Many many thanks

 

URBANsUNITED

acer_aspire5620_dsl_unmodified.zip

Link to comment
Share on other sites

@Mohamed Khairy

 

So that fix is not useful for you, I will try to find another patch.

 

Did you try that kext?

 

 

@URBANsUNITED

 

For sound you also need a legacy for ALC883 and a modified AppleHDA if you are using 10.6.3 or later.

 

You have to remove NullCPUPowerManagement/Disabler/SleepEnabler/VoodooPower to check if model identifier makes difference or not.

 

I need to know the original ID of your LPC device.

 

Did you add that "External (DTGP, MethodObj)" manually?

 

We have to solve these problems first, then we will see about sleep.

Link to comment
Share on other sites

@oldnapalm,

 

Thanks for the help you have provided and for a great product they you made.

 

I just acquired a new Asus Gamers Laptop G51Jx with a i7-720QM Processor and found an i7 hack that is suppose to help run the system cooler. I am using the latest Chameleon release RC2 revision 530. My CPU temp's range from 50-67. Not bad but want to see if I can lower it with this _CST dsdt script.

 

Here are some partial snippets of my DSDT and trying to figure out the best place to put the code and why I get these compilation errors?

 

Object not found or not accessible from scope ^ (_PR.P001)

Forward references from Scope operator not allowed ^ (_PR.P001)

 

Same message for the rest of them P002, P003...P007

 

 

I am placing this code right after the last external near the header:

 

External (NCPU)

External (\_PR_.CPU0._PPC)

 

 

My Pr Scope is located well along the way in my DSDT:

 

    Scope (_PR)
   {
       Processor (CPU0, 0x01, 0x00000410, 0x06) {}
       Processor (CPU1, 0x02, 0x00000410, 0x06) {}
       Processor (CPU2, 0x03, 0x00000410, 0x06) {}
       Processor (CPU3, 0x04, 0x00000410, 0x06) {}
       Processor (CPU4, 0x05, 0x00000410, 0x06) {}
       Processor (CPU5, 0x06, 0x00000410, 0x06) {}
       Processor (CPU6, 0x07, 0x00000410, 0x06) {}
       Processor (CPU7, 0x08, 0x00000410, 0x06) {}
   }

 

 

Here is some of the code I am placing:

 

 Scope (_PR.P001)
   {
       Method (_CST, 0, NotSerialized)
       {
           If (LAnd (LGreater (NCPU, One), LNot (And (PDC0, 0x10))))
           {
               Return (Package (0x02)
               {
                   One, 
                   Package (0x04)
                   {
                       ResourceTemplate ()
                       {
                           Register (FFixedHW, 
                               0x00,               // Bit Width
                               0x00,               // Bit Offset
                               0x0000000000000000, // Address
                               ,)
                       }, 

                       One, 
                       0x9D, 
                       0x03E8
                   }
               })
           }

 

 

 

Its lengthy and don't want to take up space here.

 

Entire script attached:

 

i7_Asus_AMi_Hack_for_cooler_running_CPUs.txt

Link to comment
Share on other sites

@oldnapalm,

 

Thanks. I made the changes and got different compilation errors and with the aid of kizwan, he suggested to insert the code after the Scope (_PR) and it compiled perfectly.

 

The _CST hack or the cSTATE and pSTATE breaks GPU acceleration and breaks LPC:

 

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

Link to comment
Share on other sites

Applelpc.kext is loaded?

 

Apply the LPC patch

 

http://www.insanelymac.com/forum/index.php...t&p=1501094

 

into method label _DSM parent_adr 0x001F0000 remove_entry;
into device name_adr 0x001F0000 insert
begin
Method (_DSM, 4, NotSerialized)\n
{\n
   Store (Package (0x02)\n
       {\n
           "device-id", \n
           Buffer (0x04)\n
           {\n
               0x[b][color="#FF0000"]18[/color][/b], 0x[b][color="#FF0000"]3A[/color][/b], 0x00, 0x00\n
           }\n
       }, Local0)\n
   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
   Return (Local0)\n
}
end

Link to comment
Share on other sites

@MaLd0n,

 

Do I need to changer Vender and Device ID to the ones from my ISA LPC device or leave them alone?

 

The LPC loads perfectly until I apply those hacks.

 

My LPC Device is SBRG.

 

Also what about the GPU. I loose GPU acceleration. The _CST hack causes the black screen and the cSTATE and pSTATE causes the GPU to loose acceleration.

Link to comment
Share on other sites

oSxFr33k,

 

did you change P00? to CPU? or just inserted the original code after Scope (_PR)?

 

 

I did change the P001 etc to CPU0 etc etc and moved far down the DSDT section after the Scope (_PR) that was the only way to get it to compile.

 

Here are the new warnings if this code is placed before Scope (_PR). Originally I Placed it a few lines below the header right after the last "External" script.

 

 

ACPI Warning: NsLookup: Type mismatch on CPU1 (Scope), searching for (Processor) (20091214/nsaccess-731)
ACPI Warning: NsLookup: Type mismatch on CPU2 (Scope), searching for (Processor) (20091214/nsaccess-731)
ACPI Warning: NsLookup: Type mismatch on CPU3 (Scope), searching for (Processor) (20091214/nsaccess-731)
ACPI Warning: NsLookup: Type mismatch on CPU4 (Scope), searching for (Processor) (20091214/nsaccess-731)
ACPI Warning: NsLookup: Type mismatch on CPU5 (Scope), searching for (Processor) (20091214/nsaccess-731)
ACPI Warning: NsLookup: Type mismatch on CPU6 (Scope), searching for (Processor) (20091214/nsaccess-731)
ACPI Warning: NsLookup: Type mismatch on CPU7 (Scope), searching for (Processor) (20091214/nsaccess-731)
Unhandled encoded type: 1B
Unhandled encoded type: 1B
Unhandled encoded type: 1B
Unhandled encoded type: 1B
Unhandled encoded type: 1B
Unhandled encoded type: 1B
Unhandled encoded type: 1B
Unhandled encoded type: 1B
Unhandled encoded type: 1B
Unhandled encoded type: 1B
Unhandled encoded type: 1B
Unhandled encoded type: 1B
Unhandled encoded type: 1B
Unhandled encoded type: 1B

rror    4065 -                                            Object not found or not accessible from scope ^  (_PR.CPU1)

Forward references from Scope operator not allowed ^  (_PR.CPU1)

Etc Etc.

 

 

@MaLd0n,

 

With the default ID or my device ID 09 3b no luck those hacks break LPC

Link to comment
Share on other sites

@oldnapalm,

 

My Original DSDT does not contain any code regarding _CST.

 

The original error and new error went away after I did as you said to change the name from P001 to CPU0... etc.

 

But if I did not insert the _CST code after the Scope (_PR) I get the error messages below. If I insert them after the Scope (_PR) no errors.

 

 

14
Error
Existing object has invalid type for Scope operator (_PR.CPU0 [untyped])
407
Error
Object not found or not accessible from scope (_PR.CPU1)
407
Error
Forward references from Scope operator not allowed (_PR.CPU1)
436
Error
Object not found or not accessible from scope (_PR.CPU2)
465
Error
Object not found or not accessible from scope (_PR.CPU3)
465
Error
Forward references from Scope operator not allowed (_PR.CPU3)
494
Error
Object not found or not accessible from scope (_PR.CPU4)
494
Error
Forward references from Scope operator not allowed (_PR.CPU4)
523
Error
Object not found or not accessible from scope (_PR.CPU5)
523
Error
Forward references from Scope operator not allowed (_PR.CPU5)
552
Error
Object not found or not accessible from scope (_PR.CPU6)
552 Error Forward references from Scope operator not allowed (_PR.CPU6)
581
Error
Object not found or not accessible from scope (_PR.CPU7)
581
Error
Forward references from Scope operator not allowed (_PR.CPU7)
17896
Error
Internal compiler error (could not map type)
17896
Error
Invalid type ([Reference] found, Notify operator requires [Device|Processor|Thermal])
17900
Error
Internal compiler error (could not map type)
17900
Error
Invalid type ([Reference] found, Notify operator requires [Device|Processor|Thermal])
17905
Error
Internal compiler error (could not map type)
17905
Error
Invalid type ([Reference] found, Notify operator requires [Device|Processor|Thermal])
17909
Error
Internal compiler error (could not map type)
17909
Error
Invalid type ([Reference] found, Notify operator requires [Device|Processor|Thermal])
17914
Error
Internal compiler error (could not map type)
17914
Error
Invalid type ([Reference] found, Notify operator requires [Device|Processor|Thermal])

 

 

Here is the DSTD without the _CST hack

 

I also am attaching my SSDT tables which I used for the Generate cSTATE and pSTATE in RC5.

 

DSDT.aml

 

Asus_G51Jx.aml.zip

 

5 SSDT tables aml

 

SSDT.zip

 

 

Forgot no disabling of any sort no additional kexts. Just the PS2, Ethernet, Wlan, FakeSMC.

Link to comment
Share on other sites

Are these SSDTs originals from your mobo or generated by RC5?

 

I believe most original DSDTs don't have _CST, it's usually in SSDT.

 

What happens if you boot without any _CST or _PSS patches, no RC5 state generators and no disabler for AppleIntelCPUPowerManagement?

Link to comment
Share on other sites

@MaLd0n,

With the default ID or my device ID 09 3b no luck those hacks break LPC

yes

I checked

your ID is compatible

http://www.insanelymac.com/forum/index.php...t&p=1543650

Device (SBRG)
           {
               Name (_ADR, [color="#FF0000"][b]0x001F0000[/b][/color])
               Method (_DSM, 4, NotSerialized)
               {
                   Store (Package (0x02)
                       {
                           "device-id", 
                           Buffer (0x04)
                           {
                               0x[color="#FF0000"][b]09[/b][/color], 0x[color="#FF0000"][b]3B[/b][/color], 0x00, 0x00
                           }
                       }, Local0)
                   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                   Return (Local0)
               }

*/System/Library/Extensions/AppleLPC.kext/Contents/Info.plist

mald0n20100920s022403.png

:(

 

cSTATE and pSTATE causes the GPU to loose acceleration.

this would not be an excessive slow?

that is solved as follows

Remove IRQ from device PIC and move IRQs from devices RTC and TMR to device HPET

Look it

into device name_hid PNP0000 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
into device name_hid PNP0100 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} store_%8;
into device name_hid PNP0100 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
into device name_hid PNP0B00 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} store_%9;
into device name_hid PNP0B00 code_regex IRQNoFlags\s\(\)\n\s+\{(\d+)\} remove_matched;
into device name_hid PNP0103 code_regex_not IRQNoFlags code_regex Name\s\(([^,]+),\sResourceTemplate\s\(\)\n\s+\{((?:.|\n)*)\}\) replace_matched
begin
Name (%1, ResourceTemplate ()\n
				{\n
					IRQNoFlags ()\n
						{%8}\n
					IRQNoFlags ()\n
						{%9}\n
%2
})
end

this is common with native power managment

in your DSDT it was not removed

 

smilegu.png

Link to comment
Share on other sites

@MaLd0n,

 

Yes I remember leaving them in, but if I am going to use Chameleon features I should remove those IRQ's.

 

MY TMR is labelled TIMR and my PIC is labelled IPIC.

 

Hope I have the correct equivalent devices. The addresses look the same as in the, hacks as well as the registers so they must be the equivalent devices.

 

I will remove the IRQ's, but add them to the HPET? HPET has two IRQ's now.

 

 

Edited:

 

Thanks for explaining that now I understand what we are doing with the HPET IRQ's etc.

 

TIMR IRQ is 0 <<< Move this to HPET

IPIC IRQ is 2 <<< Just remove that

 

 

Vanilla RTC does not have an IRQ have to assume it is IRQ 8 in some systems moved to HPET?

Link to comment
Share on other sites

MY TMR is labelled TIMR and my PIC is labelled IPIC.

 

Hope I have the correct equivalent devices. The addresses look the same as in the, hacks as well as the registers so they must be the equivalent devices.

Yep

you're right

 

I will remove the IRQ's, but add them to the HPET? HPET has two IRQ's now.

Yep

Apply the Patch

IRQs.txt

Look it

Device (HPET)
               {
                   Name (_HID, EisaId ("PNP0103"))
                   Name (ATT3, ResourceTemplate ()
                   {
                       [color="#006400"][b]IRQNoFlags ()
                           {0}
                       IRQNoFlags ()
                           {8}[/b][/color]

 

wowlf.png

Link to comment
Share on other sites

@MaLd0n,

 

That is a great patch. Thanks for all the information.

 

What I meant by loosing GPU acceleration is, I Lost Core Image and Quartz Extreme. Just Plain VGA mode. Do you think after applying this patch my GPU will not be affected by either the _CST patch nor the Generate C and P state Chameleon patches?

Link to comment
Share on other sites

yes

I understand what you said(I had not believed) :)

 

I thought it could be slow (IRQs)

*that in many cases is very serious smilegu.png

and not lose QE/CI

What I meant by loosing GPU acceleration is, I Lost Core Image and Quartz Extreme.

:(

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...