Contribute
Register

[Guide] Lenovo Legion Y520/Y720 using Clover UEFI

the-braveknight

Moderator
Joined
Nov 24, 2015
Messages
1,245
Motherboard
Lenovo Legion Y520 (Clover)
CPU
i7-7700HQ
Graphics
HD 630 (1920x1080) + Nvidia GTX 1060
Mac
MacBook Air
Mobile Phone
iOS
The trick is to force WEG to ignore hardware and load Skylake stuff. You can do it by editing kern_igfx.cpp and hardcoding Skylake values, or you can use Rehabman's WEG patches from his spoof_fix2 WEG branch: https://github.com/RehabMan/WhateverGreen/tree/spoof_fix2. Rehabman's approach is better because it's more generic, but you will have to merge it with a new WEG code and resolve a few merging conflicts. Either approach requires putting Skylake IDs into .aml files, in our case that would be SSDT-Y520.aml.
Could you tell me why anyone would need to spoof for Skylake?
 
Joined
Apr 5, 2011
Messages
49
Motherboard
Lenovo Y520-15ikbm (Clover UEFI)
CPU
i7-7700HQ
Graphics
HD 630 + GTX 1060 1920x1080
Mac
MacBook Pro
Mobile Phone
Android
Could you tell me why anyone would need to spoof for Skylake?
Apparently there is a batch of Y520-15IKBN laptops which screen is blank without the SL spoof. I am still failing to understand what's the difference with these units and why they require this hack.
 
Joined
Mar 2, 2016
Messages
9
Motherboard
Y520
CPU
7300HQ
Graphics
630 / 1050TI
Mac
MacBook Pro
Mobile Phone
iOS
Apparently there is a batch of Y520-15IKBN laptops which screen is blank without the SL spoof. I am still failing to understand what's the difference with these units and why they require this hack.
Maybe it's because my Y520 is not a 'real' Y520. It's a re-brand from Medion. But the board is being recognized as Y520 by clover by itself. It's a Lenovo Y520, but with the outer shell of Medion. Dimensions, ports everything looks the same except they used the color blue in their design.

'Everything' works with the Skylake spoof now.



A little review from a Dutch guy were he says they are the same.
 

the-braveknight

Moderator
Joined
Nov 24, 2015
Messages
1,245
Motherboard
Lenovo Legion Y520 (Clover)
CPU
i7-7700HQ
Graphics
HD 630 (1920x1080) + Nvidia GTX 1060
Mac
MacBook Air
Mobile Phone
iOS
Apparently there is a batch of Y520-15IKBN laptops which screen is blank without the SL spoof. I am still failing to understand what's the difference with these units and why they require this hack.
I’m sure there is another fix that could be implemented. If you get more data, please let me know so that I can add the proper fix to the repo. Spoofing for Skylake isn’t a long-term solution.
 
Joined
Apr 5, 2011
Messages
49
Motherboard
Lenovo Y520-15ikbm (Clover UEFI)
CPU
i7-7700HQ
Graphics
HD 630 + GTX 1060 1920x1080
Mac
MacBook Pro
Mobile Phone
Android
Maybe it's because my Y520 is not a 'real' Y520. It's a re-brand from Medion. But the board is being recognized as Y520 by clover by itself. It's a Lenovo Y520, but with the outer shell of Medion. Dimensions, ports everything looks the same except they used the color blue in their design.
Mine is a regular Y520, at least on the outside.

I’m sure there is another fix that could be implemented. If you get more data, please let me know so that I can add the proper fix to the repo. Spoofing for Skylake isn’t a long-term solution.
This laptop worked fine on HS with old IntelGraphicsFixup method. WEG obviously does something different but I couldn't identify the problem. My best guess is that the problem is somewhere in the display ports configuration. Please tell me if you have any suggestions where to go from here.
 

the-braveknight

Moderator
Joined
Nov 24, 2015
Messages
1,245
Motherboard
Lenovo Legion Y520 (Clover)
CPU
i7-7700HQ
Graphics
HD 630 (1920x1080) + Nvidia GTX 1060
Mac
MacBook Air
Mobile Phone
iOS
Mine is a regular Y520, at least on the outside.



This laptop worked fine on HS with old IntelGraphicsFixup method. WEG obviously does something different but I couldn't identify the problem. My best guess is that the problem is somewhere in the display ports configuration. Please tell me if you have any suggestions where to go from here.
I will need IOReg and complete PR files from both black screen and the fix (SKL spoof) scenarios.
 
Joined
Oct 4, 2018
Messages
75
Motherboard
Lenovo Legion Y520-15IKBN-80WK-Clover
CPU
i5-7300HQ
Graphics
HD 630 + GTX 1050 Ti 1920x1080
Mobile Phone
iOS
@the-braveknight
As suggested on github issue, heres the bug report files.
I couldn't recreate the bluetooth issue as I am not entirely sure what causes it. Maybe really long sleep?
Anyways, ioreg dump of bluetooth issue present is also in the .zip
 

Attachments

the-braveknight

Moderator
Joined
Nov 24, 2015
Messages
1,245
Motherboard
Lenovo Legion Y520 (Clover)
CPU
i7-7700HQ
Graphics
HD 630 (1920x1080) + Nvidia GTX 1060
Mac
MacBook Air
Mobile Phone
iOS
@the-braveknight
As suggested on github issue, heres the bug report files.
I couldn't recreate the bluetooth issue as I am not entirely sure what causes it. Maybe really long sleep?
Anyways, ioreg dump of bluetooth issue present is also in the .zip
I really have no idea. Everything appears to be OK in the IORegs. Perhaps a bug in BrcmPatchRAM2.kext.

Update: Is "Fast Boot" disabled in BIOS?
 
Last edited:
Joined
Oct 4, 2018
Messages
75
Motherboard
Lenovo Legion Y520-15IKBN-80WK-Clover
CPU
i5-7300HQ
Graphics
HD 630 + GTX 1050 Ti 1920x1080
Mobile Phone
iOS
I really have no idea. Everything appears to be OK in the IORegs. Perhaps a bug in BrcmPatchRAM2.kext.

Update: Is "Fast Boot" disabled in BIOS?
Did you check the additional .ioreg dump of when bluetooth stopped working? In it there appears to be 2 entries for the bluetooth controller (attached image)
Fast Boot is disabled, just checked.
 

Attachments

Last edited:

the-braveknight

Moderator
Joined
Nov 24, 2015
Messages
1,245
Motherboard
Lenovo Legion Y520 (Clover)
CPU
i7-7700HQ
Graphics
HD 630 (1920x1080) + Nvidia GTX 1060
Mac
MacBook Air
Mobile Phone
iOS
Did you check the additional .ioreg dump of when bluetooth stopped working?
Yes. The non-working state IOReg seems to be OK.
Does your BT not get recognized? Or what do you actually mean by it not working?
 
Top