Jump to content

How to load applelpc.kext in Snow Leopard?


Kiefer
 Share

10 posts in this topic

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

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
Share on other sites

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.

 

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
Share on other sites

  • 2 weeks later...
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
Share on other sites

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
Share on other sites

  • 1 month later...

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"

biggrin.gifsmile.gif

Link to comment
Share on other sites

  • 1 month later...
  • 5 months later...
 Share

×
×
  • Create New...