yusufklncc / Lenovo-Legion-5-Hackintosh

OpenCore EFI for Hackintosh Lenovo Legion 5 15IMH05H
56 stars 6 forks source link

How did you manage to disable egpu energy and have a battery life better? #15

Closed GuilhermeCF10 closed 1 year ago

GuilhermeCF10 commented 1 year ago

How long does the battery last on average?

husseinhareb commented 1 year ago

I used this EFI, and it's lasting me an hour, 4 times worse than windows or linux. I haven't figured out a way to fix it.

Hasinai commented 1 year ago

You need patches for corrected disabled dGPU. Same laptop, Mac OS X 13.3.1, opencore 0.9.1. Watching movies 3-3,5h (Mac OS X Ventura 13.3.1) (Little bit worse, maybe 15-20%) 3,5-4h (Windows 11).

GuilhermeCF10 commented 1 year ago

I already imagined that Windows would have a better optimization, but yes, I still couldn't disable it, my battery is drained and in 20 minutes, it runs out. I'm wondering about these patches, which one should I apply to disable this egpu, so maybe it lasts at least 2 hours. Thank you so much guys

Hasinai commented 1 year ago

patches_dgpu.zip patches from 5T33Z0 works fine. In BIOS should disable Intel thermal framework (bcz fan spam) SSDT-DGPU.aml disable dGPU on init SSDT-EXT4.aml,SSDT-PTSWAKTTS.aml - for correct sleep-wake dgpu also can share my config for touchpad, with correct GPIO Pin (1B)

Engredaesm commented 1 year ago

can share my config for touchpad, with correct GPIO Pin (1B)

can you please share your config for touchpad, with correct GPIO Pin (1B

Hasinai commented 1 year ago

Works fine with latest VoodooI2C opencore patch for replace (XTSM,XCRS for Touchpad) image

`

Base
                <string></string>
                <key>BaseSkip</key>
                <integer>0</integer>
                <key>Comment</key>
                <string>_DSM to XTSM for TPD0</string>
                <key>Count</key>
                <integer>0</integer>
                <key>Enabled</key>
                <true/>
                <key>Find</key>
                <data>OV9EU00=</data>
                <key>Limit</key>
                <integer>0</integer>
                <key>Mask</key>
                <data></data>
                <key>OemTableId</key>
                <data></data>
                <key>Replace</key>
                <data>OVhUU00=</data>
                <key>ReplaceMask</key>
                <data></data>
                <key>Skip</key>
                <integer>0</integer>
                <key>TableLength</key>
                <integer>0</integer>
                <key>TableSignature</key>
                <data></data>
            </dict>
            <dict>
                <key>Base</key>
                <string></string>
                <key>BaseSkip</key>
                <integer>0</integer>
                <key>Comment</key>
                <string>_CRS to XCRS for TPD0</string>
                <key>Count</key>
                <integer>0</integer>
                <key>Enabled</key>
                <true/>
                <key>Find</key>
                <data>RwdfQ1JT</data>
                <key>Limit</key>
                <integer>0</integer>
                <key>Mask</key>
                <data></data>
                <key>OemTableId</key>
                <data></data>
                <key>Replace</key>
                <data>RwdYQ1JT</data>
                <key>ReplaceMask</key>
                <data></data>
                <key>Skip</key>
                <integer>0</integer>
                <key>TableLength</key>
                <integer>0</integer>
                <key>TableSignature</key>
                <data></data>
            </dict>`

SSDT-TPD0.aml - ACPI patch SSDT-TPD0.TAR.GZ image

Engredaesm commented 1 year ago

Works fine with latest VoodooI2C opencore patch for replace (XTSM,XCRS for Touchpad) image

<dict> <key>Base</key> <string></string> <key>BaseSkip</key> <integer>0</integer> <key>Comment</key> <string>_DSM to XTSM for TPD0</string> <key>Count</key> <integer>0</integer> <key>Enabled</key> <true/> <key>Find</key> <data>OV9EU00=</data> <key>Limit</key> <integer>0</integer> <key>Mask</key> <data></data> <key>OemTableId</key> <data></data> <key>Replace</key> <data>OVhUU00=</data> <key>ReplaceMask</key> <data></data> <key>Skip</key> <integer>0</integer> <key>TableLength</key> <integer>0</integer> <key>TableSignature</key> <data></data> </dict> <dict> <key>Base</key> <string></string> <key>BaseSkip</key> <integer>0</integer> <key>Comment</key> <string>_CRS to XCRS for TPD0</string> <key>Count</key> <integer>0</integer> <key>Enabled</key> <true/> <key>Find</key> <data>RwdfQ1JT</data> <key>Limit</key> <integer>0</integer> <key>Mask</key> <data></data> <key>OemTableId</key> <data></data> <key>Replace</key> <data>RwdYQ1JT</data> <key>ReplaceMask</key> <data></data> <key>Skip</key> <integer>0</integer> <key>TableLength</key> <integer>0</integer> <key>TableSignature</key> <data></data> </dict>

SSDT-TPD0.aml - ACPI patch SSDT-TPD0.TAR.GZ image

thank you very much worked like a charm for me

yusufklncc commented 1 year ago

I am using this method. CleanShot 2023-05-21 at 17 19 58

Because when i use SSDT. My fans are going %100 and after a little time laptop restart.

yusufklncc commented 1 year ago

@Hasinai ”Intel thermal framework (bcz fan spam)” thanks for this. I updated all repo and EFI.