Contribute
Register

[Guide] Lenovo Legion Y520/Y720 using Clover UEFI

Joined
Feb 15, 2020
Messages
9
Motherboard
Lenovo Y720
CPU
I7 7700K
Graphics
1060ti
I haven't yet figured out how to get Num Lock functionality to work, however you can use a custom map with VoodooPS2Keyboard to map out the num-pad keys like so:
View attachment 444857
[/spoiler\This isn't a very good solution but it does work.
Note: I haven't mapped the top row as I frequently use the media controls, this can be solved by using a modifier but I am too lazy to work it out.
hello. i tried to use, change custom ADB map in .kext and reinstall this kext, but nothing changes. Numpud keys number 4,5,6, is not actived
 
Joined
Sep 10, 2016
Messages
23
Motherboard
Lenovo legion Y520
CPU
i5-7300HQ / HM175
Graphics
RX 560m + HD 630
Mobile Phone
  1. Android
  2. iOS
Hello guys! Are there any news about rx560 version (i.e. it's support) of this laptop?
 
Joined
May 22, 2019
Messages
13
Motherboard
Lenovo Legion Y720-15IKB
CPU
i7-7700HQ
Graphics
HD 630 + GTX 1060
I had a working version of 10.14 but I tried to upgrade to 10.15.4 using clover r5107 with the latest drivers and kext. The upgrade installation is fine. But when trying to boot into the OS I am getting this error at the end:
"apfs_keybagg_init 1583 failed to initialized volume keybag, err=2" I have also added -disablegfxfirmware to boot flag. I also notice I get applekeystore operation failed when i use -v.

I fixed my issue by creating a new volume with in APFS container and using startosinstall method to install Catalina. Then it booted fine and transfer all data from broken volume.

Now I have Catalina 10.15.4 installed.
 
Last edited:
Joined
Oct 18, 2019
Messages
2
Motherboard
md101
CPU
2 core
Graphics
intel
I had a working version of 10.14 but I tried to upgrade to 10.15.4 using clover r5107 with the latest drivers and kext. The upgrade installation is fine. But when trying to boot into the OS I am getting this error at the end:
"apfs_keybagg_init 1583 failed to initialized volume keybag, err=2" I have also added -disablegfxfirmware to boot flag. I also notice I get applekeystore operation failed when i use -v.

I fixed my issue by creating a new volume with in APFS container and using startosinstall method to install Catalina. Then it booted fine and transfer all data from broken volume.

Now I have Catalina 10.15.4 installed.
Hi, I am trying to install catalina on my legion Y520 (i7-7700HQ HD 630 + GTX 1050Ti) but i got "Please go to https://panic.apple.com to report this panic" when I am booting to the installation. could you share your config.plist? Thanks in advance.
 
Joined
May 22, 2019
Messages
13
Motherboard
Lenovo Legion Y720-15IKB
CPU
i7-7700HQ
Graphics
HD 630 + GTX 1060
Hi, I am trying to install catalina on my legion Y520 (i7-7700HQ HD 630 + GTX 1050Ti) but i got "Please go to https://panic.apple.com to report this panic" when I am booting to the installation. could you share your config.plist? Thanks in advance.

You wouldn't be able to use my config.plist since you have Y520 as I have Y720. You should be able to use https://github.com/the-braveknight/Lenovo-Y520-macOS/blob/master/config_y520.plist

You would need to follow the instructions to generate your own BoardSerialNumber, SerialNumber, and SmUUID.

You can use the following drivers and kext. These are the latest ones which I used with clover version r5107.
driver - https://1drv.ms/u/s!AhwGgPhna5RBvxCwBe1czu9zGRwp?e=hsrMCU
kext - https://1drv.ms/u/s!AhwGgPhna5RBvxF99kZjWpuq8nYs?e=e1hoWr

For the voodoops2controller, i used RehabMan from here https://bitbucket.org/RehabMan/os-x-voodoo-ps2-controller/downloads/

The acidanthera one didn't work. But most of the kext all came from acidanthera repos.

Hope this will help you. I'll be removing the driver and kext when your done.

Due to next weekend is long weekend, I might have time to convert clover to opencore. Been reading on how other people convert clover to opencore.
 
Joined
Oct 18, 2019
Messages
2
Motherboard
md101
CPU
2 core
Graphics
intel
You wouldn't be able to use my config.plist since you have Y520 as I have Y720. You should be able to use https://github.com/the-braveknight/Lenovo-Y520-macOS/blob/master/config_y520.plist

You would need to follow the instructions to generate your own BoardSerialNumber, SerialNumber, and SmUUID.

You can use the following drivers and kext. These are the latest ones which I used with clover version r5107.
driver - https://1drv.ms/u/s!AhwGgPhna5RBvxCwBe1czu9zGRwp?e=hsrMCU
kext - https://1drv.ms/u/s!AhwGgPhna5RBvxF99kZjWpuq8nYs?e=e1hoWr

For the voodoops2controller, i used RehabMan from here https://bitbucket.org/RehabMan/os-x-voodoo-ps2-controller/downloads/

The acidanthera one didn't work. But most of the kext all came from acidanthera repos.

Hope this will help you. I'll be removing the driver and kext when your done.

Due to next weekend is long weekend, I might have time to convert clover to opencore. Been reading on how other people convert clover to opencore.
Hi? I don't even know why. but now it works very well. So I used clover r5108 and after I replaced the driver and the kext from yours. now it works! Thanks a lot.
 
Joined
May 22, 2019
Messages
13
Motherboard
Lenovo Legion Y720-15IKB
CPU
i7-7700HQ
Graphics
HD 630 + GTX 1060
Hi? I don't even know why. but now it works very well. So I used clover r5108 and after I replaced the driver and the kext from yours. now it works! Thanks a lot.
You're welcome. You might had old drivers which Catalina doesn't like. I will be removing the files from the share drive.
 
Joined
Apr 1, 2020
Messages
12
Motherboard
Lenovo Legion Y520 - i5IKBN
CPU
i5 7300 HQ
Graphics
HD 630 + GTX 1050
Mac
  1. MacBook
Classic Mac
  1. PowerBook
Mobile Phone
  1. Android
Overview

The purpose of this guide is to provide a step-by-step guide to installing Mojave, High Sierra, or Sierra (10.12.6) on the Lenovo Legion Y520/Y720 laptop series.

Note: This series of laptops doesn't appear to have a WiFi whitelist, so you don't need any BIOS modifications.


What you need

- Lenovo Legion Y520 (or Y720).
- Mojave, High Sierra, Sierra, or El Capitan downloaded from the Mac App Store.
- 8GB USB stick.
- Broadcom BCM94352Z for native WiFi.
Hey the-braveknight, I just had a query, the wifi card you mention (Broadcom BCM94352Z), which version is compatible with the Lenovo legion y520? ( as Lenovo docs mention some sort of a whitelist, and don't mention this specific wifi chipset as part of the list = Link to the resource I mention : https://pcsupport.lenovo.com/in/en/...ion-y520-15ikbn/80wk/parts/display/compatible )

Here is my model number : Lenovo Legion y520 15IKBN : 80WK
I am currently on macOS Catalina, with a separate working install of macOS Mojave on the same drive for 32 bit app support purposes.
Here is my EFI folder (if needed):
 

Attachments

  • EFI.zip
    23.7 MB · Views: 64
Joined
Jun 20, 2018
Messages
3
Motherboard
Lenovo Legion Y520
CPU
i7 7700HQ
Graphics
HD630, 1920x1080
Overview

The purpose of this guide is to provide a step-by-step guide to installing Mojave, High Sierra, or Sierra (10.12.6) on the Lenovo Legion Y520/Y720 laptop series.

Note: This series of laptops doesn't appear to have a WiFi whitelist, so you don't need any BIOS modifications.


What you need

- Lenovo Legion Y520 (or Y720).
- Mojave, High Sierra, Sierra, or El Capitan downloaded from the Mac App Store.
- 8GB USB stick.
- Broadcom BCM94352Z for native WiFi.


BIOS settings

To start, set BIOS to defaults.

Then insure:
- UEFI boot is enabled.
- Secure boot is disabled.
- Fast boot is disabled.
- SATA mode is set to AHCI.


Preparing USB and initial Installation

This guide for creating USB and installing using Clover UEFI works well for this laptop: [Guide] Booting the OS X installer on LAPTOPS with Clover

Special notes:

- 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 Lilu.kext and AirportBrcmFixup.kext to Clover/kexts/Other. This will enable WiFi, provided you have the BCM94352Z WiFi card already installed.

Note: Lilu.kext and AirportBrcmFixup.kext are available here: https://github.com/acidanthera/Lilu/releases, https://github.com/acidanthera/AirportBrcmFixup/releases.

- Use the 'createinstallmedia' approach. It works well, and there is little chance for pilot error. This method also gives you a recovery partition.

- Use the config_install.plist from the Y520 repo here: https://github.com/the-braveknight/Lenovo-Y520-macOS.


Post Installation

Install Clover UEFI as described in the guide linked by the previous section (post #2). After installing Clover, and configuring it correctly (config.plist, kexts, etc) you should be able to boot from the HDD/SSD.

But there are still many issues and devices that won't work correctly. For that, we need to patch DSDT, provide a proper config.plist, and install the kexts that are required.

Since you have RealtekRTL8111.kext already injected by Clover, you should have internet access simply by using an Ethernet cable to your router. Plug it in and make sure you have internet access before continuing. Or if you're using Lilu.kext and AirportBrcmFixup.kext, you can connect to your WiFi router before continuing.

Installation of the tools and patching is easy provided the scripts and tools at the Lenovo Y520 repository: https://github.com/the-braveknight/Lenovo-Y520-macOS.

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

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 get a couple of projects from my github.

In Terminal:
Code:
mkdir ~/Projects
cd ~/Projects
git clone https://github.com/the-braveknight/Lenovo-Y520-macOS legion.git

Now it is time to install some more tools and all the kexts that are required...
Code:
cd ~/Projects/legion.git
./Y520.sh --download-requirements
./Y520.sh --install-downloads

Or if you have Y720:
Code:
cd ~/Projects/legion.git
./Y720.sh --download-requirements
./Y720.sh --install-downloads

The '--download-requirements' command will automatically gather the latest version of all tools (patchmatic, iasl, MaciASL) and all the kexts (VirtualSMC.kext, SMCBatteryManager.kext, etc) from their release points. The '--install-downloads' will automatically install them to the proper locations.

Note: The current repo can be considered somewhat experimental. It uses the new SMC kext (VirtualSMC.kext) instead of FakeSMC.kext. If you have any problem with VirutalSMC.kext, replace it with RehabMan's FakeSMC.kext available here: https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek/downloads/.
Also make sure to remove SMCBatteryManager.kext too and install RehabMan's ACPIBatteryManager.kext available here: https://bitbucket.org/RehabMan/os-x-acpi-battery-driver/downloads/.

Note: My Y520 has a Synaptics trackpad. But some of these Y520 laptops are coming with an ELAN trackpad instead. I'm not going to link the ELAN trackpad kext due to the author's disregard for the open source license, but you can find it on the internet. Also keep in mind that the ELAN kext has not been updated in more than a year, so do not expect it to work properly.

The Y520's DSDT USB ports have correct _UPC/_PLD objects so USBInjectAll.kext is not needed. However, the Y720's DSDT port configuration aren't correct, so the current repo corrects those ports by injecting the the right _UPC configuration for each port.

Note: The Y720 appears to have I2C trackpad and USB keyboard. For those machines, I suggest looking at VoodooI2C project here: https://github.com/alexandred/VoodooI2C.

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

In Terminal:
Code:
make
make install_y520

Or for the Y720:
Code:
make
make install_y720

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

Finally, 'make install_y520' or 'make install_y720', mounts the EFI partition, and copies the built files where they can be loaded by Clover (to EFI/Clover/ACPI/patched).

Note: No actual patching of DSDT/SSDT is happening here. We are simply building an add-on SSDT (SSDT-Y520.aml or SSDT-Y720.aml) which provides the necessary changes. This is because these machines require only minimal patching so a full patched DSDT is not needed.

Power Management

Everything required for CPU/IGPU power management is already installed with the steps above.
There is no longer any need to use the ssdtPRgen.sh script.

Be aware that hibernation (suspend to disk or S4 sleep) is not well supported on hackintosh.

You should disable it:
Code:
sudo pmset -a hibernatemode 0
sudo rm /var/vm/sleepimage
sudo mkdir /var/vm/sleepimage

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 ACPI files are in place (previous two steps), you're ready to use the final config.plist from the y520 repo.

In Terminal:
Code:
cd ~/Projects/legion.git
./Y520.sh --install-config

Or if you have Y720:
Code:
cd ~/Projects/legion.git
./Y720.sh --install-config

You could also copy the file using Finder.

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.

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.

Note: The config.plist in the repo is using MacBookPro14,1. It works. You could also use MacBookPro11,1 to avoid problems related to HWP.

Note regarding HDMI/DP ports: These ports are connected to the Nvidia GTX1050 (or GTX1060) card, which is disabled. Therefore those ports will never work on macOS. The provided config_y520.plist/config_y720.plist completely disables all the external framebuffer ports.


Do not stop reading

Although most of the post-install tasks are done, continue to read this guide. 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".


Updates to the patch repositories

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

Since you're using git, it is easy...

In Terminal:
Code:
cd ~/Projects/legion.git
./Y520.sh --update # or ./Y720.sh --update # to save any local changes you might have made and update repo to latest
./Y520.sh --download-requirements # or ./Y720.sh --download-requirements
./Y520.sh --install-downloads # or ./Y720.sh --install-downloads
./Y520.sh --update-config # or ./Y720.sh --update-config
make clean
make
make install_y520 # or make install_y720


What works

- UEFI booting via Clover.
- Built-in keyboard (with special function keys).
- Built-in trackpad (basic gestures).
- AirPlay mirroring to AppleTV.
- Native WiFi via BCM94352Z.
- Bluetooth (with handoff) using BCM94352Z.
- Native USB3/USB2/USB-C.
- Native audio with AppleHDA, including headphones.
- Built-in camera.
- Native power management.
- Battery status.
- Backlight controls.
- Accelerated graphics for HD630 including OpenCL.
- Wired Ethernet.
- Mac App Store working.
- Messages/FaceTime.


Not tested/not working

- USB 3.1 Type-C port on the Y720 doesn't work properly because it's connected to the TB device (not XHC). It works only if the device is plugged in prior to booting, hotplug is not working/not reliable. There are current solutions being worked on, but no 100% solution AFAIK.
- HDMI/DP video/audio don't work because those ports are connected to the Nvidia card, which is disabled.


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:
sudo kextcache -i /

- Reboot normally (if needed, two times)


Other post-install tasks

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

Trackpad three finger support: You can configure three finger swipes in SysPrefs->Keyboard->Shortcuts. Instead of pressing keys for a given function, do the three finger swipe (up/down/left/right).

Disable trackpad when using an external mouse: The latest script installs the latest VoodooPS2Controller.kext. It allows you to disable the built-in trackpad when a USB mouse is plugged in. Just check the box in SysPrefs->Accessibility->"Mouse & Trackpad".

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


Problem Reporting

Read the FAQ here: [FAQ] READ FIRST! Laptop Frequent Questions.


Credits

@RehabMan: his repos, guides, kexts, tools, and scripts.
Thank you for your enthusiastic guidance. Please let me ask, is it suitable for the Catalina version? And will you be able to do a detailed guide for Catalina with the Lenovo Legion Y520? Thank you !
 
Joined
Apr 1, 2020
Messages
12
Motherboard
Lenovo Legion Y520 - i5IKBN
CPU
i5 7300 HQ
Graphics
HD 630 + GTX 1050
Mac
  1. MacBook
Classic Mac
  1. PowerBook
Mobile Phone
  1. Android
Thank you for your enthusiastic guidance. Please let me ask, is it suitable for the Catalina version? And will you be able to do a detailed guide for Catalina with the Lenovo Legion Y520? Thank you !
Hey bud, I'm running catalina atm, this guide is perfect for it. The only thing you'll probably need to do is to upgrade your clover to the latest version, and then you can ez boot into catalina. For me, all kexts worked with no problem, and I managed to create a dual boot with catalina and Mojave for 32 bit app support.
 
Top