Skip to content

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

Notifications You must be signed in to change notification settings

danielrumata/Legion-5800H-Hackintosh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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 Wi-Fi 6E AX210
Ethernet Realtek RTL8168/8111
Audio Realtek ALC287
Display 17,3 FHD IPS 144Hz
Opencore 1.0.1
SMBIOS MacBookPro16,3 (serial number generated with GenSMBIOS)
OS macOS Sonoma 14.5

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
Audio With AppleALC.kext and boot argument "alcid=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 Works with CFG_LINK_FIXED_MAP=1
iServices AppStore, Messages, FaceTime, iCloud
Shutdown / Reboot

What's not Working

Type Notes Status
dGPU Apple dropped support for NVIDIA GPUs (you will have to turn hardware acceleration off)
HDMI Connected to dGPU
Touchpad I 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

  • Dynamic/Switchable GPU
  • Device Guard Disabled
  • Secure Boot Disabled

Kexts Used

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

SSDTs Used

Created with SSDTTime on Windows 11

Table Description
SSDT-EC Adds a fake Embedded Controller device
SSDT-HPET Patches out IRQ conflicts
SSDT-PLUG-ALT Fixes CPU definitions
SSDT-PNLF Sets up a PNLF device for laptop backlight control
SSDT-USBX Enables USB Power Management
SSDT-XOSI Spoof macOS to Windows for some ACPI features

Boot Arguments Used

boot-arg Info
-v Enables verbose
-wegnoegpu Disables dGPU
alcid=21 Layout ID for AppleALC kext

Screenshots

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:

  • The OpenCore configuration (both EFI and NVRAM folders)
  • The macOS Sonoma 14.5 recovery environment (com.apple.recovery.boot folder)

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

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 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.