Contribute
Register

[Guide] Lenovo ThinkPad X240

Status
Not open for further replies.
Seems like you neglected to read the README at each link.
I read them, but I still don't know how to get the kexts. Most of them are like "Install using your favourite kext installer" or just empty and I don't know how to install them.
 
I read them, but I still don't know how to get the kexts. Most of them are like "Install using your favourite kext installer" or just empty and I don't know how to install them.

The download links are provided in the README, or available on the "Releases" page (it depends on which project you're referring to).
 
Sniki, it seems I have a similar problem to audio, that other guys been writing in thread. You said to wait for updating the guide. How much time does it need for doing it?

And another one: trackpad settings doesn't work properly. Trackpad works, but settings are blank. See screenshot in attachments.
 

Attachments

  • Снимок экрана 2018-10-20 в 21.04.52.png
    Снимок экрана 2018-10-20 в 21.04.52.png
    80 KB · Views: 272
Last edited:
Hi! Thanks for the guide! Mojave works on my x240!!!

I have to improve some things like audio or USB (I am waiting for WIFI card). I have read your guide but I can not find a solution.

- Audio: I can not find the kext ALC3232 on your Git. Or does it have other name?
- USB: About the "Hotpatching ACPI", I can not find any reference on your GIT.

I attach the "Kernel and Kext Patches" that I have:

Captura de pantalla 2018-10-20 a las 13.34.58.png


Thanks and sorry about the questions, but I have been three days reading this and other posts without solution.
 
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/
 
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

Hi! I did all of these actions, but still missing audio. After replacing ALC3232.kext in L/E/, I rebuilded caches, went into restart, and still getting no audio. Logs are in attachments.

Please, tell me what I've doing wrong.
 

Attachments

  • debug_31609.zip
    2 MB · Views: 201
Hi! I did all of these actions, but still missing audio. After replacing ALC3232.kext in L/E/, I rebuilded caches, went into restart, and still getting no audio. Logs are in attachments.

Please, tell me what I've doing wrong.

Your kextcache shows quite clearly the problem:
Kext rejected due to improper filesystem permissions: <OSKext 0x7ff5e6e99400 [0x7fffa683c8e0]> { URL = "ALC3232.kext/ -- file:///Library/Extensions/", ID = "com.apple.driver.AppleHDA" }
ALC3232.kext does not authenticate; omitting.

See FAQ for correct kext install procedures:
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
 
hello .
Problem : not sound
 

Attachments

  • debug_4391.zip
    1.4 MB · Views: 206
Status
Not open for further replies.
Back
Top