Lenovo G50-70/G40-70 using Clover UEFI (10.11)

Overview

The purpose of this guide is to provide a step-by-step guide to installing El Capitan/Yosemite on the Lenovo G50-70 laptops. Please note I do not have this laptop, but since it is very similar to my Z50-70 laptop, I decided to provide this guide.

Note: This guide is completely based on RehabMan’s guides and scripts, I take no credits for this guide, I only modified his scripts and tools to match the G50-70.

The laptop BIOS implements a WiFi whitelist, which must be defeated in order to install an OS X compatible WiFi card.

What you need

– Lenovo G50-70 or G40-70
– OS X El Capitan or Yosemite downloaded from the Mac App Store
– 8GB USB stick
– Broadcom BCM94352Z for native WiFi/BT

BIOS settings

To start, set BIOS to Windows defaults.

Then insure:
– UEFI boot is enabled
– secure boot is disabled
– enable Legacy Boot (but UEFI first) and you may experience less boot time glitches

Note: If your laptop has a discrete graphics card (AMD), keep it enabled in BIOS. It will be disabled automatically by SSDT-AMD.aml when running OS X.

Preparing USB and initial Installation

– Use the ‘createinstallmedia’ approach. It works well, and there is little chance for pilot error. This method also gives you an OS X recovery partition. Follow RehabMan’s guide here > [Guide] Booting the OS X Installers on LAPTOPS with Clover.

– Definitely copy RealtekRTL8111.kext to Clover/kexts/Other as having network support during post-install is helpful. The rest of this guide depends on it. An alternate is to copy FakePCIID.kext and FakePCIID_Broadcom_WiFi.kext to Clover/kexts/Other. This will enable WiFi, provided you have the BCM94352Z WiFi card already installed.

Note: FakePCIID.kext and FakePCIID_Broadcom_WiFi.kext are available here: https://github.com/RehabMan/OS-X-Fake-PCI-ID

– Some of the G50-70 laptops have ELAN touchpad so RehabMan’s VoodoPS2Controller.kext might not work. An alternate is to download ELAN kext from the G50 repo.

– GenericUSBXHCI.kext is not necessary with this laptop since AppleUSBXHCI.kext appears to work well natively. Also, GenericUSBXHCI.kext does not work on 10.11 so it should not be used.

– Use the config_install.plist from the G50 repo: https://github.com/the-braveknight/Lenovo-G50-DSDT-Patch/raw/master/config_install.plist

Post Installation

– Downlad Clover UEFI from here : Clover UEFI Bootloader
– Install Clover UEFI to your internal SSD/HDD and make sure you click ‘Customize’ and select:
– Install for UEFI booting only
– Install Clover in the ESP
– Dirvers64UEFI > OsxAptioFixDrv-64

– Copy HFSPlus.efi to drivers64UEFI folder.

Installation of the tools and patching is easy provided the scripts and tools at the repository: http://github.com/the-braveknight/Lenovo-G50-DSDT-Patch

To start, the developer tools must be installed. Run Terminal, and type:

Code (Text):

You will be prompted to install the developer tools. Since you have internet working, you can choose to have it download and install them automatically. Do that before continuing.

After the developer tools are installed, we need to make a copy of the project on github.

In Terminal:

Code (Text):

Now it is time to install some more tools and all the kexts that are required…

To download the kexts & tools, in Terminal:

Code (Text):

To install:

Code (Text):

Or if you have an ELAN trackpad:

Code (Text):

The download.sh script will automatically gather the latest version of all tools (patchmatic, iasl, MaciASL) and all the kexts (IntelBacklight.kext, ACPIBatteryManager.kext, etc) from bitbucket. The install_downloads.sh will automatically install them to the proper locations.

If you wish, you can reboot to verify a few more items are working (many only partially).

To finish the setup, we need a correctly patched DSDT/SSDT.

With the current project, no patched DSDT/SSDTs are used. Instead I use Clover hotpatches and a group of small SSDTs.

In Terminal:

Code (Text):

The ‘make’ causes the patched files to be compiled (with iasl), the results placed in ./build.

Finally, ‘make install’, mounts the EFI partition, and copies the built files where they can be loaded by Clover (to EFI/Clover/ACPI/patched).

Power Management

Use the ssdtPRgen.sh script by Pike R. Alpha: https://github.com/Piker-Alpha/ssdtPRGen.sh

Instructions for using it are provided in the README.

The generated SSDT.aml should be placed on the EFI partition at /EFI/Clover/ACPI/patched/SSDT.aml.

Based on the current instructions at the README, what follows is a synopsis…

To prepare, you only need to do the first two commands:

In Terminal:

Code (Text):

Then you can run the script:

Code (Text):

When it asks if you want to copy to /Extra just respond ‘n’. Same for opening ssdt.dsl… respond ‘n’.

The results are at ~/Library/ssdtPRgen/SSDT.aml.

Copy that file to EFI partition, /EFI/Clover/ACPI/patched/SSDT.aml

Code (Text):

Also, be aware that hibernation (suspend to disk or S4 sleep) is not supported on hackintosh.

You should disable it:

Code (Text):

