Home

Awesome

<p align="center"> <h2 align="center">macOS on Lenovo Legion 5 17ACH6H - AMD Ryzen 5800H &amp; NVIDIA RTX 3060</h2> </p> <p align="center"> <img src="images/legion.png" width="720"/> </p> <h4 align="center">OpenCore config for Hackintosh on Lenovo Legion 5 17ACH6H</h4> <p align="center"> <img src="https://img.shields.io/badge/macOS-Sonoma 14.5-emerald"/> <img src="https://img.shields.io/badge/OpenCore-1.0.1-blue"/> </p>

Table of Contents

Specifications

TypeSpecStatus
ModelLegion 5 17ACH6H Type 82JY
BIOSGKCN65WW
CPUAMD Ryzen 7 5800H 8 Cores / 16 Threads
iGPUAMD Radeon Graphics 2GB
dGPUNVIDIA GeForce RTX 3060 Laptop GPU 6GB
RAM2x 8GB Samsung DDR4 3200 MHz (also tested with 2x16GB Crucial DDR4 3200 MHz)
NVMeSamsung SSD 512GB for macOS / Samsung SSD 980 1TB for Windows and Ubuntu Desktop
Wi-FiIntel Wi-Fi 6E AX210 (laptop was originally equipped with a Realtek Wi-Fi adapter)
BluetoothWith Intel Wi-Fi 6E AX210
EthernetRealtek RTL8168/8111
AudioRealtek ALC287
Display17,3 FHD IPS 144Hz
Opencore1.0.1
SMBIOSMacBookPro16,3 (serial number generated with GenSMBIOS)
OSmacOS Sonoma 14.5

What's Working

TypeNotesStatus
CPUWith AMD Vanilla OpenCore kernel patches
iGPUWith NootedRed.kext
Brightness ControlWith BrightnessKeys kext
USBWith GUX-RyzenXHCIFix.kext and USBMap.kext
KeyboardWith VoodooPS2Controller.kext
AudioWith AppleALC.kext and boot argument "alcid=21"
P2 MicWorking with AppleALC 1.8.8
CameraIt just worked lol
EthernetWith RealtekRTL8111.kext
Intel Wi-FiWith itlwm kexts
BluetoothWith IntelBluetoothFirmware kexts
Battery StatusWith SMCBatteryManager.kext
AppleTV + DRMWorks with CFG_LINK_FIXED_MAP=1
iServicesAppStore, Messages, FaceTime, iCloud
Shutdown / Reboot

What's not Working

TypeNotesStatus
dGPUApple dropped support for NVIDIA GPUs (you will have to turn hardware acceleration off)
HDMIConnected to dGPU
TouchpadI tried various configurations of VoodooPS2Controller, VoodooI2C, VoodooI2CHID, VoodooRMI, VoodooSMBus, VoodooI2CSynaptics and VoodooInput kexts but I didn't manage to get the touchpad to work. Any help would be much appreciated.
Sleep / Wake

BIOS Settings

Kexts Used

KextDescription
AirportItlwm.kextPatches Intel Wi-Fi
AMDRyzenCPUPowerManagement.kextEnables power management and monitoring for AMD CPUs
AppleALC.kextEnables native macOS HD audio for not officially supported codecs
AppleMCEReporterDisabler.kextDisables AppleIntelMCEReporter which causes panics on AMD CPUs
BlueToolFixup.kextPatches Bluetooth
BrightnessKeys.kextEnables brightness keys
ForgedInvariant.kextEnables TSC synchronization
GUX-RyzenXHCIFixFixes USB3
IntelBluetoothFirmware.kextPatches Bluetooth
IntelBTPatcher.kextPatches Bluetooth
itlwm.kextPatches Intel Wi-Fi
Lilu.kextKernel extension bringing a platform for arbitrary kext, library, and program patching throughout macOS
NootedRed.kextPatches AMD iGPU
NoTouchID.kextDisables Touch ID support
NVMeFix.kextImproves compatibility with non-Apple SSDs
RealtekRTL8111.kextPatches Ethernet
RestrictEvents.kextBlocks unwanted processes causing compatibility issues and unlocks the support for certain restricted features
SMCAMDProcessor.kextEnables power management and monitoring for AMD processors
SMCBatteryManager.kextEnables battery status
USBMap.kextScript for mapping USB ports in macOS and creating a custom injector kext
USBWakeFixupFixes USB wake up issue on macOS
VirtualSMC.kextAdvanced Apple SMC emulator in the kernel
VoodooI2C.kextEnables keyboard
VoodooPS2Controller.kextEnables keyboard

SSDTs Used

Created with SSDTTime on Windows 11

