InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   Battery Meter via DSDT... (http://infinitemac.com/showthread.php?t=4297)

chris7519 10-02-2009 01:08 AM

Battery Meter via DSDT...
 
I'm attempting to rid my system of the VoodooBattery.kext. I get KPs when plugging/unplugging the AC adapter if done more than twice while awake. DSDTSE suggests a patch but I can't seem to get it to function. Any suggestions???

Code:

Device (ACAD)//<---AC Adapter
        {
            Name (_HID, "ACPI0003")
            Name (_PRW, Package (0x02)  //<---Patch starts here
            {
              0x18,
              0x03
            })  //<---and ends here

            Name (_PCL, Package (0x01)
            {
                _SB
            })
            Name (ACP, Ones)
            Method (_PSR, 0, NotSerialized)
            {
                If (ECOK)
                {
                    And (One, ^^PCI0.LPC.EC0.SW2S, Local0)
                    Store (Local0, PWRS)
                    TRAP (TRTP, PSSS)
                    Return (Local0)
                }

                Store (ACPS, PWRS)
                Return (ACPS)
            }

            Method (_STA, 0, NotSerialized)
            {
                Return (0x0F)
            }
        }


SaCleoCheater 01-29-2010 11:52 PM

It's possible for a Smart battery patch, but I don't think the Patch above will work correctly.