LuisUrdianivia1994 / Lenovo-Flex--15-Flex14-Hackintosh

This is My Hackintosh Build On OpenCore and macOS Catalina
1 stars 0 forks source link

EFI Folder Not Working #2

Open tusshargaba opened 2 years ago

tusshargaba commented 2 years ago

Hey, I have the same laptop Flex 14 model 20308, CPU - I5 4200U, HD 4400, GT720M.

I have managed to install Mac OS Monterey with the Opencore EFI provided by Olarila.com for Notebook Haswell Chips by modifying the SYMBIOS to MacBookPro11,5. But after installing and booting the macOS, nothing is working, like wifi, bluetooth, audio or else.

So I came across your EFI Folder, and tried to boot my installed macOS with your provided EFI Folder after modifying the SYMBIOS, but i am not able to boot into my system, at once it booted but again nothing worked. Please help me.

LuisUrdianivia1994 commented 2 years ago

This EFI is made for SMbios macbookpro11.1 you should change to macbook11.4 or else in the week I will be uploading a test of the Current EFI that works in Monterrey. It should be noted that the Ar9485 adapter has stopped working in monterey, so it is highly recommended to change to an intel one or flash the bios that Witelist does not have, but this is very advanced and if you do it wrong, you will leave your computer without working

LuisUrdianivia1994 commented 2 years ago

Therefore, until now I recommend you to stay in Bigsur to make the Ar9485 adapter work. About the EFI I will adapt it a little for you to omit the GPU since my laptop does not contain it but it should work the same if you want to upgrade to monterey i highly recommend changing your wifi adapter to one that is compatible

Intel Wireless7260HMWBN

using the kexts of

https://openintelwireless.github.io/itlwm/

LuisUrdianivia1994 commented 2 years ago

I just uploaded a new EFI folder try it it's the one I currently have

https://github.com/LuisUrdianivia1994/Lenovo-Flex--15-Flex14-Hackintosh/blob/main/EFI%20MBP%2011.4.zip

tusshargaba commented 2 years ago

Ok i will try your EFI folder..just to be clear, i will now fresh install Bigsur with your EFI and use SYMBIOS to Macbook11,4.. Right ??

LuisUrdianivia1994 commented 2 years ago

is correct, even You shouldn't have any problems, if you decide to try it that way. Then do a clean install.

NVRAM -> Add -> 7C436110-AB2A-4BBB-A880-FE41995C9F82-> Bootargs :

to bypass the GPU

-wegnoegpu

I also forgot to add the verbose mode you could add it so you can see the process more closely by adding a

-v

regards

tusshargaba commented 2 years ago

Hi, i made the Bigsur bootable Pendrive by Balena Etcher, then copies your EFI folder in Pendrive EFI Folder..Tried booting...Got this Error. IMG_20220330_200803.jpg

tusshargaba commented 2 years ago

Got it working after setting SecureBootModel to Disabled.. but got this panic instead after selecting install bigsur.. IMG_20220330_202129.jpg

LuisUrdianivia1994 commented 2 years ago

do not use Balena etcher since it brings problems, instead use this method that is easier https://dortania.github.io/OpenCore-Install-Guide/installer-guide/winblows-install.html

For Kernel panic mmm 🤨 Disable DSDT.aml maybe my DSDT don’t have Compatibility with your BIOS.

Bios Version Are compatible :

Don’t working

tusshargaba commented 2 years ago

Yes I have this Bios - 8ACN08WW for ideapad flex 14 (20308)..disabling the DSDT would not create problems for me or should i have to compile my own DSDT ? Also you mentioned that there is Bios version of 8ACN24WW for ideapad flex 14 (20308), so is there any update where i can update my bios to this version ? Because i searched through google and lenovo forums and i didn't find any update for my bios..

LuisUrdianivia1994 commented 2 years ago

in fact a bad point for this laptop is precisely that lenovo never released Bios Updates. So basically to get a compatible version with my DSDT it would be that you will burn it a new version with a Bios programmer. The one I use is ch341a the only drawback is knowing how to use it if you do it wrong you could leave your laptop unusable

Well

The only thing you could do is

To correct the Audio:

go to

DeviceProperties>Add>PciRoot(0x0)/Pci(0x1B,0x0)>layout-id>Data>03000000

