Contribute
Register

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

But with the attached EFI folder /it is from here from the pages at the beginning/ almost everything is working /like battery, trackpad with basic gestures, USB ports/ except two things:

This is Clover. Not OpenCore.

Why do you have so many kext files? 27 megabytes?

I am looking at reducing the number of kext files rather than increasing them from the minimum 14 - as it should be. The fewer there are, the faster the machine.
See first post and command structure (git, git clone, make... etc...)
 
Last edited:
remove LiluHelper.kext as not needed in clover and probably causes more issues being in there, it is only needed if you install kexts to /L/E

BrcmNonPatchRAM2.kext
BrcmPatchRAM3.kext
choose 1 as both are not and shouldn't be used together (has no relevance on audio but thought i would mention)

should be removed:
Code:
<dict>
                    <key>Comment</key>
                    <string>change GFX0 to IGPU</string>
                    <key>Find</key>
                    <data>R0ZYMA==</data>
                    <key>Replace</key>
                    <data>SUdQVQ==</data>
                </dict>
                <dict>
                    <key>Comment</key>
                    <string>change B0D3 to HDAU</string>
                    <key>Find</key>
                    <data>QjBEMw==</data>
                    <key>Replace</key>
                    <data>SERBVQ==</data>
                </dict>
you are also missing:
Code:
<key>Properties</key>
        <dict>
            <key>PciRoot(0)/Pci(0x02,0)</key>
            <dict>
                <key>AAPL,ig-platform-id</key>
                <data>BgAmCg==</data>
                <key>device-id</key>
                <data>EgQAAA==</data>
                <key>#hda-gfx</key>
                <string>onboard-1</string>
                <key>#AAPL00,override-no-connect</key>
                <data></data>
                <key>#AAPL00,override-no-edid</key>
                <data></data>
                <key>framebuffer-patch-enable</key>
                <integer>1</integer>
                <key>framebuffer-cursormem</key>
                <data>AACQAA==</data>
                <key>## @1 HDMI</key>
                <string></string>
                <key>#framebuffer-con1-enable</key>
                <integer>1</integer>
                <key>#framebuffer-con1-type</key>
                <data>AAgAAA==</data>
                <key>#framebuffer-con1-flags</key>
                <data>BgAAAA==</data>
                <key>#framebuffer-con1-pipe</key>
                <data>EgAAAA==</data>
                <key>## @2 HDMI</key>
                <string></string>
                <key>#framebuffer-con2-enable</key>
                <integer>1</integer>
                <key>#framebuffer-con2-type</key>
                <data>AAgAAA==</data>
                <key>#framebuffer-con2-flags</key>
                <data>BgAAAA==</data>
                <key>#framebuffer-con2-pipe</key>
                <data>EgAAAA==</data>
                <key>#HDMI Port</key>
                <string>0x3e9b0000, 0306 port</string>
                <key>#framebuffer-con2-alldata</key>
                <data>AwYIAAAEAADHAwAA</data>
                <key>## @3 HDMI</key>
                <string></string>
                <key>#framebuffer-con3-enable</key>
                <integer>1</integer>
                <key>#framebuffer-con3-type</key>
                <data>AAgAAA==</data>
                <key>#framebuffer-con3-flags</key>
                <data>BgAAAA==</data>
                <key>#framebuffer-con3-pipe</key>
                <data>EgAAAA==</data>
                <key>## patch0</key>
                <string>Enable internal display after sleep for 0x0a2e0008 on 10.10.2-10.12.x (c) syscl</string>
                <key>#framebuffer-patch0-enable</key>
                <integer>1</integer>
                <key>#framebuffer-patch0-find</key>
                <data>AQAAAEAAAAAeAAAABQUJAQ==</data>
                <key>#framebuffer-patch0-replace</key>
                <data>AQAAAEAAAAAPAAAABQUJAQ==</data>
                <key>## patch1</key>
                <string>Enable internal display after sleep for 0x0a2e000a, 0x0a26000a</string>
                <key>#framebuffer-patch1-enable</key>
                <integer>1</integer>
                <key>#framebuffer-patch1-find</key>
                <data>AQAAAEAAAAAeAgAABQUJAQ==</data>
                <key>#framebuffer-patch1-replace</key>
                <data>AQAAAEAAAAAfAgAABQUJAQ==</data>
            </dict>
            <key>PciRoot(0)/Pci(0x1b,0)</key>
            <dict>
                <key>#layout-id</key>
                <integer>3</integer>
                <key>#PinConfigurations</key>
                <data></data>
            </dict>
            <key>PciRoot(0)/Pci(0x03,0)</key>
            <dict>
                <key>#layout-id</key>
                <integer>3</integer>
                <key>#hda-gfx</key>
                <string>onboard-1</string>
                <key>#no-controller-patch</key>
                <integer>1</integer>
            </dict>
        </dict>