Always check your hibernatemode after updates and disable it. System updates tend to re-enable it, although the trick above (making sleepimage a directory) tends to help.

Final config.plist
Up to now, you’ve been using the same config.plist we were using for installation. After all the APCI files are in place (previous two steps), you’re ready to use the final config.plist from the g50 repo.

First, mount the EFI partition:

Code (Text):

Then copy the file:

Code (Text):

After copying the config.plist from the repo to EFI/Clover/config.plist, you should customize the SMBIOS so you have a unique serial. You can use Clover Configurator to do this (use google to find/download it). DO NOT use Clover Configurator to edit your actual config.plist. Instead edit a “dummy” config.plist to create the SMBIOS data and then use copy/paste with a plist editor (I use Xcode) to copy the SMBIOS section into my active config.plist. Clover Configurator is too buggy and cannot be trusted with edits to your real config.plist. This guide uses MacBookPro11,1. Do not use any other model identifier.

Repeat: DO NOT edit your config.plist with Clover Configurator. Clover Configurator will erase important settings from the config.plist, and as a result, it will not work.

Do not stop reading

Although most of the post-install tasks are done, continue to read this guide. It it has important information you should know about.

Be sure to visit “Known Problems”, especially the instructions in the “Audio:” section. Typically, even after completing all the above tasks, audio will not work on the first reboot. You must follow the specific instructions in that section in order to get the audio kexts in cache.

In the case of a problem, don’t bother asking about with without all files requested in “Problem Reporting”.

BIOS mods for compatible WiFi installation

The laptop BIOS implements a WiFi whitelist, which must be defeated in order to install an OS X compatible WiFi card.

See this guide for more info: http://www.tonymacx86.com/el-capita…ovo-g50-70-z50-70-bios-whitelist-removal.html

WiFi using BCM94352Z

The ./download.sh and ./install_downloads.sh script have both been updated to install the necessary kexts for BCM94352Z.

Updates to the patch repositories

From time to time, updates may become available to the project repository. In the event of such updates, you may want to update your copies, and re-patch DSDT/SSDT with the updates.

Since you’re using git, it is easy…

In Terminal:

Code (Text):

What works

– UEFI booting via Clover
– built-in keyboard (with special function keys)
– built-in trackpad (basic gestures)
– HDMI video/audio with hotplug
– AirPlay mirroring to AppleTV
– native WiFi via BCM94352Z
– Bluetooth (with handoff) using BCM94352Z
– native USB3 with AppleUSBXHCI (USB2 works also)
– native audio with AppleHDA, including headphone
– built-in mic
– built-in camera
– native power management
– battery status
– backlight controls with smooth transitions, save/restore across restart
– accelerated graphics for HD4400 including OpenCL
– wired Ethernet
– Mac App Store working
– screen works without flicker
– Messages/FaceTime (working on 10.10.3 even though I didn’t run through the guide: http://www.tonymacx86.com/general-help/110471-how-fix-imessage.html)

Known Problems

Find My Mac/Locking: Find My Mac does not work properly. Don’t lock your mac because it’s difficult (or impossible) to unlock again.

Slow WiFi after sleep/wake cycle: Disable “Wake for network access” in SysPrefs->Energy Saver.

Audio: After installing new/updated kexts or after the initial installation, you may lose audio.

To fix:
– reboot without caches (hit space at Clover, select without caches)
– rebuild cache

Code (Text):

– reboot normally (if needed, two times)

Audio: External mic via combo headphone/mic jack is not working.

CPU Frequency: Clover identifies the CPU speed (as shown in “About this Mac”) incorrectly. On my system (2.0Ghz Core i7-4510u), it shows 2.59Ghz. This appears to be cosmetic. You can fix it by overriding Clover logic with config.plist/CPU/FrequencyMHz. You will see how my setting is commented in the config.plist. Set it as appropriate for your own CPU.

Other post-install tasks

Trackpad: Be sure to visit the options in SysPrefs->Trackpad and change them to your liking.

Bluetooth: If you get the Bluetooth Setup Assistant popup, go to SysPrefs->Bluetooth->Advanced, uncheck the boxes.

Problem Reporting

Download patchmatic: https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/RehabMan-patchmatic-2015-0107.zip
Extract the ‘patchmatic’ binary from the ZIP. Copy it to /usr/bin, such that you have the binary at /usr/bin/patchmatic.

In terminal,

Code (Text):

Note: It is easier if you use copy/paste instead of typing the commands manually.

Post contents of Downloads/RehabMan directory (as ZIP).

Also, post ioreg: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.

And output from:

Code (Text):

Also, post EFI/Clover folder (press F4 at main Clover screen before collecting). Please eliminate ‘themes’ directory, especially if you have an overabundance of themes installed.

Also post output of:

Code (Text):

Credits

RehabMan for his repos, tools, guides, and scripts.

Lenovo G50-70 Laptop Computer - 59427090 - Black - 4th Generation Intel Core i7-4510U (2.00GHz 1600 MHz 4MB)

$665.00
3 new from $665.00
2 used from $486.00
Last update was in: January 22, 2017 2:04 pm GMT

We will be happy to hear your thoughts

Leave a reply