Jump to content

Can anyone help me fix these DSDT problems?


  • Please log in to reply
12 replies to this topic

#1
tomchook

tomchook

    InsanelyMac Protégé

  • Members
  • Pip
  • 19 posts
I'm trying to create a DSDT file for HP pavilion dv9750ej

This is my error message after trying to compile:
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20100331 [Mar 31 2010]
Copyright (c) 2000 - 2010 Intel Corporation
Supports ACPI Specification Revision 4.0

dsdt.dsl  3284:			 Method (_HOT, 0, Serialized)
Warning  1088 -						^ Not all control paths return a value (_HOT)

dsdt.dsl  3284:			 Method (_HOT, 0, Serialized)
Warning  1081 -						^ Reserved method must return a value (Integer required for _HOT)

dsdt.dsl  3299:			 Method (_CRT, 0, Serialized)
Warning  1088 -						^ Not all control paths return a value (_CRT)

dsdt.dsl  3299:			 Method (_CRT, 0, Serialized)
Warning  1081 -						^ Reserved method must return a value (Integer required for _CRT)

dsdt.dsl  7311:					 Method (_Q16, 0, NotSerialized)
Warning  1088 -								^ Not all control paths return a value (_Q16)

ASL Input:  dsdt.dsl - 8843 lines, 312531 bytes, 4455 keywords
AML Output: DSDT.aml - 35920 bytes, 736 named objects, 3719 executable opcodes

Compilation complete. 0 Errors, 5 Warnings, 0 Remarks, 44 Optimizations
[Completed]

And here are the problematic code lines:
Posted Image

Could you please tell me how to fix it? I would really appreciate it!

#2
STLVNUB

STLVNUB

    InsanelyMac Legend

  • Coders
  • 1,419 posts
  • Gender:Male
Maybe try later version of iasl.

#3
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,224 posts
  • Gender:Male
  • Location:Brazil
Maybe adding a return (zero) statement at the end of each method will work too.

#4
tomchook

tomchook

    InsanelyMac Protégé

  • Members
  • Pip
  • 19 posts

Maybe try later version of iasl.

Unfortunately I don't have OSX installed yet, and shouldn't I create the dsdt.aml file BEFORE installing OSX?

Maybe adding a return (zero) statement at the end of each method will work too.

Could you please be more specific? It's the first time I'm creating this file and I have no experience in programming. Is it possible you could write me which lines I have to replace and with what exactly? I would really appreciate it!

Thanks for the both of you

#5
uzmi

uzmi

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 419 posts
  • Gender:Male

Unfortunately I don't have OSX installed yet, and shouldn't I create the dsdt.aml file BEFORE installing OSX? Could you please be more specific? It's the first time I'm creating this file and I have no experience in programming. Is it possible you could write me which lines I have to replace and with what exactly? I would really appreciate it! Thanks for the both of you


Posted Image

#6
tomchook

tomchook

    InsanelyMac Protégé

  • Members
  • Pip
  • 19 posts
uzmi, thanks for your help, but now after compiliing I have a new error:
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20100331 [Mar 31 2010]
Copyright (c) 2000 - 2010 Intel Corporation
Supports ACPI Specification Revision 4.0

dsdt.dsl  7311:					 Method (_Q16, 0, NotSerialized)
Warning  1088 -							    ^ Not all control paths return a value (_Q16)

ASL Input:  dsdt.dsl - 8843 lines, 312592 bytes, 4457 keywords
AML Output: DSDT.aml - 35924 bytes, 736 named objects, 3721 executable opcodes

Compilation complete. 0 Errors, 1 Warnings, 0 Remarks, 44 Optimizations
[Completed]

This is how my DSDT file looks after line 7311:
				    Method (_Q16, 0, NotSerialized)
				    {
					    Store ("!!! DVD/Music Button pressed !!!", Debug)
					    Store (QBBB, Local0)
					    If (LEqual (Local0, 0x03))
					    {
						    Notify (MBTN, 0x02)
						    Return (Zero)
					    }

					    If (LEqual (Local0, 0x06))
					    {
						    Notify (PBTN, 0x02)
						    Return (Zero)
					    }

					    If (LEqual (Local0, 0x12))
					    {
						    Notify (VBTN, 0x02)
						    Return (Zero)
					    }

					    If (LEqual (Local0, 0x11))
					    {
						    Notify (TBTN, 0x02)
						    Return (Zero)
					    }

					    Store (0x04, ^^^^WMID.Z014)
					    Store (Zero, ^^^^WMID.Z015)
					    Notify (WMID, 0x80)
				    }

