-
Notifications
You must be signed in to change notification settings - Fork 17
/
README.bbcode
469 lines (377 loc) · 26.7 KB
/
README.bbcode
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
[b]Hackintosh Xiaomi Mi Air 13.3 Skylake-U 2016 for macOS Catalina & Mojave & High Sierra[/b]
Hackintosh your XiaoMi Air 13.3 Skylake-U 2016. This is intented to create a fully functional hackintosh for the Xiaomi Mi Notebook Air 13.3'' i5-6200U (Skylake-U 2016).
[b]Important Notes[/b]
[list]
[*] This guide is for the **XiaoMi Air 13.3 Skylake-U 2016**. It will probably work on the **XiaoMi Air 13.3 Kaby Lake-R 2018** models with minor modifications.
[*] All files used and detailed readmes are located in github [sakoula/XiaoMi-Air-6200U](https://github.com/sakoula/XiaoMi-Air-6200U/blob/master/Changelog.md)
[*] The guide will work for either [b]BIOS A05[/b] or [b]BIOS A06[/b]. Bios A09 has [b]NOT[/b] been tested
[*] Following this guide you can run [b]High Sierra 10.13.6[/b] or any version of [b]Mojave 10.14.x up to 10.14.6[/b], or any version of [b]Catalina 10.5.x up to 10.15.3[/b]
[*] macOS has been installed on a different disk on the second M.2 port of the laptop. I have no experience of having both Windows and macOS on a single disk. In order to boot to macOS you use [icode]F12[/icode] upon power on and select the boot device.
[*] In order to be able to help you please provide full debug information useing the excellent [url=https://github.com/black-dragon74/OSX-Debug]black-dragon74/OSX-Debug[/url] tool.
[*] Support and Discussion on this guide can be found at [url=https://www.tonymacx86.com/threads/guide-xiaomi-mi-air-13-3-skylake-u-2016-1rst-gen.268979]tonymacx86[/url]
[/list]
Please note that this guide will be not possible without all the excellent resources:
[list]
[*] [url=https://www.insanelymac.com/forum/topic/319656-guide-xiaomi-mi-notebook-air-13/][Guide] XiaoMi Mi Notebook Air 13"[/url] by [b]JahStories[/b].
[*] [macOS Catalina & Mojave & High Sierra on XiaoMi NoteBook Pro 2017 & 2018](https://github.com/daliansky/XiaoMi-Pro) by [url=https://github.com/daliansky]daliansky[/url] and [url=https://github.com/stevezhengshiqi]stevezhengshiqi[/url]
[*] All the [b]super amazing guides[/b] from [url=https://www.tonymacx86.com/members/rehabman.429483/]RehabMan[/url]
[/list]
[b]1. Known Issues / Work in Progress[/b]
[list]
[*] After Sleep distorted or know audio from Headphones Port *work in progress using ALCPlugFix*
[*] No audio output from HDMI port *I am not using it so ignore for now*
[*] Shutdown is not working as expected. The on/off button's led stays up and the keyboard light is on when touching it. In order to switch off you have to hold the shutdown key for 4 seconds.
[*] Internal Wifi is not working *see Wi-Fi section for alternatives*
[*] When sleeping by closing LID on wake loosing USB
[/list]
If you face another problem please open a issue.
[b]2. Hardware Specifications[/b]
[list]
[*] Skylake-U 2016
[*] Xiaomi Mi Notebook Air 13.3''
[*] Bios vers A06
[*] CPU Intel Core i5-6200U / 2.7GHz max / Dual core, 4 threads / 3MB L3 cache
[*] GPU: HD Graphics 520
[*] GPU: Nvidia GeForce 940MX GPU / 1G GDDR5 RAM, frequency 5GHz
[*] Memory: 8192 MB DDR4 2133 MHz, single-channel, firmly fitted
[*] Display: 13.3 inch 16:9, 1920 x 1080 pixel 166 PPI, Samsung LTN133HL09-M01, IPS, glossy: yes
[*] Samsung PM951 NVMe MZVLV256, 256 GB (on first SLOT which is PCie/NVMe)
[*] Samsung 850 Evo Series, 500GB M.2 SSD (MZ-N5E500BW) (on second SLOT which is SATA) (for macOS)
[*] WIFI: Intel Dual Band Wireless-AC 2x2 Network / 2.4GHz and 5GHz dual-band WiFi / 802.11ac / 802.11b/g/n / 867Mbps max
[*] Bluetooth: Bluetooth 4.1 wireless technology
[*] Connectivity: USB Type-C charging port, 2× USB 3.0, 1× HDMI, 3,5 mm audio jack
[b]3. Upgrade Guide Mojave (10.14.6) to Catalina (10.15.3)[/b]
* Step 1: Delete all hackintosh related kexts from `/Library/Extensions`:
[code]
sudo su -
cd /Library/Extensions
rm -rf AppleALC.kext
rm -rf CPUFriend.kext
rm -rf CPUFriendDataProvider.kext
rm -rf CodecCommander.kext
rm -rf HibernationFixup.kext
rm -rf Lilu.kext
rm -rf LiluFriendLite.kext
rm -rf NullEthernet.kext
rm -rf SATA-unsupported.kext
rm -rf SMCBatteryManager.kext
rm -rf USBPorts.kext
rm -rf VirtualSMC.kext
rm -rf VoodooPS2Controller.kext
rm -rf WhateverGreen.kext
kextcache -i /
[/code]
* Step 2: mount the hard disk EFI partition and delete everything but your smbios settings from **config.plist**
[code]
# somehow mount the EFI e.g. with clover configurator e.g. mounted at /Volumes/EFI
cd /Volumes/EFI/EFI/CLOVER
cp config.plist ~/config.plist
cd /Volumes/EFI/
rm -r EFI*
[/code]
* Step 3: install clover to the disk
follow `Install Clover on the macOS disk` and `Customize Clover on the macOS disk` from this guide.
[b]Important[/b] copy your SMBIOS settings from your `~/config.plist` to the installed `/Volumes/ESP/EFI/CLOVER/config.plist`
* Step 4: upgrade
Do the upgrade from the `System Preferences > Software Update`
Once you get on the 10.15.3 you should not do any further steps.
[b]4. Installation Guide[/b]
These are the steps in order to install or upgrade your XiaoMi-Air. There is a very detailed document on the steps followed and the customizations which can be found in [url=https://github.com/sakoula/XiaoMi-Air-6200U/blob/master/DETAILS.md]DETAILS.md[/url].
There is a another document on how I setup my environment including all the tools and utilities I have used [url=https://github.com/sakoula/XiaoMi-Air-6200U/blob/master/ENVIRONMENT.air.md]ENVIRONMENT.air.md[/url].
You will need a working macOS installation (no matter the version) to create a USB Flash Drive with macOS.
Start by downloading the latest version the customization files from the [url=https://github.com/sakoula/XiaoMi-Air-6200U/releases]releases[/url] page. It includes:
[list]
[*] `AIR_EFI/`: efi directory including all kexts and customization needed
[*] `addons/LiluFriendLite.kext`: `LiluFriendLite.kext` used in the installation
[*] `addons/ApfsDriverLoader.efi`: `ApfsDriverLoader.efi` used in the installation
[*] `addons/AudioDxe.efi`: `AudioDxe.efi` used in the installation
[*] `addons/EmuVariableUefi.efi`: `EmuVariableUefi.efi` Emulated NVRAM
[*] `addons/FwRuntimeServices.efi`: `FwRuntimeServices.efi` required from OcQuirks*
[*] `addons/HFSPlus.efi`: `HFSPlus.efi` used in the installation
[*] `addons/OcQuirks.efi`: `OcQuirks.efi` instead of OsxAptio*
[*] `addons/OcQuirks.plist`: `OcQuirks.plist` instead of OsxAptio*
[*] `addons/UsbKbDxe.efi`: `UsbKbDxe.efi` used in the installation
[*] `addons/UsbMouseDxe.efi`: `UsbMouseDxe.efi` used in the installation
[*] `addons/VirtualSmc.efi`: `VirtualSmc.efi` used in the installation
[*] `addons/AppleGenericInput.efi`: `AppleGenericInput.efi` FileVault
[*] `addons/AppleUiSupport.efi`: `AppleUiSupport.efi` FileVault
[/list]
[b]4.1 Installation SSD[/b]
I installed a [icode]Samsung 850 Evo Series, 500GB M.2 SSD (MZ-N5E500BW)[/icode] specifically for macOS on the [b]second[/b] M.2 port. Use [icode]F12[/icode] to boot from a specific device.
[b]4.2 Disable Secure Boot[/b]
Hold [icode]F2[/icode] to get into the BIOS. In order to disable the secure boot you need to set a supervisor BIOS password. Use [icode]root[/icode] as a password. Without exiting disable the secure boot. Then change the supervisor password and do not enter a new one. This will disable it. Exit BIOS saving the options.
You do not have to change anything else from the defaults
[b]4.3 Preparing USB Flash Drive[/b]
[url=https://support.apple.com/en-us/HT201372]Get a at least 16GB[/url] USB Flash Drive and:
[icode]Disk Utility > Select USB Device > Erase[/icode]:
[list]
[*] GUID Partition Table
[*] Name: USB
[*] Format: MacOS Extended (Journaled)
[/list]
[b]4.4 Install Cataline installer to the USB Flash Drive[/b]
Download Cataline from Apple AppStore and run the following command to install it on the USB disk you just Erased.
[icode]$ sudo /Applications/Install macOS Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/USB[/icode]
[b]4.5 Install [icode]Clover[/icode] to the USB Flash Drive[/b]
Go with the stock clover and run `Clover_v2.5k_r5099` installer:
*Continue* > *Continue* > *Change Install Location* > *Install macOS Catalina* > *Customize*
*Clover for UEFI booting only*, *Install Clover in the ESP*
[b]4.6 Customize Clover on the USB Flash Drive[/b]
Download the latest [url=https://github.com/sakoula/XiaoMi-Air-6200U/releases]release[/url] from github and unzip the archive. You will find an [icode]AIR_EFI[/icode] directory and a [icode]addons[/icode] directory. Mount the USB Flash Drive's [icode]EFI[/icode] partition on [icode]/Volumes/EFI[/icode]:
[list]
[*] create `EFI/CLOVER/drivers/UEFI` or erase everything in `EFI/CLOVER/drivers/UEFI` if it exists
[*] copy `AIR_EFI/CLOVER/kexts/Other` from the downloaded file to USB's EFI to `EFI/CLOVER/kexts/Other`
[*] copy `addons/*.efi` and `addons/*.plist` from the downloaded file to USB's EFI to `EFI/CLOVER/drivers/UEFI/`
[*] copy `AIR_EFI/CLOVER/ACPI/PATCHED/*` from the downloaded file to USB's EFI to `EFI/CLOVER/ACPI/PATCHED/*`
[*] copy `AIR_EFI/CLOVER/config.plist` from the downloaded file to USB's EFI to `EFI/CLOVER/config.plist`
[/list]
[b]4.7 Install Catalina[/b]
To boot from the USB Flash Drive you can just hit [icode]F12[/icode] and you will get the UEFI boot loader
Boot from the USB and install Catalina on the hard disk.
If your Xiaomi-Air already runs High Sierra 10.14.6 you can upgrade directly to Catalina using the installer from the AppleStore (no need of a USB Flash Drive).
[quote]
[b]Important[/b]: During installation you will ask to reboot the machine. While on clover make sure to boot from [icode]Boot macOS install from *** disk[/icode] disk. If you do not see this disk hit [icode]F3[/icode] to show all the hidden disks. You may need to reboot multiple times.
[/quote]
[b]4.8 Install [icode]Clover[/icode] on the macOS disk[/b]
Once the installation is over you will need to install [icode]Clover[/icode] bootloader on the hard disk that you have installed macOS in order to be able to boot without the USB Flash Drive.
Run again the [icode]Clover_v2.5k_r5099[/icode] installer:
*Continue* > *Continue* > *Change Install Location* > *macOS location* > *Customize*
*Clover for UEFI booting only*, *Install Clover in the ESP*
*Install RC scripts on target volume*
*Install Clover Preference Pane*
[b]4.9 Customize Clover on the macOS disk[/b]
Download the latest [url=https://github.com/sakoula/XiaoMi-Air-6200U/releases]release[/url] from github and unzip the archive. You will find an [icode]AIR_EFI[/icode] directory and a [icode]addons[/icode] directory.
> **Important**: Before installing clover on disk make sure that you do `sudo mount -uw /` from the terminal. And ignore any message from clover saying that it is incompatible with your operating system
Mount the EFI partition of the macOS boot parition on [icode]/Volumes/EFI[/icode]:
[list]
[*] create `EFI/CLOVER/drivers/UEFI` or erase everything in `EFI/CLOVER/drivers/UEFI` if it exists
[*] copy `AIR_EFI/CLOVER/kexts/Other` from the downloaded file to USB's EFI to `EFI/CLOVER/kexts/Other`
[*] copy `addons/*.efi` and `addons/*.plist` from the downloaded file to USB's EFI to `EFI/CLOVER/drivers/UEFI/`
[*] copy `AIR_EFI/CLOVER/ACPI/PATCHED/*` from the downloaded file to USB's EFI to `EFI/CLOVER/ACPI/PATCHED/*`
[*] copy `AIR_EFI/CLOVER/config.plist` from the downloaded file to USB's EFI to `EFI/CLOVER/config.plist`
[/list]
[b]4.10 Move kexts to [icode]/Library/Extensions[/icode][/b]
[b]February 2020[/b] Starting with Catalina I do not do this step!
The right way to load kexts is [b]not[/b] by injecting them through clover but installing them in [icode]/Library/Extensions[/icode] and building them into the kernel cache.
Download the latest [url=https://github.com/sakoula/XiaoMi-Air-6200U/releases]release[/url] from github and unzip the archive. You will find an [icode]AIR_EFI[/icode] directory and a [icode]addons[/icode] directory.
Mount the EFI partition of the macOS boot parition on [icode]/Volumes/EFI[/icode]:
[list]
[*] [b]move[/b] [icode]EFI/CLOVER/kexts/Other/*[/icode] from macOS boot parition to [icode]/Library/Extensions/*[/icode]
[*] run from the console [icode]$ sudo chown -R root:wheel /Library/Extensions/*[/icode]
[*] run from the console [icode]$ sudo chmod -r 755 /Library/Extensions/*[/icode]
[*] run from the console [icode]$ sudo kextcache -i /[/icode] to rebuild the caches
[*] [b]move[/b] [icode]addons/LiluFriendLite.kext[/icode] from the downloaded file to [icode]/Library/Extensions/LiluFriendLite.kext[/icode]
[*] run from the console [icode]$ sudo chown -R root:wheel /Library/Extensions/*[/icode]
[*] run from the console [icode]$ sudo chmod -r 755 /Library/Extensions/*[/icode]
[*] run from the console [icode]$ sudo kextcache -i /[/icode] to rebuild the caches
[/list]
[b]remember[/b] that [icode]kextcache[/icode] needs to be run twice
[b]4.11 Create a USB Flash Drive just with [icode]Clover[/icode] for emergencies[/b]
Get a small (2GB will work just fine) USB Flash Drive and:
[icode]Disk Utility > Select USB Device > Erase[/icode]:
[list]
[*] GUID Partition Table
[*] Name: CLOVER
[*] Format: MS-DOS-FAT
[/list]
Run the [icode]Clover_v2.5k_r5099[/icode] installer:
*Continue* > *Continue* > *Change Install Location* > *USB Flash Drive* > *Customize*
*Clover for UEFI booting only*, *Install Clover in the ESP*
Download the latest [url=https://github.com/sakoula/XiaoMi-Air-6200U/releases]release[/url] from github and unzip the archive. You will find an [icode]AIR_EFI[/icode] directory and a [icode]addons[/icode] directory. Mount the USB Flash Drive's [icode]EFI[/icode] partition on [icode]/Volumes/EFI[/icode]:
[list]
[*] create `EFI/CLOVER/drivers/UEFI` or erase everything in `EFI/CLOVER/drivers/UEFI` if it exists
[*] copy `AIR_EFI/CLOVER/kexts/Other` from the downloaded file to USB's EFI to `EFI/CLOVER/kexts/Other`
[*] copy `addons/*.efi` and `addons/*.plist` from the downloaded file to USB's EFI to `EFI/CLOVER/drivers/UEFI/`
[*] copy `AIR_EFI/CLOVER/ACPI/PATCHED/*` from the downloaded file to USB's EFI to `EFI/CLOVER/ACPI/PATCHED/*`
[*] copy `AIR_EFI/CLOVER/config.plist` from the downloaded file to USB's EFI to `EFI/CLOVER/config.plist`
[*] edit `config.plist` change the `SystemParameters`:
[/list]
[code=xml]
<dict>
<key>InjectKexts</key>
<string>Detect</string>
<key>InjectSystemID</key>
<true/>
</dict>
[/code]
[b]5. Postinstallation Steps[/b]
[b]5.1 Enable HiDPI resolutions[/b]
I am using the computer using the *1600x900* resolution that fits my eyes best.
You can enable HiDPI resolutions using the amazing script [one-key-hidpi](https://github.com/xzhih/one-key-hidpi). However since native max resolution of the LCD is *1920x1080* it **does not make any sense**. HiDPI will look huge on screen and the *1920x1080* HiDPI will not seem any different and will make the computer slower. *1920x1080* HiDPI will create a *3840x2160* virtual screen that will map it to a *1920x1080* display, so it does not help much.
If you still want to use HiDPI get the [url=https://github.com/avibrazil/RDM]avibrazil/RDM[/url] [avibrazil/RDM](https://github.com/avibrazil/RDM) tool if you cannot see all the available resolutions.
[b]5.2 Install ALCPlugFix[/b]
Install ALCPlugFix is [i]work in progress[/i] to solve the wake up with headphones problem
[b]5.3 create a valid SMBIOS[/b]
create a valid SMBIOS. Follow the guide [url=https://www.tonymacx86.com/threads/an-idiots-guide-to-imessage.196827/]An iDiot's Guide To iMessage [/url]
[b]6. Patching Information[/b]
Patching has been done using clover and [url=https://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/]hotpatching ACPI[/url]. All the required files exist in the [icode]AIR_EFI[/icode] directory:
[list]
[*] [icode]CLOVER/config.plist[/icode] clover configuration file
[*] [icode]CLOVER/ACPI/origin[/icode] BIOS A06 ACPI aml files (from CLOVER with F4)
[*] [icode]CLOVER/ACPI/patched[/icode] ACPI hotpaches
[*] [icode]CLOVER/kexts/Other[/icode] kexts required
[/list]
The SMBIOS used is [icode]MacBookPro13,1[/icode]
[b]6.1 CPU[/b]
[list]
[*] The model is [icode]i5-6200U[/icode], and XCPM power management is native supported.
[*] HWP is supported as well through a custom [icode]CPUFriendDataProvider.kext[/icode] [i]work in progress[/i]
[/list]
kext patches in [icode]/CLOVER/kexts/Other[/icode] applied:
[list]
[*] `Lilu.kext` Arbitrary kext and process patching on macOS
[*] `HibernationFixup.kext` Lilu plugin intended to fix hibernation compatibility issues
[*] `NullEthernet.kext` Null Ethernet Network Driver by RehabMan
[*] `CPUFriend.kext` Dynamic macOS CPU power management data injection
[*] `CPUFriendDataProvider.kext` custom CPU power management provider for i5-6200U
[*] ~~`ACPIBatteryManager.kext` Advanced Configuration and Power Interface (ACPI) based battery manager kernel extension~~ updated 20190801 [VirtualSMC+SMCBatteryManager is recommended](https://github.com/daliansky/XiaoMi-Pro-Hackintosh/pull/204)
[*] `VirtualSMC.kext` SMC emulator layer
[*] `SMCBatteryManager.kext` SMC emulator layer use this instead of ACPIBatteryManager.kext
[*] `SMCProcessor.kext` Virtual SMC plugin
[*] `SMCSuperIO.kext` Virtual SMC plugin
[*] `SATA-unsupported.kext` SATA unsupported
[/list]
ACPI patches in [icode]/CLOVER/ACPI/patched[/icode] applied:
[list]
[*] `SSDT-DMAC.aml` Add missing DMAC Device to enhace performance like a real Mac
[*] `SSDT-HPET.aml` Disable HPET device by passing value 0 to HPTE to to behave more like a real Mac
[*] `SSDT-MEM2.aml` Add missing MEM2 Device to enhace performance like a real Mac
[*] `SSDT-PMCR.aml` Add missing PMCR Device to enhace performance like a real Mac
[*] `SSDT-GPRW.aml` For solving instant wake by hooking GPRW
[*] ~~`SSDT-PNLF.aml` Adding PNLF device for BackLight related~~ updated 20190801 Remove SSDT-PNLF and replace with AddPNLF argument as suggested in [WhateverGreen FAQ](https://github.com/acidanthera/WhateverGreen/blob/master/Manual/FAQ.IntelHD.en.md#adjusting-the-brightness-on-a-laptop)
[*] `SSDT-RMCF.aml` Configuration data for other SSDTs(SSDT-GPRW and SSDT-PTSWAK)
[*] `SSDT-LPC.aml` To fix unsupported 8-series LPC devices (0x9d48).
[*] `SSDT-PTSWAK.aml` fixing sleep _PTS and _WAK
[*] `SSDT-SMBUS.aml` add BUS0 device
[*] `SSDT-PXSX.aml` Cosmetic Strings for Xiaomi Mi Notebook Air 13.3
[*] `SSDT-XOSI.aml` Override for host defined _OSI to handle "Darwin"
[/list]
[b]6.2 Audio[/b]
[list]
[*] Sound card is [icode]Realtek ALC255[/icode] which is drived by [icode]AppleALC[/icode] on layout-id 30 or 99. I have noticed that on layout-id 30 internal microphone and heaphones microphone is too low so I switched back to layout-id 99.
[/list]
kext patches in [icode]/CLOVER/kexts/Other[/icode] applied:
[*] [icode]AppleALC.kext[/icode] Native macOS HD audio for not officially supported codecs
[*] [icode]CodecCommander.kext[/icode] For waking up EAPD amp after sleep on OS X hackintosh
[/list]
[icode]config.plist[/icode] patch applied:
[list]
[*] Patch [icode]Devices > PciRoot(0x0)/Pci(0x1f,0x3)[/icode]
[/list]
[b]6.3 Bluetooth[/b]
The card in the laptop is [icode]Intel® Dual Band Wireless-AC 8260[/icode]
[list]
[*] Bluetooth works if using a VM to inject the FW or use injectors
[*] `IntelBluetoothFirmware.kext`
[*] `IntelBluetoothInjector.kext`
[/list]
[b]6.4 Ethernet[/b]
[list]
[*] Xiaomi-Air does not have an Ethernet. A USB one can be used and supported natively such as the [url=https://www.tp-link.com/us/products/details/cat-5523_UE300.html][icode]TP-LINK UE300[/icode][/url]
[/list]
[b]6.5 Graphics[/b]
[list]
[*] Discrete card is [icode]Nvidia GeForce 940MX[/icode], disabled by [icode]SSDT-DDGPU.aml[/icode] because macOS doesn't support Optimus technology.
[*] Supported card is [icode]Intel HD Graphics 520[/icode] supported with edits in [icode]config.plist[/icode]
[/list]
kext patches in [icode]/CLOVER/kexts/Other[/icode] applied:
[list]
[*] [icode]WhateverGreen.kext[/icode] Various patches necessary for certain ATI/AMD/Intel/Nvidia GPUs
[/list]
ACPI patches in [icode]/CLOVER/ACPI/patched[/icode] applied:
[list]
[*] [icode]SSDT-BCKS.aml[/icode] Native brightness hotkey support
[/list]
[icode]config.plist[/icode] patch applied:
[list]
[*] Patch [icode]Devices > PciRoot(0x0)/Pci(0x2,0x0)[/icode]
[/list]
[b]6.6 Keyboard[/b]
kext patches in [icode]/CLOVER/kexts/Other[/icode] applied:
[list]
[*] [icode]VoodooPS2Controller.kext[/icode] RehabMan and now Acidanthera work on keyboard
[*] [icode]VoodooInput.kext[/icode] VoodooPS2Controller is now two kexts
[/list]
[b]6.7 Touchpad[/b]
kext patches in [icode]/CLOVER/kexts/Other[/icode] applied:
[list]
[*] [icode]VoodooPS2Controller.kext[/icode] RehabMan and now Acidanthera work on keyboard
[*] [icode]VoodooInput.kext[/icode] VoodooPS2Controller is now two kexts
[/list]
[b]6.8 USB[/b]
[list]
[*] USB Port Patching uses [url=https://www.tonymacx86.com/threads/release-intel-fb-patcher-v1-4-1.254559]Intel FB-Patcher[/url], related file is located in [icode]/CLOVER/kexts/Other/USBPorts.kext[/icode]. This patch includes power injection as well (remove `SSDT-USBX.aml`)
[/list]
kext patches in [icode]/CLOVER/kexts/Other[/icode] applied:
[list]
[*] [icode]USBPorts.kext[/icode] through HackingTool
[/list]
> 2090801 It seems that HS02 and SS02 is not used. I thought initially that the Type-C used different ports according to how you plug the cable. So they are redundant in the kext. However they do not make any harm so I left them in
* `USBPorts.kext` through HackingTool
[b]6.9 Wi-Fi[/b]
The card in the laptop is [icode]Intel® Dual Band Wireless-AC 8260[/icode]
[list]
[*] Wifi is not working. Get a USB card such as [icode]TP-LINK TL-WN725N v3[/icode] and download drivers from the [url=https://www.tp-link.com/us/download/TL-WN725N.html]TP-LINK site[/url] or [icode]Archer T3U[/icode] and download drivers from the [url=https://www.tp-link.com/us/download/TL-WN725N.html]TP-LINK site[/url]
[/list]
[b]7. Changelog[/b]
You can view [url=https://github.com/sakoula/XiaoMi-Air-6200U/blob/master/Changelog.md]Changelog.md[/url] for detailed information.
[b]8. Benchmarking[/b]
[b]8.1 Benchmarking Windows 10[/b]
[list]
[*] [icode]GeekBench x64 4.0.3 CPU[/icode] 2550/5551
[*] [icode]CINEBENCH R15.038_RC184115 OpenGL[/icode] 56.92fps (NVIDIA)
[*] [icode]CINEBENCH R15.038_RC184115 OpenGL[/icode] 36.45fps (Intel)
[*] [icode]CINEBENCH R15.038_RC184115 CPU[/icode] 295cb
[*] [icode]LuxMark-v3.1 OpenCL GPU[/icode] 3710 (Intel + NVIDIA)
[*] [icode]LuxMark-v3.1 OpenCL GPU[/icode] 1427 (Intel)
[*] [icode]LuxMark-v3.1 OpenCL GPU[/icode] 2354 (NVIDIA)
[*] [icode]LuxMark-v3.1 OpenCL CPU[/icode] 860
[*] [icode]Heaven FPS[/icode] 20.3 [icode]Score[/icode] 512 [icode]Min FPS[/icode] 7.8 [icode]Max FPS[/icode] 40.4 (NVIDIA)
[*] [icode]Heaven FPS[/icode] 9.1 [icode]Score[/icode] 230 [icode]Min FPS[/icode] 5.5 [icode]Max FPS[/icode] 20.1 (Intel)
[/list]
[b]8.2 Benchmarking macOS 10.14.2[/b]
[list]
[*] [icode]GeekBench x64 4.3.2 CPU[/icode] 3470/6695
[*] [icode]GeekBench x64 4.3.2 GPU/OpenCl[/icode] 16465
[*] [icode]GeekBench x64 4.3.2 GPU/Metal[/icode] 16748
[*] [icode]CINEBENCH R15.038_RC184115 OpenGL[/icode] 22.92fps
[*] [icode]CINEBENCH R15.038_RC184115 CPU[/icode] 293cb
[*] [icode]LuxMark-v3.1 OpenCL GPU[/icode] 1381
[*] [icode]LuxMark-v3.1 OpenCL CPU[/icode] 776
[*] [icode]Heaven FPS[/icode] 13.8 [icode]Score[/icode] 349 [icode]Min FPS[/icode] 6.2 [icode]Max FPS[/icode] 25.3
[*] [icode]AJA System Test Lite (with trim) Samsung SSD 850 EVO M.2 500GB:[/icode] 469MB/sec write, 489MB/sec read
[/list]
[b]8.3 Benchmarking macOS 10.15.3 (JahStories CPUFriendProvider)
[list]
[*] [icode]GeekBench x64 4.3.2 CPU[/icode] 3356/6486
[*] [icode]GeekBench x64 4.3.2 GPU/OpenCl[/icode] 23481
[*] [icode]GeekBench x64 4.3.2 GPU/Metal[/icode] 16968
[*] [icode]CINEBENCH R15.038_RC184115 OpenGL[/icode] 22.26fps
[*] [icode]CINEBENCH R15.038_RC184115 CPU[/icode] 268cb
[*] [icode]LuxMark-v3.1 OpenCL GPU[/icode] 1465
[*] [icode]LuxMark-v3.1 OpenCL CPU[/icode] 776
[*] [icode]Heaven FPS[/icode] 13.4 [icode]Score[/icode] 336 [icode]Min FPS[/icode] 6.0 [icode]Max FPS[/icode] 22.9
[*] [icode]AJA System Test Lite (with trim) Samsung SSD 850 EVO M.2 500GB:[/icode] 474MB/sec write, 494MB/sec read
[/list]
[b]8.4 Benchmarking macOS 10.15.3 (corpnewt/CPUFriendFriend LFM=08/EPP=80)
[list]
[*] [icode]GeekBench x64 4.3.2 CPU[/icode] 3348/6462
[*] [icode]GeekBench x64 4.3.2 GPU/OpenCl[/icode] 23762
[*] [icode]GeekBench x64 4.3.2 GPU/Metal[/icode] 17023
[*] [icode]CINEBENCH R15.038_RC184115 OpenGL[/icode] 22.33fps
[*] [icode]CINEBENCH R15.038_RC184115 CPU[/icode] 286cb
[*] [icode]LuxMark-v3.1 OpenCL GPU[/icode] 1460
[*] [icode]LuxMark-v3.1 OpenCL CPU[/icode] 771
[*] [icode]Heaven FPS[/icode] 13.2 [icode]Score[/icode] 333 [icode]Min FPS[/icode] 5.9 [icode]Max FPS[/icode] 24.7
[*] [icode]AJA System Test Lite (with trim) Samsung SSD 850 EVO M.2 500GB:[/icode] 466MB/sec write, 497MB/sec read
[/list]
[b]9. Credits[/b]
[list]
[*] Thanks to [url=https://www.insanelymac.com/forum/topic/319656-guide-xiaomi-mi-notebook-air-13/]JahStories[/url], Jolly, gengik84 that provided the [url=https://www.insanelymac.com/forum/topic/319656-guide-xiaomi-mi-notebook-air-13/]original post[/url] that made this guide feasible.
[*] Thanks to [url=https://github.com/stevezhengshiqi]stevezhengshiqi[/url] and [url=https://github.com/daliansky]daliansky[/url] for the amazing guide of [url=https://github.com/daliansky/XiaoMi-Pro/commits?author=stevezhengshiqi]Xiaomi-Pro[/url] that also made this guide feasible.
[*] Thanks to [url=https://pikeralpha.wordpress.com/]Piker-Alpha[/url]
[*] Thanks to [url=https://github.com/acidanthera]vit9696/Acidanthera[/url] for providing [url=https://github.com/acidanthera/AppleALC]AppleALC[/url], [url=https://github.com/acidanthera/CPUFriend]CPUFriend[/url], [url=https://github.com/acidanthera/HibernationFixup]HibernationFixup[/url], [url=https://github.com/acidanthera/Lilu]Lilu[/url], [icode]USBPorts[/icode], [url=https://github.com/acidanthera/VirtualSMC]VirtualSMC[/url], and [url=https://github.com/acidanthera/WhateverGreen]WhateverGreen[/url].
[*] Thanks to [url=https://github.com/alexandred]alexandred[/url] and [url=https://github.com/hieplpvip]hieplpvip[/url] for providing [url=https://github.com/alexandred/VoodooI2C]VoodooI2C[/url].
[*] Thanks to [url=https://sourceforge.net/u/apianti]apianti[/url], [url=https://sourceforge.net/u/blackosx]blackosx[/url], [url=https://sourceforge.net/u/blusseau]blusseau[/url], [url=https://sourceforge.net/u/dmazar]dmazar[/url], and [url=https://sourceforge.net/u/slice2009]slice2009[/url] for providing [url=https://sourceforge.net/projects/cloverefiboot]Clover[/url].
[*] Thanks to [url=https://github.com/RehabMan]RehabMan[/url] for providing [url=https://github.com/RehabMan/EAPD-Codec-Commander]EAPD-Codec-Commander[/url], [url=https://github.com/RehabMan/OS-X-Clover-Laptop-Conf]OS-X-Clover-Laptop-Config[/url], [url=https://github.com/RehabMan/OS-X-Null-Ethernet]OS-X-Null-Ethernet[/url], [url=https://github.com/RehabMan/OS-X-ACPI-Battery-Driver]OS-X-ACPI-Battery-Driver[/url], [url=https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller]OS-X-Voodoo-PS2-Controller[/url], and [url=https://github.com/RehabMan/hack-tools/tree/master/kexts/SATA-unsupported.kext]SATA-unsupported[/url] and all the amazing help in the forums.
[/list]