InfiniteMac OSx86  


Reply
 
Thread tools Display modes
  #1  
Old 10-22-2009, 12:54 PM
danielniel danielniel is offline
Cheetah
 
Join Date: Oct 2009
Posts: 2
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 ^

/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 ^
Reply With Quote
  #2  
Old 10-22-2009, 07:40 PM
thorazine74 thorazine74 is offline
 
Join Date: May 2009
Location: Spain
Posts: 411
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.

AsRock P45TS | C2D E8200 | GeForce 8600GTS
Mac OS X Snow Leopard 10.6.1 + Windows 7 Ultimate 6.1.7600 + Fedora 11
Reply With Quote
  #3  
Old 10-22-2009, 08:40 PM
danielniel danielniel is offline
Cheetah
 
Join Date: Oct 2009
Posts: 2
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
http://www.infinitemac.com/attachmen...1&d=1256240475
Attached Files
File Type: zip DSDT.aml.zip (6.1 KB, 36 views)
Reply With Quote
  #4  
Old 01-29-2010, 02:35 AM
candykane candykane is offline
Jaguar
 
Join Date: May 2009
Location: schiedam
Posts: 36
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!


Code:
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



💡 Deploy cloud instances seamlessly on DigitalOcean. Free credits ($100) for InfMac readers.


Asus P5W DH Deluxe runnig osx for 3 years now (10.5.4 ideneb)
Asus P5N 7a VM 10.5.7 custom installation
dell 6400 10.5.1 intel video
Iportable OSX86 universal = Live leopard for intel and AMD's on a USB stick!
Reply With Quote
Reply