• Become a Premium Member for $25/year with no ads to improve your community experience.

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

Striker

Moderator
Staff member
Donator
Joined
Oct 20, 2018
Messages
26
Motherboard
Gigabyte Z790 AERO G
CPU
Intel Core i9 13700K
Graphics
Sapphire TOXIC AMD Radeon RX 6900 XT Extreme Edition
OS X/macOS
14.x
Bootloader
  1. OpenCore (UEFI)
Mac
  1. iMac
  2. Mac mini
  3. MacBook Air
  4. MacBook Pro
Mobile Phone
  1. Android
  2. 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:
  • Like
Reactions: shilik
Hi!

I am new to forum. I register here because i find this tutorial....but i find also this site very intresting.
I will try to make this project....

First i want to ask if Open Core method is better for laptop or desktop? So i have laptop and it is better to try this tutorial?

Also i want to ask you about something because i cannot understand....
1608074012265.png

Where i need to put code " External ( )......" ?

Friendly
 
Hi!

I am new to forum. I register here because i find this tutorial....but i find also this site very intresting.
I will try to make this project....

First i want to ask if Open Core method is better for laptop or desktop? So i have laptop and it is better to try this tutorial?

Also i want to ask you about something because i cannot understand....
View attachment 2934

Where i need to put code " External ( )......" ?

Friendly
You can use OpenCore. It's for DSDT patching.

You need to create a text file with the above External Methods.
 
  • Like
Reactions: david_bodo
You can use OpenCore. It's for DSDT patching.

You need to create a text file with the above External Methods.
THank you Admin!

WHat is better for my laptop....open core method? Give me your opinion!

Also please explain me were to put this code? I make a text file in desktop....just give me quick guide!

About config.plist witch is better HD4000 1366x768 or HD4000 1366x768 6_series.....I dont know what is the difference?
(My laptop has H76m chipset so i am not 6 series i think. Maybe there are motherboard with 6 sieries chipset and intel HD3000)

1608151312207.png


Thank you very much!




Have you tried to disassembly using the refs.txt thing? If not, create a text file named refs.txt, add this to it :

External(MDBG, MethodObj, 1) External(_GPE.MMTB, MethodObj, 0) External(_SB.PCI0.LPCB.H_EC.ECWT, MethodObj, 2)

External(_SB.PCI0.LPCB.H_EC.ECRD, MethodObj, 1)

External(_SB.PCI0.LPCB.H_EC.ECMD, MethodObj, 1)

External(_SB.PCI0.PEG0.PEGP.SGPO, MethodObj, 2)

External(_SB.PCI0.GFX0.DD02._BCM, MethodObj, 1)

External(_SB.PCI0.SAT0.SDSM, MethodObj, 4)

External(_GPE.VHOV, MethodObj, 3) External(_SB.PCI0.XHC.RHUB.TPLD, MethodObj, 2)


After that, place the file in the same folder as the .aml files and do : iasl -da -dl -fe refs.txt DSDT.aml SSDT*.aml
 
Last edited:
THank you Admin!

WHat is better for my laptop....open core method? Give me your opinion!

Also please explain me were to put this code? I make a text file in desktop....just give me quick guide!

About config.plist witch is better HD4000 1366x768 or HD4000 1366x768 6_series.....I dont know what is the difference?
(My laptop has H76m chipset so i am not 6 series i think. Maybe there are motherboard with 6 sieries chipset and intel HD3000)

View attachment 2935


Thank you very much!




Have you tried to disassembly using the refs.txt thing? If not, create a text file named refs.txt, add this to it :

External(MDBG, MethodObj, 1) External(_GPE.MMTB, MethodObj, 0) External(_SB.PCI0.LPCB.H_EC.ECWT, MethodObj, 2)

External(_SB.PCI0.LPCB.H_EC.ECRD, MethodObj, 1)

External(_SB.PCI0.LPCB.H_EC.ECMD, MethodObj, 1)

External(_SB.PCI0.PEG0.PEGP.SGPO, MethodObj, 2)

External(_SB.PCI0.GFX0.DD02._BCM, MethodObj, 1)

External(_SB.PCI0.SAT0.SDSM, MethodObj, 4)

External(_GPE.VHOV, MethodObj, 3) External(_SB.PCI0.XHC.RHUB.TPLD, MethodObj, 2)


After that, place the file in the same folder as the .aml files and do : iasl -da -dl -fe refs.txt DSDT.aml SSDT*.aml
OpenCore is the preferred choice.
 
Hi again!

I am happy now.....i almost done.

Atheros wifi AR5B93 AR9283 ok
Mousepad Elan ok
Conexant CX20757 (also fix HDMI audio)
Ethernet Atheros AR8172/8176/8178 ok

It needs only to fix brightness and keyboard Fn+

So i need to fix DSDT and SSDT and patch it

Can you help me for a while?
I attach my dissasembly files.....can you help me with errors....After i patch them.

Friendly
 

Attachments

Hi again!

I am happy now.....i almost done.

Atheros wifi AR5B93 AR9283 ok
Mousepad Elan ok
Conexant CX20757 (also fix HDMI audio)
Ethernet Atheros AR8172/8176/8178 ok

It needs only to fix brightness and keyboard Fn+

So i need to fix DSDT and SSDT and patch it

Can you help me for a while?
I attach my dissasembly files.....can you help me with errors....After i patch them.

Friendly
To implement Brightness Control, read here:

For help with the ACPI patching, create a separate thread as it's off-topic.
 
Hi again

I solve more problems i think.


Now i have "no microphone" and sleep not works.

>USB
Also please give me a guide how to understand if i fix Usb (there is inform that about speed? how to check )?
I install like this

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

and

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


>>About Audio

I dont know what is going on.....

I use HDApatcher 1.9 and choose Laptop Conexant CX20757
After i install AppleHDA.kext with kext utility

Also i made this

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"

After this i Reset but nothing works.

Then i try AppleALC.kext install in Efi/Clover/Kexts/other and it works but it Did not have microphone.

****Another time i use Hackintosh Vietnam Tool and install audio From there and everything works ok.

SEE attachment picture

>SSDTPRGEN (No sleep)

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

Then i copy SSDT.aml to EFI patched folder

I use MacBookPro 10.1


THANK you very much!!
 

Attachments

  • Screenshot 2020-12-28 at 21.24.56.png
    Screenshot 2020-12-28 at 21.24.56.png
    123.5 KB · Views: 197
  • Screenshot 2020-12-28 at 21.25.37.png
    Screenshot 2020-12-28 at 21.25.37.png
    119.5 KB · Views: 203
Hi again

I solve more problems i think.


Now i have "no microphone" and sleep not works.

>USB
Also please give me a guide how to understand if i fix Usb (there is inform that about speed? how to check )?
I install like this

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

and

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


>>About Audio

I dont know what is going on.....

I use HDApatcher 1.9 and choose Laptop Conexant CX20757
After i install AppleHDA.kext with kext utility

Also i made this

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"

After this i Reset but nothing works.

Then i try AppleALC.kext install in Efi/Clover/Kexts/other and it works but it Did not have microphone.

****Another time i use Hackintosh Vietnam Tool and install audio From there and everything works ok.

SEE attachment picture

>SSDTPRGEN (No sleep)

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

Then i copy SSDT.aml to EFI patched folder

I use MacBookPro 10.1


THANK you very much!!
Create a separate thread. You either patch AppleHDA or use AppleALC. Do NOT use both. AppleALC is a preferred method.
 

Latest posts

Forum statistics

Threads
1,898
Messages
17,633
Members
27,373
Latest member
mina