Contribute
Register

[Guide] Lenovo Thinkpad T440S using Clover UEFI hotpatch

Status
Not open for further replies.
If you have time during weekend, since now you have kexts on EFI/Clover/kexts/Other, try adding debug version of USBInjectAll.kext
Test the charging on the ports that are not working correctly and collect logs, i want to see and assure what the problem.
It may be a method or some other code or something else trying to mess around with USB Ports/USB Power.
If that turns out to be the case, we can kill that with a patch/SSDT and no more messing around.

If i manage to find an app that can completely extract binary files, i would like to do so on the sinetek kext and see if we can reverse engineer what he did on the last kext he uploaded
(To be honest its kind of stupid to not know what you did on your own invention but anyway...).
I would've been happy to get it to work after wake from sleep, i wouldn't have cared about making it run at any faster speed.
Just power management so the kext can work and put device to sleep when not in use and i would be more than happy.
I might not have much time this weekend, but if I do, I can give that a shot. I had done that in the past on my desktop hackintosh, so I'm somewhat familiar with the debug version of USBInjectAll.

If you manage to get the sinetek kext working, that would be great. I do wish he had uploaded all of his changes to Github since then we'd likely have a fully working kext (even if it's slow). Oh well. If you manage to reverse engineer the work, then that would be great! I'm thinking you could compare the binaries of what is on Github vs. the one he uploaded to insanelymac.
 
I installed MacOS Mojave (10.14.6) on my Lenovo T440 using your T440S guide and all data I found here: https://github.com/Sniki/Lenovo-Thinkpad-T440.
Very good, I'm very happy, thank you very much... everything works except Siri that don't hear my voice, completely deaf! I'm sure that the internal mic works because I have already used it to record my voice.
Can you help me?
 
I installed MacOS Mojave (10.14.6) on my Lenovo T440 using your T440S guide and all data I found here: https://github.com/Sniki/Lenovo-Thinkpad-T440.
Very good, I'm very happy, thank you very much... everything works except Siri that don't hear my voice, completely deaf! I'm sure that the internal mic works because I have already used it to record my voice.
Can you help me?
Make sure your Ethernet card is set as "en0" by looking at About this mac > System Information > Network
 
I might not have much time this weekend, but if I do, I can give that a shot. I had done that in the past on my desktop hackintosh, so I'm somewhat familiar with the debug version of USBInjectAll.

If you manage to get the sinetek kext working, that would be great. I do wish he had uploaded all of his changes to Github since then we'd likely have a fully working kext (even if it's slow). Oh well. If you manage to reverse engineer the work, then that would be great! I'm thinking you could compare the binaries of what is on Github vs. the one he uploaded to insanelymac.
One more testing scenario that you can do is modify the SSDT-USB:
Code:
// these values happen to be MacBookPro14,3 values...
"kUSBSleepPortCurrentLimit", 3000,
"kUSBWakePortCurrentLimit", 3000,
to something like this or even higher and see if the situation improves:
Code:
// these values happen to be MacBookPro14,3 values...
"kUSBSleepPortCurrentLimit", 3500,
"kUSBWakePortCurrentLimit", 3500,
If it helps then i will update the files with those values.
 
Make sure your Ethernet card is set as "en0" by looking at About this mac > System Information > Network
07830301-C1C7-4FE6-8A31-F17AB360AA95.jpeg

WLAN adapter is my USB tp-link (Archer T2U Nano), I have installed Wireless USB Adapter Clover-V7 (by chris1111) to use it and works very good.
What is PCI Serial Adapter (22)??
 
Last edited:
One more testing scenario that you can do is modify the SSDT-USB:
Code:
// these values happen to be MacBookPro14,3 values...
"kUSBSleepPortCurrentLimit", 3000,
"kUSBWakePortCurrentLimit", 3000,
to something like this or even higher and see if the situation improves:
Code:
// these values happen to be MacBookPro14,3 values...
"kUSBSleepPortCurrentLimit", 3500,
"kUSBWakePortCurrentLimit", 3500,
If it helps then i will update the files with those values.
I'll give that a shot this week.

EDIT: @Sniki updating those values to higher numbers did not solve the problem - same as before. Again I'm not super concerned about this since I saw similar odd behavior in Windows as well. Windows behaved better, but it also had issues, so I'm guessing it's mostly a hardware issue.
 
Last edited:
I'll give that a shot this week.

EDIT: @Sniki updating those values to higher numbers did not solve the problem - same as before. Again I'm not super concerned about this since I saw similar odd behavior in Windows as well. Windows behaved better, but it also had issues, so I'm guessing it's mostly a hardware issue.
Yes, i did test that myself as well on my Lenovo ThinkPad X240 and im getting same behavior, haven' tested on Windows.
The Lenovo ThinkPad X240 does have two USB Ports only, one on the left and one on the right side.
The one on the left works perfect every-time no matter what power properties you do inject.
The one the right is the one causing issues.