remove the #s to enable the properties

you can see where they go from here:
 
remove LiluHelper.kext as not needed in clover and probably causes more issues being in there, it is only needed if you install kexts to /L/E

BrcmNonPatchRAM2.kext
BrcmPatchRAM3.kext
choose 1 as both are not and shouldn't be used together (has no relevance on audio but thought i would mention)

should be removed:
Code:
<dict>
                    <key>Comment</key>
                    <string>change GFX0 to IGPU</string>
                    <key>Find</key>
                    <data>R0ZYMA==</data>
                    <key>Replace</key>
                    <data>SUdQVQ==</data>
                </dict>
                <dict>
                    <key>Comment</key>
                    <string>change B0D3 to HDAU</string>
                    <key>Find</key>
                    <data>QjBEMw==</data>
                    <key>Replace</key>
                    <data>SERBVQ==</data>
                </dict>
you are also missing:
Code:
<key>Properties</key>
        <dict>
            <key>PciRoot(0)/Pci(0x02,0)</key>
            <dict>
                <key>AAPL,ig-platform-id</key>
                <data>BgAmCg==</data>
                <key>device-id</key>
                <data>EgQAAA==</data>
                <key>#hda-gfx</key>
                <string>onboard-1</string>
                <key>#AAPL00,override-no-connect</key>
                <data></data>
                <key>#AAPL00,override-no-edid</key>
                <data></data>
                <key>framebuffer-patch-enable</key>
                <integer>1</integer>
                <key>framebuffer-cursormem</key>
                <data>AACQAA==</data>
                <key>## @1 HDMI</key>
                <string></string>
                <key>#framebuffer-con1-enable</key>
                <integer>1</integer>
                <key>#framebuffer-con1-type</key>
                <data>AAgAAA==</data>
                <key>#framebuffer-con1-flags</key>
                <data>BgAAAA==</data>
                <key>#framebuffer-con1-pipe</key>
                <data>EgAAAA==</data>
                <key>## @2 HDMI</key>
                <string></string>
                <key>#framebuffer-con2-enable</key>
                <integer>1</integer>
                <key>#framebuffer-con2-type</key>
                <data>AAgAAA==</data>
                <key>#framebuffer-con2-flags</key>
                <data>BgAAAA==</data>
                <key>#framebuffer-con2-pipe</key>
                <data>EgAAAA==</data>
                <key>#HDMI Port</key>
                <string>0x3e9b0000, 0306 port</string>
                <key>#framebuffer-con2-alldata</key>
                <data>AwYIAAAEAADHAwAA</data>
                <key>## @3 HDMI</key>
                <string></string>
                <key>#framebuffer-con3-enable</key>
                <integer>1</integer>
                <key>#framebuffer-con3-type</key>
                <data>AAgAAA==</data>
                <key>#framebuffer-con3-flags</key>
                <data>BgAAAA==</data>
                <key>#framebuffer-con3-pipe</key>
                <data>EgAAAA==</data>
                <key>## patch0</key>
                <string>Enable internal display after sleep for 0x0a2e0008 on 10.10.2-10.12.x (c) syscl</string>
                <key>#framebuffer-patch0-enable</key>
                <integer>1</integer>
                <key>#framebuffer-patch0-find</key>
                <data>AQAAAEAAAAAeAAAABQUJAQ==</data>
                <key>#framebuffer-patch0-replace</key>
                <data>AQAAAEAAAAAPAAAABQUJAQ==</data>
                <key>## patch1</key>
                <string>Enable internal display after sleep for 0x0a2e000a, 0x0a26000a</string>
                <key>#framebuffer-patch1-enable</key>
                <integer>1</integer>
                <key>#framebuffer-patch1-find</key>
                <data>AQAAAEAAAAAeAgAABQUJAQ==</data>
                <key>#framebuffer-patch1-replace</key>
                <data>AQAAAEAAAAAfAgAABQUJAQ==</data>
            </dict>
            <key>PciRoot(0)/Pci(0x1b,0)</key>
            <dict>
                <key>#layout-id</key>
                <integer>3</integer>
                <key>#PinConfigurations</key>
                <data></data>
            </dict>
            <key>PciRoot(0)/Pci(0x03,0)</key>
            <dict>
                <key>#layout-id</key>
                <integer>3</integer>
                <key>#hda-gfx</key>
                <string>onboard-1</string>
                <key>#no-controller-patch</key>
                <integer>1</integer>
            </dict>
        </dict>
