Contribute
Register

[GUIDE] Lenovo Ideapad S540-14IWL - Mac OS X Catalina 10.15.4 (NOW with Unlocked CFG - hidden bios settings)

Joined
Nov 3, 2012
Messages
58
Motherboard
Gigabyte GA-B75M D3V
CPU
i5-3570K
Graphics
RX 560
Mac
  1. iMac
  2. MacBook
  3. MacBook Pro
  4. Mac mini
Mobile Phone
  1. Android
Installation of Mac Os X on a Lenovo Ideapad s540-14IWL

The specs of the machine are as follows:
(CPU) Intel Core i5-8265U
IPS Panel 14 " 1920x1080
RAM 8 GB DDR4
Intel UHD Graphics 620
SSD 256 GB (and a second added by me)
DW1820a wifi and bluetooth
O2 SD Card Reader,
HDMI,
USB 3.1,
USB-C,
Fingerprint sensor.

Github repo : https://github.com/Hasodikis/Lenovo-Ideapad-s540-14IWL---Hackintosh
It is still a work in progress but so far....

  1. Everything works except of the fingerprint sensor (which will never work). I have disabled it by adding to boot arguments in config.plist the following
    uia_exclude=HS07;
  2. HDMI is in progress. (It works with sound, but there is a bit of yellow tint on the laptop display that is solved for the time being by changing display profile in settings)
However, the most serious problem so far is the touchpad(VoodooI2C), which works in pinning mod, but there is input issue. Saddly this problem consumes a lot of power due to cpu usage. Therefor I have it working in polling mode and it works perfectly well with all gestures.
(for the issue see here: https://github.com/alexandred/VoodooI2C/issues/250)

Bear in mind that I am novice and my coding skills are next to zero. Therefor you will probably find a lot of errors in the files and I will probably need your help way more than my abillity to answer to any questions.

Finaly, this whole project would not be possible whithout the help and patience of marianopela (https://github.com/marianopela/Lenovo-Ideapad-S540-14IML-Hackintosh), and the geniuses of Rehabman and Daliansky.

Bear in mind that from 10-4-2020 onwards this guide is based on a disabled CFG lock. There are details below on how to access hidden bios settings.

GUIDE for people with the same laptop:

BE VERY CAREFULL, THIS PART IS IMPORTANT

[Credit goes to Diliansky (https://github.com/daliansky) https://github.com/daliansky/Lenovo-Air13-IWL-Hackintosh/blob/master/Advanced/ReadMe.md.]

I am not responsible if you mess it up!!!!!!!

Power off the laptop. Power button to turn on → F2 to enter the normal BIOS → Power button to turn off → then press the following keys in sequence:

F1 → 1 → Q → A → Z

F2 → 2 → W → S → X

F3 → 3 → E → D → C

F4 → 4 → R → F → V

F5 → 5 → T → G → B

F6 → 6 → Y → H → N

Turn on the power button → F2 enters the hidden BIOS (if unsuccessful, please speed up your hand and try again). Then go to:

Advanced → Power & Performance → CPU-Power Management Control → CPU Lock Configuration → CFG Lock → Disabled


As always then

  1. Create a bootable installation of Mac os x Catalina.
  2. Mount EFI partition of the bootable media.
  3. Replace EFI file with my EFI (https://github.com/Hasodikis/Lenovo-Ideapad-s540-14IWL---Hackintosh).
  4. Open config.plist with clover configurator, go to SMBIOS and press several times the Generate New button under serial number, check validity, save. Create new SMUUID. At System Parameters create new Custom UUID. Save changes.
  5. Boot from the bootable media, install, boot again, mount EFI partition of the laptop, replace the EFI folder with my EFI, enjoy.
  6. You might want to change clover boot entries, since I have a manjaro linux installation on the second NVME.
UPDATE 16-3-2020:
Latest EFI: 1) Much better power consumption.At idle in Intel Power Gadget PKG is at around 1.10 Watts, core is at around 0,30 Watts. Very good thermals. CPU idles at 0,8 Ghz (lower than the apple default of 1,2Ghz. Display reduces brightness much more than default "AddPNLF". Only 1 ACPI error at boot. Touchpad in polling mode until the kexts for GPIO are fixed. Everything else works.

UPDATE 19-3-2020:
HDMI WORKS!!!! No HDMI sound yet ....... Slighlty better power consumption. Working on solving ACPI errors when booting with HWPEnable and no Plugintype and cpufirend kexts.

UPDATE 20-3-2020:
Final ACPI Error (MCHC) corrected (thanks to ... Marianopela .... again!!!!)

UPDATE 24-3-2020:
HDMI AUDIO WORKS. Also initialization of HDMI is smoother... There is only one problem .... everything has a bit of a yellow tint !!!!!! Untill this is solved, it can be corrected by choosing a different display profile and only the login screen will be a bit yellowish. Slightly better power consumption.

UPDATE 7-4-2020
Updated clover to r5018 Updated kexts System updated to 10.15.4 Installed DW1820a (wifi and bluetooth working normally) Updated CPUFriend and created a new CPU Friend data provider kexts with low battery consumption in mind With wifi and bluetooth power consumption is much higher, I am working on it. As always create your own S/N, SmUUID and Custom UUID

UPDATE 10-4-2020
(Importand!!!!! From now on builds will be based on an unlocked CFG so please, if you don't have one modify config.plist settings.) Updated kexts changed config.plist settings for unlocked CFG (see above for method). Included a SSDT-PLUD for cpu Recreated CPUFriend Data Provider kext Installed 10.15.4 supplemental update with no problem

Options
In my EFI you will find an SSDT-PLUG.aml

1. CpuFriend kexts in kexts folder and SSDT-PLUG.aml in ACPI/Patched folder, with plugintype1=false in config.plist
2. CpuFriend kexts in kexts folder, NO SSDT-PLUG.aml in ACPI/Patched folder, with plugintype1=true in config.plist

(these two options give the same results. CPU base freq at 600Mhz, idle freq at 600mhz, core watts 0,30 at idle, PKG watts 1.70 at idle, cpu utilazation at 4,70 % and a bit more at idle.
3.CpuFriend kexts in kexts folder, NO SSDT-PLUG.aml in ACPI/Patched folder and plugintype1=false in config.plist
(this option has CPU base freq at 600Mhz, but idle req freq is never bellow 1,2Gmhz. Core watts 0,30 and bellow at times at idle, PKG watts 1.70 at idle, cpu utilization is less than 3 % at idle

You can choose which option you like.


UPDATE 12-4-2020
Updated kexts
F1 now truly mutes sound (credits: lietxia https://github.com/lietxia for the patched AppleALC)

Next milestones:
  1. Update kexts and drivers (DONE)
  2. Get HDMI working (DONE)
  3. Fix last ACPI error (DONE)
  4. Fix HDMI sound (DONE)
  5. Fix yellow tint (needs framebuffer repatching.....)
  6. Solve GPIO bug when using VoodooI2C in pinning mode
DISCLAIMER:
  1. This project started for educational purposes.
  2. The data, guides etc of this project are provided as they are.
  3. I take no responsibility for any problem or damage to any person or property caused directly or indireclty because of the use of any data or guide etc of this project.
 
Last edited:
Joined
Nov 3, 2012
Messages
58
Motherboard
Gigabyte GA-B75M D3V
CPU
i5-3570K
Graphics
RX 560
Mac
  1. iMac
  2. MacBook
  3. MacBook Pro
  4. Mac mini
Mobile Phone
  1. Android
Photos of the laptop and of Intel Power Gadget running at idle
 

Attachments

  • IMG_20200319_105800.jpg
    IMG_20200319_105800.jpg
    4.4 MB · Views: 440
  • IMG_20200319_105808.jpg
    IMG_20200319_105808.jpg
    4.9 MB · Views: 409
Joined
Nov 3, 2012
Messages
58
Motherboard
Gigabyte GA-B75M D3V
CPU
i5-3570K
Graphics
RX 560
Mac
  1. iMac
  2. MacBook
  3. MacBook Pro
  4. Mac mini
Mobile Phone
  1. Android
UPDATE 24-3-2020:
HDMI VIDEO AND AUDIO WORKS
No ACPI errors...
Best power consumption so far
 
Joined
Apr 2, 2020
Messages
2
Motherboard
Intel
CPU
i7
Graphics
GFX
Hi dear.. i have Lenovo S540-15IWL my Os is Catalina and work fine.. buy i would you help for fix Battery ACPI, HDMI and Touchpad please
 
Joined
Nov 3, 2012
Messages
58
Motherboard
Gigabyte GA-B75M D3V
CPU
i5-3570K
Graphics
RX 560
Mac
  1. iMac
  2. MacBook
  3. MacBook Pro
  4. Mac mini
Mobile Phone
  1. Android
Hi dear.. i have Lenovo S540-15IWL my Os is Catalina and work fine.. buy i would you help for fix Battery ACPI, HDMI and Touchpad please

Lucatek your laptop is completely different.

Try this EFI
 
Joined
Nov 3, 2012
Messages
58
Motherboard
Gigabyte GA-B75M D3V
CPU
i5-3570K
Graphics
RX 560
Mac
  1. iMac
  2. MacBook
  3. MacBook Pro
  4. Mac mini
Mobile Phone
  1. Android
UPDATE 7-4-2020
Updated clover to r5018
Updated kexts
System updated to 10.15.4
Installed DW1820a (wifi and bluetooth working normally)
Updated CPUFriend and created a new CPU Friend data provider kext with low battery consumption in mind
With wifi and bluetooth power consumption is much higher, I am working on it.
As always create your own S/N, SmUUID and Custom UUID
 
Joined
Apr 2, 2020
Messages
1
Motherboard
I didn't read
CPU
the RULES
Graphics
so ignore me
What do I need to change for same laptop with a 10th gen i5
 
Joined
Nov 3, 2012
Messages
58
Motherboard
Gigabyte GA-B75M D3V
CPU
i5-3570K
Graphics
RX 560
Mac
  1. iMac
  2. MacBook
  3. MacBook Pro
  4. Mac mini
Mobile Phone
  1. Android
What do I need to change for same laptop with a 10th gen i5

check this https://github.com/marianopela/Lenovo-Ideapad-S540-14IML-Hackintosh
and this

xiaoxin is the same laptop.
Be carefull if you have an iwl, don’t copy the .aml files in ACPI/PATCHED folders of these builds
Also be very very careful that you don't download an EFI configured for disabled CFG lock. I will update my guide today for access to "hidden" BIOS settings that allow to disable CFG lock
 
Last edited:
Top