Jump to content
JahStories

[Guide] XiaoMi Mi Notebook Air 13"

664 posts in this topic

Recommended Posts

23si2j5.png

 

 

Xiaomi Mi Notebook Air 13” 
Bios vers A05 — CPU i5 6200U (Confirmed working on A06 Bios too)

 

2.1 PACK FOR HIGH SIERRA ONLY, FOR SIERRA USE 2.0

Not working (Sierra Pack 2.0):
Wi-fi / Bluetooth. (Bluetooth works if using a VM to inject the FW)
NVME Drive. (to discuss about using it, since that not supported "by this filespackage“, open a specific thread or use PMs)
Nvidia Optimus 940MX GPU. (Optimus does not work on macOS at all)

 

Not working (High Sierra Pack 2.1):
Wi-fi / Bluetooth. (Bluetooth works if using a VM to inject the FW)
Nvidia Optimus 940MX GPU. (Optimus does not work on macOS at all)

WIP issues:
To fix the USB lid bug, now sleep is enabled partially and this drains the battery faster than usual, only when sleeping obviously.

Steps (Sierra Pack 2.0):

 

 

From Windows on a macOS VM or on a real mac, with sierra on the Application folder and the Usb drive connected and named USB, open terminal and paste this command:

sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ macOS\ Sierra.app/ --nointeraction 

Install Clover to EFI and copy the files to the right folders, then edit the config.plist (with cce or clover configurator) to add serial numbers to the smbios, use macbookpro13,1.

Plug the usb drive to your Mi Notebook and Install with a fakeID.

To boot with fake id select the Gear icon - Graphics Injector - FakeID and insert: 0x123456789 as in this picture:

equqn6.jpg

After the installation boot with fakeID.

Due to a Clover bug on kext patching you'll have to use this workaround...
Copy from /System/Library/Extensions AppleIntelSKLGraphicsFramebuffer.kext to the desktop.
Install this kext with EasyKextPro.
Reboot without fakeID.
Instal the kext you have saved on the desktop with EasyKextPro.
Reboot without fakeID.
Install other files from the package as written on the ReadMIs .
Have Fun!

 

 

 

Steps (High Sierra Pack 2.1):

 

 

Create the installation flash drive with create install media or with your preferred tool.

Install Clover and copy all the files from the package to the EFI partition of your flash drive.

Install using a fakeid as shown in the picture below.

To boot with fake id select the Gear icon - Graphics Injector - FakeID and insert: 0x123456789

equqn6.jpgAfter the installation install clover and copy all the files to the EFI of the local disk and all other files from the pack.

Reboot

Have Fun!

 

 

 

When updating to new versions of the filepack:
Remove all old files and install the new ones following the ReadMIs.
Just remember to use the same serials you used before.

Don't use bios mods, other files with different patches or you'll get no help.

 

Special thanks to:
Jolly, gengik84, and RehabMan.
 

Download File package.

 

HiDPI Resolution Comparison:

207at00.jpg

 

1080p / 936p(HiDPI)

768p(HiDPI) / 720p (HiDPI)

 

Benchmarks:

 

GeekBench:

 

5179ec.jpg

 

Cinebench R15:

 

2h85ukh.jpg

 

 

By Jahstories on InsanelyMac a.k.a. EliJah on macos86.com

Share this post


Link to post
Share on other sites
Advertisement

About NVME drive, you can make a separate config.plist that solely contains the KextToPatch to IONVMEFamily.kext for each version of OS X so that people with NVME SSDs can install onto it. Check Rehabman's patch-nvme github for more information. When the kext is successfully patched you can see Apple SSD Controller in NVMExpress option of System Report. And is the wireless card soldered into the motherboard ?

Share this post


Link to post
Share on other sites

I know that nvme could work, but personally I'm not interested on enabling it, I know it could cause errors to the drive and I've Windows there and don'twanna mess it....Using a drive on the sata m2 slot is the best solution!

Who Wants to use it can patch the kext or use clover on the fly patching. :)

About the wifibt combo card, yes, sadly its soldered! :/

Share this post


Link to post
Share on other sites

Hi there emela!

I don't think I'll write any specific guide for the installation, you can follow any generic one...

Btw I've wrote a little how to here on the Xiaomi's official forum