remove the #s to enable the properties

you can see where they go from here:

Tried all the possible combinations that exist.
layout-id 1, 3, 28 .... the same. No sound.
Screenshot 2020-02-25 at 22.23.47.png
 
maybe an issue with your .aml ?

have you tried to re do the commands to make new acpi?

several times....


I'm looking at linux now what's going on

Code:
xubuntu:~$ pacmd list-cards
2 card(s) available.
    index: 0
    name: <alsa_card.pci-0000_00_03.0>
    driver: <module-alsa-card.c>
    owner module: 7
    properties:
        alsa.card = "0"
        alsa.card_name = "HDA Intel HDMI"
        alsa.long_card_name = "HDA Intel HDMI at 0xc0a10000 irq 48"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:03.0"
        sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "0a0c"
        device.product.name = "Haswell-ULT HD Audio Controller"
        device.form_factor = "internal"
        device.string = "0"
        device.description = "Built-in Audio"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: no)
        output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 300, available: no)
        output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 300, available: no)
        output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5200, available: no)
        output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 100, available: no)
        output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 100, available: no)
        output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5200, available: no)
        output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 100, available: no)
        output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 100, available: no)
        output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5200, available: no)
        output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 100, available: no)
        output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 100, available: no)
        output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5200, available: no)
        output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 100, available: no)
        output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 100, available: no)
        off: Off (priority 0, available: unknown)
    active profile: <off>
    ports:
        hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
    index: 1
    name: <alsa_card.pci-0000_00_1b.0>
    driver: <module-alsa-card.c>
    owner module: 8
    properties:
        alsa.card = "1"
        alsa.card_name = "HDA Intel PCH"
        alsa.long_card_name = "HDA Intel PCH at 0xc0a14000 irq 47"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1b.0"
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "9c20"
        device.product.name = "8 Series HD Audio Controller"
        device.form_factor = "internal"
        device.string = "1"
        device.description = "Built-in Audio"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        input:analog-stereo: Analog Stereo Input (priority 60, available: unknown)
        output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
        output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: unknown)
        off: Off (priority 0, available: unknown)
    active profile: <output:analog-stereo+input:analog-stereo>
    sinks:
        alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Built-in Audio Analog Stereo
    sources:
        alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
        alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Built-in Audio Analog Stereo
    ports:
        analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
            properties:
                device.icon_name = "audio-speakers"
        analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-headphones"

these are the same pci devices .... like gremlin is here ...
 
several times....


I'm looking at linux now what's going on

