Jump to content

DSDT Patcher


  • Please log in to reply
746 replies to this topic

#601
aliasa_anderson

aliasa_anderson

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 171 posts

You might want to add your dsdt.dsl so that people can have a look.



Sorry,i wanted to but missed it.
I have attached it now.
Thanks.

Attached Files



#602
ea dd

ea dd

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts
i've tried it.

and got some warning.

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_fixed.txt  1111:									 Or (Zero, Local0)
Warning  1105 -		 Result is not used, operator has no effect ^ 

./dsdt_fixed.txt  1336:				 Method (_S5D, 0, NotSerialized)
Warning  1098 -			  Unknown reserved name ^  (_S5D)

./dsdt_fixed.txt  1403:				 Method (_S5D, 0, NotSerialized)
Warning  1098 -			  Unknown reserved name ^  (_S5D)

./dsdt_fixed.txt  1479:				 Method (_S5D, 0, NotSerialized)
Warning  1098 -			  Unknown reserved name ^  (_S5D)

./dsdt_fixed.txt  1555:				 Method (_S5D, 0, NotSerialized)
Warning  1098 -			  Unknown reserved name ^  (_S5D)

./dsdt_fixed.txt  1631:				 Method (_S5D, 0, NotSerialized)
Warning  1098 -			  Unknown reserved name ^  (_S5D)

./dsdt_fixed.txt  1707:				 Method (_S5D, 0, NotSerialized)
Warning  1098 -			  Unknown reserved name ^  (_S5D)

./dsdt_fixed.txt  2372:		 Name (PIC3, Package (0x00) {})
Remark   5071 -	Effective AML package length is zero ^ 

./dsdt_fixed.txt  2373:		 Name (API3, Package (0x00) {})
Remark   5071 -	Effective AML package length is zero ^ 

./dsdt_fixed.txt  2642:		 Name (PIC5, Package (0x00) {})
Remark   5071 -	Effective AML package length is zero ^ 

./dsdt_fixed.txt  2643:		 Name (API5, Package (0x00) {})
Remark   5071 -	Effective AML package length is zero ^ 

./dsdt_fixed.txt  2648:		 Name (PIC6, Package (0x00) {})
Remark   5071 -	Effective AML package length is zero ^ 

./dsdt_fixed.txt  2649:		 Name (API6, Package (0x00) {})
Remark   5071 -	Effective AML package length is zero ^ 

ASL Input:  ./dsdt_fixed.txt - 6067 lines, 190539 bytes, 2205 keywords
AML Output: ././dsdt.aml - 17826 bytes, 632 named objects, 1573 executable opcodes

Compilation complete. 0 Errors, 7 Warnings, 6 Remarks, 38 Optimizations


does it mean successfull or not?

tnx.

#603
kizwan

kizwan

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,422 posts
It is successful.

#604
candykane

candykane

    InsanelyMac Legend

  • Donators
  • 540 posts
  • Gender:Male
  • Location:holland
Snow Leopard support
snow hast the nasty habit of resetting the cmos when you turn the computer off.
i have read some where that if you change the rtc length to 0x02 is does not do that any more


Code:

Device (RTC)
				{
					Name (_HID, EisaId ("PNP0B00"))
					Name (_CRS, ResourceTemplate ()
					{
						IO (Decode16,
							0x0070,			 // Range Minimum
							0x0070,			 // Range Maximum
							0x00,			   // Alignment
							0x02,			   // Length
							)
					})
				}


#605
Tigra137

Tigra137

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 3 posts
I have been fussing with OSX installed on the eeepc 1000 upgraded to a faster SATA drive. The installation was o.k., but the problem was that I needed a newer BIOS to get the SATA drive recognized, but I needed a patched BIOS to stop the eeepc/osx from hanging for quite awhile during boot up. A quandary, since newer patched BIOSes are not available.