The important step is to use the provided files correctly.

The intel Gpu is activated by the config.plist automatically, if you are curious on how, it force the loading of a kext and inject a platform id.

Share this post


Link to post
Share on other sites

Hi there emela!

I don't think I'll write any specific guide for the installation, you can follow any generic one...

Btw I've wrote a little how to here on the Xiaomi's official forum

The important step is to use the provided files correctly.

The intel Gpu is activated by the config.plist automatically, if you are curious on how, it force the loading of a kext and inject a platform id.

 

Hi ClaudesTech,

 

is trackpad multitouch working in MacOS on the Xiaomi?

I can't find anything about that except in the comments here. I've heard that multitouch is not working so far... but I need to hear that from someone who is already using MacOS on the Xiaomi. :)

Share this post


Link to post
Share on other sites

OP asked me to post my findings here instead of the download page (which makes a lot of sense actually, pardon me).

 

I've been on 10.2.2 for a couple of days now and I really can't complain :)
Everything works great besides the issues mentioned by OP. The biggest issue as of now is that if the LID get's closed before you've put the Notebook to sleep via the menu, it will either crash or instantly wake up without usb.. The temporary solution is just to wait those 40-60 seconds for the notebook to fall asleep, before closing the lid. Annoying, yes, but not a deal breaker. Plus, OP is currently trying to find a solution for this issue as well.

 

There are a few things I'd like to share as well:

  1. Although OP recommends against it, and he's probably right for doing so (once, my macOS partition got fully corrupted, maybe because of this or the lid issue - who knows), I've enabled NVMe using Rehabman's NVMe patcher (patch-nvme), in order to dual boot WIN/macOS. It's really simple to use and it will generate an inhibitor kext for you, which will allow you to install macOS on the nvme SSD; if the following files are applied to the installation pen drive that is.

    You just gotta use these simple commands in a terminal on a 10.2.2 machine (I can't upload the patched files because of copyright reasons. At least I don't think so.)
    cd [patch-nvme dir]
    ./patch_nvme.sh --spoof 10_12_2
    After you've done that, copy my SSDT patch to /EFI/Clover/acpi/patched/ and the generated kext to /EFI/Clover/Kexts/.
    At last, you've got to add an entry by the name of SSDT-NVMe-Pcc.aml to the SortedOrder section (at the end is fine, doesn't really matter). You can do this either by using a plist editor, text editor or this fancy CloudConfigurator .
     
  2. In order to use external Bluetooth dongles, you must first prevent the internal bluetooth chip from loading. Fortunately, OP has made this file for this purpose. Although I haven't personally encountered any issues by using it, OP has warned me that it could cause problems, so please use it with caution.
     
  3. I've also created a custom resolution file by following one of Rehabman's guides. It will enable highDPI on 1664x936 and 1600x900. 1080p is way to small in my opinion, while 936p really hits the sweet spot on this machine IMO (plus, 936p res is a multiple of 8, thus a true 16:9 res). Be aware of the small performance decrease you will suffer due to the 2x rendering.
    In order to use them, activate them using RDM after applying the following commands:
  4. ​sudo cp [FILEPATH TO THE DOWNLOADED FILE GOES HERE] /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-4d10/DisplayProductID-1447
    sudo reboot
    

Final notes:

Although OP recommends against it, and as previously stated, my macOS partition got corrupted once, I don't personally think that it's unsafe to use the NVMe drive with Rehabman's new method of patching. Before, Clover was used to patch the kext responsible for NVMe which could end up in a semi patched state - prone to destruction. This isn't the case with this new patch. I'm a hackintosh noob though so take my words with a grain of salt.

 

All in all, OP et al. have done an amazing job. If only the LID issue could be resolved, I'd be fully satisfied.

 

 — — — — — — — — — — — — — — — — — — — — — — — — — — —--

 

EDIT: Some parts were missing.

 

Update: There certainly is something preventing it from sleeping properly. I've installed macOS on a separate drive now as well (vanilla, without any bloat) to make more scientifically accurate tests; and I've discovered that it can actually take up to 2 minutes to sleep. Especially if you try to put it to sleep right after it has awoken. There are also a bunch of usb related assertions that popup after entering the command: pmset -g assertions. Idk if that could possibly be the reason although it kinda seems like it.

