[Guide] Lenovo G500 - Intel Core i5 - 3360M - 8GB RAM - Intel HD Graphics 4000


Striker

New member
Joined
Oct 20, 2018
Messages
14
Motherboard
Gigabyte B360 Gaming 3 WiFi
CPU
Intel Core i5 9400F
Graphics
Sapphire Nitro plus Radeon RX580
OS X/macOS
10.14.6
Bootloader
Clover (UEFI)
Mobile Phone
iOS
Complete installation guide for installing macOS Mojave 10.14 (18A391) on Lenovo G500

Specifications :

Laptop : Lenovo G500
CPU: Intel Core i5 - 3630m
RAM: 8 GB 1333MHz
IGPU: Intel HD Graphics 4000
SSD: kingston SA400S37120G
Audio: Conexant CX20757
Display: 15.6" (1366x768)
Wireless/Bluetooth: Broadcom BCM43142 (Unsupported)
Trackpad:
Camera: Lenovo Easy Camera
Ports: 2 x USB 3.0 | 1 x USB 2.0 | 1 x VGA | 1x HDMI I 1 x SD Card slot | 1 x 3.5mm audio combo jack I 1 x LAN Port

Summary :

What's works?

Audio (Combo Jack)
Graphics
Keyboard
Trackpad (With Gestures)
Brightness
Brightness Hotkeys
Battery Meter
Power Management
iMessage
FaceTime
iCloud
USB 2.0, 3.0 Ports, VGA, HDMI (Video + Audio)

Not working

Only WiFi and Bluetooth (Unsupported), replacement needed

Bootable Media Creation

STEP 1

To create Bootable USB for installation

Insert USB Flash Drive and open Disk Utility

Select USB Flash Drive and Erase it with following parameters

Name : USB
Format
: OS X Extended (Journaled)
Scheme
: GUID Partition Map

Launch Terminal

Copy and paste the following sudo command in terminal

Code:
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/USB
Enter Password, when it asks

Press (Y) for confirmation of the proceeding process and press Enter key

Close Terminal after execution of the process

STEP 2

Download Clover EFI Bootloader from the Forum Downloads Section

Run Clover EFI bootloader installer package

In Clover Bootloader click on Change Install Location and select installation Drive i.e Install macOS Mojave.

Click on Customize and configure the following settings.

Install Clover for UEFI booting only
Install Clover in the ESP

Themes: Select any
Drivers64UEFI: AptioMemoryFix-64 , ApsDriverLoader-64 and

Confirm the above options and click on Install. Enter Password when it asks.

Click on Close after execution of the process

STEP 3 :

Now you'll have to place the necessary Files, Kexts & Config.plist

Navigate to: EFI/CLOVER
Replace Config.plist with default one

Navigate to: EFI/CLOVER/drivers64UEFI/
Place HFSPlus.efi : https://github.com/JrCs/CloverGrowerPro/raw/master/Files/HFSPlus/X64/HFSPlus.efi

After that
Navigate to: EFI/CLOVER/kexts/

Place following kexts in the folder
FakeSMC.kext: https://github.com/RehabMan/OS-X-FakeSMC-kozlek
VoodooPS2Controller.kext: https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller
USBInjectAll.kext: https://github.com/RehabMan/OS-X-USB-Inject-All
Lilu.kext: https://github.com/acidanthera/Lilu
WhateverGreen.kext: https://github.com/acidanthera/WhateverGreen

Now, everything is done USB is fully prepared for installation

UEFI settings

Set PXE Boot to LAN to Disabled
Set Boot Mode to UEFI
Set Graphics Devices to UMA Graphics
Set Intel Virtualization Technology to Enabled

Booting the Installer using USB

After preparing installation USB

Plug the USB flash drive in USB 2.0 port and boot to boot menu

Select USB with the UEFI prefix and press enter to boot

Use following boot args :
-v
-nv_disable=1

Select Boot macOS Install from Install macOS Mojave and press enter to boot

When at installation screen

select preferred language and continue

Select Disk Utility and continue

click on View and select Show all Devices

select Hard Drive or SSD on which you want to install macOS

Select the Drive and click on Erase button

Erase it with following parameters

Name : Macintosh HD* (You can rename it later on)
Format
: APFS
Scheme : GUID Partition Map


After execution of the process Close Disk Utility

Select Install macOS and continue with the options.

Now select Macintosh HD* and click on Install.

When the laptop restarts, select Boot macOS Install from Macintosh HD or (Drive name) and press enter

After installation, boot it using USB, but this time select Macintosh HD or (Drive name) and press enter

When you're at the welcome screen, continue with the basics options such as Keyboard setup, Network, Computer Account and Privacy settings

Post Installation

Boot from System Drive

Mount the EFI Partitions of BOTH USB as well as Hard Drive/SSD

Open EFI Partition of Hard Drive

Select EFI folder and then move to Trash

Open EFI Partition of USB

Copy the EFI folder to EFI Partition of Hard Drive.

Graphics

