Jump to content
17 posts in this topic

Recommended Posts

Hello world of hackintosh,

I'm using Mac OS X 10.5.6 on my hp pavilion dv6274ea and I tought it was a current notebook but I've never seen any information about dsdt.aml or other problems. This computer runs a T5500 cpu and a 7400Go gpu with a 3945g wireless network card and a connexant sound card.

I tried to create a dsdt.aml from my bios but the tool can't open my bios file so I tried to create from my Ubuntu and put the file in Extra of my OS X partition but no success. I'm not sure this file is used and less sure this is a good dsdt.aml

How can InsanelyMac can help me and how can I help it?

Thank you,

nezix

Link to comment
https://www.insanelymac.com/forum/topic/205463-dsdtaml-for-common-notebook/
Share on other sites

Yes but I m not sure I can use the DSDT created thanks to linux can I?

I want to create a nearly perfect DSDT that I can use on my 10.5 OS X and on my 10.6 OS X and to do that the DSDT patcher on Windows seems that be the best way but I can't open my bios file.

So my questions are: Can I use the DSDT created on linux? Is it a good way to do it? Had someone the same pb with the bios file?

Okay, I thought so, just wanted to make sure. It doesn't work like you think.

 

DSDT is a chunk of code that is part of the ACPI tables in your BIOS and what you did in Linux was extract that code.

 

What happens then is that when you place DSDT.aml in /Extra (or / depending on your configuration) your bootloader (Chameleon, PC-EFI or BootThink) reads the DSDT you have extracted and presents that to the OS instead of the DSDT in your BIOS.

 

Right now, the contents of the DSDT.aml you have is identical to the DSDT data in your BIOS, and therefore it is pointless to use it.

 

So now that you have a file containing your unmodified DSDT data, you then need to patch it using the appropriate tools, and make the changes you need to make. And that's for you to discover what those changes are.

 

You can use DSDTSE (google it) under OSX to manipulate your DSDT data.

 

Don't use Koalala's ACPIPatcher, it is obsolete (though it can still serve some purpose if you know what you're doing).

 

One issue that I had with it was that the WAK method fix actually caused more compiling errors in my DSDT than it fixed.

 

Another problem with the ACPI Patcher is that it allows you to extract the DSDT from a BIOS file which is A Bad Thing. DSDT tables should always be extracted from a running system. Kabyl showed me that the BIOS modifies some memory address ranges in the DSDT on the fly, and those will vary from the default depending (at least) on how much RAM is installed.

Using a DSDT extracted from a BIOS dump will not have those addresses modified which can cause nasty crashes and, in my case, loss of hair.

  • 2 weeks later...

Hello!

I'm back with my DSDT: I compiled my DSDT extracted from linux and got only one error but I googled it and didn't find any solution or doc:

/Library/DSDT/DSDTFiles/dsdt.dsl  3085:					 "33DB4D5B-1FF7-401C
Warning  1105 -			  Result is not used, opera		  And (CTRL, 0x1E)P_STRING_LITERAL ^
/Library/DSDT/DSDTFiles/dsdt.dsl  3488:			 Method (_PRT, 0, NotSerialized)
/Library 1087 -			   Not all control paths return a value ^  (_PRT)Serialized)
Warning  1SDT/DSDTFiles/dsdt.dsl  4308:				 Method (_PRT, 0, NotSerialized)
/Library/DSDT/DSDTFile		 Reserved method must return a value ^  (_PRT)Serialized)
Warning  1080 -		 dsdt.dsl  4407:				 Method (_PRT, 0, NotSerialized)
/Library/DSDT/DSDTFiles/dsdt.dsl  44l control paths return a value ^  (_PRT)Serialized)
Warning  1087 -			   Not all :				 Method (_PRT, 0, NotSerialized)
ASL Input:  /Library/DSDT/DSDTFiles/dsdt.dsl - 698t return a value ^  (_PRT)Serialized)
Compilation complete. 1 Errors, 13 Warnings, 0 Remarks, 965 Optimizations

I would like to solve my error and then will try to solve my warnings appling several patchs and then...

Do you know from where this error come from ?

Thank you

I don't see the error in the snippet you posted, only warnings. You got 1 error and 13 warnings - but you only posted 4 warnings.

 

What happened to the formatting? It's all screwed up, half of some words are missing.

 

The first number on each line is the actual line number in your DSDT where the error occurs so that you can quickly find it in the DSDT and fix it by hand.

The second number is the code of the error/warning (this is what you should be googling).

Warnings 1080 and 1087 you can get rid of by doing a return 0, as 18seven told me here:

 

projectosx.com/forum/index.php?s=&showtopic=454&view=findpost&p=1814

 

If you don't understand it, download my old DSDT and his fixed version from the thread and compare them, then it should make sense.

You might need to register to download from there.

 

As you can see I had an 1105 as well but I'm not sure how you should deal with yours.

Sorry I have missed my copy/paste ... It happens even to the best... :)

iasl -ta dstd.dsl 

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20090521 [Jun 30 2009]
Copyright (C) 2000 - 2009 Intel Corporation		   
Supports ACPI Specification Revision 3.0a			 