Share this post


Link to post
Share on other sites

Hi all,

I'm trying to install mac os on mi xiaomi air 13 in the m.2 new drive that I just bought yesterday following these instructions... After installing sierra and clover to the usb, and copying the files from the 1.06 pack to efi/clover, I boot clover from the USB fine, but just after loading some time the laptop restarts... I have booted in verbose mode, but can not see any usefull information in it.

Attached is the verbose screen just before reboot, hope someone can help me.

post-1947944-0-28169900-1484229988_thumb.jpg

Share this post


Link to post
Share on other sites

Hi everybody,

 

i hope someone can help me. I took the version 1.06 of the package, added my "HackrNVMeFamily-10_12_2.kext" (But i did that on an El Capitan machine because its to old for Sierra) and followed the instructions as described by kevin_1351.

 


After you've done that, copy my SSDT patch to /EFI/Clover/acpi/patched/ and the generated kext to /EFI/Clover/Kexts/.
At last, you've got to add an entry by the name of SSDT-NVMe-Pcc.aml to the SortedOrder section (at the end is fine, doesn't really matter). You can do this either by using a plist editor, text editor or this fancy CloudConfigurator .

 

But when i boot from the USB stick i get the error wich is shown in the attachment

 

Thanks for any help

Nightdrive

post-1950893-0-49222500-1484438585_thumb.jpg

Share this post


Link to post
Share on other sites

Hi everybody,

 

i hope someone can help me. I took the version 1.06 of the package, added my "HackrNVMeFamily-10_12_2.kext" (But i did that on an El Capitan machine because its to old for Sierra) and followed the instructions as described by kevin_1351.

 

 

But when i boot from the USB stick i get the error wich is shown in the attachment

 

Thanks for any help

Nightdrive

It has to be 10.2.2 obviously..

 

Edit: You could actually extract the kext from the 10.2.2 installer and symlink it or edit his patcher to direct it to the new file.

 

Or you could try to find a patched one online.

 

I can't share it cause it would be illegal. Stupidly enough :(

Share this post


Link to post
Share on other sites

Alright guys. Thanks a lot for your feedback. I'll try to find it online first because to be honest i have no idea how to "symlink it or edit his patcher to direct it to the new file" :unsure:

btw: does it make any difference to copy it to EFI/CLOVER/kexts/10.12 or EFI/CLOVER/kexts/other? And is it ok to move kexts by drag and drop with finder? I read somewhere that some tools are recommend for that? Sorry for my noob questions

Share this post


Link to post
Share on other sites

Kexts must be on 10.12 

About the kexts that have to be installed on System/Library/Extensions or Library/Extensions, you have to install those with a kext installer such as this one

About NVMe drive, I strongly suggest users not to use it, leave that for windows and buy an m2 sata drive to add to the empty slot on our xiaomi...

Thats the better solution.

Share this post


Link to post
Share on other sites

i couldn't find the file online. I'll try that tomorrow at work with a MBP 13,1. Just to make sure i didn't misunderstand. I have to generate a spoof "HackrNVMeFamily-10_12_2.kext" on a 10.12.2 machine and copy that file to the kexts folder on my USB Stick, right?

 

