Contribute
Register

[Guide] Lenovo ThinkPad X240

Status
Not open for further replies.
Your kextcache output proves kexts are not installed correctly (not even FakeSMC.kext is installed).
All kexts you need must be installed to the system volume.
Read post #2 of the Clover guide for details:
https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/

I am really apreciate your time. Thank you so much!!!

I have read the guide many times, but there is something that does not work with me. I only use the Terminal to delete and to copy the kext, but when I patch the kextcache there are again the errors that I said.
 
I am really apreciate your time. Thank you so much!!!

I have read the guide many times, but there is something that does not work with me. I only use the Terminal to delete and to copy the kext, but when I patch the kextcache there are again the errors that I said.
No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 

Attachments

  • debug_21862.zip
    3 MB · Views: 115
For all of you "Lenovo ThinkPad X240" users out there, the updated files are up on my GitHub "Lenovo-ThinkPad-X240" repo.
Link to the Repo: https://github.com/BesnikRrustemi/Lenovo-ThinkPad-X240
Just take the config.plist; SSDT-X240.aml; ALC3232.kext

All the files should be MacOS Mojave compatible but before proceeding please read the notes below, as many things have changed and im gradually working on the guide as I want to write it as detailed as possible.

Quick instructions

Pre-Installation


Please use the latest version of @RehabMan Clover which can be found at his repo:
https://github.com/RehabMan/Clover Link for download (for newbies): https://bitbucket.org/RehabMan/clover/downloads/
Usually the one on the top should be the latest.

Make sure that while selecting installation options to select USB Drive as target and pick those settings:




Kexts to be used for USB Installer: EFI/Clover/kexts/Other:

VirtualSMC.kext; SMCBatteryManager.kext; SMCProcessor.kext; SMCLightSensor.kext
Download Link: https://github.com/acidanthera/VirtualSMC/releases
Also make sure to copy from the drivers folder of the downloaded zip the VirtualSmc.efi to EFI/Clover/Drivers64UEFI and delete SMCHelper-64.efi. (if you forgot to remove checkmark from SMCHelper-64 on Clover Installation as seen on second picture above).

Lilu.kext - Download link: https://github.com/acidanthera/Lilu/releases

WhateverGreen.kext - Download Link: https://github.com/acidanthera/WhateverGreen/releases

AirportBrcmFixup.kext - Download Link: https://github.com/acidanthera/AirportBrcmFixup/releases

VooodooPS2Controller.kext - Repo: https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller
Download Link: https://bitbucket.org/RehabMan/os-x-voodoo-ps2-controller/downloads/

USBInjectAll.kext - Repo: https://github.com/RehabMan/OS-X-USB-Inject-All
Download Link: https://bitbucket.org/RehabMan/os-x-usb-inject-all/downloads/

IntelMausiEthernet.kext - Repo: https://github.com/RehabMan/OS-X-Intel-Network
Download Link: https://bitbucket.org/RehabMan/os-x-intel-network/downloads/

Also make sure to add to HFSPlus.efi to EFI/Clover/Drivers64UEFI
Download Link: https://github.com/JrCs/CloverGrowerPro/raw/master/Files/HFSPlus/X64/HFSPlus.efi

Add the SSDT-T440S.aml which is available on my Github Repo into EFI/Clover/ACPI/Patched.
Also replace the config.plist of EFI/Clover/ with the one available on my GitHub Repo
You can download the entire repo by simply clicking into:


Now proceed with installation.

Post Installation

After you boot into desktop make sure to install clover boot loader again but on the HDD/SSD now, with the same configuration as told above like for USB and copy files & do all same exact steps as above.

Download the other needed kexts as well:

ALC3232.kext (Available on my repo /kexts folder).

AppleBacklightFixUp.kext Repo: https://github.com/RehabMan/AppleBacklightFixup
Download Link: https://bitbucket.org/RehabMan/applebacklightfixup/downloads/

CodecCommander.kext - Repo: https://github.com/RehabMan/EAPD-Codec-Commander
Download Link: https://bitbucket.org/RehabMan/os-x-eapd-codec-commander/downloads/

BT4LEContiunityFixup.kext - Download Link: https://github.com/acidanthera/BT4LEContiunityFixup/releases

BrcmFirmwareRepo.kext & BrcmPatchRam2.kext - Repo: https://github.com/RehabMan/OS-X-BrcmPatchRAM
Download Link: https://bitbucket.org/RehabMan/os-x-brcmpatchram/downloads/

Now to install all the kexts, you don't need any extra tool, you can simply use terminal with those simple commands.
Keep in mind all kexts should be installed into "Library/Extensions". not S/L/E.

Create a folder on desktop called kexts
Add/Copy all the Pre-Installation & Post-Installation kexts into the folder we created called Kexts