Intel HD Graphics 4000 is supported and will run in full QE/CI OOTB

Network

The Laptop uses Qualcomm Atheros QCA8172 Ethernet Chipset. Install Realtek AtherosE2200

DSDT and SSDT Patching

For the DSDT and SSDT patching, follow the DSDT and SSDT patching guide here: https://www.elitemacx86.com/threads/guide-how-to-patch-laptop-dsdt-and-ssdts.178/

DSDT

Layout id = 3(0x03)
Rename GFX0 to IGPU
Fix _WAK Arg0 v2
HPET Fix
SMBUS Fix
IRQ Fix
RTC Fix
OS Check Fix
Fix Mutex with non-zero SyncLevel

7 Series/8 Series USB

SSDT

Rename GFX0 to IGPU
Cleanup/Fix Errors (SSDT)
Remove _PSS placeholders

The SSDT (SSDT-1-CB-01) will have sixteen errors, to fix it patch it with "Remove_PSS placeholders"

Place all the patches DSDT and SSDTs to : EFI/ACPI/Patched.

Open config.plist
Check "Drop OEM"
Under Sorted Order, list all of DSDT and SSDTs with the suffix i.e. .aml

Audio

The Laptop uses a Conexant CX20757 Audio Codec

To patch AppleHDA for this Audio Codec follow the guide here: https://www.elitemacx86.com/threads/a-beginners-guide-how-to-patch-applehda-for-laptops.184/

Install the kext to S/L/E

Open config.plist

Under Acpi patches, add the following patch

Code:
Comment: Rename HDAS to HDEF
Find* [HEX]: 48444153
Replace [HEX]: 48444546
Use layout ID =3
Check "ResetHDA"

For resolving the audio distortion in Headphones, follow the guide here: https://www.elitemacx86.com/threads/fix-audio-distortion-when-using-headphones-on-laptops.185/

USB Ports

For USB Ports install FakePCIID_XHCIMux.kext & FakePCIID.kext
Link to the Downloads : https://github.com/RehabMan/OS-X-Fake-PCI-ID/blob/master/FakePCIID/FakePCIID_XHCIMux.h

Notes :
Do not download the project files. The pre-built binaries/downloads are available in the README.md section. Make sure you read it carefully.
Download the latest version for better support.
Use the kext from Release folder and Release.zip file.


Add USB port limit patch

Mount EFI Partition

Open config.plist file using Clover Configurator

Navigate to kernel and kext patches tab and add the following patch in config.plist.

Code:
Name: com.apple.driver.usb.AppleUSBXHCI
Find* [HEX]: 83FB0F0F 83030500 0
Replace* [HEX]: 83FB0F90 90909090 90
Comment: USB 10.14.x by PMHeart
MatchOS: 10.14.x
Save config.plist file

Trackpad

The trackpad works OOTB. To implement Gestures for Trackpad, follow the guide here: https://www.elitemacx86.com/threads/guide-how-to-fix-trackpads-on-laptops-including-gestures.293/

Battery Meter

Install ACPIBatteryManager kext.

Power Management

The CPU power management doesn't works OOTB. It will require SSDT, to create SSDT, We will need to generate SSDT using SSDTPRGen Script from Piker-Alpha

Generating SSDT for PowerManagement

Before generating a SSDT for CPU, make sure that the correct SMBIOS has been configured for your current CPU. You can generate a SMBIOS using Clover Configurator

Open Terminal and download the Piker Alpha's script.


Code:
curl -o ~/ssdtPRGen.sh https://raw.githubusercontent.com/Piker-Alpha/ssdtPRGen.sh/Beta/ssdtPRGen.sh
This will download the ssdtPRGen.sh script to your user directory. The next step is to change the file permission
Code:
chmod +x ~/ssdtPRGen.sh
For default SSDT generation, type :
Code:
sudo ~/ssdtPRGen.sh
Confirm Y to generate SSDT

Open Finder and in menubar and click on Go to Folder

Type ~/Library/ssdtPRGen/

Now mount your EFI partition of your system drive

Copy ssdt.aml to /Volumes/EFI/EFI/Clover/ACPI/patched/

The Power Management SSDT should always be named as SSDT.aml

Make sure that the PowerManagement SSDT (i.e SSDT.aml) must be added and it should be loaded after all the SSDTs.

Restart Laptop for implementing the changes

Miscellaneous

App Store
iMessage
FaceTime

iCloud

To activate App Store iMessage FaceTime & iCloud, follow the instructions below :

Mount EFI partition

Open config.plist

Navigate to SMBIOS Tab

Generate a new SMBIOS for "MacBook Pro "8,2"

Save config.plist

Restart laptop

Login into App Store, iMessage, FaceTime and iCloud.


By following the above Guide, A full working macOS Mojave on Lenovo G500 can be installed

Credits:
A special Thanks to @EliteMacx86 for the wonderful guides which is super easy to follow
RehabMan for his great work
Pokenguyen and macgihan for the DSDT edits
Piker-Alpha for SSDT edits
 
Last edited: