johnnynunez / Xiaomi-Mi-Air

Xiaomi Mi Air 13.3" 2018
397 stars 117 forks source link

BIOS patches? #88

Closed yllwfsh closed 4 years ago

yllwfsh commented 4 years ago

Regarding: https://github.com/johnnync13/Xiaomi-Mi-Air/commit/94455a1c88fc69f11362166995397c7d27c4d71b

I had no idea! That's very interesting. My laptop seems to boot fine with opencore without any mods though...

Can you teach us how to patch the BIOS and/or provide some scripts?

Thanks!

yllwfsh commented 4 years ago

The scripts on Xiaomi pro, I think that works on macOS

Just tested: Yes they do work, but only for 10 sec or so, then the CPU is back at 15W. The cooling can easily handle more though. It's hanging at 72 degrees C

There must be a BIOS value somewhere in there that we can tune ;)

spicytrance commented 4 years ago

Hey guys, how did you patch the bios? EFI shell cannot read/change the values. i flashed the bios version @johnnync13 put into 7.0.3. the scripts on windows broke my windows partition, and the ones on Mac dont change anything...

yllwfsh commented 4 years ago

Hey guys, how did you patch the bios? EFI shell cannot read/change the values. i flashed the bios version @johnnync13 put into 7.0.3. the scripts on windows broke my windows partition, and the ones on Mac dont change anything...

I used the scripts from the daliansky repo: https://github.com/daliansky/XiaoMi-Pro-Hackintosh/tree/master/BIOS/DVMT_and_0xE2_fix

@johnnync13 Shall I include these scripts in your repo and write some README's?

johnnynunez commented 4 years ago

You are free

yllwfsh commented 4 years ago

Thx. I'll work on it for a while now

johnnynunez commented 4 years ago

I'm going to upload new bluetooth firmware and voodooi2c

johnnynunez commented 4 years ago

We should look to change all SSDTs, for better compatibility with OC, and to be able to start windows.

Method (_STA, 0, NotSerialized)  // _STA: Status
            {
                If (_OSI ("Darwin"))
                {
                    Return (0x0B)
                }
                Else
                {
                    Return (Zero)
                }
            }
yllwfsh commented 4 years ago

@johnnync13 Yes! Good idea. Would you like to do it or shall I look into it?

johnnynunez commented 4 years ago

@yllwfsh I am researching. It turns out that SSDT-OSI is not compatible with OC, and it causes kernel panic at times, and disables boot with windows. This is fixed with the patch from before, but I don't know how to do it in several SSDTs because if you remove the trackpad it stops working because the SSDT-TPD0 is not well done, so I'm investigating. You have a good example, XiaoMi Pro repository

yllwfsh commented 4 years ago

@johnnync13 Ok i'll research when I have some time. At the moment my trackpad is not working at all in macOS. Any tips? haha

johnnynunez commented 4 years ago

Do you have connected battery? Battery shows? See if voodooinput is charged

yllwfsh commented 4 years ago

Yes the battery shows up. Btw i'm still on 10.14. Maybe that's different?

yllwfsh commented 4 years ago

I think it stopped working after i did the Security update 2020-2 this morning

yllwfsh commented 4 years ago

@johnnync13 Do we need both VoodooI2C and VoodooInput?

johnnynunez commented 4 years ago

Yes. I Compile***Voodooi2c and now is needed voodooinput

yllwfsh commented 4 years ago

But which kext is actually doing the Trackpad? I think it's very confusing which depends on what now

We have: VoodooI2C (I2C bus?) VoodooI2CHID (For trackpad?) VoodooInput (For multitouch) VoodooPS2Controller (has trackpad kext inside)

johnnynunez commented 4 years ago

no. Voodooi2c, I2C Voodooi2chid trackpad voodooinput mT2 APPLE voodoops2controller Keyboard.

Why not use the repository EFI?

yllwfsh commented 4 years ago

I'm trying the latest release right now

yllwfsh commented 4 years ago

But it doesn't work. No trackpad with OC and 10.14.6

johnnynunez commented 4 years ago

Update to Catalina... why not?

yllwfsh commented 4 years ago

Update to Catalina... why not?

Because Mojave is more stable i think and I don't need any of their new features. Besides, it should just be backwards compatible, right?

johnnynunez commented 4 years ago

@yllwfsh No. Because voodoo input only works on 10.15

yllwfsh commented 4 years ago

As of version 1.0.1 they added support for previous versions: image

yllwfsh commented 4 years ago

But i guess i can try on 10.15 as well, see if that fixes it. After that, I can work on the README's and the BIOS stuff tonight

johnnynunez commented 4 years ago

Okey! you can test Intel Wifi in 10.15 too

yllwfsh commented 4 years ago

@johnnync13 @spicytrance @terberes @lang-ji @0x47726567 @timmmmmmmmm

BIOS modding howto is now uploaded: https://github.com/johnnync13/Xiaomi-Mi-Air/tree/master/BIOS

I'll close this one finally :)