Kiefer Posted October 21, 2009 Share Posted October 21, 2009 Hi Buddies: Now I am running SL on my P5Q Turbo, everything is good so far. Now I am trying to edit my dsdt.aml to load applelpc.kext. Anyone can give me some suggestion? Or just tell me in which thread I can find the answer. Of course I have tried to search ,just no clear answer. P5Q Turbo's DSDT.aml is a little different, so I can not copy other guy's code. Other P5Q/Asus mobo's sucess story is also helpful to me. Just please help, Many thanks. Link to comment https://www.insanelymac.com/forum/topic/193316-how-to-load-applelpckext-in-snow-leopard/ Share on other sites More sharing options...
Beerkex'd Posted October 21, 2009 Share Posted October 21, 2009 There are three ways to do it: You can edit the device ID in AppleLPC.kext to match the device ID of the motherboard LPC device (least preferred method). You can create a (there's one somewhere in the forum already) LegacyAppleLPC.kext and patch it from there You can patch the device ID of the LPC device in your DSDT (preferred method). In ASUS DSDT the LPC device is named SBRG. Use the information from here to learn how to patch device IDs in DSDT: http://www.insanelymac.com/forum/index.php?showtopic=168014 Use lspci (google it) to see the address and device ID of your LPC device Use a plist editor (install Apple Xcode or google for one) and open info.plist inside AppleLPC.kext to see which device IDs will work with the driver When patching, use a device ID closest to your real device ID Use DSDTSE (google it) to modify and compile/decompile your DSDT. Link to comment https://www.insanelymac.com/forum/topic/193316-how-to-load-applelpckext-in-snow-leopard/#findComment-1306375 Share on other sites More sharing options...
Kiefer Posted October 22, 2009 Author Share Posted October 22, 2009 There are three ways to do it: You can edit the device ID in AppleLPC.kext to match the device ID of the motherboard LPC device (least preferred method). You can create a (there's one somewhere in the forum already) LegacyAppleLPC.kext and patch it from there You can patch the device ID of the LPC device in your DSDT (preferred method). In ASUS DSDT the LPC device is named SBRG. Use the information from here to learn how to patch device IDs in DSDT: http://www.insanelymac.com/forum/index.php?showtopic=168014 Use lspci (google it) to see the address and device ID of your LPC device Use a plist editor (install Apple Xcode or google for one) and open info.plist inside AppleLPC.kext to see which device IDs will work with the driver When patching, use a device ID closest to your real device ID Use DSDTSE (google it) to modify and compile/decompile your DSDT. Dear Beerkex'd: Really thanks for your quick reply. I find my SBRG device after search 0x001f0000 in my dsdt.dsl,Also I got my device id as"3a16". Then I modified the plist in Applelpc.kext, I just changed the default 3a18 to 3a16. After using kexthelper to reinstall the Applelpc.kext I still can not find the "applelpc" through searching in IOregistery tool. Is there any mistake when I do above things? I prefer to adopt the 3rd plan, but I don't understand how to add device id in my dsdt.dsl. Under SBRG device, there is no code of "Device ID" as in this thread. Should I add "Device ID" line manually or some method else? By the way, My sequence is use dsdt patcher to made a dsdt.aml and recomplied it to dsdt.dsl then recomply it back to dsdt.aml.Is this right? Thanks again for your great help Link to comment https://www.insanelymac.com/forum/topic/193316-how-to-load-applelpckext-in-snow-leopard/#findComment-1306832 Share on other sites More sharing options...
Beerkex'd Posted October 22, 2009 Share Posted October 22, 2009 I find my SBRG device after search 0x001f0000 in my dsdt.dsl,Also I got my device id as"3a16". Then I modified the plist in Applelpc.kext, I just changed the default 3a18 to 3a16. After using kexthelper to reinstall the Applelpc.kext I still can not find the "applelpc" through searching in IOregistery tool. Is there any mistake when I do above things? No, that sounds about right. Are you sure the kext is still loading after you modified it? Run Terminal and type kextstat | grep LPC If AppleLPC doesn't appear in the kextstat output you probably need to fix permissions on it and rebuild the kernel extensions cache. I prefer to adopt the 3rd plan, but I don't understand how to add device id in my dsdt.dsl. Under SBRG device, there is no code of "Device ID" as in this thread. Should I add "Device ID" line manually or some method else? Yes, there is no Device ID code in anyones DSDT unless they put it there. Look here for an example: http://www.projectosx.com/forum/index.php?...post&p=2532 If you rename SBRG to LPC you must rename all instances. Try DSDTSE instead of DSDTPatcher, it is much more comfortable to use: http://www.osx86.es/?p=610 Link to comment https://www.insanelymac.com/forum/topic/193316-how-to-load-applelpckext-in-snow-leopard/#findComment-1306861 Share on other sites More sharing options...
Kiefer Posted October 22, 2009 Author Share Posted October 22, 2009 No, that sounds about right. Are you sure the kext is still loading after you modified it? Run Terminal and type kextstat | grep LPCIf AppleLPC doesn't appear in the kextstat output you probably need to fix permissions on it and rebuild the kernel extensions cache. Yes, there is no Device ID code in anyones DSDT unless they put it there. Look here for an example: http://www.projectosx.com/forum/index.php?...post&p=2532 If you rename SBRG to LPC you must rename all instances. Try DSDTSE instead of DSDTPatcher, it is much more comfortable to use: http://www.osx86.es/?p=610 Dear Beerkex'd: Pleasure to read your reply so short time after I wrote my words. I will try and reply the results. Thanks again Link to comment https://www.insanelymac.com/forum/topic/193316-how-to-load-applelpckext-in-snow-leopard/#findComment-1306875 Share on other sites More sharing options...
Kiefer Posted October 31, 2009 Author Share Posted October 31, 2009 Dear Beerkex'd: Pleasure to read your reply so short time after I wrote my words. I will try and reply the results. Thanks again Hi Beerkex'd, I am back, two weeks travel almost drive me crazy. I have tried both two ways. 1.DSDT.dsl I failed, I don't know why, but after I fixed and put it in the S/Extra, nothing happened;2. I changed the info.plist in applelpc.kext and got applelpc.kext loaded. I got sleep very well. Now I have not DSDT.aml at all, everything Looks good so far. But I got below warning during boot: ACPI_SMC_PlatformPlugin :: PushCPU_CSTData - _CST Evaluation failed. ACPI_SMC_PlatformPlugin::registerLPCDriver - WARNING - LPC device initialization failed: ... Do you still have some suggestion? Thanks Link to comment https://www.insanelymac.com/forum/topic/193316-how-to-load-applelpckext-in-snow-leopard/#findComment-1316008 Share on other sites More sharing options...
Beerkex'd Posted November 1, 2009 Share Posted November 1, 2009 I have tried both two ways. 1.DSDT.dsl I failed, I don't know why, but after I fixed and put it in the S/Extra, nothing happened You put your DSDT where..? DSDT.aml goes in / or /Extra. If you can confirm that AppleLPC.kext is loaded but you are still getting the CST evaluation failed message during boot then something is fishy but I can not tell what it is from all the way down here in Brazil. Link to comment https://www.insanelymac.com/forum/topic/193316-how-to-load-applelpckext-in-snow-leopard/#findComment-1317035 Share on other sites More sharing options...
westwaerts Posted December 20, 2009 Share Posted December 20, 2009 If you add the LPC device ID to your DSDT, be sure to add the DGTP Method ( at the very beginning or end of your DSDT) because LPC patch uses this method and it is not implemented by default. and i think getting knowledge to DSDT is like reading James Joyce "Ulysses" or the wholy Bible or the "Man without qualities" Link to comment https://www.insanelymac.com/forum/topic/193316-how-to-load-applelpckext-in-snow-leopard/#findComment-1364480 Share on other sites More sharing options...
ltoolio Posted January 24, 2010 Share Posted January 24, 2010 What's the best way to get the address of the LPC if lspci isn't working on your install of SL? I keep getting a message about "Cannot find any working access method.": Link to comment https://www.insanelymac.com/forum/topic/193316-how-to-load-applelpckext-in-snow-leopard/#findComment-1394200 Share on other sites More sharing options...
Gringo Vermelho Posted July 15, 2010 Share Posted July 15, 2010 Make sure you have the right version of LSPCI installed. The older OS X ports of it that are out there will not work on Snow Leopard. http://www.osx86.es/?p=620 Link to comment https://www.insanelymac.com/forum/topic/193316-how-to-load-applelpckext-in-snow-leopard/#findComment-1511271 Share on other sites More sharing options...
Recommended Posts