Skip to content

Latest commit

 

History

History
214 lines (160 loc) · 14.5 KB

README.md

File metadata and controls

214 lines (160 loc) · 14.5 KB

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

Type Spec Status
Model Legion 5 17ACH6H Type 82JY
BIOS GKCN65WW
CPU AMD Ryzen 7 5800H 8 Cores / 16 Threads
iGPU AMD Radeon Graphics 2GB
dGPU NVIDIA GeForce RTX 3060 Laptop GPU 6GB
RAM 2x 8GB Samsung DDR4 3200 MHz (also tested with 2x16GB Crucial DDR4 3200 MHz)
NVMe Samsung SSD 512GB for macOS / Samsung SSD 980 1TB for Windows and Ubuntu Desktop
Wi-Fi Intel Wi-Fi 6E AX210 (laptop was originally equipped with a Realtek Wi-Fi adapter)
Bluetooth With Intel AX210 card
Ethernet Realtek RTL8168/8111
Audio Realtek ALC287
Display 17,3 FHD IPS 144Hz
Opencore 1.0.3
SMBIOS MacBookPro16,3 (serial number generated with GenSMBIOS)
OS macOS Sonoma

What's Working

Type Notes Status
CPU With AMD Vanilla OpenCore kernel patches
iGPU With NootedRed.kext
Brightness Control With BrightnessKeys kext
USB With GUX-RyzenXHCIFix.kext and USBMap.kext
Keyboard With VoodooPS2Controller.kext
Touchpad With Touchpad Fix from MinecraftNerrd1337
Audio With AppleALC.kext, using layout-id 21
P2 Mic Working with AppleALC 1.8.8
Camera It just worked lol
Ethernet With RealtekRTL8111.kext
Intel Wi-Fi With itlwm kexts
Bluetooth With IntelBluetoothFirmware kexts
Battery Status With SMCBatteryManager.kext
AppleTV + DRM With CFG_LINK_FIXED_MAP=1
iServices AppStore, Messages, FaceTime, iCloud
Shutdown / Reboot

What's not Working

Type Notes Status
dGPU Disabled with SSDT and patches (macOS has no support for newer NVIDIA GPUs)
HDMI Connected to dGPU, nothing can be done about this.
USB C video out Connected to dGPU, nothing can be done about this.
Sleep / Wake Work in progress, needs testing ⚠️
USB Map May 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

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

SSDTs Used

Most of them were created with SSDTTime on Windows 11

Table Description
SSDT-PLUG-ALT Fixes CPU definitions
SSDT-EC-USBX Adds a fake Embedded Controller device and injects USB power properties
SSDT-dGPU-OFF* Disables unsupported NVIDIA dGPU
SSDT-PNLF Sets up a PNLF device for laptop backlight control
SSDT-ALS0 Adds 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-arg Info
-v Enables verbose
alcid=21 Layout ID for AppleALC kext (to be replaced with device properties)

Screenshots

Useful Software

Software Description
macrecovery.py Tool that helps to automate recovery interaction. It can be used to download diagnostics and recovery as well as analyse MLB
GenSMBIOS Script to generate SMBIOS
SSDTTime Tool designed to make creating SSDTs simple
ProperTree Cross platform GUI plist editor
USBMap Script for mapping USB ports in macOS and creating a custom injector kext
MountEFI Script for mounting any EFI partition on macOS
Hackintool The Swiss army knife of vanilla Hackintoshing
OpenCore Legacy Patcher Tool for creating bootable macOS drive and post-installing root patches
AMD Power Gadget Tool for monitoring CPU frequency and temperature. Automaticly adjusts CPU speed
WinDiskWriter Windows bootable drive creator for macOS

Credits

Legal Disclaimer

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.