Contribute
Register

[Guide] Lenovo ThinkPad L440 (v3.0)

Sniki

Moderator
Joined
Jan 5, 2016
Messages
2,316
Motherboard
HP Elite 8300 SFF
CPU
i7-3770
Graphics
HD 3000 | GTX 1650 LP
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Once you accomplish your first battery hotpatch, the second/third/etc are cake.
Well that's exactly the main problem,i didn't have MultipleBytes EC Fields on ThinkPad L440 or Lenovo B570e therefore im unexperienced on this department since none of them needed any patching to be done.
Previously i thought i was lucky about it, but now i wish i had to do the patch on one of my laptops so i could've learned how to fix battery status which right now i think it's the only part where im not experienced at.

Everything that i learned so far from you here now is a piece of cake to do on any other laptop too which all of this learning comes from your umeasurable contribution/work that you did to the entire hackintosh community.

But i guess i should be able to do it without too much trouble, i will play around some more with static way from the example of the Guide " Patching Laptop DSDT for Battery Status " that you provided there till i get a good understanding on what's going on there, then will try to do the patch on @godwayne305 T440P from the files he provided without looking at the Patch that is already made by Yekki on your MaciASL Source " Laptop Patches " so i can learn to do it on my own.

After that i will have to move to Hotpatch but i think it shouldn't be much trouble

First thing that i assume i should do is:
  • find those EC Fields in DSDT/pick them from the patch and rename them/disable on DSDT and add the patch into a SSDT-Battery where calls to them will land there.
  • Add the needed methods that you created for them (from the guide) like the B1B2,etc.
  • Report back with progress so you can point out if any error is present or if im stuck somewhere in the process..
Thanks !
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,497
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Well that's exactly the main problem,i didn't have MultipleBytes EC Fields on ThinkPad L440 or Lenovo B570e therefore im unexperienced on this department since none of them needed any patching to be done.
Previously i thought i was lucky about it, but now i wish i had to do the patch on one of my laptops so i could've learned how to fix battery status which right now i think it's the only part where im not experienced at.

Everything that i learned so far from you here now is a piece of cake to do on any other laptop too which all of this learning comes from your umeasurable contribution/work that you did to the entire hackintosh community.

But i guess i should be able to do it without too much trouble, i will play around some more with static way from the example of the Guide " Patching Laptop DSDT for Battery Status " that you provided there till i get a good understanding on what's going on there, then will try to do the patch on @godwayne305 T440P from the files he provided without looking at the Patch that is already made by Yekki on your MaciASL Source " Laptop Patches " so i can learn to do it on my own.

After that i will have to move to Hotpatch but i think it shouldn't be much trouble

First thing that i assume i should do is:
  • find those EC Fields in DSDT/pick them from the patch and rename them/disable on DSDT and add the patch into a SSDT-Battery where calls to them will land there.
  • Add the needed methods that you created for them (from the guide) like the B1B2,etc.
  • Report back with progress so you can point out if any error is present or if im stuck somewhere in the process..
Thanks !

The general overview is this:
- start with native DSDT
- apply static battery patch that matches
- use diff (or diffmerge) to compare native DSDT with patched DSDT
- the diffs will help you find the methods and EC fields that need to be patched with hotpatch
- create patches to rename the methods (classic rename/replace pattern)
- create SSDT with original method names, but patched code, and broken up EC fields
- test, bugfix, test, bugfix, repeat...
 
Joined
Mar 11, 2014
Messages
96
Motherboard
Lenovo ThinkPad T440p
CPU
Core i5-4300M/QM87
Graphics
Intel HD 4600/1366x768
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
  2. iOS
You are welcome, i will need your help to test the files later (especially Battery Status) as soon as im done with making the files.
Also USB Ports,will guide you through the necessary steps for it.

I am waiting on you to tell me what to do. Thank you!
 

Sniki

Moderator
Joined
Jan 5, 2016
Messages
2,316
Motherboard
HP Elite 8300 SFF
CPU
i7-3770
Graphics
HD 3000 | GTX 1650 LP
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
I am waiting on you to tell me what to do. Thank you!
It’s 1:30AM in my country right now so im just about to sleep,we will continue tomorrow.
Don’t worry,we will fix it
 