Other thing: i was thinking to install a m2 WIFI Card but the connector is missig in my Xiaomi. :(  Maybe new revision?

Share this post


Link to post
Share on other sites

The empty slot, without the soldered connector, is not a m2 wifi slot sadly, its a WWAN slot, the latest Mi Notebook Air, comes with a card on it...

No way to change our wifi card...

Share this post


Link to post
Share on other sites

Kexts must be on 10.12 

About the kexts that have to be installed on System/Library/Extensions or Library/Extensions, you have to install those with a kext installer such as this one

About NVMe drive, I strongly suggest users not to use it, leave that for windows and buy an m2 sata drive to add to the empty slot on our xiaomi...

Thats the better solution.

 

 

Thanks for your great work! I really appreciate it! I'm just wondering if it's possible to deactivate the NVMe drive (there's Windows on it) so the SSD won't consume any energy under OSX?!

Share this post


Link to post
Share on other sites

i couldn't find the file online. I'll try that tomorrow at work with a MBP 13,1. Just to make sure i didn't misunderstand. I have to generate a spoof "HackrNVMeFamily-10_12_2.kext" on a 10.12.2 machine and copy that file to the kexts folder on my USB Stick, right?

 

Other thing: i was thinking to install a m2 WIFI Card but the connector is missig in my Xiaomi. :( Maybe new revision?

There are no m2 wifi cards that are compatible with that slot anyway.

 

As for the Hackr, yeah, just drop it there and add the ssdt to the config.plist (read my first post). I've not had any corruption since that first post. But it's as OP said: use it at your own risk.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By MardukPVP
      Hello guys,

      recently I have tried to install macOS mojave on my Mi Notebook pro (i5 - 8250u model) but have faced one big problem.
      My guide was from Razorkey (https://www.tonymacx86.com/threads/guide-xiaomi-mi-notebook-pro-high-sierra-10-13-6.242724/). As a newbie I have almost no experience in installing macOS on a PC / Laptop... so I hope you can help me .

      But first things first I configurated the BIOS settings on my Mi - Notebook Pro. Therein I just disabled secure boot (because there are quite few options to tick).

      After that I headed over to my secondary Windows - PC and installed a High Sierra virtual machine (thanks to this tutorial: https://techsviewer.com/install-macos-high-sierra-vmware-windows-pc/). At that point everything worked fine.

      Then I downloaded the Mojave patcher and downloaded the full 6GB macOS Installer, put it into applications and formatet my 16GB USB Stick into the journaled + GUID with the name USB meanwhile.
      Next I typed 
      sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/USB 
      into the terminal and at that point everything looked like it would work pretty fine. I downloaded Clover Config, mountet the EFI partition and pushed the EFI folder from this site: https://github.com/daliansky/XiaoMi-Pro to the EFI partition on my 16GB USB drive.

      In the folloing I restarted my Notebook, selected the MacOS installer and it bootet into the MacOS installer. By doing that I only noticed that the progress bar turned green at a certain time (attatchment). Even though everything bootet pretty fine, i formattet my only ssd (Samsung) into APFS + GUID and startet the installation.
      At the point of two minutes my notebook suddenly rebootet and it brang me into the same clover selection menue as before (with only one method [macOS Installation]). Unfortunately there was no further installation method.

      When I was trying to reboot the laptop into the installer i got a error [your computer restarted because of a problem...] and i would have to do everything again.


      I hope someone can help me fixing this problem  . Thanks in advance.




    • By ltooz_audis
      I got the perfect working macBook Air 7,2 working with Mojave - Everything is working - I do mean even the SD card reader - audio - backlight controlled with keyboards... I'll write up the full tutorial and video how to soon. Love the Mojave, High Sierra was nothing compared to this.
      Cheers,
      Louis
       
       
       
    • By Cerv4nteZ
      Hi,
       
      i just let my sierra installation on a skylake xiaomi air laptop update. after the obligatory reboot i was greeted with a kernel panic regarding com.apple.iokit.IOAHCIBlockStorage. Now booting into osx doesnt work anymore
       
      Anyone else run into this? Is there a way to make clover save the boot log on this or do you guys salvage the logs from the hfs volume osx resides on?
    • By JahStories
      Files Package For Xiaomi Mi Notebook Air 13” 2.1
      Bios vers A05 — CPU i5 6200U (confirmed working even on A06 bios)
       
      2.1 PACK FOR HIGH SIERRA ONLY, FOR SIERRA USE 2.0
       
      Discussion's thread.
       
      Not working:
      Wi-fi / Bluetooth. (Bluetooth works if using a VM to inject the FW)
      Nvidia Optimus 940MX GPU. (Optimus does not work on macOS at all)
       
      Issues:
      Excessive battery draining while on sleep.
       
      For 2.0 Steps check the discussion thread
      Steps:
       
       
       
      When updating to new versions of the filepack:
      Remove all old files and install the new ones following the ReadMIs.
      Just remember to use the same serials you used before.
       
      Don't use bios mods, other files with different patches or you'll get no help.
      Special thanks to:
      Jolly, gengik84, and RehabMan.
       
      By Jahstories on InsanelyMac a.k.a. EliJah on macos86.com
       

      HELP NEEDED?



      Please don't post a comment, use
      this thread !


      Thanks!


×