Got warning while compilling DSDT
Maybe you could help me i get these warnings/Users/daniordoyo/Documents/snowtr/Tools/DSDTPatcherGUI_1.0/Sessions/2009-10-21-222126/dsdt.dsl 3107: Return (One) Warning 1099 - Statement is unreachable ^…
- Primary Author
- @danielniel Published 2009-10-22
- Collection
- OSx86 Core & 10.X
- Archival Footprint
- 6,827 historical reads · 2 curated field notes (from 4 dispatches) · 2009-10-22 – 2010-01-29
- Credited Voices (3)
- @danielniel (2)@thorazine74@candykane
Maybe you could help me
i get these warnings/Users/daniordoyo/Documents/snowtr/Tools/DSDTPatcherGUI_1.0/Sessions/2009-10-21-222126/dsdt.dsl 3107: Return (One)
Warning 1099 - Statement is unreachable ^
/Users/daniordoyo/Documents/snowtr/Tools/DSDTPatcherGUI_1.0/Sessions/2009-10-21-222126/dsdt.dsl 3240: If (LEqual (Arg2, 0x03))
Warning 1099 - Statement is unreachable ^
Author Updates & Technical Revisions
Follow-up dispatches by @danielniel
Sorry, the hardware is
mobo Gigabyte EP45 Extreme
Proc intel QX9650 @ 3.0
mem 8gb GSKILL F2 8800 ddr2 1066
Ati sapphire 4870 512 mb
This is the dsdt
infinite mac.com/attachment.php?attachmentid=809&stc=1&d=1256240475
Synthesized Community Field Notes
2 technical responses curated from 4 original dispatches
I doubt anyone will be able to help you if you dont post the dsdt code that triggers the warning and what hardware it comes from.
Adding The below code will kill one of your warnings but
for the rest just let it go a warning is usaly not that important an error is!
On some machines, this hack enables sleep.
At the end of the _WAK method, this must be added:
Return (Package (0x02)
{
Zero,
Zero
})
Example:
Method (_WAK, 1, NotSerialized)
{
P8XH (One, 0xAB)
If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04)))
{
If (And (CFGD, 0x01000000))
{
If (LAnd (And (CFGD, 0xF0), LEqual (OSYS, 0x07D1)))
{
TRAP (0x3D)
}
}
}
If (LEqual (RP2D, Zero))
{
Notify (\_SB.PCI0.RP02, Zero)
}
If (LEqual (Arg0, 0x03)) {}
If (LEqual (Arg0, 0x04))
{
\_SB.PCI0.LPCB.EC.SELE ()
}
P8XH (Zero, 0xCD)
Return (Package (0x02)
{
Zero,
Zero
})
}
You must use the search feature to locate the _WAK section and add the hack
Sources & Contributor Provenance (3 credited usernames · Thread #4482)
| Username | Dossier Contribution | Dispatches | Active Window |
|---|---|---|---|
| @danielniel | Primary Author | 2 | 2009-10-22 |
| @thorazine74 | Contributor | 1 | 2009-10-22 |
| @candykane | Contributor | 1 | 2010-01-29 |