- Joined
- Dec 11, 2010
- Messages
- 5
- Motherboard
- MSI GT60
- CPU
- i7-3740QM
- Graphics
- Nvidia GeForce GTX 680M - HD4000 rev.09
- Mac
- Classic Mac
- Mobile Phone
How to patch DSDT for working battery status
Hi RehabMan, congrats on this guide!
Your expertise would be much appreciated...
What is the SMD0 offset in the following section of my DSDT? (i.e. where from do I start adding??)
Thanks in advance!
Hi RehabMan, congrats on this guide!
Your expertise would be much appreciated...
What is the SMD0 offset in the following section of my DSDT? (i.e. where from do I start adding??)
Code:
Scope (_SB.PCI0.LPCB)
{
Mutex (\MUEC, 0x00)
Device (EC)
{
Name (_HID, EisaId ("PNP0C09"))
Name (_GPE, 0x17)
Name (CTID, Zero)
Name (MYEC, One)
Name (CTSD, Zero)
Name (\PTHR, Zero)
OperationRegion (IO_2, SystemIO, 0x68, 0x05)
Field (IO_2, ByteAcc, Lock, Preserve)
{
DAT2, 8,
Offset (0x04),
CMD2, 8
}
Field (IO_2, ByteAcc, Lock, Preserve)
{
Offset (0x04),
OUT2, 1,
INP2, 1
}
Method (IRD2, 0, Serialized)
{
Return (LNot (INP2))
}
Method (ORD2, 0, Serialized)
{
Return (OUT2)
}
OperationRegion (IO8, SystemIO, 0x80, One)
Field (IO8, ByteAcc, Lock, Preserve)
{
DBG8, 8
}
OperationRegion (TEST, SystemIO, 0xB2, One)
Field (TEST, ByteAcc, Lock, Preserve)
{
APMC, 8
}
Method (_REG, 2, NotSerialized)
{
If (LEqual (Arg0, 0x03))
{
Store (Arg1, MYEC)
If (LEqual (Arg1, One))
{
If (_OSI ("Windows 2012"))
{
Store (0x04, OSVR)
}
Else
{
If (_OSI ("Windows 2009"))
{
Store (0x03, OSVR)
}
Else
{
If (_OSI ("Windows 2006"))
{
Store (0x02, OSVR)
}
Else
{
If (_OSI ("Windows 2001"))
{
Store (One, OSVR)
}
Else
{
If (_OSI ("Windows 2001 SP1"))
{
Store (One, OSVR)
}
Else
{
If (_OSI ("Windows 2001 SP2"))
{
Store (One, OSVR)
}
Else
{
If (_OSI ("Windows 2001 SP3"))
{
Store (One, OSVR)
}
}
}
}
}
}
}
}
}
Store (Zero, CTSD)
Store (LIDS, ^^^IGPU.CLID)
If (POWS)
{
Store (One, PWRS)
}
Else
{
Store (Zero, PWRS)
}
PNOT ()
}
Name (_CRS, ResourceTemplate ()
{
IO (Decode16,
0x0062, // Range Minimum
0x0062, // Range Maximum
0x00, // Alignment
0x01, // Length
)
IO (Decode16,
0x0066, // Range Minimum
0x0066, // Range Maximum
0x00, // Alignment
0x01, // Length
)
})
OperationRegion (EC, EmbeddedControl, Zero, 0x0100)
Field (EC, ByteAcc, NoLock, Preserve)
{
SMPR, 8,
SMST, 8,
SMAD, 8,
SMCM, 8,
[B]SMD0, 264, [/B]
SMAA, 8,
Offset (0x2C),
Thanks in advance!