Code:
xubuntu:~$ pacmd list-cards
2 card(s) available.
    index: 0
    name: <alsa_card.pci-0000_00_03.0>
    driver: <module-alsa-card.c>
    owner module: 7
    properties:
        alsa.card = "0"
        alsa.card_name = "HDA Intel HDMI"
        alsa.long_card_name = "HDA Intel HDMI at 0xc0a10000 irq 48"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:03.0"
        sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "0a0c"
        device.product.name = "Haswell-ULT HD Audio Controller"
        device.form_factor = "internal"
        device.string = "0"
        device.description = "Built-in Audio"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: no)
        output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 300, available: no)
        output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 300, available: no)
        output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5200, available: no)
        output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 100, available: no)
        output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 100, available: no)
        output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5200, available: no)
        output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 100, available: no)
        output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 100, available: no)
        output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5200, available: no)
        output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 100, available: no)
        output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 100, available: no)
        output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5200, available: no)
        output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 100, available: no)
        output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 100, available: no)
        off: Off (priority 0, available: unknown)
    active profile: <off>
    ports:
        hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
        hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "video-display"
    index: 1
    name: <alsa_card.pci-0000_00_1b.0>
    driver: <module-alsa-card.c>
    owner module: 8
    properties:
        alsa.card = "1"
        alsa.card_name = "HDA Intel PCH"
        alsa.long_card_name = "HDA Intel PCH at 0xc0a14000 irq 47"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1b.0"
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "9c20"
        device.product.name = "8 Series HD Audio Controller"
        device.form_factor = "internal"
        device.string = "1"
        device.description = "Built-in Audio"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    profiles:
        input:analog-stereo: Analog Stereo Input (priority 60, available: unknown)
        output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
        output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: unknown)
        off: Off (priority 0, available: unknown)
    active profile: <output:analog-stereo+input:analog-stereo>
    sinks:
        alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Built-in Audio Analog Stereo
    sources:
        alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
        alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Built-in Audio Analog Stereo
    ports:
        analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-input-microphone"
        analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
            properties:
                device.icon_name = "audio-speakers"
        analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-headphones"

these are the same pci devices .... like gremlin is here ...
try booting without the .aml, you can go into clover boot options and uncheck it to test
 
Ok, i make my own DSDT...special function keys working, trakpad basic gestures, HDMI video/audio digital out works, speakers working, Headphones working, WiFi, Bluetooth, USB2/USB3, built-in mic and camera, power managment , battery status, graphics including OpenCL, Ethernet, Mac App Store Working.
Screenshot 2020-02-26 at 06.11.28.png

Audio works over VoodooHDA.kext....
Screenshot 2020-02-26 at 06.13.35.png

Screenshot 2020-02-26 at 06.15.30.png


Now it remains for me to do the same through OpenCore.........
 

Attachments

  • EFI.zip
    6.1 MB · Views: 103
Last edited:
Ok, i make my own DSDT...special function keys working, trakpad basic gestures, HDMI video/audio digital out works, speakers working, Headphones working, WiFi, Bluetooth, USB2/USB3, built-in mic and camera, power managment , battery status, graphics including OpenCL, Ethernet, Mac App Store Working.
View attachment 451692
Audio works over VoodooHDA.kext....
View attachment 451693
View attachment 451694

Now it remains for me to do the same through OpenCore.........
well done on getting it fixed

good luck with your OC :)
 
This is ridiculous:lol:

FIX for audio (G50-70):

Update AppleALC.kext
Remove "change HDAS to HDEF, B0D3 to HDAU" from acpi patches
Add "alcid=3" (21 or 28) to the boot arguments for layout-id injection
Set Inject to "No" under Audio section
Reboot and success!
 
Ok, i make my own DSDT...special function keys working, trakpad basic gestures, HDMI video/audio digital out works, speakers working, Headphones working, WiFi, Bluetooth, USB2/USB3, built-in mic and camera, power managment , battery status, graphics including OpenCL, Ethernet, Mac App Store Working.
View attachment 451692
Audio works over VoodooHDA.kext....
View attachment 451693
View attachment 451694

Now it remains for me to do the same through OpenCore.........
Your Clover EFI folder works wonderful for me. Hope to see OC working soon :)
 
Back
Top