How can I fix that?
Thank you again!

#7
uzmi

uzmi

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 419 posts
  • Gender:Male

uzmi, thanks for your help, but now after compiliing I have a new error:

How can I fix that?
Thank you again!



Hi
Is not an error, is a warnings. It work well, but if you want to remove it, upload your DSDT.aml file, to correct with the program DSDTSE (mac)

Posted Image


Posted Image

Sorry for mi English, I'm spanish speaker.

Uzmi

#8
tomchook

tomchook

    InsanelyMac Protégé

  • Members
  • Pip
  • 19 posts
Thank you! I just had to replace the "DeBug" into "0x0F", and now I don't have any errors, but I can see only dsdt.dsl file, and no dsdt.aml. How can I compile the dsl into aml?

#9
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,224 posts
  • Gender:Male
  • Location:Brazil
If you're using DSDTSE you must save DSDT.dsl to the default location and then click compile somewhere in the menus. Read the manual!

#10
tomchook

tomchook

    InsanelyMac Protégé

  • Members
  • Pip
  • 19 posts
I tried to compile a few times, but I realized it deletes the DSDT.aml file when I try to fix my last error:

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20100331 [Mar 31 2010]
Copyright (c) 2000 - 2010 Intel Corporation
Supports ACPI Specification Revision 4.0

dsdt.dsl  7311:					 Method (_Q16, 0, NotSerialized)
Warning  1088 -							    ^ Not all control paths return a value (_Q16)

ASL Input:  dsdt.dsl - 8843 lines, 312591 bytes, 4457 keywords
AML Output: DSDT.aml - 35924 bytes, 736 named objects, 3721 executable opcodes

Compilation complete. 0 Errors, 1 Warnings, 0 Remarks, 44 Optimizations
[Completed]

After changing the
Store ("!!! DVD/Music Button pressed !!!", Debug)
to
Store ("!!! DVD/Music Button pressed !!!", 0x0F)

I compile the DSDT, I get this error:
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20100331 [Mar 31 2010]
Copyright (c) 2000 - 2010 Intel Corporation
Supports ACPI Specification Revision 4.0

dsdt.dsl  7311:					 Method (_Q16, 0, NotSerialized)
Warning  1088 -							    ^ Not all control paths return a value (_Q16)

dsdt.dsl  7313:						 Store ("!!! DVD/Music Button pressed !!!", 0x0F)
Error    4096 -														   parse error ^

ASL Input:  dsdt.dsl - 8843 lines, 312590 bytes, 4457 keywords
Compilation complete. 1 Errors, 1 Warnings, 0 Remarks, 44 Optimizations
[Completed]
and the aml file is deleted from the DSDTSE folder.

Do I really need to fix that warning or is it something minor?

#11
LatinMcG

LatinMcG

    Insanely digesting DSDT

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,525 posts
  • Gender:Male
  • Location:Tampa, Florida
its minor.. music button

#12
tomchook

tomchook

    InsanelyMac Protégé

  • Members
  • Pip
  • 19 posts
Thanks! Anyway I realized I can't even install a version greater than 10.5 on my HP pavilion dv9750...
Anyway, I'm thinking of buying a new laptop, that I could potentially install Lion on it. I checked this list http://wiki.osx86pro...0.7.2/Portables but it's very partial, and I cannot decide which computer to buy. Could anyone recommend me of a laptop which could install Lion as much as "out of the box" as possible? I would like to be able to edit movies with final cut pro, and use the adobe products (photoshop, illustrator, etc). There is no budget limit, but I wouldn't like to go overboard.

Thank you very much

#13
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,224 posts
  • Gender:Male
  • Location:Brazil
If there's no budget limit then just get a MacBook Pro.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy