README.md

January 13, 2025 · View on GitHub

macOS on Lenovo Legion 5 17ACH6H - AMD Ryzen 5800H & NVIDIA RTX 3060

OpenCore config for Hackintosh on Lenovo Legion 5 17ACH6H

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 AX210 card
EthernetRealtek RTL8168/8111
AudioRealtek ALC287
Display17,3 FHD IPS 144Hz
Opencore1.0.3
SMBIOSMacBookPro16,3 (serial number generated with GenSMBIOS)
OSmacOS Sonoma

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
TouchpadWith Touchpad Fix from MinecraftNerrd1337
AudioWith AppleALC.kext, using layout-id 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 + DRMWith CFG_LINK_FIXED_MAP=1
iServicesAppStore, Messages, FaceTime, iCloud
Shutdown / Reboot

What's not Working

TypeNotesStatus
dGPUDisabled with SSDT and patches (macOS has no support for newer NVIDIA GPUs)
HDMIConnected to dGPU, nothing can be done about this.
USB C video outConnected to dGPU, nothing can be done about this.
Sleep / WakeWork in progress, needs testing⚠️
USB MapMay or may not work, needs to be replaced by map made on the 17" model⚠️

BIOS Settings

  • Dynamic/Switchable GPU
  • Device Guard Disabled
  • Secure Boot Disabled
  • UMA Buffer Size > 1GB or more (This is iGPU RAM allocation, used 2GB)

Kexts Used

KextDescription
Lilu.kextKernel extension bringing a platform for arbitrary kext, library, and program patching throughout macOS
VirtualSMC.kextAdvanced Apple SMC emulator in the kernel
SMCBatteryManager.kextEnables battery status
SMCRadeonSensors.kextEnables AMD iGPU monitoring
SMCLightSensor.kextEnables reading fake light sensor from SSDT-ALS0
AMDRyzenCPUPowerManagement.kextEnables power management and monitoring for AMD CPUs
SMCAMDProcessor.kextPublishes readings from AMDRyzenCPUPowerManagement to VirtualSMC
AppleMCEReporterDisabler.kextDisables AppleIntelMCEReporter which causes panics on AMD CPUs
GUX-RyzenXHCIFixFixes XHCI controllers kernel panic when booting Ryzen APU-based hackintoshes
ForgedInvariant.kextEnables TSC synchronization
NVMeFix.kextImproves compatibility with non-Apple SSDs
NootedRed.kextAdds support for AMD iGPU
AppleALC.kextEnables native macOS HD audio for not officially supported codecs
RealtekRTL8111.kextAdds support for Realtek Ethernet
itlwm.kextAdds support for Intel Wi-Fi along with HeliPort app, used in Sonoma and later
Airportitlwm_13.kextAdds native-like support for Intel Wi-Fi in Ventura
BlueToolFixup.kextPatches macOS Bluetooth Stack in Monterey and later
IntelBTPatcher.kextPatches Bluetooth for Intel
IntelBluetoothFirmware.kextAdds support for Intel Bluetooth
IntelBluetoothInjector.kextActivates Bluetooth card in macOS Big Sur and older
BrightnessKeys.kextEnables brightness keys
ECEnabler.kextLets macOS read EC fields longer than 1 byte
RestrictEvents.kextBlocks unwanted processes causing compatibility issues and unlocks the support for certain restricted features
USBMap.kextInjects a custom USB Map for this Legion - needs verification
NoTouchID.kextFixes a bug due to macOS expecting a Touch ID with certain SMBIOS
VoodooI2C.kextAdds I2C support
VoodooI2CHID.kextHandles I2C-HID Touchpad

SSDTs Used

Most of them were created with SSDTTime on Windows 11

TableDescription
SSDT-PLUG-ALTFixes CPU definitions
SSDT-EC-USBXAdds a fake Embedded Controller device and injects USB power properties
SSDT-dGPU-OFF*Disables unsupported NVIDIA dGPU
SSDT-PNLFSets up a PNLF device for laptop backlight control
SSDT-ALS0Adds a fake light sensor device
SSDT-XOSI*Spoof macOS to Windows for some ACPI features

*Comes with ACPI rename patches to override existing code

Boot Arguments Used

boot-argInfo
-vEnables verbose
alcid=21Layout ID for AppleALC kext (to be replaced with device properties)

Screenshots

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

This material 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 material, 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 material 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 material, 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.