TableDescription
SSDT-ECAdds a fake Embedded Controller device
SSDT-HPETPatches out IRQ conflicts
SSDT-PLUG-ALTFixes CPU definitions
SSDT-PNLFSets up a PNLF device for laptop backlight control
SSDT-USBXEnables USB Power Management
SSDT-XOSISpoof macOS to Windows for some ACPI features

Boot Arguments Used

boot-argInfo
-vEnables verbose
-wegnoegpuDisables dGPU
alcid=21Layout ID for AppleALC kext

Screenshots

<img src="images/screenshot-1.png"/> <img src="images/screenshot-2.png"/> <img src="images/screenshot-3.png"/>

Installation Steps

1. Download OpenCore Config

Start by downloading the OpenCore configuration file provided in this repository.

2. Obtain the Necessary Kexts

Download all the required kexts from the "Used Kexts" list provided earlier. Once downloaded, copy them to the following directory: EFI -> OC -> Kexts

3. Download macOS Sonoma Recovery Environment

Use the macrecovery.py to download the macOS Sonoma 14.5 recovery environment.

4. Generate Serial Number and UUID

Use GenSMBIOS to generate a valid serial number and UUID.

5. Edit the OpenCore Config

Open the config.plist file using ProperTree. Navigate to Root -> PlatformInfo -> Generic. Enter the serial number and UUID you generated in the previous step.

6. Prepare the USB Drive

Format a USB drive to FAT32, then copy the following to the drive:

7. Replace NootedRed.kext with WhateverGreen.kext

Replace NootedRed.kext file with WhateverGreen.kext. This is crucial for successfully booting into the recovery environment. Make new OC snapshot in ProperTree to reflect the change.

8. Boot from USB and Format SSD

Boot your machine from the USB drive. Once in the macOS recovery environment, format your target SSD to the APFS format using Disk Utility.

9. Install macOS

Begin the macOS installation on your freshly formatted SSD. If your system doesn’t have Wi-Fi support at this point, connect an Ethernet cable to ensure the recovery environment can download macOS files.

10. System Reboots During Installation

During the installation process, your machine will reboot multiple times. No user intervention is needed until the installation completes.

11. Create a User Account

After the macOS installation finishes, follow the setup process to create your user account.

12 Enable iGPU Support

To activate the integrated GPU (iGPU), replace WhateverGreen.kext with NootedRed.kext in your EFI folder. Again, make new OC snapshot in ProperTree to reflect the change.

13. Reboot from USB

Reboot the system from the USB drive. At this point, your iGPU should now be working.

14. Boot Without the USB Drive

To enable booting from the SSD without needing the USB drive, use MountEFI to mount the EFI partition of your SSD. Copy all files from the USB to the SSD’s EFI partition.

Useful Software

SoftwareDescription
macrecovery.pyTool that helps to automate recovery interaction. It can be used to download diagnostics and recovery as well as analyse MLB
GenSMBIOSScript to generate SMBIOS
SSDTTimeTool designed to make creating SSDTs simple
ProperTreeCross platform GUI plist editor
USBMapScript for mapping USB ports in macOS and creating a custom injector kext
MountEFIScript for mounting any EFI partition on macOS
HackintoolThe Swiss army knife of vanilla Hackintoshing
OpenCore Legacy PatcherTool for creating bootable macOS drive and post-installing root patches
AMD Power GadgetTool for monitoring CPU frequency and temperature. Automaticly adjusts CPU speed
WinDiskWriterWindows bootable drive creator for macOS

Credits

Legal Disclaimer

This guide is provided solely for educational and testing purposes. The author does not condone or encourage any illegal activities, including but not limited to the violation of software license agreements, terms of service, or copyright laws. Building or using a Hackintosh — a non-Apple computer running macOS — may violate Apple's End User License Agreement (EULA) and could be illegal in certain jurisdictions.

By following this guide, you understand that you assume full responsibility for any legal consequences, technical issues, or damages that may arise, including but not limited to violations of Apple's terms of service, potential breaches of applicable laws, and the invalidation of warranties. The author is not liable for any losses, damages, legal actions, or technical malfunctions resulting from the use of this guide.

The author explicitly does not endorse or encourage the illegal use of macOS or other software in any way that infringes upon intellectual property rights, terms of service, or other legal agreements. The guide is intended to be used for testing in environments where such use is permitted.

Before proceeding, users are strongly advised to consult with a legal professional to understand the legality of building or using a Hackintosh in their specific region or jurisdiction. All actions undertaken by the reader are done at their own risk and discretion.

By using this guide, you agree that any risks involved are your own responsibility, and you indemnify the author from any legal or financial consequences that may arise from your actions.