change the value <03000000> to <15>

"remember to change the value without the <>"

it should stay like this

DeviceProperties>Add>PciRoot(0x0)/Pci(0x1B,0x0)>layout-id>Data>15

and in

NVRAM>Add>7C436110-AB2A-4BBB-A880-FE41995C9F82>boot-args> alcid=15

If you want you can extract your DSDT and apply the corrections that I apply

They are

tusshargaba commented 2 years ago

Hi, i know someone who can flash the bios to this version, but problem is where i need to find the version bios ? Do you have the whitelist version of this bios 8ACN24WW..

OR

If its too much to risk for, can you help compile my DSDT with all the patches you are referring to..maybe we can connect with TeamViewer or any other software ?

If i am asking too much, you can always say No.

Thanks

LuisUrdianivia1994 commented 2 years ago

No problem If you can, you can send me your DSDT, I could gladly correct it in a maximum period of 2 to 3 days. (I'm somewhat saturated with work and I'm taking python courses ) that's why the wait.

at hand currently I only have the 8ACN34WW bios version I have not gotten the 8ACN24WW version anywhere at least I think only by paying.

since the version of the bios is 8ACN34WW for ideapad flex 15, tacitly Your Ideapad Flex14 20308 would become an Ideapad Flex 15 20309 (I don't know what improvement it will have) but both share the same motherboard and the same characteristics.

Regarding the Bios, it has a white list and I have not been able to find someone who will remove the restriction to use another adapter. I can share it here This is the Bios that I am also using so you should not have any problems

Bios here https://github.com/LuisUrdianivia1994/Lenovo-Flex--15-Flex14-Hackintosh/blob/main/Lenovo%20ideapad%2015%20DAST6MB16AO.rar

LuisUrdianivia1994 commented 2 years ago

IMG_0032_Original

IMG_1365_Original

how is it currently

IMG_1892

tusshargaba commented 2 years ago

No problem If you can, you can send me your DSDT, I could gladly correct it in a maximum period of 2 to 3 days. (I'm somewhat saturated with work and I'm taking python courses ) that's why the wait.

at hand currently I only have the 8ACN34WW bios version I have not gotten the 8ACN24WW version anywhere at least I think only by paying.

since the version of the bios is 8ACN34WW for ideapad flex 15, tacitly Your Ideapad Flex14 20308 would become an Ideapad Flex 15 20309 (I don't know what improvement it will have) but both share the same motherboard and the same characteristics.

  • It is important to tell whoever is going to do the work for you to make a current copy of the Bios you have and keep it in a safe place

    (one never knows when it will require)

Regarding the Bios, it has a white list and I have not been able to find someone who will remove the restriction to use another adapter. I can share it here This is the Bios that I am also using so you should not have any problems

Bios here https://github.com/LuisUrdianivia1994/Lenovo-Flex--15-Flex14-Hackintosh/blob/main/Lenovo%20ideapad%2015%20DAST6MB16AO.rar

Ok i will do as you said and disable your DSDT then when i successfully boot up Bigsur, then i will provide you my DSDT..so please compile for me too.. i will update you once i have the luck to bootup the machine as per your instructions..

tusshargaba commented 2 years ago

Hi, I have successfully installed BigSur, though there were some ups and downs.. First Installer stuck at One Minute Remaining, then system tried to reboot, but reboot did not work, then i forced booted again and after 2 -3 force boots Big Sur is installed.

Everything worked except Sound and as you were asking for my DSDT to compile, so i used SYSREPORT method by using the debug version of opencore, and i got this ACPI Folder in that DSDT and SSDT files are there, so i have attached the folder here for your reference. Please if you get time, do compile the DSDT for me and also please guide how can the sound starts working.

Also, System Reboot is not working, when i try to reboot system, system shows some logs and then screen turns off, but system does not reboots, then i have to get the force turn off the laptop and boots the system again.

Also, after compiling the DSDT, please guide if same modifications should be left or any more modifications to be done or remove these modifications after getting the compiled DSDT.

I am referring this -

( disable my DSDT there won't be any problem, the only relevant thing are the patches and some things that don't affect the system more than the battery reading that can be corrected by enabling -ECenabler.kext

To correct the Audio:

go to

DeviceProperties>Add>PciRoot(0x0)/Pci(0x1B,0x0)>layout-id>Data>03000000

change the value <03000000> to <15>

"remember to change the value without the <>"

it should stay like this

DeviceProperties>Add>PciRoot(0x0)/Pci(0x1B,0x0)>layout-id>Data>15

and in

NVRAM>Add>7C436110-AB2A-4BBB-A880-FE41995C9F82>boot-args> alcid=15 )

IMG_20220331_200420 IMG_20220331_190323

ACPI.zip

tusshargaba commented 2 years ago

Also there is a post where someone said that using wegnoegpu bootarg still does not completely switch off the Optimus GPU (which is found on my laptop - GT720M, as Optimus GPU is not supported in Mac OS).. so Opencore has provided to compile your own SSDT - (SSDT-dGPU-Off/NoHybGfx) which completely switches off the dgpu so that no power or battery drains..

There is some links -

https://www.reddit.com/r/hackintosh/comments/n4gsmp/guys_dont_use_wegnoegpu_to_disable_gpu_on_a/

https://dortania.github.io/Getting-Started-With-ACPI/Laptops/laptop-disable.html

https://youtu.be/At4lRtZt0Ow

LuisUrdianivia1994 commented 2 years ago

if in fact I find myself doing the DSDT thing, I'm almost done. About Nvidia optimus will require to know the location of the iGPU to do the ACPI patch

LuisUrdianivia1994 commented 2 years ago

Regarding the problem that it presents when restarting ... well, maybe being a different laptop they are different in something ... therefore I suggest starting again create something custom for your Laptop, I have compiled your DSDT also some extra .dsl have been added for to work so you have to replace all my ACPI and sync them to the Config.plist (Leave an OCpatches.plist) where you can see the changes, while we figure out what the problem is. I also added layout 3 in Device Properties change in bootargs : Alcid=3 About your DSDT:

I found it very different from mine, at least it was easy I had 70 errors and fix certain warnings like 50 (not all) (perhaps practice makes perfect) All the patches and fixes I have were applied, The only complicated thing was the battery patch, so you shouldn't have problems with the sound, restart, etc. so I'll upload it in a while

LuisUrdianivia1994 commented 2 years ago

Contents

Inside ACPI>

    • DSDT (Your Dsdt corrected)
    • SSDT-ACAD (it is something aesthetic so that ACPIbatterymanager recognizes the AC adapter
    • SSDT-DDGPU (disable GPU)
    • SSDT-DMAC (DMA Controller)
    • SSDT-EC (EC )
    • SSDT-HPET
    • SSDT-PLUG (for better results Create your own Plug with Cpufriend or ssdtPRGen since this is a Generic)
    • SSDT-PMC
    • SSDT-PNLF (it is to control the Brightness on the built-in display)
    • SSDT-Wmis (lenovo ACPI)
    • SSDT-YVPC (Lenovo Virtual Power Controler the idea is to use it with YogaSMC.kext is to regulate the performance but it does not work since the required data is not present in the DSDT)
    • SSDT-XOXI (Windows compatibility)13.
    • SSDT-DDGPU ( disable internal gpu ) " I'm sure the path is correct as I've found the same path on lenovo laptops that have external gpu so you'd be lucky if it works"

I'm done so I hope it works well and there are no problems

Done:Listo.zip

LuisUrdianivia1994 commented 2 years ago

---Editar--- first try the first one it provides if you get kernel panic you can use this DSDT which doesn't have any battery patch, to get battery status you can use ECEnabler.kext

DSDT witout Battery patch 2.zip

LuisUrdianivia1994 commented 2 years ago

A new AML was also made for the Volume Up and Down keys but I could not check the brightness keys since my keyboard is wrong with those keys but it should work with your Laptop, there is also an extra AML to improve consumption and performance in the XHC port XHC and FN keys.zip

tusshargaba commented 2 years ago

Hey I used Done:Listo.zip with XHC and FN keys.ZIP and found nothing wrong while booting up.. Though Booting time somehow increased.. But Sound now working, Fn+ Volume keys now starts working, battery showing proper readings like it needs service, power source - power adapter is showing in battery, Fn + Brightness keys not working, means unable to increase or decrease brightness by Fn Shortcut keys.

My Brightness up and down keys are - Fn + F11 for down and Fn + F12 for Up.

Here is my final EFI Folder. Please check if everything is fine like Kexts which are enabled or disabled and NVRAM Bootargs ? EFI.zip

tusshargaba commented 2 years ago

Also, for disabling the DGPU on my laptop, this is the DGPU path - _SB.PCIO.RP05.PXSX

IMG_20220401_233122

LuisUrdianivia1994 commented 2 years ago

Hey I used Done:Listo.zip with XHC and FN keys.ZIP and found nothing wrong while booting up.. Though Booting time somehow increased.. But Sound now working, Fn+ Volume keys now starts working, battery showing proper readings like it needs service, power source - power adapter is showing in battery, Fn + Brightness keys not working, means unable to increase or decrease brightness by Fn Shortcut keys.

My Brightness up and down keys are - Fn + F11 for down and Fn + F12 for Up.

Here is my final EFI Folder. Please check if everything is fine like Kexts which are enabled or disabled and NVRAM Bootargs ? EFI.zip

Well . I'll be free in a while... I'll check your EFI to see if everything is in order, about the Battery and the status "⚠️Battery requires service" is a Bug in the Kext of SMCBatteryManager and ACPIbatteryManager that is Out of my scope or requires an update to fix that. On the keys I have added an AML to correct that, I don't know why but when I apply the patch for the [fn keys] in your DSDT it somehow gets corrupted and doesn't let me apply the Changes so I had to do the patch Externally, though I'm not sure if the Brightness keys work properly as mine are broken and I don't have "read" those keys, but you can manually add them by connecting another keyboard in settings, keyboard, Brightness control.

LuisUrdianivia1994 commented 2 years ago

well check your EFI and corrected some things,

sudo pmset autopoweroff 0 sudo pmset powernap 0 sudo pmset standby 0 sudo pmset proximitywake 0 sudo pmset tcpkeepalive 0 sudo pmset hibernatemode 0

I also removed the

the second one is easier

curl -o ~/ssdtPRGen.sh https://raw.githubusercontent.com/Piker-Alpha/ssdtPRGen.sh/master/ssdtPRGen.sh

chmod +x ~/ssdtPRGen.sh

sudo ~/ssdtPRGen.sh

Tipe your password and press enter

The program will ask you

_Do you want to copy /Users/ **your User** /Library/ssdtPRGen/ssdt.aml to /Extra/ssdt.aml? (y/n)? / Y o you want to remove the temporarily mount point (y/n)? /N Do you want to open ssdt.dsl (y/n)? /Y

Now Go to ~/Library/ssdtPRGen/

Find SSDT.aml and Change name to SSDT-PLUG And replace SSDT-PLUG located in EFI/OC/ACPI

EFI.zip

LuisUrdianivia1994 commented 2 years ago

to repair the [Fn] to follow this simple method, only that you require an external keyboard for the option to appear

first step: Go to System Preference Captura de Pantalla 2022-04-01 a la(s) 3 31 33 p m

Second step: locate keyboard Captura de Pantalla 2022-04-01 a la(s) 3 32 24 p m

third step . Once inside, go to Quick Functions Captura de Pantalla 2022-04-01 a la(s) 3 33 21 p m

fourth step . Locate Show this function is only displayed with an external keyboard

Captura de Pantalla 2022-04-01 a la(s) 3 34 45 p m

fifth and last step. It is that you add the Function key by either pressing [Fn] + "F11" or "F12" and the brightness keys will work.

Captura de Pantalla 2022-04-01 a la(s) 3 35 47 p m

tusshargaba commented 2 years ago

well check your EFI and corrected some things,

  • SSDT-NohybGfx.aml

Was also added, add the name provided _SB.PCIO.RP05.PXSX so the Nvidia Gpu should turn off.

  • SSDT-SBUS-MCHC SMbus Driver was also added so as not to have problems when the equipment goes into sleep mode, it is important that to solve this (if you put your equipment in Sleep mode , insert the following commands to the terminal one at a time:

sudo pmset autopoweroff 0 sudo pmset powernap 0 sudo pmset standby 0 sudo pmset proximitywake 0 sudo pmset tcpkeepalive 0 sudo pmset hibernatemode 0

I also removed the

  • CpuFriend
  • CpufrienDataprovider

kexts since these belong to an intel core i3 4010U and I think you have an i5 4200u. for this you will have two ways to create your custom Plug this in order to increase the performance of the Processor in Mac OS the first one is with CPUfriend

the second one is easier

  • open the terminal and type

curl -o ~/ssdtPRGen.sh https://raw.githubusercontent.com/Piker-Alpha/ssdtPRGen.sh/master/ssdtPRGen.sh

chmod +x ~/ssdtPRGen.sh

sudo ~/ssdtPRGen.sh

Tipe your password and press enter

The program will ask you

_Do you want to copy /Users/ **your User** /Library/ssdtPRGen/ssdt.aml to /Extra/ssdt.aml? (y/n)? / Y o you want to remove the temporarily mount point (y/n)? /N Do you want to open ssdt.dsl (y/n)? /Y

Now Go to ~/Library/ssdtPRGen/

Find SSDT.aml and Change name to SSDT-PLUG And replace SSDT-PLUG located in EFI/OC/ACPI

EFI.zip

Hi, I did everything as you told, and now mostly everything is working except Reboot. Reboot is still not working, system is not turning off and just display is turning off.

Also, Please guide which bootargs ( keepsyms=1 swd_panic=1 -v debug=0x100 alcdelay=1000 -wegnoegpu alcid=3 ) are necessary and which i can safely remove, and also to get a more cleaner look and fast boot time, other than -v.

tusshargaba commented 2 years ago

Last Issue, though sound is working, but sound is coming very low, maybe some problem with applealc.

tusshargaba commented 2 years ago

Also guide if it is safe to remove these kexts as these are disabled in the EFI folder provided by you in your last reply.

  1. FeatureUnlock.kext
  2. YogaSMC.kext
  3. SMCBatteryManager.kext
  4. Legacy-InternalHub-EHCx.kext
  5. USBInjectAll.kext
  6. ECEnabler.kext
  7. YogaSMCAlter.kext
LuisUrdianivia1994 commented 2 years ago

is safe to remove them from the ConfigPlist once removed, also Delete them from the Kext Folder to avoid any inconvenience. I think the reset is something complex.

Previously it worked fine. maybe there is something in the new opencore update that makes this happen so you'll take some time to find out.
Regarding the Low Sound it is also a problem of Apple alc, I think that because it is native audio, they focus on the Audio Quality and not on the Noise. I have resorted to third-party programs to increase the Volume Gain, but I rarely use it

about Arguments just remove -v all other arguments are of vital importance if a Kernel panic were to occur the system would show you an Error Print when it restarts. as well as alcdelay=1000 which resolves the headphone hotplug and alcid=3 which is from the audio codec and keep it more persistent

tusshargaba commented 2 years ago

Hi, For Reboot Issue, Can we try this on my system which you suggested to other guy.

https://github.com/LuisUrdianivia1994/Lenovo-Flex--15-Flex14-Hackintosh/issues/3#issuecomment-1086725178

LuisUrdianivia1994 commented 2 years ago

I've already tried it and I still don't get anything... although I don't understand, it worked fine, maybe I'm missing something or I have to create a specific configuration for this laptop. I have been studying a guide where I have to map the USB Ports directly from the DSDT. although I understand the method is complicated when editing the lines. To be more precise, I get more than 200 errors to correct, taking into account that there are three Internal hubs. XHC----RHUB (current in use) EHC1---HUBN (disabled by SSDT) EHC2 ---HUBN (Disabled By SDDT)

Captura de Pantalla 2022-04-03 a la(s) 11 21 22

although I can concentrate on editing XHC there are more than 19 ports.

Captura de Pantalla 2022-04-03 a la(s) 11 22 28

So as soon as I can I will solve them

tusshargaba commented 2 years ago

Thanks for replying and helping out me from scratch..Your help is really appreciated.. There are very few people who takes their time out and help the fellow hackinstoshers.

Thanks you man..

LuisUrdianivia1994 commented 2 years ago

Thank you. I'm glad it works for you, I hope to resolve the reboot issue soon. so while you enjoy your hackintosh

chrismccoy commented 1 year ago

will this work on the flex 5i i3 1215U model?