Joined
Mar 11, 2014
Messages
96
Motherboard
Lenovo ThinkPad T440p
CPU
Core i5-4300M/QM87
Graphics
Intel HD 4600/1366x768
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
  2. iOS
It’s 1:30AM in my country right now so im just about to sleep,we will continue tomorrow.
Don’t worry,we will fix it

That's okay, hear from you tomorrow. All the best.
 

Sniki

Moderator
Joined
Jan 5, 2016
Messages
2,316
Motherboard
HP Elite 8300 SFF
CPU
i7-3770
Graphics
HD 3000 | GTX 1650 LP
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
@RehabMan can you please analyze this SSDT that i attempted to create for the RMV method that is present on my DSDT.
i renamed it to XRMV on config.plist and then tried to create a SSDT where calls to it will land there so it does Return Zero instead of One to be non removable so it does not show the blank (no device) icon in the menu bar.
I intentionally left it to one in SSDT so when it shows up i know that i created the SSDT correctly but for some reasons i messed up somewhere or i didnt make the External Declarations Correctly.

Also is this Method for Express Card or Card Reader ?
 

Attachments

  • Analyze.zip
    86.2 KB · Views: 36

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,497
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
@RehabMan can you please analyze this SSDT that i attempted to create for the RMV method that is present on my DSDT.
i renamed it to XRMV on config.plist and then tried to create a SSDT where calls to it will land there so it does Return Zero instead of One to be non removable so it does not show the blank (no device) icon in the menu bar.
I intentionally left it to one in SSDT so when it shows up i know that i created the SSDT correctly but for some reasons i messed up somewhere or i didnt make the External Declarations Correctly.

Also is this Method for Express Card or Card Reader ?

Need complete "Problem Reporting" files as per FAQ.

Read FAQ, "Problem Reporting"
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
 
Joined
Jul 11, 2013
Messages
21
Motherboard
Asus Strix Z370-G Gaming (WiFi AC)
CPU
i7-8700K
Graphics
GTX 1070 Ti
Mac
  1. MacBook Pro
Classic Mac
  1. Power Mac
Mobile Phone
  1. Android
  2. iOS
I'm not able to unlock my BIOS so I've tried to apply the EH01 & EH02 USB patches, and disabled the 128MB patch in the config .plist. Every time I boot into Clover the installer doesn't show up. This is happening with both the install config provided in the this thread and the one on the USB guide. Has anyone else been able to boot into the installer without the hacked BIOS?

When I try the vanilla config that's installed with Clover the installer does show up but does not boot; the laptop almost immediately restarts. Perhaps I'm doing something wrong with the config, I've attached it to this post. I'd appreciate some help here, thanks!
 

Attachments

  • CLOVER.zip
    1.5 MB · Views: 41

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,497
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
I'm not able to unlock my BIOS so I've tried to apply the EH01 & EH02 USB patches, and disabled the 128MB patch in the config .plist. Every time I boot into Clover the installer doesn't show up. This is happening with both the install config provided in the this thread and the one on the USB guide. Has anyone else been able to boot into the installer without the hacked BIOS?

When I try the vanilla config that's installed with Clover the installer does show up but does not boot; the laptop almost immediately restarts. Perhaps I'm doing something wrong with the config, I've attached it to this post. I'd appreciate some help here, thanks!

Your drivers64UEFI is missing HFSPlus.efi.
Read guide carefully:
https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/
 
Joined
Mar 11, 2014
Messages
96
Motherboard
Lenovo ThinkPad T440p
CPU
Core i5-4300M/QM87
Graphics
Intel HD 4600/1366x768
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
  2. iOS
That's okay, hear from you tomorrow. All the best.

@Sniki I've been about to get everything working except Sleep and Wake so i want to know if the static clover files can be of help to you for the completion of the setup for T440p. Best of luck. I am using the colver folder provided by @CoBrA2168.

@CoBrA2168 can you help with the sleep and wake, i am using T440p and i think your was T440s.
 
Top