Now I have dsdt.dsl and can edit it to change functionality of my hackintosh.
1. Patch by vaag to exclude sleep trick for IntelX3100. I confirm, it works. We need to delete CRT device here
CODE
Device (GFX0)
{
Name (_ADR, 0x00020000)
Method (_DOS, 1, NotSerialized)
{
Store (Arg0, MIS4)
SMI (0x9E, MIS4)
}
Method (_DOD, 0, NotSerialized)
{
Return (Package (0x04)
{
0x00010100,
0x00010200,
0x00010400,
0x00010300
})
}
/*Device (CRT)*/
Device (LCD)
{
{
Name (_ADR, 0x00020000)
Method (_DOS, 1, NotSerialized)
{
Store (Arg0, MIS4)
SMI (0x9E, MIS4)
}
Method (_DOD, 0, NotSerialized)
{
Return (Package (0x04)
{
0x00010100,
0x00010200,
0x00010400,
0x00010300
})
}
/*Device (CRT)*/
Device (LCD)
{
2. Make display dim when working from battery:
Delete IRQ from TMR device
CODE
Device (TIMR)
{
Name (_HID, EisaId ("PNP0100"))
/* IRQNoFlags ()
{2} */
{
Name (_HID, EisaId ("PNP0100"))
/* IRQNoFlags ()
{2} */
and add it to IPIC
CODE
Device (IPIC)
{
Name (_HID, EisaId ("PNP0000"))
Name (CRS, ResourceTemplate ()
{
IO (Decode16,
0x0020, // Range Minimum
0x0020, // Range Maximum
0x01, // Alignment
0x02, // Length
)
IO (Decode16,
0x04D0, // Range Minimum
0x04D0, // Range Maximum
0x01, // Alignment
0x02, // Length
)
IRQNoFlags ()
{2}
{
Name (_HID, EisaId ("PNP0000"))
Name (CRS, ResourceTemplate ()
{
IO (Decode16,
0x0020, // Range Minimum
0x0020, // Range Maximum
0x01, // Alignment
0x02, // Length
)
IO (Decode16,
0x04D0, // Range Minimum
0x04D0, // Range Maximum
0x01, // Alignment
0x02, // Length
)
IRQNoFlags ()
{2}
3. WiFi waking from sleep
CODE
Method (_L09, 0, NotSerialized)
{
Store (SMI (0xC6, Zero), Local0)
If (And (Local0, One))
{
Store (One, \_SB.PCI0.RP01.PSP1)
Notify (\_SB.PCI0.RP01.PXS1, 0x02) // this is my LAN
}
If (And (Local0, 0x04))
{
Notify (\_SB.PCI0.RP05.PXS5, 0x02) // change to RP02.PXS2 which is my WiFi.
}
}
{
Store (SMI (0xC6, Zero), Local0)
If (And (Local0, One))
{
Store (One, \_SB.PCI0.RP01.PSP1)
Notify (\_SB.PCI0.RP01.PXS1, 0x02) // this is my LAN
}
If (And (Local0, 0x04))
{
Notify (\_SB.PCI0.RP05.PXS5, 0x02) // change to RP02.PXS2 which is my WiFi.
}
}
4. Switch on support for AC adapter
CODE
Device (ADP1)
{
Name (_HID, "ACPI0003")
Name (_PRW, Package (0x02) // add this
{
0x18,
0x03
})
{
Name (_HID, "ACPI0003")
Name (_PRW, Package (0x02) // add this
{
0x18,
0x03
})
and now I see
QUOTE
| | |
| | +-o AppleACPIACAdapter <class AppleACPIACAdapter, !registered, !matched, active, busy 0, retain 4>
in my ioreg.| | +-o AppleACPIACAdapter <class AppleACPIACAdapter, !registered, !matched, active, busy 0, retain 4>
5. PCI card information
CODE
Device (RP02)
{
Name (_ADR, 0x001C0001) // last two digits is a number of the bridge
Device (ARPT)
{
Name (_ADR, Zero)
Name (_SUN, 0x01) // add this object with the same value as PCI bridge
Method (_DSM, 4, NotSerialized) // add this method
{
Store (Package (0x04)
{
"model",
Buffer ()
{
"Dell Wireless 1395"
},
"built-in",
Buffer ()
{
0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) // define the method at the top
Return (Local0)
}
{
Name (_ADR, 0x001C0001) // last two digits is a number of the bridge
Device (ARPT)
{
Name (_ADR, Zero)
Name (_SUN, 0x01) // add this object with the same value as PCI bridge
Method (_DSM, 4, NotSerialized) // add this method
{
Store (Package (0x04)
{
"model",
Buffer ()
{
"Dell Wireless 1395"
},
"built-in",
Buffer ()
{
0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) // define the method at the top
Return (Local0)
}
Now I see
Picture_1.png ( 116.83K )
Number of downloads: 20316. DSDT patch for USB to use native driver.
CODE
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x0f)
{
"device-id",
Buffer (0x04)
{
0x34, 0x3A, 0x00, 0x00 //the values below
},
"AAPL,clock-id", // property needed for sleep support
Buffer (One)
{
0x0a
},
"built-in",
Buffer ()
{
0x00
},
"device_type", //not sure it is useful
Buffer (0x05)
{
"EHCI"
},
"AAPL,current-available",
0x04B0,
"AAPL,current-extra",
0x02BC,
"AAPL,current-in-sleep", // to solve a problem with sleep when stick is inserted
0x03E8,
Buffer (0x01)
{
0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
{
Store (Package (0x0f)
{
"device-id",
Buffer (0x04)
{
0x34, 0x3A, 0x00, 0x00 //the values below
},
"AAPL,clock-id", // property needed for sleep support
Buffer (One)
{
0x0a
},
"built-in",
Buffer ()
{
0x00
},
"device_type", //not sure it is useful
Buffer (0x05)
{
"EHCI"
},
"AAPL,current-available",
0x04B0,
"AAPL,current-extra",
0x02BC,
"AAPL,current-in-sleep", // to solve a problem with sleep when stick is inserted
0x03E8,
Buffer (0x01)
{
0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
DeviceIDs
Intel
USB1 - 0x2830
USB2 - 0x2831
USB3 - 0x2832
USB4 - 0x2834
USB5 - 0x2835
EHC1 - 0x2836
EHC2 - 0x283a
nForce
USB1 - 0x0aa5
USB2 - 0x0aa7
EHC1 - 0x0aa6
EHC2 - 0x0aa9





Aug 14 2009, 06:24 PM