dstd.dsl  3085:					 "33DB4D5B-1FF7-401C-9657-7441C03DD766"
Error	4095 -		  syntax error, unexpected PARSEOP_STRING_LITERAL ^ 

dstd.dsl  3093:						 And (CTRL, 0x1E)
Warning  1105 -								 ^ Result is not used, operator has no effect

dstd.dsl  3488:			 Method (_PRT, 0, NotSerialized)
Warning  1087 -						^ Not all control paths return a value (_PRT)

dstd.dsl  3488:			 Method (_PRT, 0, NotSerialized)
Warning  1080 -						^ Reserved method must return a value (_PRT)

dstd.dsl  3756:				 Method (_PRT, 0, NotSerialized)
Warning  1087 -							^ Not all control paths return a value (_PRT)

dstd.dsl  3756:				 Method (_PRT, 0, NotSerialized)
Warning  1080 -							^ Reserved method must return a value (_PRT)

dstd.dsl  4308:				 Method (_PRT, 0, NotSerialized)
Warning  1087 -							^ Not all control paths return a value (_PRT)

dstd.dsl  4308:				 Method (_PRT, 0, NotSerialized)
Warning  1080 -							^ Reserved method must return a value (_PRT)

dstd.dsl  4407:				 Method (_PRT, 0, NotSerialized)
Warning  1087 -							^ Not all control paths return a value (_PRT)

dstd.dsl  4407:				 Method (_PRT, 0, NotSerialized)
Warning  1080 -							^ Reserved method must return a value (_PRT)

dstd.dsl  4491:				 Method (_PRT, 0, NotSerialized)
Warning  1087 -							^ Not all control paths return a value (_PRT)

dstd.dsl  4491:				 Method (_PRT, 0, NotSerialized)
Warning  1080 -							^ Reserved method must return a value (_PRT)

dstd.dsl  4651:				 Method (_PRT, 0, NotSerialized)
Warning  1087 -							^ Not all control paths return a value (_PRT)

dstd.dsl  4651:				 Method (_PRT, 0, NotSerialized)
Warning  1080 -							^ Reserved method must return a value (_PRT)

ASL Input:  dstd.dsl - 6982 lines, 247582 bytes, 3337 keywords
Compilation complete. 1 Errors, 13 Warnings, 0 Remarks, 965 Optimizations

If you follow the link that I posted and do as I suggested above, you should have at least the 1080 and 1087 warnings fixed in no time, as I said, it's only a matter of adding a return 0 statement after each section that gives the error. Give it a try, use the search by line number in DSDTSE to find each instance of the error, that's what it's there for.

 

The "33DB4D5B-1FF7-401C-9657-7441C03DD766" looks like a system ID of some sort, though for some reason that I'll leave you to investigate further, there are plenty of hits on the same sequence on google. You could probably safely remove the entire section that contains it.

 

Post your DSDT here (zipped, and in decompiled, .dsl format) maybe someone will take a look at it.

Hi!

Thanks to your help I have solved my error and several Warnings but some of them can't be solved with the way you gave.

If I try to add "Return (Zero)" at the end of the method I have more warnings and errors.

This is the result of my best dsdt.dsl compiling :

dstd.dsl  3092:						 And (CTRL, 0x1E)
 Warning  1105 -								 ^ Result is not used, operator has no effect

 dstd.dsl  4309:				 Method (_PRT, 0, NotSerialized)
 Warning  1087 -							^ Not all control paths return a value (_PRT)

 dstd.dsl  4309:				 Method (_PRT, 0, NotSerialized)
 Warning  1080 -							^ Reserved method must return a value (_PRT)

 dstd.dsl  4408:				 Method (_PRT, 0, NotSerialized)
 Warning  1087 -							^ Not all control paths return a value (_PRT)

 dstd.dsl  4408:				 Method (_PRT, 0, NotSerialized)
 Warning  1080 -							^ Reserved method must return a value (_PRT)

 dstd.dsl  4492:				 Method (_PRT, 0, NotSerialized)
 Warning  1087 -							^ Not all control paths return a value (_PRT)

 dstd.dsl  4492:				 Method (_PRT, 0, NotSerialized)
 Warning  1080 -							^ Reserved method must return a value (_PRT)

 dstd.dsl  4652:				 Method (_PRT, 0, NotSerialized)
 Warning  1087 -							^ Not all control paths return a value (_PRT)

 dstd.dsl  4652:				 Method (_PRT, 0, NotSerialized)
 Warning  1080 -							^ Reserved method must return a value (_PRT)

 ASL Input:  dstd.dsl - 6983 lines, 247599 bytes, 3339 keywords
 AML Output: dstd.aml - 28185 bytes, 654 named objects, 2685 executable opcodes

 Compilation complete. 0 Errors, 9 Warnings, 0 Remarks, 965 Optimizations

I also post my dsdt.dsl if you/someone want(s) to glance at it.

dstd.dsl.tar.gz

Thank you again!

PS:Maybe I should post on the Project OSX forum or on the Ubuntu one?

  • 2 weeks later...
  • 3 weeks later...
  • 1 month later...
×
×
  • Create New...