Open Terminal & write the following commands:
Code:
cd desktop/Kexts
sudo cp -R *.kexts /Library/Extensions
Then we rebuild caches with:
Code:
sudo kextcache -i /
After the rebuilding process of caches end, reboot and you should have everything working.

Good luck everyone and Enjoy

Keep in mind I don't have this hardware to test, so if you guys have any specific problem:

Problem Reporting

It is impossible to diagnose a problem without data that shows how your system is configured.

Also, impossible to analyze any data that you might provide without a clear understanding of your hardware. So make sure your profile is filled as per the first question in this FAQ, "Q. Where do I start?".

If you can't boot, a bare minimum is:
- Boot verbose, attach photo
- Attach EFI/Clover folder as ZIP (press F2 then F4 at main Clover screen just before collecting). Please eliminate 'themes' directory. Provide only EFI/Clover, not the entire EFI folder.

Note: Some laptops swap Fn+Fx for Fx. For those laptops, press Fn+F2 then Fn+F4. If you're not sure, press F2, then F4, then Fn+F2, then Fn+F4. You can also verify by pressing F1 (or Fn+F1) to see which one brings the menu.

If you can boot, but are having some other problem, describe the problem clearly and provide data...

Download patchmatic: https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/RehabMan-patchmatic-2015-0107.zip
Extract the 'patchmatic' binary from the ZIP. Copy it to /usr/bin, such that you have the binary at /usr/bin/patchmatic.

In terminal,
Code (Text):
Code:
if [ -d ~/Downloads/RehabMan ]; then rm -R ~/Downloads/RehabMan; fi
mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract
Note: It is easier if you use copy/paste instead of typing the commands manually.

Attach contents of Downloads/RehabMan directory as ZIP.

Attach ioreg as ZIP: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.

Provide output (in Terminal):
Code (Text):
Code:
kextstat|grep -y acpiplat
kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc
kextstat|grep -y applehda
ls -l /System/Library/Extensions/AppleHDA.kext/Contents/Resources/*.zml*
pmset -g assertions
pmset -g
system_profiler SPSerialATADataType|grep TRIM

Attach EFI/Clover folder as ZIP (press F2 then F4 at main Clover screen just before collecting). Please eliminate 'themes' directory. Provide only EFI/Clover, not the entire EFI folder.

Note: Some laptops swap Fn+Fx for Fx. For those laptops, press Fn+F2 then Fn+F4. If you're not sure, press F2, then F4, then Fn+F2, then Fn+F4. You can also verify by pressing F1 (or Fn+F1) to see which one brings the menu.

For 10.11 and later, attach output of (in Terminal):
Code (Text):
Code:
sudo kextcache -i /

Older versions:
Code (Text):
Code:
sudo touch /System/Library/Extensions && sudo kextcache -u /

Compress all files as ZIP. Do not use external links. Attach all files using site attachments only.


Q. Is there a script that will collect all Problem Reporting data automatically?

Yes! (almost)

User @black.dragon74 has created a script that automates most of the "Problem Reporting" tasks (as described in the previous question).

The part it cannot do is pressing F2 and F4 for you at the main Clover screen.
And of course, it only works for the case you can boot into your system. If you have a problem booting, you must obtain and collect the verbose boot photo manually (and EFI/Clover).

Full details are here:
https://www.tonymacx86.com/threads/tool-generate-proper-problem-reporting-files.235953/
Hi Sniki.
I did follow the manual, every goodworking. for I question, have need to install the kexts orther, or need to over the kext Includes by the tutorial.
- FakePCIID.kext + FakePCIID_Intel_HD_Graphics.kext + FakePCIID_HDMI_Audio.kext
- IntelGraphicsFixUp.kext + Shiki.kext
- AppleBacklightInjector.kext
- ACPIBatteryManager.kext
- FakeSMC.kext + ACPIsensors.kext + LPCsensors.kext + CPUsensors.kext

Thanks.
 
Hi Sniki.
I did follow the manual, every goodworking. for I question, have need to install the kexts orther, or need to over the kext Includes by the tutorial.
- FakePCIID.kext + FakePCIID_Intel_HD_Graphics.kext + FakePCIID_HDMI_Audio.kext
- IntelGraphicsFixUp.kext + Shiki.kext
- AppleBacklightInjector.kext
- ACPIBatteryManager.kext
- FakeSMC.kext + ACPIsensors.kext + LPCsensors.kext + CPUsensors.kext

Thanks.
Only what i mentioned on the quick guide, none of these kexts are needed anymore.
Only the ones i listed there.
 
Only what i mentioned on the quick guide, none of these kexts are needed anymore.
Only the ones i listed there.
Thanks Sniki.
Automatically Adjuts Brightness is no support. Phease help fix it.
Thanks.
 
Status
Not open for further replies.
Back
Top