I extracted the dsdt file in linux ( http://ubuntuforums....d.php?t=1036051 ), and with a few fixes, recompiled it in linux. I tried this in the OSX, but that did not help. But then I tried this patched dsdt fix on that dsdt, and found that this fixed the problem - no more hang on boot ups and by early appearances a happy osx on my eeepc with fast sata drive! The time to boot up to the OSX desktop is now a mere 35 s. Yay!

I attach my dsdt.aml file below - copy it to root: "cp dsdt.aml /". I am using the latest 1003 bios version for the 1000, if that makes a difference, together with Chameleon 2.0RC1. Things worked just by having the dsdt.aml file in root and installing this boot loader.

Attached File  eeepc_1000_dsdt.aml.zip   9.74KB   24 downloads

#606
peach-os

peach-os

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,286 posts
  • Location:lago di constanza
after a finally succesful install on my acer 6292 it seems that I cant get the cpu alias fixed.
only way to boot is with the cpu=1 -v flags.

looking into my fixed dsdt I cant find the mistakes comparing to other fixed dsdts.

is anyone available to help a confused old man ? :D

Attached File  dsdt_fixed.txt   345.99KB   29 downloads

#607
mitch_de

mitch_de

    InsanelyMacaholic

  • Retired
  • 2,902 posts
  • Gender:Male
  • Location:Stuttgart / Germany
in short try to search for CPU0 in the dsdt.
You will see also some CPU1 lines , not not always beside/near the CPU0 lines.
I believe that , for example at the beginning is somethings missed CPU1 lines.
Sorry but my GA BIOS DSDT is much different.

#608
peach-os

peach-os

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,286 posts
  • Location:lago di constanza

in short try to search for CPU0 in the dsdt.
You will see also some CPU1 lines , not not always beside/near the CPU0 lines.
I believe that , for example at the beginning is somethings missed CPU1 lines.
Sorry but my GA BIOS DSDT is much different.



mitch thanks for the hint .....Danke :D Im learning more about it, but still too far away to manage it on my own.
I guess you meant parts like this one

Scope (\_PR)    {        Processor (CPU0, 0x00, 0x00001010, 0x06) {}        Processor (CPU1, 0x01, 0x00001010, 0x06) {}        Method (RPPC, 0, NotSerialized)        {            If (LEqual (OSYS, 0x07D2))            {                If (And (CFGD, 0x01))                {                    If (LGreater (\_PR.CPU0._PPC, 0x00))                    {                        Subtract (\_PR.CPU0._PPC, 0x01, \_PR.CPU0._PPC)                        PNOT ()                        Add (\_PR.CPU0._PPC, 0x01, \_PR.CPU0._PPC)                        PNOT ()                    }                    Else                    {                        Add (\_PR.CPU0._PPC, 0x01, \_PR.CPU0._PPC)                        PNOT ()                        Subtract (\_PR.CPU0._PPC, 0x01, \_PR.CPU0._PPC)                        PNOT ()                    }                }            }        }    }

after I did a new dump in linux and edited a few mistakes I succeded in getting rid of the -v flag.
this one works now with the cpus=1 flag only

Attached File  dsdt.dsl.zip   25.22KB   5 downloads

EDIT: extracted the aml from original bios now and used koalalas patcher - still need cpus=1 - continue here
http://www.insanelym...p;#entry1207195

#609
=SABER=

=SABER=

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts
Hello,

My laptop is Thinkpad X61(with Phoenix bios). I tried to patch my dsdt to get native speedstep, but failed.

installed kext:
OpenCompatible.kext ( or use chameleon smbios.plist to inject)
AppleDecrypt.kextApple
VoodooPS2Controller.kext
ACPIBatteryManager.kext
LegacyACPI_SMC_PlatformPlugin.kext (for Native SpeedStep)

If I use patched DSDT.aml , it get kernel panic as the info shows in the picture
Posted Image
So now I still have to use cpus=1 to boot Leopard 10.5.7 .

Here is my original DSDT, SSDT, and patched DSDT.

Could anyone help?

Attached Files



#610
lithium06

lithium06

    InsanelyMac Sage

  • Donators
  • 336 posts
  • Gender:Male
  • Location:here and there
I used the latest gui patcher on my fresh retail install 10.5.6 on chameleon2RC (specs in sig). I ran it w/ the HPET option, removed intelPMdisabler on my EFI partition,

boots fine, HPET loads. not sure if it's running any hotter.

i still need to make some tweaks to it i think, sys profiler doesnt show any info about my mem dimms, and would like to get my audio on HDA not azal. but it does fill in my 'boot ROM version' not just ######s.

sleep works, but usb1 doesnt after wake - no biggie.

i did get a kernel panic after i woke from sleep and issued a shutdown, something about a kext issue (cant remember specific 1 atm.) i should have taken a pic of it or wrote it down. I'll see if i can make it do it again.

attached dsdt.dslAttached File  dsdt.zip   12.2KB   8 downloads

#611
Emily Wind

Emily Wind

    InsanelyMac Protégé

  • Members
  • Pip
  • 6 posts
So I have tried about every idea I could find for fixing sleep on my ASUS n80vn-X5 laptop. However, all of these things have failed. Currently I am using Snow Leopard with the vanilla kernel. My only added kexts are VoodooHDA, VoodooPS2, VoodooPower, VoodooBattery, Disabler and a patched Don't Steal Mac OS. My video card is setup via DSDT currently. However, sleep also did not work within Leopard.

Anyway, I am attaching my DSDT in case anyone has some ideas of how to fix it. I shall continue to look into other solutions as well. Cheers.

Attached Files



#612
thiagomorales

thiagomorales

    Think different...

  • Members
  • PipPipPip
  • 121 posts
  • Gender:Male
  • Location:Brazil - Rio de Janeiro

Activating Native AHCI with DSDT.


With DSDT we can "active" the AHCI without LegacyAppleAHCIPort.kext, and allow Snow Leopard compatibility.

The AppleAHCIPort.kext can support these AHCI:

Name: ACHI - IOPCIPrimaryMatch

ICH10			 0x3a228086
ICH6 ESB2		 0x26818086
ICH7-M			0x27c58086
ICH8-M			0x28298086
MCP79 (nVidia)	0x0ab910de

If we remove LegacyAppleAHCIPort.kext, we will get an "Generic AHCI" on System Profiler.
The 'trick' is force to Mac OS X identify your "device" changing the 'Device ID' with one in above list. Please select one of them.(more close to your chipset)

.:HOW TO USE DSDT:.


Open IORegistryExplorer and find AppleAHCI.
In my case, the device 'SAT0@1F,2' is related to the AppleAHCI.
We got:
SAT0 = Device
IF (001F), 2 (0002) = Address

So, we have the address: 0x001F0002.

.:HOW TO EDIT DSDT:.


Open dsdt.dsl or dsdt_fixed.txt with TextEditor.
Find for Device "SAT" or IDE1 (on some cases)
Probably we will get this:
Device (SAT0)
				{
					Name (_ADR, 0x001F0002)
			  ....
				   .....

The Device name is not important, we must note is the Address.

Name (_ADR, 0x001F0002).

As we can see, the address is the same of IORegistryExplorer, everything is right!
We can now insert the code to change the "Device ID",
Method (_DSM, 4, NotSerialized)
						  {
								Store (Package (0x02)
									{
									   "device-id",
										   Buffer (0x04)
											 {
												  0xC5, 0x27, 0x00, 0x00
											  }
										   }, Local0)
								   DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
						   Return (Local0)
					}

Insert this below "Name (_ADR, 0x001F0002)"

Change the line: 0xC5, 0x27, 0x00, 0x00.
In this case(ICH7-M) the AHCI device ID is 27C5, but the code in DSDT is inverted. The "Device ID" on DSDT code should be reversed as in the example above.

.:Now all to do is (re)compile DSDT:.

Good luck.


Regards
Thiago.


#613
mitch_de

mitch_de

    InsanelyMacaholic

  • Retired
  • 2,902 posts
  • Gender:Male
  • Location:Stuttgart / Germany
Thanks !

You listed not my ICH9 : 0x2923 (4 Port SATA AHCI, non raid)
ICH10 0x3a228086
ICH6 ESB2 0x26818086
ICH7-M 0x27c58086
ICH8-M 0x28298086
MCP79 (nVidia) 0x0ab910de

Listet as :
IOACPIPlane:/_SB/PCI0@0/IDE1@1f0002


Does this (not listed in your list) mean its not recommended to do this with dsdt ?

Attached Files



#614
thiagomorales

thiagomorales

    Think different...

  • Members
  • PipPipPip
  • 121 posts
  • Gender:Male
  • Location:Brazil - Rio de Janeiro
I guess no, friend. You can try using your ICH9..
I think that if you patch DSDT correctly using your "Device ID", it will works 100%.

Try and post results.

I will update AHCI device/vendor list with yours.
Thanks.


Regards.
Thiago

Thanks !

You listed not my ICH9 : 0x2923 (4 Port SATA AHCI, non raid)
ICH10 0x3a228086
ICH6 ESB2 0x26818086
ICH7-M 0x27c58086
ICH8-M 0x28298086
MCP79 (nVidia) 0x0ab910de

Listet as :
IOACPIPlane:/_SB/PCI0@0/IDE1@1f0002


Does this (not listed in your list) mean its not recommended to do this with dsdt ?



#615
kdawg

kdawg

    InsanelyMac Legend

  • Donators
  • 508 posts
  • Gender:Male
  • Location:Boston, MA

Thanks !

You listed not my ICH9 : 0x2923 (4 Port SATA AHCI, non raid)
ICH10 0x3a228086
ICH6 ESB2 0x26818086
ICH7-M 0x27c58086
ICH8-M 0x28298086
MCP79 (nVidia) 0x0ab910de

Listet as :
IOACPIPlane:/_SB/PCI0@0/IDE1@1f0002


Does this (not listed in your list) mean its not recommended to do this with dsdt ?


Would this work for JMicron as well? If so what would the device ID's be?

#616
mitch_de

mitch_de

    InsanelyMacaholic

  • Retired
  • 2,902 posts
  • Gender:Male
  • Location:Stuttgart / Germany
I done that dtm for my IHC9 (2923, 4 Port SATA, EP35-DS3)
But i leaved the AHCIPortinjector. Works. IOREGISTRY shows now SAT1 indest of IDE, but hatsjust cosmetic.
Why ?
Because some injection is needed (by that info.plist or DSDT) for values that the orig. AppleAHCI didnt have for some ICHx
It only has that from your list , not ICH9 nonraid, and also not some others (like the big list in the injector .plist)
In the next step i will inject also that stuff (like for DSDT GPU vs efistring/natit ) and report back.
Below the ICHx versions which OS X can handle without injectors , and second that was the AHCIPortinjector injects for others.

I dont know how to put those /and which entrys in an method.
Added:
Those kind of injectors like the AHCI are not really an problem, because their content is only an .plist.
No code content (like natot.kext or some others) which may be a problem for snow leopard.
That kind of .plist injectors (an .kext, but they have only an .plist in) work without any problem also with 64Bit Snow Leopard, because they have no code, only an .plist with data.

All other injectors which have also code (32Bit most) like natit and others like ATY_INIT, are sure really problematical for running snow leopard.

Attached Files



#617
kdawg

kdawg

    InsanelyMac Legend

  • Donators
  • 508 posts
  • Gender:Male
  • Location:Boston, MA

I done that dtm for my IHC9 (2923, 4 Port SATA, EP35-DS3)
But i leaved the AHCIPortinjector. Works. IOREGISTRY shows now SAT1 indest of IDE, but hatsjust cosmetic.
Why ?
Because some injection is needed (by that info.plist or DSDT) for values that the orig. AppleAHCI didnt have for some ICHx
It only has that from your list , not ICH9 nonraid, and also not some others (like the big list in the injector .plist)
In the next step i will inject also that stuff (like for DSDT GPU vs efistring/natit ) and report back.
Below the ICHx versions which OS X can handle without injectors , and second that was the AHCIPortinjector injects for others.

I dont know how to put those /and which entrys in an method.
Added:
Those kind of injectors like the AHCI are not really an problem, because their content is only an .plist.
No code content (like natot.kext or some others) which may be a problem for snow leopard.
That kind of .plist injectors (an .kext, but they have only an .plist in) work without any problem also with 64Bit Snow Leopard, because they have no code, only an .plist with data.

All other injectors which have also code (32Bit most) like natit and others like ATY_INIT, are sure really problematical for running snow leopard.


I can't get my ICH9 to work using this method. Any suggestions?

Device (IDE1)			{				Name (_ADR, 0x001F0002)				Method (_DSM, 4, NotSerialized)				{					Store (Package (0x02)						{							"device-id", 							Buffer (0x04)							{								0x23, 0x29, 0x00, 0x00							}, 						}, Local0)					DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))					Return (Local0)				}				OperationRegion (PCI, PCI_Config, 0x40, 0x20)				Field (PCI, DWordAcc, NoLock, Preserve)				{					ITM0,   16, 					ITM1,   16, 					SIT0,   4, 					SIT1,   4, 							Offset (0x08), 					UDC0,   2, 					UDC1,   2, 							Offset (0x0A), 					UDT0,   8, 					UDT1,   8, 							Offset (0x14), 					ICF0,   2, 					ICF1,   2, 						,   6, 					WPPE,   1, 						,   1, 					FAS0,   2, 					FAS1,   2				}


#618
ApexDE

ApexDE

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 217 posts
I am using the fixed DSDT by DSDT-Patcher, but i still get a kernelpanic when trying to load the AppleIntelCPUPowermanagement.kext. I have a GA-EP45-DS3. Does anyone have a proper HPET entry so that the kext can be used? (required for proper sleep with 10.5.8)

#619
kdawg

kdawg

    InsanelyMac Legend

  • Donators
  • 508 posts
  • Gender:Male
  • Location:Boston, MA

I am using the fixed DSDT by DSDT-Patcher, but i still get a kernelpanic when trying to load the AppleIntelCPUPowermanagement.kext. I have a GA-EP45-DS3. Does anyone have a proper HPET entry so that the kext can be used? (required for proper sleep with 10.5.8)


Try this:

Device (HPET)				{					Name (_HID, EisaId ("PNP0103"))					Name (ATT3, ResourceTemplate ()					{						IRQNoFlags ()							{0}						IRQNoFlags ()							{8}						Memory32Fixed (ReadWrite,							0xFED00000,		 // Address Base							0x00000400,		 // Address Length							)					})					Name (ATT4, ResourceTemplate ()					{					})					Method (_STA, 0, NotSerialized)					{						Return (0x0F)					}					Method (_CRS, 0, NotSerialized)					{						Return (ATT3)					}				}				Device (RTC)				{					Name (_HID, EisaId ("PNP0B00"))					Name (ATT0, ResourceTemplate ()					{						IO (Decode16,							0x0070,			 // Range Minimum							0x0070,			 // Range Maximum							0x00,			   // Alignment							0x02,			   // Length <-- Changed from 0x04 to fix Snow Leopard CMOS reset							)						IRQNoFlags ()							{0}					})					Name (ATT1, ResourceTemplate ()					{						IO (Decode16,							0x0070,			 // Range Minimum							0x0070,			 // Range Maximum							0x00,			   // Alignment							0x02,			   // Length <-- Changed from 0x04 to fix SnowLeopard CMOS reset							)					})					Method (_CRS, 0, NotSerialized)					{						Return (ATT1)					}				}


#620
FKA

FKA

    are we there yet?

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,626 posts
  • Gender:Male
Any help/ advice with this would be appreciated. post #113

http://www.insanelym...p...8014&st=100





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy