Awesome
Lenovo IdeaPad S540-14IML Hackintosh
Model:Lenovo IdeaPad S540-14IML - Type 81NF
Info | Status | Details |
---|---|---|
Computer model💻 | ✅ | Lenovo IdeaPad S540-14IML 2019 (Type 81NF) |
System🌌 | ✅ | All from Catalina to Sequoia |
CPU🎛️ | ✅ | Intel Core i5-10210U / i7-10510U |
Motherboard🎛️ | ✅ | Lenovo 5B20W78206 |
Fingerprint🖐️ | ⛔ | Synaptics - Fingerprint will never work |
GPU👾 | ⛔ | Nvidia GeForce MX250 ( 2 GB ) |
IGPU👾 | ✅ | Intel UHD 620 |
Memory💳 | ✅ | Internal 4GB 2666 + Changeable 32GB 2666 |
Disks💽 | ✅ | Lenovo SSD 256G PCIe 2280 UMIS + Samsung PM991 256G |
Screen🖥️ | ✅ | AUO353D/LGD05EC ( 14-inches ) 1920x1080 60~75Hz(OC) |
Audio Card🔊 | ✅ | Conexant CX8070 |
Wireless🌐 | ✅ | Replaced Atheros card with Broadcom BCM94360NG |
Bluetooth🦷 | ✅ | BCM94360NG |
SD card reader🗂️ | ✅ | O2 Micro / Realtek |
TrackPad🖐️ | ✅ | Works in GPIO mode with Pin=50 |
HDMI📺 | ✅ | able to output 4k@30fps, same as windows |
Camera🎦 | ✅ | it's pretty easy to drive USB camera |
Sleep😴 | ✅ | Support native sleep. |
Current Status
- System:Catalina / Big Sur / Monterey / Ventura / Sonoma / Sequoia
- Disks:If you are using Samsung PM981A, please consider to change.
- Audio Card:Success with layout-id 15, no plosive Headsets_with_Microphone
Related models
- XiaoXin Pro13 (i5-10210U / i7-10710U)
- XiaoXin13 IML
- XiaoXin Air13 IWL (i5-8265U / i7-8565U)
- XiaoXin Air15 IKBR (i5-8265U)
- XiaoXin Air14 (i5-1035G1)
- XiaoXin Air14 (i7-1065G7)
- XiaoXin Air15 (i5-1035G1)
- XiaoXin Air15 (i5-10210U)
- Lenovo-Ideapad-S540-15IML (i5-10210U)
- Lenovo-Ideapad-S540-15IML (i5-10210U)
- Lenovo-Ideapad-S540-15IWL (i5-8265U)
- Lenovo-Ideapad-S540-14IML (i5-10210U)
- Lenovo-Ideapad-S540-14IWL (i5-8265U)
- Lenovo-Ideapad-S540-14IML (i5-10210U / i7-10510U)
How to configure Broadcom WiFi in Sonoma (if not detected automatically)
A collection of instructions and links to make Broadcom Wifi work natively again under macOS 14 and 15 (Sonoma/Sequoia). Those instructions are already implemented in the EFI, but STEP 9 is required (OCLP). <br/> <br/> This process involves disabling SIP, so be warned. <br/> <br/> Below is a description of what to do.
<details> <summary>Details</summary> <br/> <br/>STEP 1: Disable Gatekeeper.
Under Terminal, run the following:
sudo spctl --master-disable
<br/>
STEP 2: Download and install Kernel Debug Kit:
From source: Kernel Debug Kit
<br/>STEP 3: Download OCLP but do not install yet:
From source: OCLP
<br/>STEP 4:
Make a copy of your current and working EFI. Copy /EFI/OC/config.plist
as /EFI/OC/config-backup.plist
STEP 5:
System Integrity Protection must be set to 0x803. How to do that? Editing /EFI/OC/config.plist
manually or using OpenCore Configurator (highly advisable).
Set your SIP to Disabled: under NVRAM section, search 7C436110-AB2A-4BBB-A880-FE41995C9F82 key, then search csr-active-config
key and set to 30800000
.
Or (manually editing /EFI/OC/config.plist
):
<key>csr-active-config</key>
<data>AwgAAA==</data>
<br/>
STEP 6:
Change SecureBootModel to Disabled. How to do that? Under Misc section, security tab, search for SecureBootModel
key and set it to Disabled
,
or (manually editing /EFI/OC/config.plist
):
<key>SecureBootModel</key>
<string>Disabled</string>
<br/>
STEP 7:
Enable Kexts and Block Patch. How to do that?
Under Kernel section, under ADD tab, enable IOSkywalkerFamily.kext
.
Additionally, Under Kernel section, under BLOCK tab, enable Allow IOSkywalker Downgrade
.
Or (manually editing /EFI/OC/config.plist
):
To enable IOSkywalkerFamily.kext
kext:
<dict>
<key>Arch</key>
<string>Any</string>
<key>BundlePath</key>
<string>IOSkywalkFamily.kext</string>
<key>Comment</key>
<string>V1.0</string>
<key>Enabled</key>
<true/>
<key>ExecutablePath</key>
<string>Contents/MacOS/IOSkywalkFamily</string>
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string>23.0.0</string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<br/>
To enable Allow IOSkywalker Downgrade
patch:
<dict>
<key>Arch</key>
<string>Any</string>
<key>Comment</key>
<string>Allow IOSkywalk Downgrade</string>
<key>Enabled</key>
<true/>
<key>Identifier</key>
<string>com.apple.iokit.IOSkywalkFamily</string>
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string>23.0.0</string>
<key>Strategy</key>
<string>Exclude</string>
</dict>
<br/>
STEP 8: Save your modified EFI and reboot the system. Cross fingers... System must boot smoothly if everything performed as described.
<br/>STEP 9: Run OCLP and install Root Patch for Modern Wifi (Needed after every update). How to do that? Open OCLP (downloaded at step 3) and click on "Root Patch"
<br/>STEP 10: Reboot and check for native Broadcom Wifi. If it's not working, simply reset your NVRAM and check again.
<br/> <br/>All credits go to the OCLP team, I merely put everything together for ease of use (for me, at least).
</details>BIOS
https://newsupport.lenovo.com.cn/driveDownloads_detail.html?driveId=78312
<details> <summary>Details</summary> 2022/05/13 BIOS Version: CKCN19WW http://newdriverdl.lenovo.com.cn/newlenovo/alldriversupload/94976/BIOS-CKCN19WW.exe <br /> 2022/03/18 BIOS Version: CKCN18WW http://newdriverdl.lenovo.com.cn/newlenovo/alldriversupload/92231/BIOS-CKCN18WW.exe <br /> 2021/07/23 BIOS Version: CKEC17WW http://newdriverdl.lenovo.com.cn/newlenovo/alldriversupload/83713/BIOS-CKCN17WW.exe <br /> 2021/01/18 BIOS Version: CKCN16WW http://newdriverdl.lenovo.com.cn/newlenovo/alldriversupload/78312/BIOS-CKCN16WW.exe <br /> 2020/07/24 BIOS Version: CKCN15WW http://newdriverdl.lenovo.com.cn/newlenovo/alldriversupload/73409/BIOS-CKCN15WW.exe <br /> 2020/06/22 BIOS Version: CKCN14WW http://newdriverdl.lenovo.com.cn/newlenovo/alldriversupload/72386/BIOS-CKCN14WW.exe <br /> 2019/12/16 BIOS Version: CKCN12WW http://newdriverdl.lenovo.com.cn/newlenovo/alldriversupload/67169/BIOS-CKCN12WW.exe <br /> 2019/08/08 BIOS Version: CKCN11WW http://newdriverdl.lenovo.com.cn/newlenovo/alldriversupload/60449/BIOS-CKCN11WW.exe <br /> </details>Microcode
https://newsupport.lenovo.com.cn/driveDownloads_detail.html?driveId=77695
<details> <summary>Details</summary> 2021/07/23 Version: CKME05WW http://newdriverdl.lenovo.com.cn/newlenovo/alldriversupload/83714/FW-CKME05WW.exe <br /> 2020/12/17 Version: CKME03WW http://newdriverdl.lenovo.com.cn/newlenovo/alldriversupload/77695/FW-CKME03WW.exe <br /> 2020/06/23 Version: CKME02WW http://newdriverdl.lenovo.com.cn/newlenovo/alldriversupload/72429/ME-CKME02WW.exe <br /> 2019/12/16 Version: CKME01WW http://newdriverdl.lenovo.com.cn/newlenovo/alldriversupload/67174/FW-CKME01WW.exe <br /> </details>Changelog
- 2023-11-29 16:00
- Support macOS Somoma OTA.
- Use MacForge to add functions which are Apple Silicon only.
Installation (For U-Disks larger than 4GB)
- If you are using OpenCore, Please use BIOS except for 1.0.2 (1.0.2 you need to turn off the Hyper-Threading to use OC.)
- Change BIOS settings
- Change DVMT and CFG Lock.
- Download balenaEtcher, use it to flash 2022-06-19-XiaoXinAir14IML-4in1-installerV7.dmg(Password:q27r)
- Boot the Second EFI partition and choose the system you want to install.
macOS12 recovery+EFI (format your u-disk with FAT32, then unzip this package)(suitable for 1G/2G U-disk)
- Baidu Netdisk (Password: ggtj)
- Tianyi Netdisk (Password: 0ufg)
- 123 Netdisk
Advice
- [Prevent intermittent hackintosh disconnections Thanks @Unstoppablesss] Modify System Preferences/Eneragy Saver/Power Adapter/Put hard disk to sleep when possible(modify to off)
- Because current hibernate cannot wake up normally, in order to avoid affecting sleep, use the terminal to turn off hibernate
sudo pmset -a hibernatemode 0
VoltageShift Highly dangerous
- Advantage:Undervolt the CPU to gain more efficiency and make the machine cooler
- Method:
- 1.Follow BIOS_UnlockOCPM‘s readme to unlock
Overclocking Performance Menu
Extremely dangerous, please backup your BIOS
- 2.Switch
Advanced
→Overclocking Performance Menu
→Overclocking Feature
→Enabled
- 3.Undervolt in macOS with VoltageShift
- 1.Follow BIOS_UnlockOCPM‘s readme to unlock
YogaSMC: Experimental
- Normal: Fan three modes switch, microphone mute, flight mode, F10 switch screen, touchpad switch hint, keyboard backlight, Fn function key switch.
- Abnormal: the camera has a hint, but it can't be turned off, the lock function can't be used, FN + Q can't work, the keyboard backlight will be displayed incorrectly when the power is plugged in, the battery temperature can't be read out, and you can't switch the charging speed in the system.
Synchronize bluetooth link keys from macOS to windows
https://github.com/lietxia/BT-LinkkeySync
Hi-DPI (Big Sur and upper)
bash -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/dev/hidpi.sh)"
Catalina Hi-DPI
bash -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/master/hidpi.sh)"
DW1820A Windows 10 driver
https://www.dell.com/support/home/zh-cn/drivers/driversdetails?driverid=98wfd
Change DVMT and CFG Lock
You must unlock
CFG Lock
, otherwise, you can't use both OpenCore and Clover.
We recommend to changeDVMT
into 64M, there's no damage to your computer.
- Recommend: get into hidden BIOS
- The way to enter hidden BIOS
- Switch off the
OneKeyBattery
- Press following buttons with your computer closed.
F4
→4
→R
→F
→V
F5
→5
→T
→G
→B
F6
→6
→Y
→H
→N
- Power on → Press F2, speed up if failed.
- Switch off the
- The way to enter hidden BIOS
- Change the following settings.
Advanced
→Power & Performance
→CPU - Power Management Control
→CPU Lock Configuration
→CFG Lock
→Disabled
Advanced
→System Agent (SA) Configuration
→Graphics Configuration
→DVMT Pre-Allocated
→64M
- Backup solution: change in Windows
-
Refer to https://github.com/lietxia/XiaoXinAir14IML_2019_hackintosh/wiki/DVMT
-
DVMT
:- Area :
SaSetup
- Offset :
0x107
01
to02
- Area :
-
CFG LOCK
:- Area :
CpuSetup
- Offset :
0x3E
01
to00
- Area :
-
MacForge
- Advantage: Add functions which are Apple Silicon only
- Installation: run /macforge/install.command
How to make it better?
- PrintScreen can't be used under mac. I map it to F13 and you can change the shortcut key of screenshot to F13
- Turn on HiDPI (see HiDPI part)
SSDT
SSDTs | Info | Necessary | Recommended | Optional |
---|---|---|---|---|
SSDT-SBUS-MCHC | Fake BUS0, DVL0, MCHC device | √ | ||
SSDT-EC-USBX | Fake EC device, USB Power Patch | √ | ||
SSDT-TPAD-Air14IML | I2C Trachpad patch (AIR14IML only) | √ | ||
SSDT-DMAC | Fake DMA controller | √ | ||
SSDT-GPRW | Anti immediate wakeup: 0D/6D | √ | ||
SSDT-PMC | Fake PMC device | √ | ||
SSDT-HPTE | Disable HPET patch | √ | ||
SSDT-PNLFCFL | Coffee Lake PNLF patch | √ | ||
SSDT-PR00 | X86 CPU Power Management (Enable XCPM) | √ | ||
SSDT-RMCF-Air14IML | PS2 key mapping patch | √ | ||
SSDT-UIAC | Custom USB | √ | ||
SSDT-BATX-Air14IML | Battery extra info | √ | ||
SSDT-AWAC | “Fake” RTC timer | √ | ||
SSDT-ECRW | YogaSMC EC accessibility | √ |
Notes
- You need a T6 screwdriver to disassemble the machine. After the screws are removed, use the unused card and carefully disassemble it from the other side of the screen https://www.bilibili.com/video/BV1X341157kf/
- If you want to buy a type-c cable, you should buy one with 4mm diameter, and the hole diameter is 1.7mm
Credits
- Acidanthera for OpenCore and other kexts.
- Apple for macOS.
- lietxia for the whole EFI.
- zxystd for developing itlwm.
- Bat.bat for developing IntelBluetoothFirmware and HeliPort.
- alexandred for developing VoodooI2C.
- athlonreg for developing ALCPlugFix to fix microphone switch issue.
- win1010525 for translating English readme and add AIO version EFI.
- sun19970908 for providing codec, modify ALCPlugFix and test CPUFriend.
- stevezhengshiqi for one-key-cpufriend
- SoMeone for modifying BIOS
- mandresve for O2 Card Reader Support & Voltageshift underclock enable and testing.
- PoomSmart for AdvancedMapEnabler
- MacEnhance for MacForge