Hmm i will definitely test Windows 10 as well just to confirm that it is a hardware thing.
I will also install USBInjectAll.kext debug version and see what is happening.

macOS Catalina doesn't require EC now to load USBPowerProperties as seen in some forums and after testing myself as well.
AppleBusPowerController is not loading under EC.

Just updated to Catalina latest beta.

I will test if something has changed with Catalina and if the situation improves.
If not, i will use debug version of USBInjectAll.kext and see if there is a problem within ACPI.
vit9696 told me that the firmwares on ThinkPads are crazy, crappy implementation from the vendor on different things.
I had a strange bug with OC resulting into a kernel panic and no possible workaround, not being able to boot OC once at all.
After some extended debugging we fixed the problem with that, as seen on OC release 0.5.0 changelog
So i don't expect everything to be perfect even on the Bios side.
That's why im about to debug and see what crazy-ness is happening when i plug an iPhone XS on that port.
Hopefully it is BIOS/ACPI side and that should be fixable otherwise if it is hardware, well, we can live with that too, but it will only add an extra row of "What doesn't work" on the guide section.
 
Yes, i did test that myself as well on my Lenovo ThinkPad X240 and im getting same behavior, haven' tested on Windows.
The Lenovo ThinkPad X240 does have two USB Ports only, one on the left and one on the right side.
The one on the left works perfect every-time no matter what power properties you do inject.
The one the right is the one causing issues.

Hmm i will definitely test Windows 10 as well just to confirm that it is a hardware thing.
I will also install USBInjectAll.kext debug version and see what is happening.

macOS Catalina doesn't require EC now to load USBPowerProperties as seen in some forums and after testing myself as well.
AppleBusPowerController is not loading under EC.

Just updated to Catalina latest beta.

I will test if something has changed with Catalina and if the situation improves.
If not, i will use debug version of USBInjectAll.kext and see if there is a problem within ACPI.
vit9696 told me that the firmwares on ThinkPads are crazy, crappy implementation from the vendor on different things.
I had a strange bug with OC resulting into a kernel panic and no possible workaround, not being able to boot OC once at all.
After some extended debugging we fixed the problem with that, as seen on OC release 0.5.0 changelog
So i don't expect everything to be perfect even on the Bios side.
That's why im about to debug and see what crazy-ness is happening when i plug an iPhone XS on that port.
Hopefully it is BIOS/ACPI side and that should be fixable otherwise if it is hardware, well, we can live with that too, but it will only add an extra row of "What doesn't work" on the guide section.
That's interesting. I didn't realize that about the ThinkPad BIOS and firmware. Unfortunately I'm stuck on 2.36 BIOS since I need the WiFI whitelist in that version. I wonder if a newer BIOS would help improve the situation.

Otherwise I'll wait to hear from you on whether or not Catalina is able to solve the issue, or if you can find anything out with USBInjectAll. I'd help out where I can, but the rest of September and October is going to be busy for me so I'm not sure how much free time I'll be able to devote to it.
 
Hello @Sniki ,
thank you very much for your guide !
I have buy recently a T440s and install last mojave using your smart guide.
but I have some problms :

- Mini DisplayPort not working when i use mini-DP converter -> HDMI, the screen become black, and there are no signal on the TV
This is very important for me, i use it regulary

- keyboard are not illuminated

- F7 to F12 keys not working

- i have installed T450S touchpad, but multi gesture not working and 2-finger scrolling is really long

- on touchscreen, 2-finger scrolling not working

I think I did something wrong on my config ...

You find my EFI/ clover folder and kexts using on my /Library/Extensions/ folder

Thank a lot for your help !
 

Attachments

  • CLOVER.zip
    1.5 MB · Views: 50
  • kexts.zip
    3.9 MB · Views: 64
Hello @Sniki ,
thank you very much for your guide !
I have buy recently a T440s and install last mojave using your smart guide.
but I have some problms :

- Mini DisplayPort not working when i use mini-DP converter -> HDMI, the screen become black, and there are no signal on the TV
This is very important for me, i use it regulary

- keyboard are not illuminated

- F7 to F12 keys not working

- i have installed T450S touchpad, but multi gesture not working and 2-finger scrolling is really long

- on touchscreen, 2-finger scrolling not working

I think I did something wrong on my config ...

You find my EFI/ clover folder and kexts using on my /Library/Extensions/ folder

Thank a lot for your help !
As per rules, please update your hardware profile to allow others to help you easier

please read the faq for proper hardware profile setup:

Use this tool and upload your problem reporting files:
 
Status
Not open for further replies.
Back
Top