Contribute
Register

[Guide] Lenovo Z50-70/Z40-70/G50-70/G40-70 using Clover UEFI

the-braveknight

Moderator
Joined
Nov 24, 2015
Messages
1,225
Motherboard
Lenovo Legion Y520 (Clover)
CPU
i7-7700HQ
Graphics
HD 630 (1920x1080) + Nvidia GTX 1060
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Please note that the 'beta' branch changes were merged into the 'master' branch.
I could test those changes on one of my friend's Z50 machine and it appears to be working good so far.

Also note that ELAN kext support was dropped due to author's disregard to APSL license. Unfortunately, the author doesn't seem to be keen on updating and maintaining the driver and it appears to be having serious issues on Mojave.

Please test and let me know.
 
Joined
Jun 8, 2017
Messages
58
Motherboard
Lenovo G40-70-Clover
CPU
i3-4005U
Graphics
HD 4400
Mobile Phone
  1. Android
  2. iOS
Updating to the latest version somehow left me with broken audio, battery indicator, and graphics..
To make sure that I download the latest from the repo, I deleted the lenovo.git folder and made a 'git clone' command again.
Unfortunately the issue is still the same.

Also note that ELAN kext support was dropped due to author's disregard to APSL license. Unfortunately, the author doesn't seem to be keen on updating and maintaining the driver and it appears to be having serious issues on Mojave.

Can you specify the issue (or maybe the links) of the problem? I'm not having any problems in my initial testing.

Here are my files below. Thank you.
 

Attachments

  • debug_26353.zip
    2 MB · Views: 24

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,309
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Updating to the latest version somehow left me with broken audio, battery indicator, and graphics..
To make sure that I download the latest from the repo, I deleted the lenovo.git folder and made a 'git clone' command again.
Unfortunately the issue is still the same.



Can you specify the issue (or maybe the links) of the problem? I'm not having any problems in my initial testing.

Here are my files below. Thank you.

Did you remember to update your config.plist.
Seems that the _UPC objects are not being renamed so make room for SSDT-G50.aml redefining them.
 
Joined
Jun 8, 2017
Messages
58
Motherboard
Lenovo G40-70-Clover
CPU
i3-4005U
Graphics
HD 4400
Mobile Phone
  1. Android
  2. iOS
Did you remember to update your config.plist.
Seems that the _UPC objects are not being renamed so make room for SSDT-G50.aml redefining them.

I checked my config.plist and indeed, there was no entry for the UPC rename.
I successfully updated my plist, yet the problem still persists after rebooting. (audio, graphics, and battery status)
I also tried to do the 'Update' steps mentioned in the guide, still the same problem.
 

Attachments

  • debug_27279.zip
    2.1 MB · Views: 22

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,309
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
I checked my config.plist and indeed, there was no entry for the UPC rename.
I successfully updated my plist, yet the problem still persists after rebooting. (audio, graphics, and battery status)
I also tried to do the 'Update' steps mentioned in the guide, still the same problem.

The patch marked "Change Method(UPC,0,N) to XUPC" is not working for your DSDT.
Your DSDT uses Serialized, instead of NotSerialized:
Code:
                Device (HS01)
                {
                    Name (_ADR, One)  // _ADR: Address
                    Name (_STA, 0x0F)  // _STA: Status
                    Method (_UPC, 0, Serialized)  // _UPC: USB Port Capabilities

For Serialized, it would be:
Comment: Change Method(_UPC,0,S) to XUPC
Find: <5f555043 08>
Replace: <58555043 08>
 
Last edited:
Joined
Jun 8, 2017
Messages
58
Motherboard
Lenovo G40-70-Clover
CPU
i3-4005U
Graphics
HD 4400
Mobile Phone
  1. Android
  2. iOS
The patch marked "Change Method(UPC,0,N) to XUPC" is not working for your DSDT.
Your DSDT uses Serialized, instead of NotSerialized:
Code:
                Device (HS01)
                {
                    Name (_ADR, One)  // _ADR: Address
                    Name (_STA, 0x0F)  // _STA: Status
                    Method (_UPC, 0, Serialized)  // _UPC: USB Port Capabilities

For Serialized, it would be:
Comment: Change Method(_UPC,0,N) to XUPC
Find: <5f555043 08>
Replace: <58555043 08>

This fixed the 3 issues I've had. Thank you very much!
 

the-braveknight

Moderator
Joined
Nov 24, 2015
Messages
1,225
Motherboard
Lenovo Legion Y520 (Clover)
CPU
i7-7700HQ
Graphics
HD 630 (1920x1080) + Nvidia GTX 1060
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
The patch marked "Change Method(UPC,0,N) to XUPC" is not working for your DSDT.
Your DSDT uses Serialized, instead of NotSerialized:
Code:
                Device (HS01)
                {
                    Name (_ADR, One)  // _ADR: Address
                    Name (_STA, 0x0F)  // _STA: Status
                    Method (_UPC, 0, Serialized)  // _UPC: USB Port Capabilities

For Serialized, it would be:
Comment: Change Method(_UPC,0,N) to XUPC
Find: <5f555043 08>
Replace: <58555043 08>
Thanks for the tip! I’ll update the repo as soon as possible. I simply copied the Y720’s _UPC DSDT patch, didn’t know other DSDTs might use Serialized instead.

@KyleXYXD, can you provide Problem Reporting files? I just want to make sure everything is working correctly since I no longer have the laptop.
 
Joined
Jun 8, 2017
Messages
58
Motherboard
Lenovo G40-70-Clover
CPU
i3-4005U
Graphics
HD 4400
Mobile Phone
  1. Android
  2. iOS
Thanks for the tip! I’ll update the repo as soon as possible. I simply copied the Y720’s _UPC DSDT patch, didn’t know other DSDTs might use Serialized instead.

@KyleXYXD, can you provide Problem Reporting files? I just want to make sure everything is working correctly since I no longer have the laptop.

Here you go.
 

Attachments

  • debug_636.zip
    2.2 MB · Views: 35
Top