├── OC
├── Tools
│ └── .gitkeep
├── Drivers
│ └── .gitkeep
└── Resources
│ └── .gitkeep
├── CLOVER
├── tools
│ └── .gitkeep
├── drivers
│ └── UEFI
│ │ └── .gitkeep
├── themes
│ ├── Xiaomi
│ │ ├── bg.png
│ │ ├── font.png
│ │ ├── XiaomiLogo.png
│ │ ├── screenshot.png
│ │ ├── icons
│ │ │ ├── os_leo.icns
│ │ │ ├── os_mac.icns
│ │ │ ├── os_win.icns
│ │ │ ├── pointer.png
│ │ │ ├── func_help.png
│ │ │ ├── os_arch.icns
│ │ │ ├── os_linux.icns
│ │ │ ├── os_lion.icns
│ │ │ ├── os_snow.icns
│ │ │ ├── os_tiger.icns
│ │ │ ├── os_vista.icns
│ │ │ ├── os_win8.icns
│ │ │ ├── pointer.icns
│ │ │ ├── func_about.png
│ │ │ ├── func_clover.png
│ │ │ ├── func_options.png
│ │ │ ├── func_reset.png
│ │ │ ├── os_clover.icns
│ │ │ ├── os_cougar.icns
│ │ │ ├── os_freebsd.icns
│ │ │ ├── os_legacy.icns
│ │ │ ├── os_recovery.icns
│ │ │ ├── os_ubuntu.icns
│ │ │ ├── os_unknow.icns
│ │ │ ├── tool_shell.png
│ │ │ ├── vol_clover.icns
│ │ │ ├── vol_external.png
│ │ │ ├── vol_optical.icns
│ │ │ ├── vol_recovery.png
│ │ │ ├── func_shutdown.png
│ │ │ ├── vol_external.icns
│ │ │ ├── vol_firewire.icns
│ │ │ ├── vol_internal.icns
│ │ │ ├── vol_recovery.icns
│ │ │ ├── func_secureboot.png
│ │ │ ├── vol_internal_hfs.icns
│ │ │ ├── vol_internal_ext3.icns
│ │ │ ├── vol_internal_ntfs.icns
│ │ │ └── func_secureboot_config.png
│ │ ├── selection_big.png
│ │ ├── selection_small.png
│ │ └── theme.plist
│ ├── logo_main.png
│ ├── pointer-metal.png
│ ├── SimpleThemeDark
│ │ ├── font.png
│ │ ├── banner.png
│ │ ├── background.png
│ │ ├── screenshot0.png
│ │ ├── icons
│ │ │ ├── cd_lin.icns
│ │ │ ├── cd_mac.icns
│ │ │ ├── cd_win.icns
│ │ │ ├── os_arch.icns
│ │ │ ├── os_mac.icns
│ │ │ ├── os_win.icns
│ │ │ ├── os_win7.icns
│ │ │ ├── pointer.icns
│ │ │ ├── func_about.png
│ │ │ ├── func_help.png
│ │ │ ├── func_reset.png
│ │ │ ├── os_clover.icns
│ │ │ ├── os_legacy.icns
│ │ │ ├── os_linux.icns
│ │ │ ├── os_sierra.icns
│ │ │ ├── os_ubuntu.icns
│ │ │ ├── tool_shell.png
│ │ │ ├── func_clover.png
│ │ │ ├── func_options.png
│ │ │ ├── func_shutdown.png
│ │ │ ├── os_freebsd.icns
│ │ │ ├── os_recovery.icns
│ │ │ ├── os_unknown.icns
│ │ │ ├── tool_shell.icns
│ │ │ ├── vol_clover.icns
│ │ │ ├── vol_external.icns
│ │ │ ├── vol_firewire.icns
│ │ │ ├── vol_internal.icns
│ │ │ ├── vol_optical.icns
│ │ │ ├── vol_recovery.icns
│ │ │ ├── vol_internal_ext3.icns
│ │ │ ├── vol_internal_hfs.icns
│ │ │ └── vol_internal_ntfs.icns
│ │ ├── selection_big.png
│ │ ├── selection_small.png
│ │ └── theme.plist
│ ├── embedded
│ │ ├── screenshot.png
│ │ └── theme.plist
│ └── random
│ │ └── theme.plist
├── config_cml.plist
└── config_kbl.plist
├── Kexts
├── CML
│ ├── AppleALC.kext
│ │ └── .gitkeep
│ ├── NoTouchID.kext
│ │ └── .gitkeep
│ ├── AirportItlwm_Big_Sur.kext
│ │ └── .gitkeep
│ ├── AirportItlwm_Catalina.kext
│ │ └── .gitkeep
│ ├── IntelBluetoothFirmware.kext
│ │ └── .gitkeep
│ └── IntelBluetoothInjector.kext
│ │ └── .gitkeep
├── KBL
│ ├── AppleALC.kext
│ │ └── .gitkeep
│ ├── CodecCommander.kext
│ │ └── .gitkeep
│ ├── AirportItlwm_Mojave.kext
│ │ └── .gitkeep
│ ├── AirportItlwm_Big_Sur.kext
│ │ └── .gitkeep
│ ├── AirportItlwm_Catalina.kext
│ │ └── .gitkeep
│ ├── AirportItlwm_High_Sierra.kext
│ │ └── .gitkeep
│ ├── IntelBluetoothFirmware.kext
│ │ └── .gitkeep
│ └── IntelBluetoothInjector.kext
│ │ └── .gitkeep
├── Shared
│ ├── Lilu.kext
│ │ └── .gitkeep
│ ├── VirtualSMC.kext
│ │ └── .gitkeep
│ ├── HibernationFixup.kext
│ │ └── .gitkeep
│ ├── NullEthernet.kext
│ │ └── .gitkeep
│ ├── RestrictEvents.kext
│ │ └── .gitkeep
│ ├── SATA-unsupported.kext
│ │ └── .gitkeep
│ ├── SMCLightSensor.kext
│ │ └── .gitkeep
│ ├── SMCProcessor.kext
│ │ └── .gitkeep
│ ├── VoodooI2CHID.kext
│ │ └── .gitkeep
│ ├── WhateverGreen.kext
│ │ └── .gitkeep
│ ├── SMCBatteryManager.kext
│ │ └── .gitkeep
│ ├── VoodooI2C.kext
│ │ └── Contents
│ │ │ └── PlugIns
│ │ │ ├── VoodooGPIO.kext
│ │ │ └── .gitkeep
│ │ │ ├── VoodooInput.kext
│ │ │ └── .gitkeep
│ │ │ └── VoodooI2CServices.kext
│ │ │ └── .gitkeep
│ └── VoodooPS2Controller.kext
│ │ └── Contents
│ │ └── PlugIns
│ │ └── VoodooPS2Keyboard.kext
│ │ └── .gitkeep
└── download_kexts.sh
├── Docs
├── FAQ.pdf
├── 常见问题解答.pdf
├── 蓝牙解决方案.pdf
├── 解锁0xE2寄存器.pdf
├── 设置64mb动态显存.pdf
├── Set-DVMT-to-64mb.pdf
├── Unlock-0xE2-MSR.pdf
├── img
│ ├── SystemLogo.tiff
│ ├── wiki_undervolt_1.png
│ ├── wiki_undervolt_2.png
│ ├── wiki_undervolt_3.png
│ ├── README_get_Release.jpg
│ ├── wiki_Installation_1.JPG
│ ├── wiki_Installation_10.jpg
│ ├── wiki_Installation_11.jpg
│ ├── wiki_Installation_12.jpg
│ ├── wiki_Installation_13.jpg
│ ├── wiki_Installation_14.jpg
│ ├── wiki_Installation_15.jpg
│ ├── wiki_Installation_16.jpg
│ ├── wiki_Installation_2.JPG
│ ├── wiki_Installation_3.JPG
│ ├── wiki_Installation_4.JPG
│ ├── wiki_Installation_5.jpg
│ ├── wiki_Installation_6.jpg
│ ├── wiki_Installation_7.jpg
│ ├── wiki_Installation_8.jpg
│ ├── wiki_Installation_9.jpg
│ ├── wiki_XiaoMiPro_home.jpg
│ ├── wiki_Installation_5_cn.jpg
│ ├── wiki_Installation_6_cn.jpg
│ ├── wiki_Installation_8_cn.jpg
│ ├── wiki_Installation_9_cn.jpg
│ ├── wiki_Installation_16_cn.jpg
│ ├── README_donot_Clone_or_Download.jpg
│ ├── XiaoMi_Hackintosh_with_text_Small.png
│ └── XiaoMi_Hackintosh_with_text_Small_cn.png
├── Drivers
│ └── AptioMemoryFix.efi
├── Work-Around-with-Bluetooth.pdf
├── HiDPI
│ ├── DisplayProductID-747.icns
│ ├── DisplayProductID-747.tiff
│ └── Icons-8thGen.plist
├── Undervolt
│ ├── VoltageShift_replace_kext.zip
│ └── VoltageShift-PowerManager_schedule_file_v2.zip
├── README_CN_${MODEL}.txt
├── README_${MODEL}.txt
└── build_wiki.sh
├── .shellcheckrc
├── ACPI
├── CML
│ ├── SSDT-AWAC.aml
│ ├── SSDT-DDGPU.aml
│ ├── SSDT-LGPA.aml
│ ├── SSDT-PMC.aml
│ ├── SSDT-PS2K.aml
│ ├── SSDT-TPD0.aml
│ ├── SSDT-USB.aml
│ ├── SSDT-XCPM.aml
│ ├── SSDT-LGPA350.aml
│ ├── SSDT-PNLFCFL.aml
│ ├── SSDT-USB-ALL.aml
│ ├── SSDT-USB-USBBT.aml
│ ├── SSDT-USB-FingerBT.aml
│ └── Source
│ │ ├── SSDT-XCPM.dsl
│ │ ├── SSDT-DDGPU.dsl
│ │ ├── SSDT-PNLFCFL.dsl
│ │ ├── SSDT-AWAC.dsl
│ │ ├── SSDT-PMC.dsl
│ │ ├── SSDT-PS2K.dsl
│ │ ├── SSDT-TPD0.dsl
│ │ ├── SSDT-USB-USBBT.dsl
│ │ ├── SSDT-USB.dsl
│ │ └── SSDT-USB-FingerBT.dsl
├── KBL
│ ├── SSDT-DDGPU.aml
│ ├── SSDT-LGPA.aml
│ ├── SSDT-MEM2.aml
│ ├── SSDT-PMC.aml
│ ├── SSDT-PNLF.aml
│ ├── SSDT-PS2K.aml
│ ├── SSDT-TPD0.aml
│ ├── SSDT-USB.aml
│ ├── SSDT-XCPM.aml
│ ├── SSDT-LGPAGTX.aml
│ ├── SSDT-USB-ALL.aml
│ ├── SSDT-USB-USBBT.aml
│ ├── SSDT-USB-FingerBT.aml
│ ├── SSDT-USB-WLAN_LTEBT.aml
│ └── Source
│ │ ├── SSDT-TPD0.dsl
│ │ ├── SSDT-PMC.dsl
│ │ ├── SSDT-XCPM.dsl
│ │ ├── SSDT-DDGPU.dsl
│ │ ├── SSDT-MEM2.dsl
│ │ ├── SSDT-PS2K.dsl
│ │ ├── SSDT-PNLF.dsl
│ │ └── SSDT-USB-USBBT.dsl
├── Shared
│ ├── SSDT-EC.aml
│ ├── SSDT-ALS0.aml
│ ├── SSDT-DMAC.aml
│ ├── SSDT-GPRW.aml
│ ├── SSDT-HPET.aml
│ ├── SSDT-MCHC.aml
│ ├── SSDT-RMNE.aml
│ ├── SSDT-DRP08.aml
│ └── Source
│ │ ├── SSDT-HPET.dsl
│ │ ├── SSDT-MCHC.dsl
│ │ ├── SSDT-GPRW.dsl
│ │ ├── SSDT-EC.dsl
│ │ ├── SSDT-DRP08.dsl
│ │ ├── SSDT-ALS0.dsl
│ │ ├── SSDT-RMNE.dsl
│ │ └── SSDT-DMAC.dsl
└── build_acpi.sh
├── .gitignore
├── .gitmodules
├── LICENSE
├── ALCPlugFix
├── README_CN.md
├── README.md
├── one-key-alcplugfix_cn.sh
└── one-key-alcplugfix.sh
├── README_CN.md
├── README.md
└── .github
└── workflows
└── main.yml
/OC/Tools/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/CLOVER/tools/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/OC/Drivers/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/OC/Resources/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/CLOVER/drivers/UEFI/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/CML/AppleALC.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/CML/NoTouchID.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/KBL/AppleALC.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/Shared/Lilu.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/KBL/CodecCommander.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/Shared/VirtualSMC.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/KBL/AirportItlwm_Mojave.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/Shared/HibernationFixup.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/Shared/NullEthernet.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/Shared/RestrictEvents.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/Shared/SATA-unsupported.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/Shared/SMCLightSensor.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/Shared/SMCProcessor.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/Shared/VoodooI2CHID.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/Shared/WhateverGreen.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/CML/AirportItlwm_Big_Sur.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/CML/AirportItlwm_Catalina.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/CML/IntelBluetoothFirmware.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/CML/IntelBluetoothInjector.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/KBL/AirportItlwm_Big_Sur.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/KBL/AirportItlwm_Catalina.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/KBL/AirportItlwm_High_Sierra.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/KBL/IntelBluetoothFirmware.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/KBL/IntelBluetoothInjector.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/Shared/SMCBatteryManager.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/Shared/VoodooI2C.kext/Contents/PlugIns/VoodooGPIO.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/Shared/VoodooI2C.kext/Contents/PlugIns/VoodooInput.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Kexts/Shared/VoodooI2C.kext/Contents/PlugIns/VoodooI2CServices.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Docs/FAQ.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/FAQ.pdf
--------------------------------------------------------------------------------
/Kexts/Shared/VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Docs/常见问题解答.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/常见问题解答.pdf
--------------------------------------------------------------------------------
/Docs/蓝牙解决方案.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/蓝牙解决方案.pdf
--------------------------------------------------------------------------------
/Docs/解锁0xE2寄存器.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/解锁0xE2寄存器.pdf
--------------------------------------------------------------------------------
/Docs/设置64mb动态显存.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/设置64mb动态显存.pdf
--------------------------------------------------------------------------------
/.shellcheckrc:
--------------------------------------------------------------------------------
1 | # Ignore sudo redirects
2 | disable=SC2024
3 | # Ignore unused variables
4 | disable=SC2034
--------------------------------------------------------------------------------
/ACPI/CML/SSDT-AWAC.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/CML/SSDT-AWAC.aml
--------------------------------------------------------------------------------
/ACPI/CML/SSDT-DDGPU.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/CML/SSDT-DDGPU.aml
--------------------------------------------------------------------------------
/ACPI/CML/SSDT-LGPA.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/CML/SSDT-LGPA.aml
--------------------------------------------------------------------------------
/ACPI/CML/SSDT-PMC.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/CML/SSDT-PMC.aml
--------------------------------------------------------------------------------
/ACPI/CML/SSDT-PS2K.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/CML/SSDT-PS2K.aml
--------------------------------------------------------------------------------
/ACPI/CML/SSDT-TPD0.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/CML/SSDT-TPD0.aml
--------------------------------------------------------------------------------
/ACPI/CML/SSDT-USB.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/CML/SSDT-USB.aml
--------------------------------------------------------------------------------
/ACPI/CML/SSDT-XCPM.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/CML/SSDT-XCPM.aml
--------------------------------------------------------------------------------
/ACPI/KBL/SSDT-DDGPU.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/KBL/SSDT-DDGPU.aml
--------------------------------------------------------------------------------
/ACPI/KBL/SSDT-LGPA.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/KBL/SSDT-LGPA.aml
--------------------------------------------------------------------------------
/ACPI/KBL/SSDT-MEM2.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/KBL/SSDT-MEM2.aml
--------------------------------------------------------------------------------
/ACPI/KBL/SSDT-PMC.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/KBL/SSDT-PMC.aml
--------------------------------------------------------------------------------
/ACPI/KBL/SSDT-PNLF.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/KBL/SSDT-PNLF.aml
--------------------------------------------------------------------------------
/ACPI/KBL/SSDT-PS2K.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/KBL/SSDT-PS2K.aml
--------------------------------------------------------------------------------
/ACPI/KBL/SSDT-TPD0.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/KBL/SSDT-TPD0.aml
--------------------------------------------------------------------------------
/ACPI/KBL/SSDT-USB.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/KBL/SSDT-USB.aml
--------------------------------------------------------------------------------
/ACPI/KBL/SSDT-XCPM.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/KBL/SSDT-XCPM.aml
--------------------------------------------------------------------------------
/ACPI/Shared/SSDT-EC.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/Shared/SSDT-EC.aml
--------------------------------------------------------------------------------
/ACPI/CML/SSDT-LGPA350.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/CML/SSDT-LGPA350.aml
--------------------------------------------------------------------------------
/ACPI/CML/SSDT-PNLFCFL.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/CML/SSDT-PNLFCFL.aml
--------------------------------------------------------------------------------
/ACPI/CML/SSDT-USB-ALL.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/CML/SSDT-USB-ALL.aml
--------------------------------------------------------------------------------
/ACPI/KBL/SSDT-LGPAGTX.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/KBL/SSDT-LGPAGTX.aml
--------------------------------------------------------------------------------
/ACPI/KBL/SSDT-USB-ALL.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/KBL/SSDT-USB-ALL.aml
--------------------------------------------------------------------------------
/ACPI/Shared/SSDT-ALS0.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/Shared/SSDT-ALS0.aml
--------------------------------------------------------------------------------
/ACPI/Shared/SSDT-DMAC.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/Shared/SSDT-DMAC.aml
--------------------------------------------------------------------------------
/ACPI/Shared/SSDT-GPRW.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/Shared/SSDT-GPRW.aml
--------------------------------------------------------------------------------
/ACPI/Shared/SSDT-HPET.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/Shared/SSDT-HPET.aml
--------------------------------------------------------------------------------
/ACPI/Shared/SSDT-MCHC.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/Shared/SSDT-MCHC.aml
--------------------------------------------------------------------------------
/ACPI/Shared/SSDT-RMNE.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/Shared/SSDT-RMNE.aml
--------------------------------------------------------------------------------
/Docs/Set-DVMT-to-64mb.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/Set-DVMT-to-64mb.pdf
--------------------------------------------------------------------------------
/Docs/Unlock-0xE2-MSR.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/Unlock-0xE2-MSR.pdf
--------------------------------------------------------------------------------
/Docs/img/SystemLogo.tiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/SystemLogo.tiff
--------------------------------------------------------------------------------
/ACPI/CML/SSDT-USB-USBBT.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/CML/SSDT-USB-USBBT.aml
--------------------------------------------------------------------------------
/ACPI/KBL/SSDT-USB-USBBT.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/KBL/SSDT-USB-USBBT.aml
--------------------------------------------------------------------------------
/ACPI/Shared/SSDT-DRP08.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/Shared/SSDT-DRP08.aml
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/bg.png
--------------------------------------------------------------------------------
/CLOVER/themes/logo_main.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/logo_main.png
--------------------------------------------------------------------------------
/ACPI/CML/SSDT-USB-FingerBT.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/CML/SSDT-USB-FingerBT.aml
--------------------------------------------------------------------------------
/ACPI/KBL/SSDT-USB-FingerBT.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/KBL/SSDT-USB-FingerBT.aml
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/font.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/font.png
--------------------------------------------------------------------------------
/Docs/img/wiki_undervolt_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_undervolt_1.png
--------------------------------------------------------------------------------
/Docs/img/wiki_undervolt_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_undervolt_2.png
--------------------------------------------------------------------------------
/Docs/img/wiki_undervolt_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_undervolt_3.png
--------------------------------------------------------------------------------
/ACPI/KBL/SSDT-USB-WLAN_LTEBT.aml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/ACPI/KBL/SSDT-USB-WLAN_LTEBT.aml
--------------------------------------------------------------------------------
/CLOVER/themes/pointer-metal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/pointer-metal.png
--------------------------------------------------------------------------------
/Docs/Drivers/AptioMemoryFix.efi:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/Drivers/AptioMemoryFix.efi
--------------------------------------------------------------------------------
/Docs/img/README_get_Release.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/README_get_Release.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_1.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_1.JPG
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_10.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_10.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_11.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_11.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_12.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_12.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_13.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_13.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_14.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_14.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_15.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_15.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_16.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_16.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_2.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_2.JPG
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_3.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_3.JPG
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_4.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_4.JPG
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_5.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_6.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_7.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_7.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_8.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_8.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_9.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_9.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_XiaoMiPro_home.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_XiaoMiPro_home.jpg
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/XiaomiLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/XiaomiLogo.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/screenshot.png
--------------------------------------------------------------------------------
/Docs/Work-Around-with-Bluetooth.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/Work-Around-with-Bluetooth.pdf
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_5_cn.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_5_cn.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_6_cn.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_6_cn.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_8_cn.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_8_cn.jpg
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_9_cn.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_9_cn.jpg
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/font.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/font.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_leo.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_leo.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_mac.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_mac.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_win.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_win.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/pointer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/pointer.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/selection_big.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/selection_big.png
--------------------------------------------------------------------------------
/CLOVER/themes/embedded/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/embedded/screenshot.png
--------------------------------------------------------------------------------
/Docs/HiDPI/DisplayProductID-747.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/HiDPI/DisplayProductID-747.icns
--------------------------------------------------------------------------------
/Docs/HiDPI/DisplayProductID-747.tiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/HiDPI/DisplayProductID-747.tiff
--------------------------------------------------------------------------------
/Docs/img/wiki_Installation_16_cn.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/wiki_Installation_16_cn.jpg
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/banner.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/func_help.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/func_help.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_arch.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_arch.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_linux.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_linux.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_lion.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_lion.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_snow.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_snow.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_tiger.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_tiger.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_vista.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_vista.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_win8.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_win8.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/pointer.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/pointer.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/selection_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/selection_small.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/func_about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/func_about.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/func_clover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/func_clover.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/func_options.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/func_options.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/func_reset.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/func_reset.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_clover.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_clover.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_cougar.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_cougar.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_freebsd.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_freebsd.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_legacy.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_legacy.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_recovery.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_recovery.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_ubuntu.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_ubuntu.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/os_unknow.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/os_unknow.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/tool_shell.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/tool_shell.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/vol_clover.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/vol_clover.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/vol_external.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/vol_external.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/vol_optical.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/vol_optical.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/vol_recovery.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/vol_recovery.png
--------------------------------------------------------------------------------
/Docs/img/README_donot_Clone_or_Download.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/README_donot_Clone_or_Download.jpg
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/background.png
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/screenshot0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/screenshot0.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/func_shutdown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/func_shutdown.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/vol_external.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/vol_external.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/vol_firewire.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/vol_firewire.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/vol_internal.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/vol_internal.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/vol_recovery.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/vol_recovery.icns
--------------------------------------------------------------------------------
/Docs/Undervolt/VoltageShift_replace_kext.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/Undervolt/VoltageShift_replace_kext.zip
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/cd_lin.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/cd_lin.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/cd_mac.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/cd_mac.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/cd_win.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/cd_win.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/os_arch.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/os_arch.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/os_mac.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/os_mac.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/os_win.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/os_win.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/os_win7.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/os_win7.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/pointer.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/pointer.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/selection_big.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/selection_big.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/func_secureboot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/func_secureboot.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/vol_internal_hfs.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/vol_internal_hfs.icns
--------------------------------------------------------------------------------
/Docs/img/XiaoMi_Hackintosh_with_text_Small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/XiaoMi_Hackintosh_with_text_Small.png
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/func_about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/func_about.png
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/func_help.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/func_help.png
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/func_reset.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/func_reset.png
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/os_clover.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/os_clover.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/os_legacy.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/os_legacy.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/os_linux.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/os_linux.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/os_sierra.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/os_sierra.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/os_ubuntu.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/os_ubuntu.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/tool_shell.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/tool_shell.png
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/selection_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/selection_small.png
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/vol_internal_ext3.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/vol_internal_ext3.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/vol_internal_ntfs.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/vol_internal_ntfs.icns
--------------------------------------------------------------------------------
/Docs/img/XiaoMi_Hackintosh_with_text_Small_cn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/img/XiaoMi_Hackintosh_with_text_Small_cn.png
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/func_clover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/func_clover.png
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/func_options.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/func_options.png
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/func_shutdown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/func_shutdown.png
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/os_freebsd.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/os_freebsd.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/os_recovery.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/os_recovery.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/os_unknown.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/os_unknown.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/tool_shell.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/tool_shell.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/vol_clover.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/vol_clover.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/vol_external.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/vol_external.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/vol_firewire.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/vol_firewire.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/vol_internal.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/vol_internal.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/vol_optical.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/vol_optical.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/vol_recovery.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/vol_recovery.icns
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/icons/func_secureboot_config.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/Xiaomi/icons/func_secureboot_config.png
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/vol_internal_ext3.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/vol_internal_ext3.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/vol_internal_hfs.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/vol_internal_hfs.icns
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/icons/vol_internal_ntfs.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/CLOVER/themes/SimpleThemeDark/icons/vol_internal_ntfs.icns
--------------------------------------------------------------------------------
/Docs/Undervolt/VoltageShift-PowerManager_schedule_file_v2.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevezhengshiqi/XiaoMi-Pro/HEAD/Docs/Undervolt/VoltageShift-PowerManager_schedule_file_v2.zip
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # macOS
2 | ._*
3 | .DS_Store
4 |
5 | # Exclude
6 | !.gitkeep
7 |
8 | # build_acpi
9 | ACPI/iasl*
10 |
11 | # download_kexts
12 | Kexts/download/*
13 |
14 | # makefile
15 | build/*
16 |
17 | # wiki
18 | Docs/XiaoMi-Pro-Hackintosh.wiki
19 |
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "ALCPlugFix/ALCPlugFix"]
2 | path = ALCPlugFix/ALCPlugFix
3 | url = https://github.com/Menchen/ALCPlugFix.git
4 | [submodule "one-key-cpufriend"]
5 | path = one-key-cpufriend
6 | url = https://github.com/stevezhengshiqi/one-key-cpufriend.git
7 |
--------------------------------------------------------------------------------
/CLOVER/themes/embedded/theme.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Author
6 | blackosx, clovy
7 | Description
8 | Embedded Theme
9 | Year
10 | 2018
11 |
12 |
13 |
--------------------------------------------------------------------------------
/CLOVER/themes/random/theme.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Author
6 | Slice
7 | Description
8 | random choose a theme from others
9 | Year
10 | 2014
11 |
12 |
13 |
--------------------------------------------------------------------------------
/ACPI/KBL/Source/SSDT-TPD0.dsl:
--------------------------------------------------------------------------------
1 | // Necessary hotpatch, work with VoodooI2C.kext and VoodooI2CHID.kext
2 | // Maintained by: stevezhengshiqi
3 | // Enable trackpad GPIO interrupt mode, work with VoodooI2C.kext and VoodooI2CHID.kext
4 |
5 | DefinitionBlock ("", "SSDT", 2, "hack", "_TPD0", 0x00000000)
6 | {
7 | External (_SB_.PCI0.I2C0.TPD0, DeviceObj)
8 |
9 | Scope (_SB.PCI0.I2C0.TPD0)
10 | {
11 | If (_OSI ("Darwin"))
12 | {
13 | Name (OSYS, 0x07DC)
14 | }
15 | }
16 | }
--------------------------------------------------------------------------------
/ACPI/Shared/Source/SSDT-HPET.dsl:
--------------------------------------------------------------------------------
1 | // NOT Necessary hotpatch
2 | // Maintained by: stevezhengshiqi
3 | // Disable HPET device by giving value 0 to HPTE
4 |
5 | DefinitionBlock ("", "SSDT", 2, "hack", "_HPET", 0x00000000)
6 | {
7 | External (_SB_.PCI0.LPCB.HPET, DeviceObj)
8 | External (HPTE, FieldUnitObj)
9 |
10 | Scope (_SB.PCI0.LPCB.HPET)
11 | {
12 | Method (_INI, 0, NotSerialized) // _INI: Initialize
13 | {
14 | If (_OSI ("Darwin"))
15 | {
16 | HPTE = Zero
17 | }
18 | }
19 | }
20 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2020-2021, daliansky
2 | Copyright (c) 2020-2021, stevezhengshiqi
3 |
4 | Permission to use, copy, modify, and/or distribute this software for any
5 | purpose with or without fee is hereby granted.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9 | AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13 | PERFORMANCE OF THIS SOFTWARE.
14 |
--------------------------------------------------------------------------------
/ACPI/Shared/Source/SSDT-MCHC.dsl:
--------------------------------------------------------------------------------
1 | // NOT Necessary hotpatch
2 | // Maintained by: stevezhengshiqi
3 | // Adding missing MCHC Device
4 |
5 | DefinitionBlock ("", "SSDT", 2, "hack", "_MCHC", 0x00000000)
6 | {
7 | External (_SB_.PCI0, DeviceObj)
8 |
9 | Scope (_SB.PCI0)
10 | {
11 | Device (MCHC)
12 | {
13 | Name (_ADR, Zero) // _ADR: Address
14 | Method (_STA, 0, NotSerialized) // _STA: Status
15 | {
16 | If (_OSI ("Darwin"))
17 | {
18 | Return (0x0F)
19 | }
20 | Else
21 | {
22 | Return (Zero)
23 | }
24 | }
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/ALCPlugFix/README_CN.md:
--------------------------------------------------------------------------------
1 | # ALC 耳机修复
2 |
3 | [English](README.md) | **中文**
4 |
5 | ## 简介
6 |
7 | * 它可以解决耳机插拔状态的切换。
8 | * 它是通过使用命令: `hda-verb 0xNode SET_PIN_WIDGET_CONTROL 0xVerbs` 的方式进行状态切换
9 | * `hda-verb` 是原本来自于Linux下面的 `alsa-project` 的一条命令,它的作用是发送 HD-audio 命令。
10 |
11 |
12 | ## 使用方法
13 |
14 | - 在终端输入以下命令并回车:
15 |
16 | ```shell
17 | sh -c "$(curl -fsSL https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/master/ALCPlugFix/one-key-alcplugfix_cn.sh)"
18 | ```
19 |
20 | - 重启电脑,完成。
21 |
22 | 注意:每次开机后,你可能需要重新插拔耳机来让耳机正常工作。
23 |
24 |
25 | ## 鸣谢
26 |
27 | * 感谢 [goodwin](https://github.com/goodwin) 和 [Menchen](https://github.com/Menchen/ALCPlugFix) 提供和维护 [ALCPlugFix](https://github.com/goodwin/ALCPlugFix)。
28 |
29 | * 感谢 [Keven Lefebvre](https://github.com/orditeck) 对脚本的改善。
30 |
31 | * 感谢 [Rehabman](https://github.com/RehabMan) 提供 [hda-verb](https://github.com/RehabMan/EAPD-Codec-Commander) 的维护。
32 |
--------------------------------------------------------------------------------
/ACPI/KBL/Source/SSDT-PMC.dsl:
--------------------------------------------------------------------------------
1 | // NOT Necessary hotpatch
2 | // Maintained by: stevezhengshiqi
3 | // Reference: https://github.com/syscl/XPS9350-macOS/blob/master/DSDT/patches/syscl_PPMCnPMCR.txt by syscl
4 | // PPMC and PMCR combine together for macOS to load LPCB correctly, mainly for Intel 100-series
5 |
6 | DefinitionBlock ("", "SSDT", 2, "hack", "_PMCR", 0x00000000)
7 | {
8 | External (_SB_.PCI0, DeviceObj)
9 |
10 | Scope (_SB.PCI0)
11 | {
12 | Device (PMCR)
13 | {
14 | Name (_ADR, 0x001F0002) // _ADR: Address
15 | Method (_STA, 0, NotSerialized) // _STA: Status
16 | {
17 | If (_OSI ("Darwin"))
18 | {
19 | Return (0x0F)
20 | }
21 | Else
22 | {
23 | Return (Zero)
24 | }
25 | }
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/ACPI/Shared/Source/SSDT-GPRW.dsl:
--------------------------------------------------------------------------------
1 | // Necessary hotpatch, pair with `Rename Method(GPRW,2,N) to XPRW` rename patch
2 | // Maintained by: Rehabman
3 | // Reference: https://github.com/RehabMan/OS-X-Clover-Laptop-Config/blob/master/hotpatch/SSDT-GPRW.dsl by Rehabman
4 | // For solving instant wake by hooking GPRW
5 |
6 | DefinitionBlock ("", "SSDT", 2, "hack", "_GPRW", 0x00000000)
7 | {
8 | External (XPRW, MethodObj) // 2 Arguments
9 |
10 | Method (GPRW, 2, NotSerialized)
11 | {
12 | If (_OSI ("Darwin"))
13 | {
14 | If ((0x6D == Arg0))
15 | {
16 | Return (Package (0x02)
17 | {
18 | 0x6D,
19 | Zero
20 | })
21 | }
22 |
23 | Return (XPRW (Arg0, Arg1))
24 | }
25 | Else
26 | {
27 | Return (XPRW (Arg0, Arg1))
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/ACPI/Shared/Source/SSDT-EC.dsl:
--------------------------------------------------------------------------------
1 | // Necessary hotpatch, pair with SSDT-USB
2 | // Maintained by: stevezhengshiqi
3 | // Reference: https://www.tonymacx86.com/threads/guide-usb-power-property-injection-for-sierra-and-later.222266 by Rehabman
4 | // Inject Fake EC device to load AppleBusPowerController, work with SSDT-USB
5 |
6 | DefinitionBlock ("", "SSDT", 2, "hack", "_EC", 0x00000000)
7 | {
8 | External (_SB_.PCI0.LPCB, DeviceObj)
9 |
10 | Scope (_SB.PCI0.LPCB)
11 | {
12 | Device (EC)
13 | {
14 | Name (_HID, "EC000000") // _HID: Hardware ID
15 | Method (_STA, 0, NotSerialized) // _STA: Status
16 | {
17 | If (_OSI ("Darwin"))
18 | {
19 | Return (0x0F)
20 | }
21 | Else
22 | {
23 | Return (Zero)
24 | }
25 | }
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/ACPI/Shared/Source/SSDT-DRP08.dsl:
--------------------------------------------------------------------------------
1 | // NOT Necessary hotpatch
2 | // Maintained by: daliansky
3 | // Reference: https://github.com/daliansky/OC-little
4 | // Disable Intel Wireless Card (RP08) to save power
5 | // Users can change RP08 to whatever father PCI device that they want to disable
6 | //
7 | // For XiaoMi-Pro (TM1701)
8 | // RP01 -> MX150 Graphics Card
9 | // RP05 -> Secondary SSD Slot
10 | // RP08 -> Intel Wi-Fi
11 | // RP09 -> Primary SSD Slot
12 |
13 | DefinitionBlock ("", "SSDT", 2, "hack", "_DRP08", 0x00000000)
14 | {
15 | External (_SB_.PCI0.RP08, DeviceObj)
16 |
17 | If (_OSI ("Darwin"))
18 | {
19 | Scope (_SB.PCI0.RP08)
20 | {
21 | OperationRegion (DE01, PCI_Config, 0x50, One)
22 | Field (DE01, AnyAcc, NoLock, Preserve)
23 | {
24 | , 4,
25 | DDDD, 1
26 | }
27 |
28 | DDDD = One
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/ACPI/CML/Source/SSDT-XCPM.dsl:
--------------------------------------------------------------------------------
1 | // Necessary hotpatch
2 | // Maintained by: Rehabman
3 | // Reference: https://github.com/RehabMan/OS-X-Clover-Laptop-Config/blob/master/hotpatch/SSDT-XCPM.dsl by Rehabman
4 | // Inject plugin-type=1 on \_SB.PR00
5 |
6 | DefinitionBlock ("", "SSDT", 2, "hack", "_XCPM", 0x00000000)
7 | {
8 | External (_SB_.PR00, DeviceObj)
9 |
10 | Scope (\_SB.PR00)
11 | {
12 | If (_OSI ("Darwin"))
13 | {
14 | Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
15 | {
16 | If (!Arg2)
17 | {
18 | Return (Buffer (One)
19 | {
20 | 0x03 // .
21 | })
22 | }
23 |
24 | Return (Package (0x02)
25 | {
26 | "plugin-type",
27 | One
28 | })
29 | }
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/ACPI/KBL/Source/SSDT-XCPM.dsl:
--------------------------------------------------------------------------------
1 | // Necessary hotpatch
2 | // Maintained by: Rehabman
3 | // Reference: https://github.com/RehabMan/OS-X-Clover-Laptop-Config/blob/master/hotpatch/SSDT-XCPM.dsl by Rehabman
4 | // Inject plugin-type=1 on \_PR.PR00
5 |
6 | DefinitionBlock ("", "SSDT", 2, "hack", "_XCPM", 0x00000000)
7 | {
8 | External (_PR_.PR00, DeviceObj)
9 |
10 | Scope (\_PR.PR00)
11 | {
12 | If (_OSI ("Darwin"))
13 | {
14 | Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
15 | {
16 | If (!Arg2)
17 | {
18 | Return (Buffer (One)
19 | {
20 | 0x03 // .
21 | })
22 | }
23 |
24 | Return (Package (0x02)
25 | {
26 | "plugin-type",
27 | One
28 | })
29 | }
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/ACPI/CML/Source/SSDT-DDGPU.dsl:
--------------------------------------------------------------------------------
1 | // Necessary hotpatch
2 | // Maintained by: stevezhengshiqi
3 | // Reference: https://github.com/RehabMan/OS-X-Clover-Laptop-Config/blob/master/hotpatch/SSDT-DDGPU.dsl by Rehabman
4 | // For disabling the discrete GPU on Xiaomi-Pro CometLake
5 |
6 | DefinitionBlock ("", "SSDT", 2, "hack", "_DDGPU", 0x00000000)
7 | {
8 | External (_SB_.PCI0.RP05.PXSX._OFF, MethodObj)
9 |
10 | Device (RMD1)
11 | {
12 | Name (_HID, "RMD10000") // _HID: Hardware ID
13 | Method (_INI, 0, NotSerialized) // _INI: Initialize
14 | {
15 | If (CondRefOf (\_SB.PCI0.RP05.PXSX._OFF))
16 | {
17 | \_SB.PCI0.RP05.PXSX._OFF ()
18 | }
19 | }
20 |
21 | Method (_STA, 0, NotSerialized) // _STA: Status
22 | {
23 | If (_OSI ("Darwin"))
24 | {
25 | Return (0x0F)
26 | }
27 | Else
28 | {
29 | Return (Zero)
30 | }
31 | }
32 | }
33 | }
--------------------------------------------------------------------------------
/ACPI/KBL/Source/SSDT-DDGPU.dsl:
--------------------------------------------------------------------------------
1 | // Necessary hotpatch
2 | // Maintained by: stevezhengshiqi and daliansky
3 | // Reference: https://github.com/RehabMan/OS-X-Clover-Laptop-Config/blob/master/hotpatch/SSDT-DDGPU.dsl by Rehabman
4 | // For disabling the discrete GPU on Xiaomi-Pro KabyLake
5 |
6 | DefinitionBlock ("", "SSDT", 2, "hack", "_DDGPU", 0x00000000)
7 | {
8 | External (_SB_.PCI0.RP01.PXSX._OFF, MethodObj)
9 |
10 | Device (RMD1)
11 | {
12 | Name (_HID, "RMD10000") // _HID: Hardware ID
13 | Method (_INI, 0, NotSerialized) // _INI: Initialize
14 | {
15 | If (CondRefOf (\_SB.PCI0.RP01.PXSX._OFF))
16 | {
17 | \_SB.PCI0.RP01.PXSX._OFF ()
18 | }
19 | }
20 |
21 | Method (_STA, 0, NotSerialized) // _STA: Status
22 | {
23 | If (_OSI ("Darwin"))
24 | {
25 | Return (0x0F)
26 | }
27 | Else
28 | {
29 | Return (Zero)
30 | }
31 | }
32 | }
33 | }
--------------------------------------------------------------------------------
/Docs/HiDPI/Icons-8thGen.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | vendors
6 |
7 | 9e5
8 |
9 | products
10 |
11 | 747
12 |
13 | display-resolution-preview-icon
14 | /Library/Displays/Contents/Resources/Overrides/DisplayVendorID-9e5/DisplayProductID-747.tiff
15 | resolution-preview-x
16 | 57
17 | resolution-preview-y
18 | 120
19 | resolution-preview-width
20 | 292
21 | resolution-preview-height
22 | 171
23 | display-icon
24 | /Library/Displays/Contents/Resources/Overrides/DisplayVendorID-9e5/DisplayProductID-747.icns
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/ACPI/CML/Source/SSDT-PNLFCFL.dsl:
--------------------------------------------------------------------------------
1 | // Necessary hotpatch, pair with WhateverGreen.kext
2 | // Maintained by: Acidanthera
3 | // Reference: https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/Source/SSDT-PNLFCFL.dsl by Acidanthera
4 | // Adding PNLF device for WhateverGreen.kext and others.
5 | // This one is specific to CFL+
6 | // Rename GFX0 to anything else if your IGPU name is different.
7 |
8 | DefinitionBlock ("", "SSDT", 2, "ACDT", "_PNLFCFL", 0x00000000)
9 | {
10 | External (_SB_.PCI0.GFX0, DeviceObj)
11 |
12 | Device (_SB.PCI0.GFX0.PNLF)
13 | {
14 | // Name (_ADR, Zero) // _ADR: Address
15 | Name (_HID, EisaId ("APP0002")) // _HID: Hardware ID
16 | Name (_CID, "backlight") // _CID: Compatible ID
17 | Name (_UID, 0x13) // _UID: Unique ID
18 | Method (_STA, 0, NotSerialized) // _STA: Status
19 | {
20 | If (_OSI ("Darwin"))
21 | {
22 | Return (0x0B)
23 | }
24 | Else
25 | {
26 | Return (Zero)
27 | }
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/ALCPlugFix/README.md:
--------------------------------------------------------------------------------
1 | # ALC Plug Fix
2 |
3 | **English** | [中文](README_CN.md)
4 |
5 | ## Introduction
6 |
7 | * The script can solve unworking headphone jack.
8 | * It sends command: `hda-verb 0xNode SET_PIN_WIDGET_CONTROL 0xVerbs` to activate headphone jack.
9 | * `hda-verb` is originally from a command of `alsa-project` in Linux. Its function is to send HD-audio commands.
10 |
11 |
12 | ## How to install
13 |
14 | - Run the following command in Terminal:
15 |
16 | ```shell
17 | sh -c "$(curl -fsSL https://raw.githubusercontent.com/daliansky/XiaoMi-Pro-Hackintosh/master/ALCPlugFix/one-key-alcplugfix.sh)"
18 | ```
19 |
20 | - When it's done, restart your computer. The installation now completes.
21 |
22 | ATTENTION: You may have to replug the headphone after every boot to let headphone work.
23 |
24 |
25 | ## Credits
26 |
27 | * Thanks to [goodwin](https://github.com/goodwin) and [Menchen](https://github.com/Menchen/ALCPlugFix) for providing and maintaining [ALCPlugFix](https://github.com/goodwin/ALCPlugFix).
28 |
29 | * Thanks to [Keven Lefebvre](https://github.com/orditeck) for updating the script.
30 |
31 | * Thanks to [Rehabman](https://github.com/RehabMan) for providing [hda-verb](https://github.com/RehabMan/EAPD-Codec-Commander).
32 |
--------------------------------------------------------------------------------
/ACPI/CML/Source/SSDT-AWAC.dsl:
--------------------------------------------------------------------------------
1 | // Necessary hotpatch
2 | // Maintained by: Acidanthera
3 | // Reference: https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/Source/SSDT-AWAC.dsl by Acidanthera
4 |
5 | /*
6 | * For 300-series only. If you can't force enable Legacy RTC in BIOS GUI.
7 | * macOS does yet not support AWAC, so we have to force enable RTC. Do not use RTC ACPI patch.
8 | *
9 | * The Time and Alarm device provides an alternative to the real time clock (RTC), which is defined as a fixed feature hardware device.
10 | * The wake timers allow the system to transition from the S3 (or optionally S4/S5) state to S0 state after a time period elapses.
11 | * In comparison with the Real Time Clock (RTC) Alarm, the Time and Alarm device provides a larger scale of flexibility in the operation of the wake timers,
12 | * and allows the implementation of the time source to be abstracted from the OSPM.
13 | */
14 |
15 | DefinitionBlock ("", "SSDT", 2, "ACDT", "_AWAC", 0x00000000)
16 | {
17 | External (STAS, IntObj)
18 |
19 | Scope (_SB)
20 | {
21 | Method (_INI, 0, NotSerialized) // _INI: Initialize
22 | {
23 | If (_OSI ("Darwin"))
24 | {
25 | STAS = One
26 | }
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/ACPI/Shared/Source/SSDT-ALS0.dsl:
--------------------------------------------------------------------------------
1 | // NOT Necessary hotpatch
2 | // Maintained by: Rehabman
3 | // Reference: https://github.com/RehabMan/OS-X-Clover-Laptop-Config/blob/master/hotpatch/SSDT-ALS0.dsl
4 | // Fake ambient light sensor device
5 |
6 | DefinitionBlock ("", "SSDT", 2, "hack", "_ALS0", 0x00000000)
7 | {
8 | External (_SB_.PCI0.LPCB, DeviceObj)
9 |
10 | Scope (_SB.PCI0.LPCB)
11 | {
12 | Device (ALS0)
13 | {
14 | Name (_HID, "ACPI0008" /* Ambient Light Sensor Device */) // _HID: Hardware ID
15 | Name (_CID, "smc-als") // _CID: Compatible ID
16 | Name (_ALI, 0x012C) // _ALI: Ambient Light Illuminance
17 | Name (_ALR, Package (One) // _ALR: Ambient Light Response
18 | {
19 | Package (0x02)
20 | {
21 | 0x64,
22 | 0x012C
23 | }
24 | })
25 | Method (_STA, 0, NotSerialized) // _STA: Status
26 | {
27 | If (_OSI ("Darwin"))
28 | {
29 | Return (0x0F)
30 | }
31 | Else
32 | {
33 | Return (Zero)
34 | }
35 | }
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/CLOVER/themes/SimpleThemeDark/theme.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Author
6 | Chang
7 | Description
8 | A Simple Theme
9 | Theme
10 |
11 | Background
12 |
13 | Path
14 | background.png
15 | Type
16 | Tile
17 |
18 | Badges
19 |
20 | Show
21 |
22 | Swap
23 |
24 | Inline
25 |
26 |
27 | Banner
28 | banner.png
29 | Font
30 |
31 | Path
32 | font.png
33 | Type
34 | Load
35 | CharWidth
36 | 10
37 |
38 | Selection
39 |
40 | Big
41 | selection_big.png
42 | Color
43 | 0x6C6C6CFF
44 | Small
45 | selection_small.png
46 | OnTop
47 |
48 |
49 |
50 | Year
51 | 2014
52 |
53 |
54 |
--------------------------------------------------------------------------------
/Docs/README_CN_${MODEL}.txt:
--------------------------------------------------------------------------------
1 | By Steve
2 |
3 | 因为小米笔记本Pro ${MODEL}版的 DSDT 和小米笔记本Pro的不同, SSDT-LGPA 需要重新定制来适配小米笔记本Pro ${MODEL}版。
4 |
5 | 1. 如果您在用 Windows 或者其他系统, 请忽略所有 ._ 开头的文件。
6 |
7 | 如果你是 CLOVER 用户:
8 | 2a. 打开 EFI 包, 前往 EFI/CLOVER/ACPI/patched/ 并删除 SSDT-LGPA.aml
9 |
10 | 3a. 拷贝 SSDT-LGPA${MODEL_PREFIX}.aml 并粘贴到上一步的文件夹。
11 |
12 | 如果你是 OC 用户:
13 | 2b. 打开 EFI 包, 前往 EFI/OC/ACPI/ 并删除 SSDT-LGPA.aml
14 |
15 | 3b. 拷贝 SSDT-LGPA{MODEL_PREFIX}.aml 并粘贴到上一步的文件夹。
16 |
17 | 4. 打开 EFI 包里的 EFI/OC/config.plist 并找到以下代码:
18 |
19 | Comment
20 | Brightness key, pair with LGPA rename
21 | Enabled
22 |
23 | Path
24 | SSDT-LGPA.aml
25 |
26 |
27 | Comment
28 | Brightness key for ${MODEL}, pair with LGPA rename
29 | Enabled
30 |
31 | Path
32 | SSDT-LGPA{MODEL_PREFIX}.aml
33 |
34 |
35 | 替换为:
36 |
37 |
38 | Comment
39 | Brightness key, pair with LGPA rename
40 | Enabled
41 |
42 | Path
43 | SSDT-LGPA.aml
44 |
45 |
46 | Comment
47 | Brightness key for ${MODEL}, pair with LGPA rename
48 | Enabled
49 |
50 | Path
51 | SSDT-LGPA${MODEL_PREFIX}.aml
52 |
53 |
54 |
55 | 完成, 请使用您的 ${MODEL}版 EFI 包吧!
--------------------------------------------------------------------------------
/ACPI/KBL/Source/SSDT-MEM2.dsl:
--------------------------------------------------------------------------------
1 | // NOT Necessary hotpatch
2 | // Maintained by: stevezhengshiqi
3 | // Reference: https://github.com/syscl/XPS9350-macOS/blob/master/DSDT/patches/syscl_iGPU_MEM2.txt by syscl
4 | // Add missing MEM2 device as macOS expects
5 |
6 | DefinitionBlock ("", "SSDT", 2, "hack", "_MEM2", 0x00000000)
7 | {
8 | External (_SB_.PCI0.GFX0, DeviceObj)
9 |
10 | Scope (_SB.PCI0.GFX0)
11 | {
12 | Device (^^MEM2)
13 | {
14 | Name (_HID, EisaId ("PNP0C01") /* System Board */) // _HID: Hardware ID
15 | Name (_UID, 0x02) // _UID: Unique ID
16 | Name (CRS, ResourceTemplate ()
17 | {
18 | Memory32Fixed (ReadWrite,
19 | 0x20000000, // Address Base
20 | 0x00200000, // Address Length
21 | )
22 | Memory32Fixed (ReadWrite,
23 | 0x40000000, // Address Base
24 | 0x00200000, // Address Length
25 | )
26 | })
27 | Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
28 | {
29 | Return (CRS) /* \_SB_.MEM2.CRS_ */
30 | }
31 |
32 | Method (_STA, 0, NotSerialized) // _STA: Status
33 | {
34 | If (_OSI ("Darwin"))
35 | {
36 | Return (0x0F)
37 | }
38 | Else
39 | {
40 | Return (Zero)
41 | }
42 | }
43 | }
44 | }
45 | }
--------------------------------------------------------------------------------
/Docs/README_${MODEL}.txt:
--------------------------------------------------------------------------------
1 | By Steve
2 |
3 | Because Xiaomi-Pro ${MODEL} has a slightly different DSDT from Xiaomi-Pro's, SSDT-LGPA needs to be modified to fit with Xiaomi-Pro ${MODEL}.
4 |
5 | 1. If you are using Windows or other OS, please ignore all the files start with ._
6 |
7 | IF YOU ARE A CLOVER USER:
8 | 2a. Open the EFI release pack, go to EFI/CLOVER/ACPI/patched/, and delete SSDT-LGPA.aml
9 |
10 | 3a. Copy SSDT-LGPA${MODEL_PREFIX}.aml and paste it to the folder in the second step
11 |
12 | IF YOU ARE A OC USER:
13 | 2b. Open the EFI release pack, go to EFI/OC/ACPI/ and delete SSDT-LGPA.aml
14 |
15 | 3b. Copy SSDT-LGPA${MODEL_PREFIX}.aml and paste it to the folder in the second step
16 |
17 | 4. Open EFI/OC/config.plist of the release pack and find the following code:
18 |
19 | Comment
20 | Brightness key, pair with LGPA rename
21 | Enabled
22 |
23 | Path
24 | SSDT-LGPA.aml
25 |
26 |
27 | Comment
28 | Brightness key for ${MODEL}, pair with LGPA rename
29 | Enabled
30 |
31 | Path
32 | SSDT-LGPA${MODEL_PREFIX}.aml
33 |
34 |
35 | Change to:
36 |
37 |
38 | Comment
39 | Brightness key, pair with LGPA rename
40 | Enabled
41 |
42 | Path
43 | SSDT-LGPA.aml
44 |
45 |
46 | Comment
47 | Brightness key for ${MODEL}, pair with LGPA rename
48 | Enabled
49 |
50 | Path
51 | SSDT-LGPA${MODEL_PREFIX}.aml
52 |
53 |
54 |
55 | Done and enjoy your EFI folder for ${MODEL}!
--------------------------------------------------------------------------------
/CLOVER/themes/Xiaomi/theme.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Author
6 | ClaudesTech
7 | Description
8 | Xiaomi Notebook's theme
9 | Year
10 | 2017
11 | Theme
12 |
13 | Background
14 |
15 | Path
16 | bg.png
17 | Type
18 | Tile
19 |
20 | Badges
21 |
22 | Inline
23 |
24 | Show
25 |
26 | Swap
27 |
28 |
29 | Banner
30 | XiaomiLogo.png
31 | Components
32 |
33 | Banner
34 |
35 | Help
36 |
37 | Label
38 |
39 | MenuTitle
40 |
41 | MenuTitleImage
42 |
43 | Revision
44 |
45 | Tools
46 |
47 |
48 | Font
49 |
50 | CharWidth
51 | 10
52 | Path
53 | font.png
54 | Proportional
55 |
56 | Type
57 | Load
58 |
59 | Layout
60 |
61 | TextOffset
62 | -20
63 |
64 | Selection
65 |
66 | Big
67 | selection_big.png
68 | Color
69 | 0xFFFFFF80
70 | Small
71 | selection_small.png
72 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/ACPI/Shared/Source/SSDT-RMNE.dsl:
--------------------------------------------------------------------------------
1 | // Necessary hotpatch, pair with NullEthernet.kext
2 | // Maintained by: Rehabman
3 | // Reference: https://github.com/RehabMan/OS-X-Null-Ethernet/blob/master/SSDT-RMNE.dsl by Rehabman
4 | // Fake an ethernet card to let the system allow Mac App Store access, work with NullEthernet.kext
5 |
6 | DefinitionBlock ("", "SSDT", 2, "hack", "_RMNE", 0x00000000)
7 | {
8 | Device (RMNE)
9 | {
10 | Name (_HID, "NULE0000") // _HID: Hardware ID
11 | Name (MAC, Buffer (0x06)
12 | {
13 | 0x11, 0x22, 0x33, 0x44, 0x55, 0x66 // ."3DUf
14 | })
15 | Method (_STA, 0, NotSerialized) // _STA: Status
16 | {
17 | If (_OSI ("Darwin"))
18 | {
19 | Return (0x0F)
20 | }
21 | Else
22 | {
23 | Return (Zero)
24 | }
25 | }
26 |
27 | Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
28 | {
29 | If ((Arg2 == Zero))
30 | {
31 | Return (Buffer (One)
32 | {
33 | 0x03 // .
34 | })
35 | }
36 |
37 | Return (Package (0x0A)
38 | {
39 | "built-in",
40 | Buffer (One)
41 | {
42 | 0x00 // .
43 | },
44 |
45 | "IOName",
46 | "ethernet",
47 | "name",
48 | Buffer (0x09)
49 | {
50 | "ethernet"
51 | },
52 |
53 | "model",
54 | Buffer (0x15)
55 | {
56 | "RM-NullEthernet-1001"
57 | },
58 |
59 | "device_type",
60 | Buffer (0x09)
61 | {
62 | "ethernet"
63 | }
64 | })
65 | }
66 | }
67 | }
--------------------------------------------------------------------------------
/ACPI/Shared/Source/SSDT-DMAC.dsl:
--------------------------------------------------------------------------------
1 | // NOT Necessary hotpatch
2 | // Maintained by: stevezhengshiqi
3 | // Reference: https://github.com/syscl/XPS9350-macOS/blob/master/DSDT/patches/syscl_DMAC.txt by syscl
4 | // Add missing DMAC Device
5 |
6 | DefinitionBlock ("", "SSDT", 2, "hack", "_DMAC", 0x00000000)
7 | {
8 | External (_SB_.PCI0.LPCB, DeviceObj)
9 |
10 | Scope (_SB.PCI0.LPCB)
11 | {
12 | Device (DMAC)
13 | {
14 | Name (_HID, EisaId ("PNP0200") /* PC-class DMA Controller */) // _HID: Hardware ID
15 | Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
16 | {
17 | IO (Decode16,
18 | 0x0000, // Range Minimum
19 | 0x0000, // Range Maximum
20 | 0x01, // Alignment
21 | 0x20, // Length
22 | )
23 | IO (Decode16,
24 | 0x0081, // Range Minimum
25 | 0x0081, // Range Maximum
26 | 0x01, // Alignment
27 | 0x11, // Length
28 | )
29 | IO (Decode16,
30 | 0x0093, // Range Minimum
31 | 0x0093, // Range Maximum
32 | 0x01, // Alignment
33 | 0x0D, // Length
34 | )
35 | IO (Decode16,
36 | 0x00C0, // Range Minimum
37 | 0x00C0, // Range Maximum
38 | 0x01, // Alignment
39 | 0x20, // Length
40 | )
41 | DMA (Compatibility, NotBusMaster, Transfer8_16, )
42 | {4}
43 | })
44 | Method (_STA, 0, NotSerialized) // _STA: Status
45 | {
46 | If (_OSI ("Darwin"))
47 | {
48 | Return (0x0F)
49 | }
50 | Else
51 | {
52 | Return (Zero)
53 | }
54 | }
55 | }
56 | }
57 | }
--------------------------------------------------------------------------------
/ACPI/build_acpi.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #set -x # for DEBUGGING
3 |
4 | # Created by stevezhengshiqi on 6 Jun, 2020
5 | #
6 | # Build ACPI SSDTs for XiaoMi-Pro EFI
7 | #
8 | # Reference:
9 | # https://github.com/williambj1/Hackintosh-EFI-Asus-Zephyrus-S-GX531/blob/master/Makefile.sh by @williambj1
10 |
11 | # Colors
12 | black=$(tput setaf 0)
13 | red=$(tput setaf 1)
14 | green=$(tput setaf 2)
15 | yellow=$(tput setaf 3)
16 | blue=$(tput setaf 4)
17 | magenta=$(tput setaf 5)
18 | cyan=$(tput setaf 6)
19 | white=$(tput setaf 7)
20 | reset=$(tput sgr0)
21 | bold=$(tput bold)
22 |
23 | # Exit on Network Issue
24 | function networkErr() {
25 | echo "${yellow}[${reset}${red}${bold} ERROR ${reset}${yellow}]${reset}: Failed to download resources from ${1}, please check your connection!"
26 | exit 1
27 | }
28 |
29 | # Exit on Compile Issue
30 | function compileErr() {
31 | echo "${yellow}[${reset}${red}${bold} ERROR ${reset}${yellow}]${reset}: Failed to compile dsl!"
32 | find . -maxdepth 1 -name "*.aml" -exec rm -rf {} + >/dev/null 2>&1
33 | exit 1
34 | }
35 |
36 | function init() {
37 | if [[ ${OSTYPE} != darwin* ]]; then
38 | echo "This script can only run in macOS, aborting"
39 | exit 1
40 | fi
41 |
42 | cd "$(dirname "$0")" || exit 1
43 |
44 | if [[ -f "iasl-stable" ]]; then
45 | rm -rf "iasl-stable"
46 | fi
47 | }
48 |
49 | # Download iasl from Acidanthera's MaciASL repository
50 | function download() {
51 | local URL="https://raw.githubusercontent.com/$1/$2/master/$3"
52 | echo "${green}[${reset}${blue}${bold} Downloading ${3##*\/} ${reset}${green}]${reset}"
53 | echo "${cyan}"
54 | curl -# -L -O "${URL}" || networkErr "${3##*\/}"
55 | echo "${reset}"
56 | }
57 |
58 | function compile() {
59 | chmod +x iasl*
60 | echo "${green}[${reset}${magenta}${bold} Compiling ACPI Files ${reset}${green}]${reset}"
61 | echo
62 | find . -name '*.dsl' -exec sh -c '
63 | ./iasl* -vw 2095 -vw 2173 -vs -p "${1%/*}/../${1##*/}" "${1%}" >/dev/null 2>&1 || compileErr
64 | ' sh {} \;
65 | }
66 |
67 | function enjoy() {
68 | echo "${red}[${reset}${blue}${bold} Done! Enjoy! ${reset}${red}]${reset}"
69 | echo
70 | open ./
71 | }
72 |
73 | function main() {
74 | init
75 | download Acidanthera MaciASL Dist/iasl-stable
76 | compile
77 | enjoy
78 | }
79 |
80 | main
81 |
--------------------------------------------------------------------------------
/README_CN.md:
--------------------------------------------------------------------------------
1 | ## [daliansky 的 XiaoMi-Pro-Hackintosh](https://github.com/daliansky/XiaoMi-Pro-Hackintosh) 的测试仓库
2 |
3 |
4 | ## 鸣谢
5 |
6 | - 感谢 [Acidanthera](https://github.com/acidanthera) 提供 [AppleALC](https://github.com/acidanthera/AppleALC),[AppleSupportPkg](https://github.com/acidanthera/AppleSupportPkg),[HibernationFixup](https://github.com/acidanthera/HibernationFixup),[Lilu](https://github.com/acidanthera/Lilu),[NVMeFix](https://github.com/acidanthera/NVMeFix),[OpenCorePkg](https://github.com/acidanthera/OpenCorePkg),[VirtualSMC](https://github.com/acidanthera/VirtualSMC),[VoodooInput](https://github.com/acidanthera/VoodooInput),[VoodooPS2](https://github.com/acidanthera/VoodooPS2) 和 [WhateverGreen](https://github.com/acidanthera/WhateverGreen)。
7 | - 感谢 [apianti](https://sourceforge.net/u/apianti),[blackosx](https://sourceforge.net/u/blackosx),[blusseau](https://sourceforge.net/u/blusseau),[dmazar](https://sourceforge.net/u/dmazar) 和 [slice2009](https://sourceforge.net/u/slice2009) 提供 [Clover](https://github.com/CloverHackyColor/CloverBootloader)。
8 | - 感谢 [daliansky](https://github.com/daliansky) 提供 [OC-little](https://github.com/daliansky/OC-little)。
9 | - 感谢 [FallenChromium](https://github.com/FallenChromium),[jackxuechen](https://github.com/jackxuechen),[Javmain](https://github.com/javmain),[johnnync13](https://github.com/johnnync13),[Menchen](https://github.com/Menchen),[Pasi-Studio](https://github.com/Pasi-Studio),[qeeqez](https://github.com/qeeqez) 和 [Bat.bat](https://github.com/williambj1) 的宝贵建议。
10 | - 感谢 [hieplpvip](https://github.com/hieplpvip) 和 [syscl](https://github.com/syscl) 提供 DSDT 补丁样本。
11 | - 感谢 [RehabMan](https://github.com/RehabMan) 提供 [EAPD-Codec-Commander](https://github.com/RehabMan/EAPD-Codec-Commander),[EFICheckDisabler](https://github.com/RehabMan/hack-tools/tree/master/kexts/EFICheckDisabler.kext),[OS-X-Clover-Laptop-Config](https://github.com/RehabMan/OS-X-Clover-Laptop-Config),[OS-X-Null-Ethernet](https://github.com/RehabMan/OS-X-Null-Ethernet) 和 [SATA-unsupported](https://github.com/RehabMan/hack-tools/tree/master/kexts/SATA-unsupported.kext)。
12 | - 感谢 [VoodooI2C](https://github.com/VoodooI2C) 提供 [VoodooI2C](https://github.com/VoodooI2C/VoodooI2C)。
13 | - 感谢 [zxystd](https://github.com/zxystd) 提供 [IntelBluetoothFirmware](https://github.com/zxystd/IntelBluetoothFirmware)。
14 |
--------------------------------------------------------------------------------
/ACPI/CML/Source/SSDT-PMC.dsl:
--------------------------------------------------------------------------------
1 | // Necessary hotpatch
2 | // Maintained by: Acidanthera
3 | // Reference: https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/Source/SSDT-PMC.dsl by Acidanthera
4 |
5 | /*
6 | * Intel 300-series PMC support for macOS
7 | *
8 | * Starting from Z390 chipsets PMC (D31:F2) is only available through MMIO.
9 | * Since there is no standard device for PMC in ACPI, Apple introduced its
10 | * own naming "APP9876" to access this device from AppleIntelPCHPMC driver.
11 | * To avoid confusion we disable this device for all other operating systems,
12 | * as they normally use another non-standard device with "PNP0C02" HID and
13 | * "PCHRESV" UID.
14 | *
15 | * On certain implementations, including APTIO V, PMC initialisation is
16 | * required for NVRAM access. Otherwise it will freeze in SMM mode.
17 | * The reason for this is rather unclear. Note, that PMC and SPI are
18 | * located in separate memory regions and PCHRESV maps both, yet only
19 | * PMC region is used by AppleIntelPCHPMC:
20 | * 0xFE000000~0xFE00FFFF - PMC MBAR
21 | * 0xFE010000~0xFE010FFF - SPI BAR0
22 | * 0xFE020000~0xFE035FFF - SerialIo BAR in ACPI mode
23 | *
24 | * PMC device has nothing to do to LPC bus, but is added to its scope for
25 | * faster initialisation. If we add it to PCI0, where it normally exists,
26 | * it will start in the end of PCI configuration, which is too late for
27 | * NVRAM support.
28 | */
29 |
30 | DefinitionBlock ("", "SSDT", 2, "ACDT", "_PMCR", 0x00001000)
31 | {
32 | External (_SB_.PCI0.LPCB, DeviceObj)
33 |
34 | Scope (_SB.PCI0.LPCB)
35 | {
36 | Device (PMCR)
37 | {
38 | Name (_HID, EisaId ("APP9876")) // _HID: Hardware ID
39 | Method (_STA, 0, NotSerialized) // _STA: Status
40 | {
41 | If (_OSI ("Darwin"))
42 | {
43 | Return (0x0B)
44 | }
45 | Else
46 | {
47 | Return (Zero)
48 | }
49 | }
50 | Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
51 | {
52 | Memory32Fixed (ReadWrite,
53 | 0xFE000000, // Address Base
54 | 0x00010000, // Address Length
55 | )
56 | })
57 | }
58 | }
59 | }
--------------------------------------------------------------------------------
/ACPI/CML/Source/SSDT-PS2K.dsl:
--------------------------------------------------------------------------------
1 | // NOT Necessary hotpatch, pair with SSDT-LGPA and VoodooPS2Controller.kext
2 | // Maintained by: stevezhengshiqi
3 | // Reference: https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller/blob/master/SSDT-Swap-LeftControlCapsLock.dsl by Rehabman
4 | // Customize VoodooPS2Controller.kext, pair with SSDT-LGPA
5 |
6 | DefinitionBlock ("", "SSDT", 2, "hack", "_PS2K", 0x00000000)
7 | {
8 | External (_SB_.PCI0.LPCB.PS2K, DeviceObj)
9 |
10 | Scope (_SB.PCI0.LPCB.PS2K)
11 | {
12 | If (_OSI ("Darwin"))
13 | {
14 | Name (RMCF, Package (0x0A)
15 | {
16 | "Keyboard",
17 | Package (0x04)
18 | {
19 | "Custom ADB Map",
20 | Package (0x09)
21 | {
22 | Package (Zero){},
23 | "e023=38", // e023=Shift
24 | "e025=37", // e025=Command
25 | "e026=17", // e026=5
26 | "e029=69", // e029=F13
27 | "e02b=7a", // e02b=F1
28 | "e02c=3b", // e02c=Control
29 | "e02d=7e", // e02d=Up Arrow
30 | "e052=6f" // Insert=F12
31 | },
32 |
33 | "Custom PS2 Map",
34 | Package (0x02)
35 | {
36 | Package (Zero){},
37 | "e037=57" // PrtScn=F11
38 | }
39 | },
40 |
41 | "Mouse",
42 | Package (0x02)
43 | {
44 | "DisableDevice",
45 | ">y"
46 | },
47 |
48 | "ALPS GlidePoint",
49 | Package (0x02)
50 | {
51 | "DisableDevice",
52 | ">y"
53 | },
54 |
55 | "Sentelic FSP",
56 | Package (0x02)
57 | {
58 | "DisableDevice",
59 | ">y"
60 | },
61 |
62 | "Synaptics TouchPad",
63 | Package (0x02)
64 | {
65 | "DisableDevice",
66 | ">y"
67 | }
68 | })
69 | }
70 | }
71 | }
--------------------------------------------------------------------------------
/ACPI/KBL/Source/SSDT-PS2K.dsl:
--------------------------------------------------------------------------------
1 | // NOT Necessary hotpatch, pair with SSDT-LGPA and VoodooPS2Controller.kext
2 | // Maintained by: stevezhengshiqi
3 | // Reference: https://github.com/RehabMan/OS-X-Voodoo-PS2-Controller/blob/master/SSDT-Swap-LeftControlCapsLock.dsl by Rehabman
4 | // Customize VoodooPS2Controller.kext, pair with SSDT-LGPA
5 |
6 | DefinitionBlock ("", "SSDT", 2, "hack", "_PS2K", 0x00000000)
7 | {
8 | External (_SB_.PCI0.LPCB.PS2K, DeviceObj)
9 |
10 | Scope (_SB.PCI0.LPCB.PS2K)
11 | {
12 | If (_OSI ("Darwin"))
13 | {
14 | Name (RMCF, Package (0x0A)
15 | {
16 | "Keyboard",
17 | Package (0x04)
18 | {
19 | "Custom ADB Map",
20 | Package (0x09)
21 | {
22 | Package (Zero){},
23 | "e023=38", // e023=Shift
24 | "e025=37", // e025=Command
25 | "e026=15", // e026=4
26 | "e029=69", // e029=F13
27 | "e02b=7a", // e02b=F1
28 | "e02c=3b", // e02c=Control
29 | "e02d=7e", // e02d=Up Arrow
30 | "e052=6f" // Insert=F12
31 | },
32 |
33 | "Custom PS2 Map",
34 | Package (0x02)
35 | {
36 | Package (Zero){},
37 | "e037=57" // PrtScn=F11
38 | }
39 | },
40 |
41 | "Mouse",
42 | Package (0x02)
43 | {
44 | "DisableDevice",
45 | ">y"
46 | },
47 |
48 | "ALPS GlidePoint",
49 | Package (0x02)
50 | {
51 | "DisableDevice",
52 | ">y"
53 | },
54 |
55 | "Sentelic FSP",
56 | Package (0x02)
57 | {
58 | "DisableDevice",
59 | ">y"
60 | },
61 |
62 | "Synaptics TouchPad",
63 | Package (0x02)
64 | {
65 | "DisableDevice",
66 | ">y"
67 | }
68 | })
69 | }
70 | }
71 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Test Repository for [daliansky's XiaoMi-Pro-Hackintosh](https://github.com/daliansky/XiaoMi-Pro-Hackintosh)
2 |
3 |
4 | ## Credits
5 |
6 | - Thanks to [Acidanthera](https://github.com/acidanthera) for providing [AppleALC](https://github.com/acidanthera/AppleALC), [AppleSupportPkg](https://github.com/acidanthera/AppleSupportPkg), [HibernationFixup](https://github.com/acidanthera/HibernationFixup), [Lilu](https://github.com/acidanthera/Lilu), [NVMeFix](https://github.com/acidanthera/NVMeFix), [OcBinaryData](https://github.com/acidanthera/OcBinaryData), [OpenCorePkg](https://github.com/acidanthera/OpenCorePkg), [VirtualSMC](https://github.com/acidanthera/VirtualSMC), [VoodooInput](https://github.com/acidanthera/VoodooInput), [VoodooPS2](https://github.com/acidanthera/VoodooPS2), and [WhateverGreen](https://github.com/acidanthera/WhateverGreen).
7 | - Thanks to [apianti](https://sourceforge.net/u/apianti), [blackosx](https://sourceforge.net/u/blackosx), [blusseau](https://sourceforge.net/u/blusseau), [dmazar](https://sourceforge.net/u/dmazar), and [slice2009](https://sourceforge.net/u/slice2009) for providing [Clover](https://github.com/CloverHackyColor/CloverBootloader).
8 | - Thanks to [daliansky](https://github.com/daliansky) for providing [OC-little](https://github.com/daliansky/OC-little).
9 | - Thanks to [FallenChromium](https://github.com/FallenChromium), [jackxuechen](https://github.com/jackxuechen), [Javmain](https://github.com/javmain), [johnnync13](https://github.com/johnnync13), [Menchen](https://github.com/Menchen), [Pasi-Studio](https://github.com/Pasi-Studio), [qeeqez](https://github.com/qeeqez), and [Bat.bat](https://github.com/williambj1) for valuable suggestions.
10 | - Thanks to [hieplpvip](https://github.com/hieplpvip) and [syscl](https://github.com/syscl) for providing sample of DSDT patches.
11 | - Thanks to [RehabMan](https://github.com/RehabMan) for providing [EAPD-Codec-Commander](https://github.com/RehabMan/EAPD-Codec-Commander), [EFICheckDisabler](https://github.com/RehabMan/hack-tools/tree/master/kexts/EFICheckDisabler.kext), [OS-X-Clover-Laptop-Config](https://github.com/RehabMan/OS-X-Clover-Laptop-Config), [OS-X-Null-Ethernet](https://github.com/RehabMan/OS-X-Null-Ethernet), and [SATA-unsupported](https://github.com/RehabMan/hack-tools/tree/master/kexts/SATA-unsupported.kext).
12 | - Thanks to [VoodooI2C](https://github.com/VoodooI2C) for providing [VoodooI2C](https://github.com/VoodooI2C/VoodooI2C).
13 | - Thanks to [zxystd](https://github.com/zxystd) for providing [IntelBluetoothFirmware](https://github.com/zxystd/IntelBluetoothFirmware).
14 |
--------------------------------------------------------------------------------
/Docs/build_wiki.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #set -x # for DEBUGGING
3 |
4 | # Created by stevezhengshiqi on 24 Jul, 2020
5 | #
6 | # Build XiaoMi-Pro-Hackintosh wiki pdf
7 |
8 |
9 | # Vars
10 | WIKI_NAME="XiaoMi-Pro-Hackintosh.wiki"
11 |
12 | # Colors
13 | black=$(tput setaf 0)
14 | red=$(tput setaf 1)
15 | green=$(tput setaf 2)
16 | yellow=$(tput setaf 3)
17 | blue=$(tput setaf 4)
18 | magenta=$(tput setaf 5)
19 | cyan=$(tput setaf 6)
20 | white=$(tput setaf 7)
21 | reset=$(tput sgr0)
22 | bold=$(tput bold)
23 |
24 | # Exit on Network Issue
25 | function networkErr() {
26 | echo "${yellow}[${reset}${red}${bold} ERROR ${reset}${yellow}]${reset}: Failed to download resources from ${1}, please check your connection!"
27 | exit 1
28 | }
29 |
30 | # Exit on Compile Issue
31 | function buildErr() {
32 | echo "${yellow}[${reset}${red}${bold} ERROR ${reset}${yellow}]${reset}: Failed to build pdf!"
33 | exit 1
34 | }
35 |
36 | function init() {
37 | if [[ ${OSTYPE} != darwin* ]]; then
38 | echo "This script can only run in macOS, aborting"
39 | exit 1
40 | fi
41 |
42 | if [ "$(which pandoc)" = "" ]; then
43 | echo "${yellow}[${reset}${red}${bold} ERROR ${reset}${yellow}]${reset}: Missing pandoc, exit!"
44 | exit 1
45 | fi
46 | echo "${yellow}[${bold} WARNING ${reset}${yellow}]${reset}: BasicTex or MacTeX or LaTeX is required!"
47 |
48 | cd "$(dirname "$0")" || exit 1
49 |
50 | if [[ -d "${WIKI_NAME}" ]]; then
51 | rm -rf "${WIKI_NAME}"
52 | fi
53 | }
54 |
55 | # Download wiki from daliansky's XiaoMi-Pro-Hackintosh repository
56 | function download() {
57 | local URL="https://github.com/$1/$2.wiki.git"
58 | echo "${green}[${reset}${blue}${bold} Downloading $2.wiki ${reset}${green}]${reset}"
59 | echo "${cyan}"
60 | git clone "${URL}" >/dev/null 2>&1 || networkErr "$2.wiki"
61 | echo "${reset}"
62 | }
63 |
64 | function build() {
65 | local wikiItems=(
66 | "FAQ"
67 | "Set-DVMT-to-64mb"
68 | "Unlock-0xE2-MSR"
69 | "Work-Around-with-Bluetooth"
70 | "常见问题解答"
71 | "设置64mb动态显存"
72 | "解锁0xE2寄存器"
73 | "蓝牙解决方案"
74 | )
75 | cd "${WIKI_NAME}" || exit 1
76 | echo "${green}[${reset}${magenta}${bold} Building PDF Docs ${reset}${green}]${reset}"
77 | echo
78 | for wikiItem in "${wikiItems[@]}"; do
79 | pandoc -V geometry:margin=1in "${wikiItem}.md" -f markdown+smart -s -V CJKmainfont='STSong' --highlight-style zenburn --pdf-engine=xelatex -o "${wikiItem}.pdf" || buildErr
80 | done
81 | cp -R ./*.pdf "../" || exit 1
82 | cd "../" || exit 1
83 | }
84 |
85 | function enjoy() {
86 | echo "${red}[${reset}${blue}${bold} Done! Enjoy! ${reset}${red}]${reset}"
87 | echo
88 | open ./
89 | }
90 |
91 | function main() {
92 | init
93 | download daliansky XiaoMi-Pro-Hackintosh
94 | build
95 | enjoy
96 | }
97 |
98 | main
99 |
--------------------------------------------------------------------------------
/.github/workflows/main.yml:
--------------------------------------------------------------------------------
1 | name: CI
2 |
3 | on:
4 | push:
5 | pull_request:
6 | workflow_dispatch:
7 | release:
8 | types: [published]
9 |
10 | jobs:
11 | build-efi-release:
12 | name: Build EFI Release
13 | runs-on: macos-latest
14 | env:
15 | XCODE_VERSION: 12.2
16 | steps:
17 | - uses: actions/checkout@v2
18 | with:
19 | fetch-depth: '5'
20 |
21 | - name: Initialize Variables
22 | run: |
23 | GIT_SHA="$(git rev-parse --short HEAD)"
24 | echo "CUR_TAG=beta-$GIT_SHA" >> "$GITHUB_ENV"
25 | echo "DEVELOPER_DIR=/Applications/Xcode_${XCODE_VERSION}.app/Contents/Developer" >> "$GITHUB_ENV"
26 |
27 | - name: Initialize Tag
28 | if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
29 | run: |
30 | echo "CUR_TAG=${GITHUB_REF##*/}" >> "$GITHUB_ENV"
31 |
32 | - name: Run makefile
33 | run: |
34 | ./makefile.sh --NO_GH_API --VERSION=${CUR_TAG} --PRE_RELEASE=Kext --PRE_RELEASE=OC --MODEL=KBLCML
35 |
36 | - name: Upload to Artifacts
37 | uses: actions/upload-artifact@v2
38 | with:
39 | name: XiaoMi NoteBook Pro EFI ${{ env.CUR_TAG }}
40 | path: build/*.zip
41 |
42 | - name: Upload to Release
43 | if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
44 | uses: ncipollo/release-action@v1
45 | with:
46 | artifacts: build/*.zip
47 | bodyFile: build/XiaoMi_Pro-KBL-OC-${{ env.CUR_TAG }}/ReleaseNotes.md
48 | name: XiaoMi NoteBook Pro EFI ${{ env.CUR_TAG }}
49 | prerelease: false
50 | tag: ${{ env.CUR_TAG }}
51 | token: ${{ secrets.GITHUB_TOKEN }}
52 |
53 | analyze-scripts:
54 | name: Analyze Scripts
55 | runs-on: macos-latest
56 | steps:
57 | - uses: actions/checkout@v2
58 |
59 | - name: Install Dependency
60 | run: |
61 | brew install shellcheck
62 | env:
63 | HOMEBREW_NO_INSTALL_CLEANUP: 1
64 |
65 | - name: Run shellcheck
66 | run: find . \( -name "*.tool" -o -name "*.command" -o -name "*.sh" \) -exec sh -c 'for TargetFile; do shellcheck --severity=info "${TargetFile}" || exit 1; done' sh {} +
67 |
68 | analyze-dsls:
69 | name: Analyze DSLs
70 | runs-on: macos-latest
71 | steps:
72 | - uses: actions/checkout@v2
73 |
74 | - name: Install Dependency
75 | run: |
76 | curl -# -L -O https://raw.githubusercontent.com/Acidanthera/MaciASL/master/Dist/iasl-stable || exit 1
77 | chmod +x iasl* || exit 1
78 |
79 | - name: Run iasl
80 | run: |
81 | find . -name '*.dsl' -exec sh -c './iasl* -vw 2095 -vw 2173 -vs -p "${1%/*}/../${1##*/}" "${1%}" && echo || exit 1' sh {} \;
82 |
83 | analyze-oc-config:
84 | name: Analyze OpenCore Config
85 | runs-on: macos-latest
86 | steps:
87 | - uses: actions/checkout@v2
88 |
89 | - name: Install Dependency
90 | run: |
91 | mkdir "OpenCore" && cd "OpenCore" || exit 1
92 | HG="grep -A 2 OpenCorePkg | grep -m 1 RELEASE"
93 | rawURL="https://github.com/dortania/build-repo/tags"
94 | rawURL="https://github.com$(curl -L --silent "${rawURL}" | grep -m 1 'OpenCorePkg' | tr -d '"' | tr -d ' ' | tr -d '>' | sed -e 's//dev/null 2>&1 || exit 1
99 | chmod +x Utilities/ocvalidate/ocvalidate || exit 1
100 |
101 | - name: Run ocvalidate
102 | run: |
103 | RESULT_KBL=$(./OpenCore/Utilities/ocvalidate/ocvalidate ./OC/config_kbl.plist) && echo "${RESULT_KBL}" && if [ "$(echo "${RESULT_KBL}" | wc -l)" -gt "1" ]; then exit 1; fi
104 | RESULT_CML=$(./OpenCore/Utilities/ocvalidate/ocvalidate ./OC/config_cml.plist) && echo "${RESULT_CML}" && if [ "$(echo "${RESULT_CML}" | wc -l)" -gt "1" ]; then exit 1; fi
105 |
--------------------------------------------------------------------------------
/ALCPlugFix/one-key-alcplugfix_cn.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #set -x # for DEBUGGING
3 |
4 | # stevezhengshiqi重写于2019.02.27, 特别感谢@Menchen
5 | # 支持小米笔记本Pro (ALC298,节点99)
6 |
7 | # 界面 (参考:http://patorjk.com/software/taag/#p=display&f=Ivrit&t=P%20l%20u%20g%20F%20i%20x)
8 | function interface() {
9 | echo ' ____ _ _____ _ '
10 | echo '| _ \ | | _ _ __ _ | ___| (_) __ __ '
11 | echo '| |_) | | | | | | | / _` | | |_ | | \ \/ / '
12 | echo '| __/ | | | |_| | | (_| | | _| | | > < '
13 | echo '|_| |_| \__,_| \__, | |_| |_| /_/\_\ '
14 | echo ' |___/ '
15 | echo '支持小米笔记本电脑Pro(ALC298, 节点30/99)'
16 | echo '==============================================='
17 | }
18 |
19 | # 选择选项
20 | function choice() {
21 | echo "(1) 开启 ALCPlugFix"
22 | echo "(2) 关闭 ALCPlugFix"
23 | echo "(3) 退出"
24 | read -rp "你想选择哪个选项? (1/2/3):" alc_option
25 | echo
26 | }
27 |
28 | # 如果网络连接失败则退出
29 | function networkWarn(){
30 | echo "错误: 下载ALCPlugFix失败, 请检查网络连接状态"
31 | clean
32 | exit 1
33 | }
34 |
35 | # 下载资源来自 https://github.com/daliansky/XiaoMi-Pro/master/ALCPlugFix 和 https://github.com/Menchen/ALCPlugFix/tree/master/build/Release
36 | function download(){
37 | mkdir -p one-key-alcplugfix
38 | cd one-key-alcplugfix || exit 1
39 | echo "正在下载声卡修复文件..."
40 | curl -fsSL https://raw.githubusercontent.com/Menchen/ALCPlugFix/master/build/Release/ALCPlugFix -O || networkWarn
41 | curl -fsSL https://raw.githubusercontent.com/Menchen/ALCPlugFix/master/alc_fix/good.win.ALCPlugFix.plist -O || networkWarn
42 | curl -fsSL https://raw.githubusercontent.com/Menchen/ALCPlugFix/master/alc_fix/hda-verb -O || networkWarn
43 | echo "下载完成"
44 | echo
45 | }
46 |
47 | # 拷贝声卡修复文件
48 | function copy() {
49 | echo "正在拷贝声卡修复文件..."
50 | if [ ! -d "/usr/local/bin" ]; then
51 | echo "'/usr/local/bin' 不存在, 新建中..."
52 | sudo mkdir -p -m 775 /usr/local/bin
53 | sudo chown "$USER":admin /usr/local/bin
54 | fi
55 | sudo cp "./ALCPlugFix" /usr/local/bin/
56 | sudo cp "./hda-verb" /usr/local/bin/
57 | sudo cp "./good.win.ALCPlugFix.plist" /Library/LaunchDaemons/
58 | echo "拷贝完成"
59 | echo
60 | }
61 |
62 | # 修复权限
63 | function fixpermission() {
64 | echo "正在修复权限..."
65 | sudo chmod 755 /usr/local/bin/ALCPlugFix
66 | sudo chown "$USER":admin /usr/local/bin/ALCPlugFix
67 | sudo chmod 755 /usr/local/bin/hda-verb
68 | sudo chown "$USER":admin /usr/local/bin/hda-verb
69 | sudo chmod 644 /Library/LaunchDaemons/good.win.ALCPlugFix.plist
70 | sudo chown root:wheel /Library/LaunchDaemons/good.win.ALCPlugFix.plist
71 | echo "修复完成"
72 | echo
73 | }
74 |
75 | # 加载进程
76 | function loadservice() {
77 | echo "正在加载进程..."
78 | sudo launchctl load /Library/LaunchDaemons/good.win.ALCPlugFix.plist
79 | echo "加载完成"
80 | echo
81 | }
82 |
83 | # 清理
84 | function clean() {
85 | echo "正在清理..."
86 | sudo rm -rf ../one-key-alcplugfix
87 | echo "清理完成"
88 | echo
89 | }
90 |
91 | # 卸载
92 | function uninstall() {
93 | echo "正在卸载..."
94 | sudo launchctl remove /Library/LaunchAgents/good.win.ALCPlugFix.plist
95 | sudo launchctl remove /Library/LaunchDaemons/good.win.ALCPlugFix.plist
96 | sudo rm -rf /Library/LaunchAgents/good.win.ALCPlugFix.plist
97 | sudo rm -rf /Library/LaunchDaemons/good.win.ALCPlugFix.plist
98 | sudo rm -rf /usr/bin/ALCPlugFix
99 | sudo rm -rf /usr/bin/hda-verb
100 | sudo rm -rf /usr/local/bin/ALCPlugFix
101 | sudo rm -rf /usr/local/bin/hda-verb
102 | echo "卸载完成"
103 | echo
104 | if [[ $1 = "cleanup" ]]; then
105 | return
106 | else exit 0
107 | fi
108 | }
109 |
110 | # 安装程序
111 | function install(){
112 | download
113 | uninstall "cleanup"
114 | copy
115 | fixpermission
116 | loadservice
117 | clean
118 | echo '棒!安装ALCPlugFix守护进程完成!'
119 | exit 0
120 | }
121 |
122 | # 主程序
123 | function main() {
124 | interface
125 | choice
126 | case $alc_option in
127 | 1)
128 | install
129 | ;;
130 | 2)
131 | uninstall
132 | ;;
133 | 3)
134 | exit 0
135 | ;;
136 | *)
137 | echo "错误: 输入有误, 将关闭脚本"
138 | exit 1
139 | ;;
140 | esac
141 | }
142 |
143 | main
144 |
--------------------------------------------------------------------------------
/ACPI/CML/Source/SSDT-TPD0.dsl:
--------------------------------------------------------------------------------
1 | // Necessary hotpatch, work with VoodooI2C.kext and VoodooI2CHID.kext
2 | // Maintained by: htmambo and stevezhengshiqi
3 | // Enable trackpad GPIO interrupt mode, work with VoodooI2C.kext and VoodooI2CHID.kext
4 |
5 | DefinitionBlock ("", "SSDT", 2, "hack", "_TPD0", 0x00000000)
6 | {
7 | External (_SB_.GNUM, MethodObj)
8 | External (_SB_.INUM, MethodObj)
9 | External (_SB_.PCI0.HIDD, MethodObj)
10 | External (_SB_.PCI0.HIDG, BuffObj)
11 | External (_SB_.PCI0.I2C0, DeviceObj)
12 | External (_SB_.PCI0.I2C0.I2CX, IntObj)
13 | External (_SB_.PCI0.I2CM, MethodObj)
14 | External (_SB_.PCI0.TP7D, MethodObj)
15 | External (_SB_.PCI0.TP7G, BuffObj)
16 | External (_SB_.SHPO, MethodObj)
17 | External (_SB_.SRXO, MethodObj)
18 | External (GPDI, FieldUnitObj)
19 | External (OSYS, IntObj)
20 | External (SDS0, FieldUnitObj)
21 | External (TPDM, FieldUnitObj)
22 |
23 | Scope (\)
24 | {
25 | If (_OSI ("Darwin"))
26 | {
27 | SDS0 = Zero
28 | }
29 | }
30 |
31 | Scope (_SB.PCI0.I2C0)
32 | {
33 | Device (XTPD)
34 | {
35 | Name (HID2, Zero)
36 | Name (SBFB, ResourceTemplate ()
37 | {
38 | I2cSerialBusV2 (0x0015, ControllerInitiated, 0x00061A80,
39 | AddressingMode7Bit, "\\_SB.PCI0.I2C0",
40 | 0x00, ResourceConsumer, _Y00, Exclusive,
41 | )
42 | })
43 | Name (SBFG, ResourceTemplate ()
44 | {
45 | GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDefault, 0x0000,
46 | "\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, ,
47 | )
48 | { // Pin list
49 | 0x0000
50 | }
51 | })
52 | Name (SBFI, ResourceTemplate ()
53 | {
54 | Interrupt (ResourceConsumer, Level, ActiveLow, ExclusiveAndWake, ,, _Y01)
55 | {
56 | 0x00000000,
57 | }
58 | })
59 | CreateWordField (SBFB, \_SB.PCI0.I2C0.XTPD._Y00._ADR, BADR) // _ADR: Address
60 | CreateDWordField (SBFB, \_SB.PCI0.I2C0.XTPD._Y00._SPE, SPED) // _SPE: Speed
61 | CreateWordField (SBFG, 0x17, INT1)
62 | CreateDWordField (SBFI, \_SB.PCI0.I2C0.XTPD._Y01._INT, INT2) // _INT: Interrupts
63 | Method (_INI, 0, NotSerialized) // _INI: Initialize
64 | {
65 | INT1 = GNUM (GPDI)
66 | INT2 = INUM (GPDI)
67 | If ((TPDM == Zero))
68 | {
69 | SHPO (GPDI, One)
70 | }
71 |
72 | _HID = "ELAN2303"
73 | HID2 = One
74 | Return (Zero)
75 | }
76 |
77 | Name (_HID, "XXXX0000") // _HID: Hardware ID
78 | Name (_CID, "PNP0C50" /* HID Protocol Device (I2C bus) */) // _CID: Compatible ID
79 | Name (_S0W, 0x03) // _S0W: S0 Device Wake State
80 | Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method
81 | {
82 | If ((Arg0 == HIDG))
83 | {
84 | Return (HIDD (Arg0, Arg1, Arg2, Arg3, HID2))
85 | }
86 |
87 | If ((Arg0 == TP7G))
88 | {
89 | Return (TP7D (Arg0, Arg1, Arg2, Arg3, SBFB, SBFG))
90 | }
91 |
92 | Return (Buffer (One)
93 | {
94 | 0x00 // .
95 | })
96 | }
97 |
98 | Method (_STA, 0, NotSerialized) // _STA: Status
99 | {
100 | If (_OSI ("Darwin"))
101 | {
102 | Return (0x0F)
103 | }
104 |
105 | Return (Zero)
106 | }
107 |
108 | Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
109 | {
110 | If (_OSI ("Darwin"))
111 | {
112 | Return (ConcatenateResTemplate (SBFB, SBFG))
113 | }
114 |
115 | If ((OSYS < 0x07DC))
116 | {
117 | Return (SBFI) /* \_SB_.PCI0.I2C0.XTPD.SBFI */
118 | }
119 |
120 | If ((TPDM == Zero))
121 | {
122 | Return (ConcatenateResTemplate (I2CM (I2CX, BADR, SPED), SBFG))
123 | }
124 |
125 | Return (ConcatenateResTemplate (I2CM (I2CX, BADR, SPED), SBFI))
126 | }
127 | }
128 | }
129 | }
--------------------------------------------------------------------------------
/ALCPlugFix/one-key-alcplugfix.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #set -x # for DEBUGGING
3 |
4 | # Rewrite on Feb 27, 2019 by stevezhengshiqi, special thanks to @Menchen
5 | # Support Xiaomi-Pro (ALC298,layout-id99)
6 |
7 | # Interface (Ref:http://patorjk.com/software/taag/#p=display&f=Ivrit&t=P%20l%20u%20g%20F%20i%20x)
8 | function interface() {
9 | echo ' ____ _ _____ _ '
10 | echo '| _ \ | | _ _ __ _ | ___| (_) __ __ '
11 | echo '| |_) | | | | | | | / _` | | |_ | | \ \/ / '
12 | echo '| __/ | | | |_| | | (_| | | _| | | > < '
13 | echo '|_| |_| \__,_| \__, | |_| |_| /_/\_\ '
14 | echo ' |___/ '
15 | echo 'Support XiaoMi-Pro(ALC298, layout-id 30/99)'
16 | echo '==============================================='
17 | }
18 |
19 | # Choose option
20 | function choice() {
21 | echo "(1) Enable ALCPlugFix"
22 | echo "(2) Disable ALCPlugFix"
23 | echo "(3) Exit"
24 | read -rp "Which option you want to choose? (1/2/3):" alc_option
25 | echo
26 | }
27 |
28 | # Exit if connection fails
29 | function networkWarn(){
30 | echo "ERROR: Fail to download ALCPlugFix, please check the network state"
31 | clean
32 | exit 1
33 | }
34 |
35 | # Download from https://github.com/daliansky/XiaoMi-Pro/master/ALCPlugFix and https://github.com/Menchen/ALCPlugFix/tree/master/build/Release
36 | function download(){
37 | mkdir -p one-key-alcplugfix
38 | cd one-key-alcplugfix || exit 1
39 | echo "Downloading audio fix patch..."
40 | curl -fsSL https://raw.githubusercontent.com/Menchen/ALCPlugFix/master/build/Release/ALCPlugFix -O || networkWarn
41 | curl -fsSL https://raw.githubusercontent.com/Menchen/ALCPlugFix/master/alc_fix/good.win.ALCPlugFix.plist -O || networkWarn
42 | curl -fsSL https://raw.githubusercontent.com/Menchen/ALCPlugFix/master/alc_fix/hda-verb -O || networkWarn
43 | echo "Download complete"
44 | echo
45 | }
46 |
47 | # Copy the audio fix files
48 | function copy() {
49 | echo "Copying audio fix patch..."
50 | if [ ! -d "/usr/local/bin" ]; then
51 | echo "'/usr/local/bin' not found, creating one instead..."
52 | sudo mkdir -p -m 775 /usr/local/bin
53 | sudo chown "$USER":admin /usr/local/bin
54 | fi
55 | sudo cp "./ALCPlugFix" /usr/local/bin/
56 | sudo cp "./hda-verb" /usr/local/bin/
57 | sudo cp "./good.win.ALCPlugFix.plist" /Library/LaunchDaemons/
58 | echo "Copy complete"
59 | echo
60 | }
61 |
62 | # Fix permission
63 | function fixpermission() {
64 | echo "Fixing permission..."
65 | sudo chmod 755 /usr/local/bin/ALCPlugFix
66 | sudo chown "$USER":admin /usr/local/bin/ALCPlugFix
67 | sudo chmod 755 /usr/local/bin/hda-verb
68 | sudo chown "$USER":admin /usr/local/bin/hda-verb
69 | sudo chmod 644 /Library/LaunchDaemons/good.win.ALCPlugFix.plist
70 | sudo chown root:wheel /Library/LaunchDaemons/good.win.ALCPlugFix.plist
71 | echo "Fix complete"
72 | echo
73 | }
74 |
75 | # Load service
76 | function loadservice() {
77 | echo "Loading service..."
78 | sudo launchctl load /Library/LaunchDaemons/good.win.ALCPlugFix.plist
79 | echo "Load complete"
80 | echo
81 | }
82 |
83 | # Clean
84 | function clean() {
85 | echo "Cleaning..."
86 | sudo rm -rf ../one-key-alcplugfix
87 | echo "Clean complete"
88 | echo
89 | }
90 |
91 | # Uninstall
92 | function uninstall() {
93 | echo "Uninstalling..."
94 | sudo launchctl remove /Library/LaunchAgents/good.win.ALCPlugFix.plist
95 | sudo launchctl remove /Library/LaunchDaemons/good.win.ALCPlugFix.plist
96 | sudo rm -rf /Library/LaunchAgents/good.win.ALCPlugFix.plist
97 | sudo rm -rf /Library/LaunchDaemons/good.win.ALCPlugFix.plist
98 | sudo rm -rf /usr/bin/ALCPlugFix
99 | sudo rm -rf /usr/bin/hda-verb
100 | sudo rm -rf /usr/local/bin/ALCPlugFix
101 | sudo rm -rf /usr/local/bin/hda-verb
102 | echo "Uninstall complete"
103 | echo
104 | if [[ $1 = "cleanup" ]]; then
105 | return
106 | else exit 0
107 | fi
108 | }
109 |
110 | # Install function
111 | function install() {
112 | download
113 | uninstall "cleanup"
114 | copy
115 | fixpermission
116 | loadservice
117 | clean
118 | echo 'Nice! The installation of the ALCPlugFix daemon completes.'
119 | exit 0
120 | }
121 |
122 | # Main function
123 | function main() {
124 | interface
125 | choice
126 | case $alc_option in
127 | 1)
128 | install
129 | ;;
130 | 2)
131 | uninstall
132 | ;;
133 | 3)
134 | exit 0
135 | ;;
136 | *)
137 | echo "ERROR: Invalid input, closing the script"
138 | exit 1
139 | ;;
140 | esac
141 | }
142 |
143 | main
144 |
--------------------------------------------------------------------------------
/Kexts/download_kexts.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #set -x # for DEBUGGING
3 |
4 | # Created by stevezhengshiqi on 6 Jun, 2020
5 | #
6 | # Download kexts for XiaoMi-Pro EFI
7 | #
8 | # Reference:
9 | # https://github.com/williambj1/Hackintosh-EFI-Asus-Zephyrus-S-GX531/blob/master/Makefile.sh by @williambj1
10 |
11 | # Vars
12 | ACDT="Acidanthera"
13 | OIW="OpenIntelWireless"
14 | RETRY_MAX=5
15 |
16 | # Colors
17 | black=$(tput setaf 0)
18 | red=$(tput setaf 1)
19 | green=$(tput setaf 2)
20 | yellow=$(tput setaf 3)
21 | blue=$(tput setaf 4)
22 | magenta=$(tput setaf 5)
23 | cyan=$(tput setaf 6)
24 | white=$(tput setaf 7)
25 | reset=$(tput sgr0)
26 | bold=$(tput bold)
27 |
28 | # WorkSpaceDir
29 | OUTDir="download"
30 | OUTDir_TMP="tmp"
31 | WSDir="$( cd "$(dirname "$0")" || exit 1; pwd -P )/${OUTDir}"
32 |
33 | # Exit on Network Issue
34 | function networkErr() {
35 | echo "${yellow}[${reset}${red}${bold} ERROR ${reset}${yellow}]${reset}: Failed to download resources from ${1}, please check your connection!"
36 | exit 1
37 | }
38 |
39 | # Exit on Copy Issue
40 | function copyErr() {
41 | echo "${yellow}[${reset}${red}${bold} ERROR ${reset}${yellow}]${reset}: Failed to copy resources!"
42 | cd ../../ || exit 1
43 | rm -rf "${OUTDir}"
44 | exit 1
45 | }
46 |
47 | function init() {
48 | if [[ ${OSTYPE} != darwin* ]]; then
49 | echo "This script can only run in macOS, aborting"
50 | exit 1
51 | fi
52 |
53 | if [[ -d ${WSDir} ]]; then
54 | rm -rf "${WSDir}"
55 | fi
56 | mkdir "${WSDir}" || exit 1
57 | cd "${WSDir}" || exit 1
58 |
59 | if [[ -d ${OUTDir_TMP} ]]; then
60 | rm -rf "${OUTDir_TMP}"
61 | fi
62 | mkdir "${OUTDir_TMP}" || exit 1
63 | }
64 |
65 | # Workaround for Release Binaries that don't include "RELEASE" in their file names (head or grep)
66 | function H_or_G() {
67 | if [[ "$1" == "VoodooI2C" ]]; then
68 | HGs=( "head -n 1" )
69 | elif [[ "$1" == "IntelBluetoothFirmware" ]]; then
70 | HGs=( "grep -m 1 IntelBluetooth" )
71 | elif [[ "$1" == "itlwm" ]]; then
72 | HGs=( "grep -m 1 AirportItlwm-Big_Sur"
73 | "grep -m 1 AirportItlwm-Catalina"
74 | "grep -m 1 AirportItlwm-High_Sierra"
75 | "grep -m 1 AirportItlwm-Mojave"
76 | )
77 | else
78 | HGs=( "grep -m 1 RELEASE" )
79 | fi
80 | }
81 |
82 | # Download GitHub Release
83 | function DGR() {
84 | local rawURL
85 | local URLs=()
86 |
87 | H_or_G "$2"
88 |
89 | if [[ -n ${3+x} ]]; then
90 | if [[ "$3" == "PreRelease" ]]; then
91 | tag=""
92 | elif [[ "$3" == "NULL" ]]; then
93 | tag="/latest"
94 | else
95 | # only release_id is supported
96 | tag="/$3"
97 | fi
98 | else
99 | tag="/latest"
100 | fi
101 |
102 | if [[ -n ${GITHUB_ACTIONS+x} || ${GH_API} == False ]]; then
103 | rawURL="https://github.com/$1/$2/releases$tag"
104 | for HG in "${HGs[@]}"; do
105 | URLs+=( "https://github.com$(curl -L --silent "${rawURL}" | grep '/download/' | eval "${HG}" | sed 's/^[^"]*"\([^"]*\)".*/\1/')" )
106 | done
107 | else
108 | rawURL="https://api.github.com/repos/$1/$2/releases$tag"
109 | for HG in "${HGs[@]}"; do
110 | URLs+=( "$(curl --silent "${rawURL}" | grep 'browser_download_url' | eval "${HG}" | tr -d '"' | tr -d ' ' | sed -e 's/browser_download_url://')" )
111 | done
112 | fi
113 |
114 | for URL in "${URLs[@]}"; do
115 | if [[ -z ${URL} || ${URL} == "https://github.com" ]]; then
116 | networkErr "$2"
117 | fi
118 | echo "${green}[${reset}${blue}${bold} Downloading ${URL##*\/} ${reset}${green}]${reset}"
119 | echo "${cyan}"
120 | cd ./"$4" || exit 1
121 | curl -# -L -O "${URL}" || networkErr "$2"
122 | cd - >/dev/null 2>&1 || exit 1
123 | echo "${reset}"
124 | done
125 | }
126 |
127 | # Download GitHub Source Code
128 | function DGS() {
129 | local URL="https://github.com/$1/$2/archive/master.zip"
130 | echo "${green}[${reset}${blue}${bold} Downloading $2.zip ${reset}${green}]${reset}"
131 | echo "${cyan}"
132 | cd ./"$3" || exit 1
133 | curl -# -L -o "$2.zip" "${URL}"|| networkErr "$2"
134 | cd - >/dev/null 2>&1 || exit 1
135 | echo "${reset}"
136 | }
137 |
138 | # Download Bitbucket Release
139 | function DBR() {
140 | local Count=0
141 | local rawURL="https://api.bitbucket.org/2.0/repositories/$1/$2/downloads/"
142 | local URL
143 |
144 | while [ ${Count} -lt ${RETRY_MAX} ];
145 | do
146 | URL="$(curl --silent "${rawURL}" | json_pp | grep 'href' | head -n 1 | tr -d '"' | tr -d ' ' | sed -e 's/href://')"
147 | if [ "${URL:(-4)}" == ".zip" ]; then
148 | echo "${green}[${reset}${blue}${bold} Downloading ${URL##*\/} ${reset}${green}]${reset}"
149 | echo "${cyan}"
150 | cd ./"$3" || exit 1
151 | curl -# -L -O "${URL}" || networkErr "$2"
152 | cd - >/dev/null 2>&1 || exit 1
153 | echo "${reset}"
154 | return
155 | else
156 | Count=$((Count+1))
157 | echo "${yellow}[${bold} WARNING ${reset}${yellow}]${reset}: Failed to download $2, ${Count} Attempt!"
158 | echo
159 | fi
160 | done
161 |
162 | if [ ${Count} -ge ${RETRY_MAX} ]; then
163 | # if ${RETRY_MAX} times are over and still fail to download, exit
164 | networkErr "$2"
165 | fi
166 | }
167 |
168 | function DL() {
169 | local rmKexts=(
170 | os-x-eapd-codec-commander
171 | os-x-null-ethernet
172 | )
173 |
174 | local acdtKexts=(
175 | VirtualSMC
176 | WhateverGreen
177 | AppleALC
178 | HibernationFixup
179 | RestrictEvents
180 | VoodooPS2
181 | Lilu
182 | )
183 |
184 | local oiwKexts=(
185 | IntelBluetoothFirmware
186 | itlwm
187 | )
188 |
189 | for rmKext in "${rmKexts[@]}"; do
190 | DBR Rehabman "${rmKext}" "${OUTDir_TMP}"
191 | done
192 |
193 | for acdtKext in "${acdtKexts[@]}"; do
194 | DGR ${ACDT} "${acdtKext}" NULL "${OUTDir_TMP}"
195 | done
196 |
197 | for oiwKext in "${oiwKexts[@]}"; do
198 | DGR ${OIW} "${oiwKext}" PreRelease "${OUTDir_TMP}"
199 | done
200 |
201 | DGR VoodooI2C VoodooI2C NULL "${OUTDir_TMP}"
202 |
203 | DGR al3xtjames NoTouchID NULL "${OUTDir_TMP}"
204 |
205 | DGS RehabMan hack-tools "${OUTDir_TMP}"
206 | }
207 |
208 | # Unpack
209 | function Unpack() {
210 | echo "${green}[${reset}${yellow}${bold} Unpacking ${reset}${green}]${reset}"
211 | echo
212 | eval "$(cd ${OUTDir_TMP} && unzip -qq "*.zip" >/dev/null 2>&1 || exit 1)"
213 | }
214 |
215 | # Patch
216 | function Patch() {
217 | local unusedItems=(
218 | "HibernationFixup.kext/Contents/_CodeSignature"
219 | "Kexts/SMCBatteryManager.kext/Contents/Resources"
220 | "Release/CodecCommander.kext/Contents/Resources"
221 | "RestrictEvents.kext/Contents/_CodeSignature"
222 | "VoodooI2C.kext/Contents/PlugIns/VoodooInput.kext.dSYM"
223 | "VoodooI2C.kext/Contents/PlugIns/VoodooInput.kext/Contents/_CodeSignature"
224 | "VoodooPS2Controller.kext/Contents/PlugIns/VoodooInput.kext"
225 | "VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Mouse.kext"
226 | "VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Trackpad.kext"
227 | "WhateverGreen.kext/Contents/_CodeSignature"
228 | )
229 | for unusedItem in "${unusedItems[@]}"; do
230 | rm -rf "${unusedItem}" >/dev/null 2>&1
231 | done
232 |
233 | # Rename AirportItlwm.kexts to distinguish different versions
234 | mv "${OUTDir_TMP}/Big Sur/AirportItlwm.kext" "${OUTDir_TMP}/Big Sur/AirportItlwm_Big_Sur.kext" || exit 1
235 | mv "${OUTDir_TMP}/Catalina/AirportItlwm.kext" "${OUTDir_TMP}/Catalina/AirportItlwm_Catalina.kext" || exit 1
236 | mv "${OUTDir_TMP}/High Sierra/AirportItlwm.kext" "${OUTDir_TMP}/High Sierra/AirportItlwm_High_Sierra.kext" || exit 1
237 | mv "${OUTDir_TMP}/Mojave/AirportItlwm.kext" "${OUTDir_TMP}/Mojave/AirportItlwm_Mojave.kext" || exit 1
238 | }
239 |
240 | # Install
241 | function Install() {
242 | local kextItems=(
243 | "AppleALC.kext"
244 | "HibernationFixup.kext"
245 | "IntelBluetoothFirmware.kext"
246 | "IntelBluetoothInjector.kext"
247 | "Lilu.kext"
248 | "VoodooI2C.kext"
249 | "VoodooI2CHID.kext"
250 | "VoodooPS2Controller.kext"
251 | "WhateverGreen.kext"
252 | "RestrictEvents.kext"
253 | "NoTouchID.kext"
254 | "hack-tools-master/kexts/SATA-unsupported.kext"
255 | "Kexts/SMCBatteryManager.kext"
256 | "Kexts/SMCLightSensor.kext"
257 | "Kexts/SMCProcessor.kext"
258 | "Kexts/VirtualSMC.kext"
259 | "Release/CodecCommander.kext"
260 | "Release/NullEthernet.kext"
261 | "Big Sur/AirportItlwm_Big_Sur.kext"
262 | "Catalina/AirportItlwm_Catalina.kext"
263 | "High Sierra/AirportItlwm_High_Sierra.kext"
264 | "Mojave/AirportItlwm_Mojave.kext"
265 | )
266 |
267 | for kextItem in "${kextItems[@]}"; do
268 | cp -R "${OUTDir_TMP}/${kextItem}" . || copyErr
269 | done
270 | }
271 |
272 | # Exclude Trash
273 | function CTrash() {
274 | rm -rf "${OUTDir_TMP}"
275 | }
276 |
277 | function enjoy() {
278 | echo "${red}[${reset}${blue}${bold} Done! Enjoy! ${reset}${red}]${reset}"
279 | echo
280 | open ./
281 | }
282 |
283 | function main() {
284 | init
285 | DL
286 | Unpack
287 | Patch
288 | Install
289 | CTrash
290 | enjoy
291 | }
292 |
293 | main
294 |
--------------------------------------------------------------------------------
/CLOVER/config_cml.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ACPI
6 |
7 | AutoMerge
8 |
9 | FixHeaders
10 |
11 | DSDT
12 |
13 | Patches
14 |
15 |
16 | Comment
17 | Rename Method(_UPC,0,S) to XUPC, pair with SSDT-USB.aml (USB Port Customization)
18 | Disabled
19 |
20 | Find
21 | X1VQQwg=
22 | Replace
23 | WFVQQwg=
24 |
25 |
26 | Comment
27 | Rename Method(GPRW,2,N) to XPRW, pair with SSDT-GPRW.aml (Instant Wake)
28 | Disabled
29 |
30 | Find
31 | R1BSVwI=
32 | Replace
33 | WFBSVwI=
34 |
35 |
36 | Comment
37 | Rename Method(LGPA,1,S) to XGPA, pair with SSDT-LGPA.aml (Brightness Key)
38 | Disabled
39 |
40 | Find
41 | TEdQQQk=
42 | Replace
43 | WEdQQQk=
44 |
45 |
46 |
47 | SSDT
48 |
49 | DropOem
50 |
51 | Generate
52 |
53 | PluginType
54 |
55 |
56 | NoOemTableId
57 |
58 |
59 |
60 | Boot
61 |
62 | Arguments
63 | darkwake=0 gfxrst=1
64 | DefaultVolume
65 | LastBootedVolume
66 | HibernationFixup
67 |
68 | Legacy
69 | PBR
70 | NoEarlyProgress
71 |
72 | RtcHibernateAware
73 |
74 | Secure
75 |
76 | Timeout
77 | 4
78 |
79 | Devices
80 |
81 | Audio
82 |
83 | Inject
84 | No
85 |
86 | Properties
87 |
88 | PciRoot(0x0)/Pci(0x2,0x0)
89 |
90 | AAPL,ig-platform-id
91 | CQCbPg==
92 | AAPL00,override-no-connect
93 | AP///////wBNEMMUAAAAAAkdAQSQIhN45t5Qo1RMmSYPUFQAAAABAQEBAQEBAQEBAQEBAQEBGjaAoHA4HkAwIDUAWMIQAAAYVCuAoHA4H0AwIDUAWMIQAAAYAAAAEAAAAAAAAAAAAAAAAAAAAAAA/ABMUTE1Nk0xSlcwMQogANg=
94 | device-id
95 | mz4AAA==
96 | enable-max-pixel-clock-override
97 | AQAAAA==
98 | force-online
99 | AQAAAA==
100 | framebuffer-con1-busid
101 | AQAAAA==
102 | framebuffer-con1-enable
103 | AQAAAA==
104 | framebuffer-con1-pipe
105 | CgAAAA==
106 | framebuffer-con1-type
107 | AAgAAA==
108 | framebuffer-con2-enable
109 | AQAAAA==
110 | framebuffer-con2-type
111 | AAQAAA==
112 | framebuffer-flags
113 | DxvzAA==
114 | framebuffer-patch-enable
115 | AQAAAA==
116 | framebuffer-stolenmem
117 | AADgAQ==
118 | hda-gfx
119 | onboard-1
120 |
121 | PciRoot(0x0)/Pci(0x8,0x0)
122 |
123 | device_type
124 | System Peripheral
125 | model
126 | Intel 10th Gen Core Processor Gaussian Mixture Model
127 |
128 | PciRoot(0x0)/Pci(0x14,0x0)
129 |
130 | model
131 | Intel Comet Lake PCH-LP USB 3.1 xHCI Host Controller
132 | name
133 | pci8086,2ed
134 |
135 | PciRoot(0x0)/Pci(0x14,0x2)
136 |
137 | device_type
138 | Memory controller
139 | model
140 | Intel Comet Lake PCH-LP Shared SRAM
141 |
142 | PciRoot(0x0)/Pci(0x14,0x3)
143 |
144 | model
145 | Intel Comet Lake PCH-LP CNVi WiFi
146 |
147 | PciRoot(0x0)/Pci(0x15,0x0)
148 |
149 | device_type
150 | Serial Bus Controller
151 | model
152 | Intel Comet Lake Serial IO I2C Host Controller
153 |
154 | PciRoot(0x0)/Pci(0x16,0x0)
155 |
156 | device_type
157 | Communication Controller
158 | model
159 | Intel Comet Lake Management Engine Interface
160 |
161 | PciRoot(0x0)/Pci(0x19,0x0)
162 |
163 | device_type
164 | Serial Bus Controller
165 | model
166 | Intel Comet Lake PCH-LP LPSS: I2C Controller #4
167 |
168 | PciRoot(0x0)/Pci(0x1c,0x0)
169 |
170 | reg-ltrovr
171 | AAQAAAAAAAA=
172 |
173 | PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)
174 |
175 | model
176 | Intel Comet Lake PCH-LP PCIe Port #5
177 |
178 | PciRoot(0x0)/Pci(0x1d,0x0)
179 |
180 | reg-ltrovr
181 | AAQAAAAAAAA=
182 |
183 | PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)
184 |
185 | model
186 | Intel Comet Lake PCH-LP PCIe Port #9
187 |
188 | PciRoot(0x0)/Pci(0x1d,0x4)
189 |
190 | reg-ltrovr
191 | AAQAAAAAAAA=
192 |
193 | PciRoot(0x0)/Pci(0x1d,0x4)/Pci(0x0,0x0)
194 |
195 | model
196 | Intel Comet Lake PCH-LP PCIe Port #13
197 |
198 | PciRoot(0x0)/Pci(0x1f,0x0)
199 |
200 | model
201 | Intel Comet Lake PCH-LP LPC Controller
202 |
203 | PciRoot(0x0)/Pci(0x1f,0x3)
204 |
205 | hda-gfx
206 | onboard-1
207 | No-idle-support
208 | 0
209 | layout-id
210 | 69
211 | model
212 | Intel Comet Lake PCH-LP cAVS
213 |
214 | PciRoot(0x0)/Pci(0x1f,0x4)
215 |
216 | model
217 | Intel Comet Lake PCH-LP SMBus Host Controller
218 |
219 | PciRoot(0x0)/Pci(0x1f,0x5)
220 |
221 | device_type
222 | Serial Bus Controller
223 | model
224 | Intel Comet Lake SPI (flash) Controller
225 |
226 |
227 | USB
228 |
229 | FixOwnership
230 |
231 | HighCurrent
232 |
233 | Inject
234 |
235 |
236 |
237 | GUI
238 |
239 | Hide
240 |
241 | Recovery
242 |
243 | Mouse
244 |
245 | DoubleClick
246 | 500
247 | Enabled
248 |
249 | Mirror
250 |
251 | Speed
252 | 6
253 |
254 | Scan
255 |
256 | Entries
257 |
258 | Legacy
259 |
260 | Linux
261 |
262 | Tool
263 |
264 |
265 | ProvideConsoleGop
266 |
267 | ScreenResolution
268 | 1920x1080
269 | Theme
270 | Xiaomi
271 |
272 | Graphics
273 |
274 | EDID
275 |
276 | Inject
277 |
278 |
279 | Inject
280 |
281 | ATI
282 |
283 | Intel
284 |
285 | NVidia
286 |
287 |
288 |
289 | KernelAndKextPatches
290 |
291 | AppleIntelCPUPM
292 |
293 | AppleRTC
294 |
295 | KernelPm
296 |
297 | PanicNoKextDump
298 |
299 | ForceKextsToLoad
300 |
301 | \System\Library\Extensions\corecapture.kext
302 | \System\Library\Extensions\IO80211Family.kext
303 |
304 | KextsToPatch
305 |
306 | KernelToPatch
307 |
308 |
309 | RtVariables
310 |
311 | CsrActiveConfig
312 | 0x30
313 | BooterConfig
314 | 0x28
315 | ROM
316 | UseMacAddr0
317 |
318 | SMBIOS
319 |
320 | ProductName
321 | MacBookPro16,3
322 | Trust
323 |
324 |
325 | SystemParameters
326 |
327 | InjectKexts
328 | Yes
329 | InjectSystemID
330 |
331 |
332 | Quirks
333 |
334 | AvoidRuntimeDefrag
335 |
336 | DevirtualiseMmio
337 |
338 | DisableSingleUser
339 |
340 | DisableVariableWrite
341 |
342 | DiscardHibernateMap
343 |
344 | EnableSafeModeSlide
345 |
346 | EnableWriteUnprotector
347 |
348 | ForceExitBootServices
349 |
350 | MmioWhitelist
351 |
352 | ProtectMemoryRegions
353 |
354 | ProtectSecureBoot
355 |
356 | ProtectUefiServices
357 |
358 | ProvideCustomSlide
359 |
360 | ProvideMaxSlide
361 | 0
362 | RebuildAppleMemoryMap
363 |
364 | SetupVirtualMap
365 |
366 | SignalAppleOS
367 |
368 | SyncRuntimePermissions
369 |
370 | FuzzyMatch
371 |
372 | KernelCache
373 | Auto
374 | AppleXcpmExtraMsrs
375 |
376 | AppleXcpmForceBoost
377 |
378 | DisableIoMapper
379 |
380 | DisableLinkeditJettison
381 |
382 | DummyPowerManagement
383 |
384 | ExternalDiskIcons
385 |
386 | IncreasePciBarSize
387 |
388 | PowerTimeoutKernelPanic
389 |
390 | ThirdPartyDrives
391 |
392 | XhciPortLimit
393 |
394 |
395 |
396 |
397 |
--------------------------------------------------------------------------------
/CLOVER/config_kbl.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ACPI
6 |
7 | AutoMerge
8 |
9 | FixHeaders
10 |
11 | DSDT
12 |
13 | Patches
14 |
15 |
16 | Comment
17 | Rename Method(_UPC,0,S) to XUPC, pair with SSDT-USB.aml (USB Port Customization)
18 | Disabled
19 |
20 | Find
21 | X1VQQwg=
22 | Replace
23 | WFVQQwg=
24 |
25 |
26 | Comment
27 | Rename Method(GPRW,2,N) to XPRW, pair with SSDT-GPRW.aml (Instant Wake)
28 | Disabled
29 |
30 | Find
31 | R1BSVwI=
32 | Replace
33 | WFBSVwI=
34 |
35 |
36 | Comment
37 | Rename Method(LGPA,1,S) to XGPA, pair with SSDT-LGPA.aml (Brightness Key)
38 | Disabled
39 |
40 | Find
41 | TEdQQQk=
42 | Replace
43 | WEdQQQk=
44 |
45 |
46 |
47 | SSDT
48 |
49 | DropOem
50 |
51 | Generate
52 |
53 | PluginType
54 |
55 |
56 | NoOemTableId
57 |
58 |
59 |
60 | Boot
61 |
62 | Arguments
63 | darkwake=0 gfxrst=1
64 | DefaultVolume
65 | LastBootedVolume
66 | HibernationFixup
67 |
68 | Legacy
69 | PBR
70 | NoEarlyProgress
71 |
72 | RtcHibernateAware
73 |
74 | Secure
75 |
76 | Timeout
77 | 4
78 |
79 | Devices
80 |
81 | Audio
82 |
83 | Inject
84 | No
85 |
86 | Properties
87 |
88 | PciRoot(0x0)/Pci(0x2,0x0)
89 |
90 | AAPL,ig-platform-id
91 | AAAWWQ==
92 | complete-modeset-framebuffers
93 | AAAAAAAAAAE=
94 | device-id
95 | FlkAAA==
96 | enable-max-pixel-clock-override
97 | AQAAAA==
98 | force-online
99 | AQAAAA==
100 | framebuffer-con0-enable
101 | AQAAAA==
102 | framebuffer-con0-flags
103 | mAQAAA==
104 | framebuffer-con1-enable
105 | AQAAAA==
106 | framebuffer-con1-flags
107 | xwMAAA==
108 | framebuffer-con1-pipe
109 | CgAAAA==
110 | framebuffer-con1-type
111 | AAgAAA==
112 | framebuffer-con2-enable
113 | AQAAAA==
114 | framebuffer-con2-flags
115 | xwMAAA==
116 | framebuffer-fbmem
117 | AACQAA==
118 | framebuffer-flags
119 | CwfDAA==
120 | framebuffer-patch-enable
121 | AQAAAA==
122 | framebuffer-stolenmem
123 | AAAwAQ==
124 | hda-gfx
125 | onboard-1
126 |
127 | PciRoot(0x0)/Pci(0x8,0x0)
128 |
129 | device_type
130 | System Peripheral
131 | model
132 | Intel 8th Gen Core Processor Gaussian Mixture Model
133 |
134 | PciRoot(0x0)/Pci(0x14,0x0)
135 |
136 | model
137 | Intel Sunrise Point-LP USB 3.0 xHCI Controller
138 | name
139 | pci8086,9d2f
140 |
141 | PciRoot(0x0)/Pci(0x14,0x2)
142 |
143 | device_type
144 | Signal processing controller
145 | model
146 | Intel Sunrise Point-LP Thermal subsystem
147 |
148 | PciRoot(0x0)/Pci(0x15,0x0)
149 |
150 | device_type
151 | Signal Processing Controller
152 | model
153 | Intel Sunrise Point-LP Serial IO I2C Controller #0
154 |
155 | PciRoot(0x0)/Pci(0x15,0x1)
156 |
157 | device_type
158 | Signal Processing Controller
159 | model
160 | Intel Sunrise Point-LP Serial IO I2C Controller #1
161 |
162 | PciRoot(0x0)/Pci(0x16,0x0)
163 |
164 | device_type
165 | Communication Controller
166 | model
167 | Intel Sunrise Point-LP CSME HECI #1
168 |
169 | PciRoot(0x0)/Pci(0x1c,0x0)
170 |
171 | reg-ltrovr
172 | AAQAAAAAAAA=
173 |
174 | PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)
175 |
176 | model
177 | Intel Sunrise Point-LP PCI Express Root Port #1
178 |
179 | PciRoot(0x0)/Pci(0x1c,0x4)
180 |
181 | reg-ltrovr
182 | AAQAAAAAAAA=
183 |
184 | PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x0)
185 |
186 | model
187 | Intel Sunrise Point-LP PCI Express Root Port #5
188 |
189 | PciRoot(0x0)/Pci(0x1c,0x7)
190 |
191 | reg-ltrovr
192 | AAQAAAAAAAA=
193 |
194 | PciRoot(0x0)/Pci(0x1c,0x7)/Pci(0x0,0x0)
195 |
196 | model
197 | Intel Wireless 8265
198 |
199 | PciRoot(0x0)/Pci(0x1d,0x0)
200 |
201 | reg-ltrovr
202 | AAQAAAAAAAA=
203 |
204 | PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)
205 |
206 | model
207 | Intel Sunrise Point-LP PCI Express Root Port #9
208 |
209 | PciRoot(0x0)/Pci(0x1f,0x0)
210 |
211 | model
212 | Intel Sunrise Point LPC Controller
213 |
214 | PciRoot(0x0)/Pci(0x1f,0x2)
215 |
216 | device_type
217 | Memory Controller
218 | model
219 | Intel Sunrise Point-LP PMC
220 |
221 | PciRoot(0x0)/Pci(0x1f,0x3)
222 |
223 | hda-gfx
224 | onboard-1
225 | hda-idle-support
226 | 1
227 | layout-id
228 | 30
229 | model
230 | Intel Sunrise Point-LP HD Audio
231 |
232 | PciRoot(0x0)/Pci(0x1f,0x4)
233 |
234 | model
235 | Intel Sunrise Point-LP SMBus
236 |
237 |
238 | USB
239 |
240 | FixOwnership
241 |
242 | HighCurrent
243 |
244 | Inject
245 |
246 |
247 |
248 | GUI
249 |
250 | Hide
251 |
252 | Recovery
253 |
254 | Mouse
255 |
256 | DoubleClick
257 | 500
258 | Enabled
259 |
260 | Mirror
261 |
262 | Speed
263 | 6
264 |
265 | Scan
266 |
267 | Entries
268 |
269 | Legacy
270 |
271 | Linux
272 |
273 | Tool
274 |
275 |
276 | ProvideConsoleGop
277 |
278 | ScreenResolution
279 | 1920x1080
280 | Theme
281 | Xiaomi
282 |
283 | Graphics
284 |
285 | EDID
286 |
287 | Inject
288 |
289 |
290 | Inject
291 |
292 | ATI
293 |
294 | Intel
295 |
296 | NVidia
297 |
298 |
299 |
300 | KernelAndKextPatches
301 |
302 | AppleIntelCPUPM
303 |
304 | AppleRTC
305 |
306 | KernelPm
307 |
308 | PanicNoKextDump
309 |
310 | ForceKextsToLoad
311 |
312 | \System\Library\Extensions\corecapture.kext
313 | \System\Library\Extensions\IO80211Family.kext
314 |
315 | KextsToPatch
316 |
317 | KernelToPatch
318 |
319 |
320 | RtVariables
321 |
322 | CsrActiveConfig
323 | 0x30
324 | BooterConfig
325 | 0x28
326 | ROM
327 | UseMacAddr0
328 |
329 | SMBIOS
330 |
331 | ProductName
332 | MacBookPro14,1
333 | Trust
334 |
335 |
336 | SystemParameters
337 |
338 | InjectKexts
339 | Yes
340 | InjectSystemID
341 |
342 |
343 | Quirks
344 |
345 | AvoidRuntimeDefrag
346 |
347 | DevirtualiseMmio
348 |
349 | DisableSingleUser
350 |
351 | DisableVariableWrite
352 |
353 | DiscardHibernateMap
354 |
355 | EnableSafeModeSlide
356 |
357 | EnableWriteUnprotector
358 |
359 | ForceExitBootServices
360 |
361 | MmioWhitelist
362 |
363 | ProtectMemoryRegions
364 |
365 | ProtectSecureBoot
366 |
367 | ProtectUefiServices
368 |
369 | ProvideCustomSlide
370 |
371 | ProvideMaxSlide
372 | 0
373 | RebuildAppleMemoryMap
374 |
375 | SetupVirtualMap
376 |
377 | SignalAppleOS
378 |
379 | SyncRuntimePermissions
380 |
381 | FuzzyMatch
382 |
383 | KernelCache
384 | Auto
385 | AppleXcpmExtraMsrs
386 |
387 | AppleXcpmForceBoost
388 |
389 | DisableIoMapper
390 |
391 | DisableLinkeditJettison
392 |
393 | DummyPowerManagement
394 |
395 | ExternalDiskIcons
396 |
397 | IncreasePciBarSize
398 |
399 | PowerTimeoutKernelPanic
400 |
401 | ThirdPartyDrives
402 |
403 | XhciPortLimit
404 |
405 |
406 |
407 |
408 |
--------------------------------------------------------------------------------
/ACPI/KBL/Source/SSDT-PNLF.dsl:
--------------------------------------------------------------------------------
1 | // Necessary hotpatch, pair with WhateverGreen.kext
2 | // Maintained by: Acidanthera
3 | // Reference: https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/AcpiSamples/Source/SSDT-PNLF.dsl by Acidanthera
4 | // Adding PNLF device for WhateverGreen.kext and others.
5 | // This is a modified PNLF version originally taken from RehabMan/OS-X-Clover-Laptop-Config repository:
6 | // https://raw.githubusercontent.com/RehabMan/OS-X-Clover-Laptop-Config/master/hotpatch/SSDT-PNLF.dsl
7 | //
8 | // Licensed under GNU General Public License v2.0
9 | // https://github.com/RehabMan/OS-X-Clover-Laptop-Config/blob/master/License.md
10 |
11 | #define FBTYPE_SANDYIVY One
12 | #define FBTYPE_HSWPLUS 2
13 | #define FBTYPE_CFL 3
14 |
15 | #define SANDYIVY_PWMMAX 0x710
16 | #define HASWELL_PWMMAX 0xad9
17 | #define SKYLAKE_PWMMAX 0x56c
18 | #define CUSTOM_PWMMAX_07a1 0x07a1
19 | #define CUSTOM_PWMMAX_1499 0x1499
20 | #define COFFEELAKE_PWMMAX 0xffff
21 |
22 | DefinitionBlock("", "SSDT", 2, "ACDT", "_PNLF", 0)
23 | {
24 | External(RMCF.BKLT, IntObj)
25 | External(RMCF.LMAX, IntObj)
26 | External(RMCF.LEVW, IntObj)
27 | External(RMCF.GRAN, IntObj)
28 | External(RMCF.FBTP, IntObj)
29 |
30 | External(_SB.PCI0.GFX0, DeviceObj)
31 | Scope(_SB.PCI0.GFX0)
32 | {
33 | OperationRegion(RMP3, PCI_Config, Zero, 0x14)
34 | }
35 |
36 | // For backlight control
37 | Device(_SB.PCI0.GFX0.PNLF)
38 | {
39 | // Name(_ADR, Zero)
40 | Name(_HID, EisaId("APP0002"))
41 | Name(_CID, "backlight")
42 | // _UID is set depending on PWMMax to match profiles in WhateverGreen.kext Info.plist
43 | // 14: Sandy/Ivy 0x710
44 | // 15: Haswell/Broadwell 0xad9
45 | // 16: Skylake/KabyLake 0x56c (and some Haswell, example 0xa2e0008)
46 | // 17: custom LMAX=0x7a1
47 | // 18: custom LMAX=0x1499
48 | // 19: CoffeeLake 0xffff
49 | // 99: Other (requires custom AppleBacklightInjector.kext/WhateverGreen.kext)
50 | Name(_UID, Zero)
51 | Method (_STA, 0, NotSerialized) // _STA: Status
52 | {
53 | If (_OSI ("Darwin"))
54 | {
55 | Return (0x0B)
56 | }
57 | Else
58 | {
59 | Return (Zero)
60 | }
61 | }
62 |
63 | Field(^RMP3, AnyAcc, NoLock, Preserve)
64 | {
65 | Offset(0x02), GDID,16,
66 | Offset(0x10), BAR1,32,
67 | }
68 |
69 | // IGPU PWM backlight register descriptions:
70 | // LEV2 not currently used
71 | // LEVL level of backlight in Sandy/Ivy
72 | // P0BL counter, when zero is vertical blank
73 | // GRAN see description below in INI1 method
74 | // LEVW should be initialized to 0xC0000000
75 | // LEVX PWMMax except FBTYPE_HSWPLUS combo of max/level (Sandy/Ivy stored in MSW)
76 | // LEVD level of backlight for Coffeelake
77 | // PCHL not currently used
78 | OperationRegion(RMB1, SystemMemory, BAR1 & ~0xF, 0xe1184)
79 | Field(RMB1, AnyAcc, Lock, Preserve)
80 | {
81 | Offset(0x48250),
82 | LEV2, 32,
83 | LEVL, 32,
84 | Offset(0x70040),
85 | P0BL, 32,
86 | Offset(0xc2000),
87 | GRAN, 32,
88 | Offset(0xc8250),
89 | LEVW, 32,
90 | LEVX, 32,
91 | LEVD, 32,
92 | Offset(0xe1180),
93 | PCHL, 32,
94 | }
95 |
96 | // INI1 is common code used by FBTYPE_HSWPLUS and FBTYPE_CFL
97 | Method(INI1, 1)
98 | {
99 | // INTEL OPEN SOURCE HD GRAPHICS, INTEL IRIS GRAPHICS, AND INTEL IRIS PRO GRAPHICS PROGRAMMER'S REFERENCE MANUAL (PRM)
100 | // FOR THE 2015-2016 INTEL CORE PROCESSORS, CELERON PROCESSORS AND PENTIUM PROCESSORS BASED ON THE "SKYLAKE" PLATFORM
101 | // Volume 12: Display (https://01.org/sites/default/files/documentation/intel-gfx-prm-osrc-skl-vol12-display.pdf)
102 | // page 189
103 | // Backlight Enabling Sequence
104 | // Description
105 | // 1. Set frequency and duty cycle in SBLC_PWM_CTL2 Backlight Modulation Frequency and Backlight Duty Cycle.
106 | // 2. Set granularity in 0xC2000 bit 0 (0 = 16, 1 = 128).
107 | // 3. Enable PWM output and set polarity in SBLC_PWM_CTL1 PWM PCH Enable and Backlight Polarity.
108 | // 4. Change duty cycle as needed in SBLC_PWM_CTL2 Backlight Duty Cycle.
109 | // This 0xC value comes from looking what OS X initializes this
110 | // register to after display sleep (using ACPIDebug/ACPIPoller)
111 | If (Zero == (2 & Arg0))
112 | {
113 | Local5 = 0xC0000000
114 | If (CondRefOf(\RMCF.LEVW)) { If (Ones != \RMCF.LEVW) { Local5 = \RMCF.LEVW } }
115 | ^LEVW = Local5
116 | }
117 | // from step 2 above (you may need 1 instead)
118 | If (4 & Arg0)
119 | {
120 | If (CondRefOf(\RMCF.GRAN)) { ^GRAN = \RMCF.GRAN }
121 | Else { ^GRAN = Zero }
122 | }
123 | }
124 |
125 | Method(_INI)
126 | {
127 | // IntelBacklight.kext takes care of this at load time...
128 | // If RMCF.BKLT does not exist, it is assumed you want to use AppleBacklight.kext...
129 | Local4 = One
130 | If (CondRefOf(\RMCF.BKLT)) { Local4 = \RMCF.BKLT }
131 | If (!(One & Local4)) { Return }
132 |
133 | // Adjustment required when using AppleBacklight.kext
134 | Local0 = ^GDID
135 | Local2 = Ones
136 | If (CondRefOf(\RMCF.LMAX)) { Local2 = \RMCF.LMAX }
137 | // Determine framebuffer type (for PWM register layout)
138 | Local3 = Zero
139 | If (CondRefOf(\RMCF.FBTP)) { Local3 = \RMCF.FBTP }
140 |
141 | // Now fixup the backlight PWM depending on the framebuffer type
142 | // At this point:
143 | // Local4 is RMCF.BLKT value, if specified (default is 1)
144 | // Local0 is device-id for IGPU
145 | // Local2 is LMAX, if specified (Ones means based on device-id)
146 | // Local3 is framebuffer type
147 |
148 | // check Sandy/Ivy
149 | If (FBTYPE_SANDYIVY == Local3 || Ones != Match(Package()
150 | {
151 | // Sandy HD3000
152 | 0x010b, 0x0102,
153 | 0x0106, 0x1106, 0x1601, 0x0116, 0x0126,
154 | 0x0112, 0x0122,
155 | // Ivy
156 | 0x0152, 0x0156, 0x0162, 0x0166,
157 | 0x016a,
158 | // Arrandale
159 | 0x0046, 0x0042,
160 | }, MEQ, Local0, MTR, Zero, Zero))
161 | {
162 | if (Ones == Local2) { Local2 = SANDYIVY_PWMMAX }
163 | // change/scale only if different than current...
164 | Local1 = ^LEVX >> 16
165 | If (!Local1) { Local1 = Local2 }
166 | If (!(8 & Local4) && Local2 != Local1)
167 | {
168 | // set new backlight PWMMax but retain current backlight level by scaling
169 | Local0 = (^LEVL * Local2) / Local1
170 | //REVIEW: wait for vblank before setting new PWM config
171 | //For (Local7 = ^P0BL, ^P0BL == Local7, ) { }
172 | Local3 = Local2 << 16
173 | If (Local2 > Local1)
174 | {
175 | // PWMMax is getting larger... store new PWMMax first
176 | ^LEVX = Local3
177 | ^LEVL = Local0
178 | }
179 | Else
180 | {
181 | // otherwise, store new brightness level, followed by new PWMMax
182 | ^LEVL = Local0
183 | ^LEVX = Local3
184 | }
185 | }
186 | }
187 | // check CoffeeLake
188 | ElseIf (FBTYPE_CFL == Local3 || Ones != Match(Package()
189 | {
190 | // CoffeeLake identifiers from AppleIntelCFLGraphicsFramebuffer.kext
191 | 0x3e9b, 0x3ea5, 0x3e92, 0x3e91,
192 | }, MEQ, Local0, MTR, Zero, Zero))
193 | {
194 | if (Ones == Local2) { Local2 = COFFEELAKE_PWMMAX }
195 | INI1(Local4)
196 | // change/scale only if different than current...
197 | Local1 = ^LEVX
198 | If (!Local1) { Local1 = Local2 }
199 | If (!(8 & Local4) && Local2 != Local1)
200 | {
201 | // set new backlight PWMMax but retain current backlight level by scaling
202 | Local0 = (^LEVD * Local2) / Local1
203 | //REVIEW: wait for vblank before setting new PWM config
204 | //For (Local7 = ^P0BL, ^P0BL == Local7, ) { }
205 | If (Local2 > Local1)
206 | {
207 | // PWMMax is getting larger... store new PWMMax first
208 | ^LEVX = Local2
209 | ^LEVD = Local0
210 | }
211 | Else
212 | {
213 | // otherwise, store new brightness level, followed by new PWMMax
214 | ^LEVD = Local0
215 | ^LEVX = Local2
216 | }
217 | }
218 | }
219 | // otherwise must be Haswell/Broadwell/Skylake/KabyLake/KabyLake-R (FBTYPE_HSWPLUS)
220 | Else
221 | {
222 | if (Ones == Local2)
223 | {
224 | // check Haswell and Broadwell, as they are both 0xad9 (for most common ig-platform-id values)
225 | If (Ones != Match(Package()
226 | {
227 | // Haswell
228 | 0x0d26, 0x0a26, 0x0d22, 0x0412, 0x0416, 0x0a16, 0x0a1e, 0x0a1e, 0x0a2e, 0x041e, 0x041a,
229 | // Broadwell
230 | 0x0bd1, 0x0bd2, 0x0BD3, 0x1606, 0x160e, 0x1616, 0x161e, 0x1626, 0x1622, 0x1612, 0x162b,
231 | }, MEQ, Local0, MTR, Zero, Zero))
232 | {
233 | Local2 = HASWELL_PWMMAX
234 | }
235 | Else
236 | {
237 | // assume Skylake/KabyLake/KabyLake-R, both 0x56c
238 | // 0x1916, 0x191E, 0x1926, 0x1927, 0x1912, 0x1932, 0x1902, 0x1917, 0x191b,
239 | // 0x5916, 0x5912, 0x591b, others...
240 | Local2 = SKYLAKE_PWMMAX
241 | }
242 | }
243 | INI1(Local4)
244 | // change/scale only if different than current...
245 | Local1 = ^LEVX >> 16
246 | If (!Local1) { Local1 = Local2 }
247 | If (!(8 & Local4) && Local2 != Local1)
248 | {
249 | // set new backlight PWMAX but retain current backlight level by scaling
250 | Local0 = (((^LEVX & 0xFFFF) * Local2) / Local1) | (Local2 << 16)
251 | //REVIEW: wait for vblank before setting new PWM config
252 | //For (Local7 = ^P0BL, ^P0BL == Local7, ) { }
253 | ^LEVX = Local0
254 | }
255 | }
256 |
257 | // Now Local2 is the new PWMMax, set _UID accordingly
258 | // The _UID selects the correct entry in AppleBacklightFixup.kext
259 | If (Local2 == SANDYIVY_PWMMAX) { _UID = 14 }
260 | ElseIf (Local2 == HASWELL_PWMMAX) { _UID = 15 }
261 | ElseIf (Local2 == SKYLAKE_PWMMAX) { _UID = 16 }
262 | ElseIf (Local2 == CUSTOM_PWMMAX_07a1) { _UID = 17 }
263 | ElseIf (Local2 == CUSTOM_PWMMAX_1499) { _UID = 18 }
264 | ElseIf (Local2 == COFFEELAKE_PWMMAX) { _UID = 19 }
265 | Else { _UID = 99 }
266 | }
267 | }
268 | }
--------------------------------------------------------------------------------
/ACPI/CML/Source/SSDT-USB-USBBT.dsl:
--------------------------------------------------------------------------------
1 | // Optional hotpatch, pair with `Rename Method(_UPC,0,S) to XUPC` rename patch and SSDT-EC
2 | // Maintained by: stevezhengshiqi
3 | // Reference: https://github.com/daliansky/OC-little and https://www.tonymacx86.com/threads/guide-usb-power-property-injection-for-sierra-and-later.222266 by Rehabman
4 | // USB power injection (work with SSDT-EC) and patch USB ports to enable all the ports (work with _UPC rename)
5 |
6 | // HS01 -> HS USB3 near right
7 | // HS03 -> HS USB3 near left
8 | // HS04 -> HS USB3 far right
9 | // HS06 -> camera
10 | // HS07 -> SD card reader (Disabled)
11 | // HS08 -> fingerprint (Disabled)
12 | // HS09 -> HS USB3 far left
13 | // HS10 -> bluetooth (Disabled)
14 | // SS01 -> SS USB3 near right
15 | // SS02 -> SS USB3 near left
16 | // SS03 -> SS USB3 far left
17 | // SS04 -> SS USB3 far right
18 |
19 | DefinitionBlock ("", "SSDT", 2, "hack", "_USB", 0x00000000)
20 | {
21 | External (_SB_.PCI0.XHC_.RHUB.HS01, DeviceObj)
22 | External (_SB_.PCI0.XHC_.RHUB.HS01.UPCN, PkgObj)
23 | External (_SB_.PCI0.XHC_.RHUB.HS02, DeviceObj)
24 | External (_SB_.PCI0.XHC_.RHUB.HS03, DeviceObj)
25 | External (_SB_.PCI0.XHC_.RHUB.HS03.UPCN, PkgObj)
26 | External (_SB_.PCI0.XHC_.RHUB.HS04, DeviceObj)
27 | External (_SB_.PCI0.XHC_.RHUB.HS04.UPCN, PkgObj)
28 | External (_SB_.PCI0.XHC_.RHUB.HS05, DeviceObj)
29 | External (_SB_.PCI0.XHC_.RHUB.HS06, DeviceObj)
30 | External (_SB_.PCI0.XHC_.RHUB.HS06.WCAM, DeviceObj)
31 | External (_SB_.PCI0.XHC_.RHUB.HS07, DeviceObj)
32 | External (_SB_.PCI0.XHC_.RHUB.HS08, DeviceObj)
33 | External (_SB_.PCI0.XHC_.RHUB.HS09, DeviceObj)
34 | External (_SB_.PCI0.XHC_.RHUB.HS09.UPCN, PkgObj)
35 | External (_SB_.PCI0.XHC_.RHUB.HS10, DeviceObj)
36 | External (_SB_.PCI0.XHC_.RHUB.HS11, DeviceObj)
37 | External (_SB_.PCI0.XHC_.RHUB.HS12, DeviceObj)
38 | External (_SB_.PCI0.XHC_.RHUB.HS13, DeviceObj)
39 | External (_SB_.PCI0.XHC_.RHUB.HS14, DeviceObj)
40 | External (_SB_.PCI0.XHC_.RHUB.SS01, DeviceObj)
41 | External (_SB_.PCI0.XHC_.RHUB.SS01.UPCN, PkgObj)
42 | External (_SB_.PCI0.XHC_.RHUB.SS02, DeviceObj)
43 | External (_SB_.PCI0.XHC_.RHUB.SS02.UPCN, PkgObj)
44 | External (_SB_.PCI0.XHC_.RHUB.SS03, DeviceObj)
45 | External (_SB_.PCI0.XHC_.RHUB.SS03.UPCN, PkgObj)
46 | External (_SB_.PCI0.XHC_.RHUB.SS04, DeviceObj)
47 | External (_SB_.PCI0.XHC_.RHUB.SS04.UPCN, PkgObj)
48 | External (_SB_.PCI0.XHC_.RHUB.SS05, DeviceObj)
49 | External (_SB_.PCI0.XHC_.RHUB.SS06, DeviceObj)
50 | External (_SB_.PCI0.XHC_.RHUB.SS07, DeviceObj)
51 | External (_SB_.PCI0.XHC_.RHUB.SS08, DeviceObj)
52 | External (_SB_.PCI0.XHC_.RHUB.SS09, DeviceObj)
53 | External (_SB_.PCI0.XHC_.RHUB.SS10, DeviceObj)
54 | External (_SB_.PCI0.XHC_.RHUB.USR1, DeviceObj)
55 | External (_SB_.PCI0.XHC_.RHUB.USR2, DeviceObj)
56 | External (_SB_.PCI0.XHC_.RHUB.UUNS, PkgObj)
57 |
58 | Device (_SB.USBX)
59 | {
60 | Name (_ADR, Zero) // _ADR: Address
61 | Method (_STA, 0, NotSerialized) // _STA: Status
62 | {
63 | If (_OSI ("Darwin"))
64 | {
65 | Return (0x0F)
66 | }
67 | Else
68 | {
69 | Return (Zero)
70 | }
71 | }
72 |
73 | Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
74 | {
75 | If (!Arg2)
76 | {
77 | Return (Buffer (One)
78 | {
79 | 0x03 // .
80 | })
81 | }
82 |
83 | Return (Package (0x04)
84 | {
85 | "kUSBSleepPortCurrentLimit",
86 | 0x0BB8,
87 | "kUSBWakePortCurrentLimit",
88 | 0x0BB8
89 | })
90 | }
91 | }
92 |
93 | Scope (_SB.PCI0.XHC.RHUB.HS01) // HS USB3 near right
94 | {
95 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
96 | {
97 | If (_OSI ("Darwin"))
98 | {
99 | Return (Package (0x04)
100 | {
101 | 0xFF,
102 | 0x09,
103 | Zero,
104 | Zero
105 | })
106 | }
107 | Else
108 | {
109 | Return (\_SB.PCI0.XHC.RHUB.HS01.UPCN) /* External reference */
110 | }
111 | }
112 | }
113 |
114 | Scope (_SB.PCI0.XHC.RHUB.HS02)
115 | {
116 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
117 | {
118 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
119 | }
120 | }
121 |
122 | Scope (_SB.PCI0.XHC.RHUB.HS03) // HS USB3 near left
123 | {
124 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
125 | {
126 | If (_OSI ("Darwin"))
127 | {
128 | Return (Package (0x04)
129 | {
130 | 0xFF,
131 | 0x03,
132 | Zero,
133 | Zero
134 | })
135 | }
136 | Else
137 | {
138 | Return (\_SB.PCI0.XHC.RHUB.HS03.UPCN) /* External reference */
139 | }
140 | }
141 | }
142 |
143 | Scope (_SB.PCI0.XHC.RHUB.HS04) // HS USB3 far right
144 | {
145 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
146 | {
147 | If (_OSI ("Darwin"))
148 | {
149 | Return (Package (0x04)
150 | {
151 | 0xFF,
152 | 0x09,
153 | Zero,
154 | Zero
155 | })
156 | }
157 | Else
158 | {
159 | Return (\_SB.PCI0.XHC.RHUB.HS04.UPCN) /* External reference */
160 | }
161 | }
162 | }
163 |
164 | Scope (_SB.PCI0.XHC.RHUB.HS05)
165 | {
166 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
167 | {
168 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
169 | }
170 | }
171 |
172 | Scope (_SB.PCI0.XHC.RHUB.HS06) // camera
173 | {
174 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
175 | {
176 | Name (UPCP, Package (0x04)
177 | {
178 | Zero,
179 | 0xFF,
180 | Zero,
181 | Zero
182 | })
183 | If (_OSI ("Darwin"))
184 | {
185 | Return (Package (0x04)
186 | {
187 | 0xFF,
188 | 0xFF,
189 | Zero,
190 | Zero
191 | })
192 | }
193 | Else
194 | {
195 | Return (UPCP) /* \_SB_.PCI0.XHC_.RHUB.HS06._UPC.UPCP */
196 | }
197 | }
198 | }
199 |
200 | Scope (_SB.PCI0.XHC.RHUB.HS06.WCAM) // camera
201 | {
202 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
203 | {
204 | Name (UPCP, Package (0x04)
205 | {
206 | Zero,
207 | 0xFF,
208 | Zero,
209 | Zero
210 | })
211 | If (_OSI ("Darwin"))
212 | {
213 | Return (Package (0x04)
214 | {
215 | 0xFF,
216 | 0xFF,
217 | Zero,
218 | Zero
219 | })
220 | }
221 | Else
222 | {
223 | Return (UPCP) /* \_SB_.PCI0.XHC_.RHUB.HS06.WCAM._UPC.UPCP */
224 | }
225 | }
226 | }
227 |
228 | Scope (_SB.PCI0.XHC.RHUB.HS07) // SD card reader
229 | {
230 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
231 | {
232 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
233 | }
234 | }
235 |
236 | Scope (_SB.PCI0.XHC.RHUB.HS08) // fingerprint
237 | {
238 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
239 | {
240 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
241 | }
242 | }
243 |
244 | Scope (_SB.PCI0.XHC.RHUB.HS09) // HS USB3 far left
245 | {
246 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
247 | {
248 | If (_OSI ("Darwin"))
249 | {
250 | Return (Package (0x04)
251 | {
252 | 0xFF,
253 | 0x03,
254 | Zero,
255 | Zero
256 | })
257 | }
258 | Else
259 | {
260 | Return (\_SB.PCI0.XHC.RHUB.HS09.UPCN) /* External reference */
261 | }
262 | }
263 | }
264 |
265 | Scope (_SB.PCI0.XHC.RHUB.HS10) // bluetooth
266 | {
267 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
268 | {
269 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
270 | }
271 | }
272 |
273 | Scope (_SB.PCI0.XHC.RHUB.USR1)
274 | {
275 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
276 | {
277 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
278 | }
279 | }
280 |
281 | Scope (_SB.PCI0.XHC.RHUB.USR2)
282 | {
283 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
284 | {
285 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
286 | }
287 | }
288 |
289 | Scope (_SB.PCI0.XHC.RHUB.SS01) // SS USB3 near right
290 | {
291 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
292 | {
293 | If (_OSI ("Darwin"))
294 | {
295 | Return (Package (0x04)
296 | {
297 | 0xFF,
298 | 0x09,
299 | Zero,
300 | Zero
301 | })
302 | }
303 | Else
304 | {
305 | Return (\_SB.PCI0.XHC.RHUB.SS01.UPCN) /* External reference */
306 | }
307 | }
308 | }
309 |
310 | Scope (_SB.PCI0.XHC.RHUB.SS02) // SS USB3 near left
311 | {
312 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
313 | {
314 | If (_OSI ("Darwin"))
315 | {
316 | Return (Package (0x04)
317 | {
318 | 0xFF,
319 | 0x03,
320 | Zero,
321 | Zero
322 | })
323 | }
324 | Else
325 | {
326 | Return (\_SB.PCI0.XHC.RHUB.SS02.UPCN) /* External reference */
327 | }
328 | }
329 | }
330 |
331 | Scope (_SB.PCI0.XHC.RHUB.SS03) // SS USB3 far left
332 | {
333 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
334 | {
335 | If (_OSI ("Darwin"))
336 | {
337 | Return (Package (0x04)
338 | {
339 | 0xFF,
340 | 0x03,
341 | Zero,
342 | Zero
343 | })
344 | }
345 | Else
346 | {
347 | Return (\_SB.PCI0.XHC.RHUB.SS03.UPCN) /* External reference */
348 | }
349 | }
350 | }
351 |
352 | Scope (_SB.PCI0.XHC.RHUB.SS04) // SS USB3 far right
353 | {
354 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
355 | {
356 | If (_OSI ("Darwin"))
357 | {
358 | Return (Package (0x04)
359 | {
360 | 0xFF,
361 | 0x09,
362 | Zero,
363 | Zero
364 | })
365 | }
366 | Else
367 | {
368 | Return (\_SB.PCI0.XHC.RHUB.SS04.UPCN) /* External reference */
369 | }
370 | }
371 | }
372 |
373 | Scope (_SB.PCI0.XHC.RHUB.SS05)
374 | {
375 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
376 | {
377 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
378 | }
379 | }
380 |
381 | Scope (_SB.PCI0.XHC.RHUB.SS06)
382 | {
383 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
384 | {
385 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
386 | }
387 | }
388 |
389 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS11))
390 | {
391 | Scope (_SB.PCI0.XHC.RHUB.HS11)
392 | {
393 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
394 | {
395 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
396 | }
397 | }
398 | }
399 |
400 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS12))
401 | {
402 | Scope (_SB.PCI0.XHC.RHUB.HS12)
403 | {
404 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
405 | {
406 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
407 | }
408 | }
409 | }
410 |
411 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS13))
412 | {
413 | Scope (_SB.PCI0.XHC.RHUB.HS13)
414 | {
415 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
416 | {
417 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
418 | }
419 | }
420 | }
421 |
422 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS14))
423 | {
424 | Scope (_SB.PCI0.XHC.RHUB.HS14)
425 | {
426 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
427 | {
428 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
429 | }
430 | }
431 | }
432 |
433 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS07))
434 | {
435 | Scope (_SB.PCI0.XHC.RHUB.SS07)
436 | {
437 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
438 | {
439 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
440 | }
441 | }
442 | }
443 |
444 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS08))
445 | {
446 | Scope (_SB.PCI0.XHC.RHUB.SS08)
447 | {
448 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
449 | {
450 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
451 | }
452 | }
453 | }
454 |
455 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS09))
456 | {
457 | Scope (_SB.PCI0.XHC.RHUB.SS09)
458 | {
459 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
460 | {
461 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
462 | }
463 | }
464 | }
465 |
466 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS10))
467 | {
468 | Scope (_SB.PCI0.XHC.RHUB.SS10)
469 | {
470 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
471 | {
472 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
473 | }
474 | }
475 | }
476 | }
--------------------------------------------------------------------------------
/ACPI/KBL/Source/SSDT-USB-USBBT.dsl:
--------------------------------------------------------------------------------
1 | // Optional hotpatch, pair with `Rename Method(_UPC,0,S) to XUPC` rename patch and SSDT-EC
2 | // Maintained by: stevezhengshiqi
3 | // Reference: https://github.com/daliansky/OC-little and https://www.tonymacx86.com/threads/guide-usb-power-property-injection-for-sierra-and-later.222266 by Rehabman
4 | // USB power injection (work with SSDT-EC) and patch USB ports to disable native Intel BT (work with _UPC rename)
5 |
6 | // HS01 -> HS USB3 near right
7 | // HS02 -> WLAN_LTE, might only available on TM1701 (Disabled)
8 | // HS03 -> HS USB3 near left
9 | // HS04 -> HS USB3 far right
10 | // HS05 -> bluetooth (Disabled)
11 | // HS06 -> camera
12 | // HS07 -> SD card reader (Disabled)
13 | // HS08 -> fingerprint (Disabled)
14 | // HS09 -> HS USB3 far left
15 | // SS01 -> SS USB3 near right
16 | // SS02 -> SS USB3 near left
17 | // SS03 -> SS USB3 far left
18 | // SS04 -> SS USB3 far right
19 |
20 | DefinitionBlock ("", "SSDT", 2, "hack", "_USB", 0x00000000)
21 | {
22 | External (_SB_.PCI0.XHC_.RHUB.HS01, DeviceObj)
23 | External (_SB_.PCI0.XHC_.RHUB.HS01.UPCN, PkgObj)
24 | External (_SB_.PCI0.XHC_.RHUB.HS02, DeviceObj)
25 | External (_SB_.PCI0.XHC_.RHUB.HS03, DeviceObj)
26 | External (_SB_.PCI0.XHC_.RHUB.HS03.UPCN, PkgObj)
27 | External (_SB_.PCI0.XHC_.RHUB.HS04, DeviceObj)
28 | External (_SB_.PCI0.XHC_.RHUB.HS04.UPCN, PkgObj)
29 | External (_SB_.PCI0.XHC_.RHUB.HS05, DeviceObj)
30 | External (_SB_.PCI0.XHC_.RHUB.HS06, DeviceObj)
31 | External (_SB_.PCI0.XHC_.RHUB.HS06.WCAM, DeviceObj)
32 | External (_SB_.PCI0.XHC_.RHUB.HS07, DeviceObj)
33 | External (_SB_.PCI0.XHC_.RHUB.HS08, DeviceObj)
34 | External (_SB_.PCI0.XHC_.RHUB.HS09, DeviceObj)
35 | External (_SB_.PCI0.XHC_.RHUB.HS09.UPCN, PkgObj)
36 | External (_SB_.PCI0.XHC_.RHUB.HS10, DeviceObj)
37 | External (_SB_.PCI0.XHC_.RHUB.HS11, DeviceObj)
38 | External (_SB_.PCI0.XHC_.RHUB.HS12, DeviceObj)
39 | External (_SB_.PCI0.XHC_.RHUB.HS13, DeviceObj)
40 | External (_SB_.PCI0.XHC_.RHUB.HS14, DeviceObj)
41 | External (_SB_.PCI0.XHC_.RHUB.SS01, DeviceObj)
42 | External (_SB_.PCI0.XHC_.RHUB.SS01.UPCN, PkgObj)
43 | External (_SB_.PCI0.XHC_.RHUB.SS02, DeviceObj)
44 | External (_SB_.PCI0.XHC_.RHUB.SS02.UPCN, PkgObj)
45 | External (_SB_.PCI0.XHC_.RHUB.SS03, DeviceObj)
46 | External (_SB_.PCI0.XHC_.RHUB.SS03.UPCN, PkgObj)
47 | External (_SB_.PCI0.XHC_.RHUB.SS04, DeviceObj)
48 | External (_SB_.PCI0.XHC_.RHUB.SS04.UPCN, PkgObj)
49 | External (_SB_.PCI0.XHC_.RHUB.SS05, DeviceObj)
50 | External (_SB_.PCI0.XHC_.RHUB.SS06, DeviceObj)
51 | External (_SB_.PCI0.XHC_.RHUB.SS07, DeviceObj)
52 | External (_SB_.PCI0.XHC_.RHUB.SS08, DeviceObj)
53 | External (_SB_.PCI0.XHC_.RHUB.SS09, DeviceObj)
54 | External (_SB_.PCI0.XHC_.RHUB.SS10, DeviceObj)
55 | External (_SB_.PCI0.XHC_.RHUB.USR1, DeviceObj)
56 | External (_SB_.PCI0.XHC_.RHUB.USR2, DeviceObj)
57 | External (_SB_.PCI0.XHC_.RHUB.UUNS, PkgObj)
58 |
59 | Device (_SB.USBX)
60 | {
61 | Name (_ADR, Zero) // _ADR: Address
62 | Method (_STA, 0, NotSerialized) // _STA: Status
63 | {
64 | If (_OSI ("Darwin"))
65 | {
66 | Return (0x0F)
67 | }
68 | Else
69 | {
70 | Return (Zero)
71 | }
72 | }
73 |
74 | Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
75 | {
76 | If (!Arg2)
77 | {
78 | Return (Buffer (One)
79 | {
80 | 0x03 // .
81 | })
82 | }
83 |
84 | Return (Package (0x04)
85 | {
86 | "kUSBSleepPortCurrentLimit",
87 | 0x0BB8,
88 | "kUSBWakePortCurrentLimit",
89 | 0x0BB8
90 | })
91 | }
92 | }
93 |
94 | Scope (_SB.PCI0.XHC.RHUB.HS01) // HS USB3 near right
95 | {
96 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
97 | {
98 | If (_OSI ("Darwin"))
99 | {
100 | Return (Package (0x04)
101 | {
102 | 0xFF,
103 | 0x09,
104 | Zero,
105 | Zero
106 | })
107 | }
108 | Else
109 | {
110 | Return (\_SB.PCI0.XHC.RHUB.HS01.UPCN) /* External reference */
111 | }
112 | }
113 | }
114 |
115 | Scope (_SB.PCI0.XHC.RHUB.HS02) // WLAN_LTE
116 | {
117 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
118 | {
119 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
120 | }
121 | }
122 |
123 | Scope (_SB.PCI0.XHC.RHUB.HS03) // HS USB3 near left
124 | {
125 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
126 | {
127 | If (_OSI ("Darwin"))
128 | {
129 | Return (Package (0x04)
130 | {
131 | 0xFF,
132 | 0x03,
133 | Zero,
134 | Zero
135 | })
136 | }
137 | Else
138 | {
139 | Return (\_SB.PCI0.XHC.RHUB.HS03.UPCN) /* External reference */
140 | }
141 | }
142 | }
143 |
144 | Scope (_SB.PCI0.XHC.RHUB.HS04) // HS USB3 far right
145 | {
146 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
147 | {
148 | If (_OSI ("Darwin"))
149 | {
150 | Return (Package (0x04)
151 | {
152 | 0xFF,
153 | 0x09,
154 | Zero,
155 | Zero
156 | })
157 | }
158 | Else
159 | {
160 | Return (\_SB.PCI0.XHC.RHUB.HS04.UPCN) /* External reference */
161 | }
162 | }
163 | }
164 |
165 | Scope (_SB.PCI0.XHC.RHUB.HS05) // bluetooth
166 | {
167 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
168 | {
169 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
170 | }
171 | }
172 |
173 | Scope (_SB.PCI0.XHC.RHUB.HS06) // camera
174 | {
175 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
176 | {
177 | Name (UPCP, Package (0x04)
178 | {
179 | Zero,
180 | 0xFF,
181 | Zero,
182 | Zero
183 | })
184 | If (_OSI ("Darwin"))
185 | {
186 | Return (Package (0x04)
187 | {
188 | 0xFF,
189 | 0xFF,
190 | Zero,
191 | Zero
192 | })
193 | }
194 | Else
195 | {
196 | Return (UPCP) /* \_SB_.PCI0.XHC_.RHUB.HS06._UPC.UPCP */
197 | }
198 | }
199 | }
200 |
201 | Scope (_SB.PCI0.XHC.RHUB.HS06.WCAM) // camera
202 | {
203 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
204 | {
205 | Name (UPCP, Package (0x04)
206 | {
207 | Zero,
208 | 0xFF,
209 | Zero,
210 | Zero
211 | })
212 | If (_OSI ("Darwin"))
213 | {
214 | Return (Package (0x04)
215 | {
216 | 0xFF,
217 | 0xFF,
218 | Zero,
219 | Zero
220 | })
221 | }
222 | Else
223 | {
224 | Return (UPCP) /* \_SB_.PCI0.XHC_.RHUB.HS06.WCAM._UPC.UPCP */
225 | }
226 | }
227 | }
228 |
229 | Scope (_SB.PCI0.XHC.RHUB.HS07) // SD card reader
230 | {
231 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
232 | {
233 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
234 | }
235 | }
236 |
237 | Scope (_SB.PCI0.XHC.RHUB.HS08) // fingerprint
238 | {
239 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
240 | {
241 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
242 | }
243 | }
244 |
245 | Scope (_SB.PCI0.XHC.RHUB.HS09) // HS USB3 far left
246 | {
247 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
248 | {
249 | If (_OSI ("Darwin"))
250 | {
251 | Return (Package (0x04)
252 | {
253 | 0xFF,
254 | 0x03,
255 | Zero,
256 | Zero
257 | })
258 | }
259 | Else
260 | {
261 | Return (\_SB.PCI0.XHC.RHUB.HS09.UPCN) /* External reference */
262 | }
263 | }
264 | }
265 |
266 | Scope (_SB.PCI0.XHC.RHUB.HS10)
267 | {
268 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
269 | {
270 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
271 | }
272 | }
273 |
274 | Scope (_SB.PCI0.XHC.RHUB.USR1)
275 | {
276 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
277 | {
278 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
279 | }
280 | }
281 |
282 | Scope (_SB.PCI0.XHC.RHUB.USR2)
283 | {
284 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
285 | {
286 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
287 | }
288 | }
289 |
290 | Scope (_SB.PCI0.XHC.RHUB.SS01) // SS USB3 near right
291 | {
292 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
293 | {
294 | If (_OSI ("Darwin"))
295 | {
296 | Return (Package (0x04)
297 | {
298 | 0xFF,
299 | 0x09,
300 | Zero,
301 | Zero
302 | })
303 | }
304 | Else
305 | {
306 | Return (\_SB.PCI0.XHC.RHUB.SS01.UPCN) /* External reference */
307 | }
308 | }
309 | }
310 |
311 | Scope (_SB.PCI0.XHC.RHUB.SS02) // SS USB3 near left
312 | {
313 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
314 | {
315 | If (_OSI ("Darwin"))
316 | {
317 | Return (Package (0x04)
318 | {
319 | 0xFF,
320 | 0x03,
321 | Zero,
322 | Zero
323 | })
324 | }
325 | Else
326 | {
327 | Return (\_SB.PCI0.XHC.RHUB.SS02.UPCN) /* External reference */
328 | }
329 | }
330 | }
331 |
332 | Scope (_SB.PCI0.XHC.RHUB.SS03) // SS USB3 far left
333 | {
334 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
335 | {
336 | If (_OSI ("Darwin"))
337 | {
338 | Return (Package (0x04)
339 | {
340 | 0xFF,
341 | 0x03,
342 | Zero,
343 | Zero
344 | })
345 | }
346 | Else
347 | {
348 | Return (\_SB.PCI0.XHC.RHUB.SS03.UPCN) /* External reference */
349 | }
350 | }
351 | }
352 |
353 | Scope (_SB.PCI0.XHC.RHUB.SS04) // SS USB3 far right
354 | {
355 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
356 | {
357 | If (_OSI ("Darwin"))
358 | {
359 | Return (Package (0x04)
360 | {
361 | 0xFF,
362 | 0x09,
363 | Zero,
364 | Zero
365 | })
366 | }
367 | Else
368 | {
369 | Return (\_SB.PCI0.XHC.RHUB.SS04.UPCN) /* External reference */
370 | }
371 | }
372 | }
373 |
374 | Scope (_SB.PCI0.XHC.RHUB.SS05)
375 | {
376 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
377 | {
378 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
379 | }
380 | }
381 |
382 | Scope (_SB.PCI0.XHC.RHUB.SS06)
383 | {
384 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
385 | {
386 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
387 | }
388 | }
389 |
390 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS11))
391 | {
392 | Scope (_SB.PCI0.XHC.RHUB.HS11)
393 | {
394 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
395 | {
396 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
397 | }
398 | }
399 | }
400 |
401 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS12))
402 | {
403 | Scope (_SB.PCI0.XHC.RHUB.HS12)
404 | {
405 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
406 | {
407 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
408 | }
409 | }
410 | }
411 |
412 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS13))
413 | {
414 | Scope (_SB.PCI0.XHC.RHUB.HS13)
415 | {
416 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
417 | {
418 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
419 | }
420 | }
421 | }
422 |
423 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS14))
424 | {
425 | Scope (_SB.PCI0.XHC.RHUB.HS14)
426 | {
427 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
428 | {
429 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
430 | }
431 | }
432 | }
433 |
434 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS07))
435 | {
436 | Scope (_SB.PCI0.XHC.RHUB.SS07)
437 | {
438 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
439 | {
440 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
441 | }
442 | }
443 | }
444 |
445 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS08))
446 | {
447 | Scope (_SB.PCI0.XHC.RHUB.SS08)
448 | {
449 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
450 | {
451 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
452 | }
453 | }
454 | }
455 |
456 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS09))
457 | {
458 | Scope (_SB.PCI0.XHC.RHUB.SS09)
459 | {
460 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
461 | {
462 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
463 | }
464 | }
465 | }
466 |
467 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS10))
468 | {
469 | Scope (_SB.PCI0.XHC.RHUB.SS10)
470 | {
471 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
472 | {
473 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
474 | }
475 | }
476 | }
477 | }
--------------------------------------------------------------------------------
/ACPI/CML/Source/SSDT-USB.dsl:
--------------------------------------------------------------------------------
1 | // Optional hotpatch, pair with `Rename Method(_UPC,0,S) to XUPC` rename patch and SSDT-EC
2 | // Maintained by: stevezhengshiqi
3 | // Reference: https://github.com/daliansky/OC-little and https://www.tonymacx86.com/threads/guide-usb-power-property-injection-for-sierra-and-later.222266 by Rehabman
4 | // USB power injection (work with SSDT-EC) and patch USB ports to enable all the ports (work with _UPC rename)
5 |
6 | // HS01 -> HS USB3 near right
7 | // HS03 -> HS USB3 near left
8 | // HS04 -> HS USB3 far right
9 | // HS06 -> camera
10 | // HS07 -> SD card reader (Disabled)
11 | // HS08 -> fingerprint (Disabled)
12 | // HS09 -> HS USB3 far left
13 | // HS10 -> bluetooth
14 | // SS01 -> SS USB3 near right
15 | // SS02 -> SS USB3 near left
16 | // SS03 -> SS USB3 far left
17 | // SS04 -> SS USB3 far right
18 |
19 | DefinitionBlock ("", "SSDT", 2, "hack", "_USB", 0x00000000)
20 | {
21 | External (_SB_.PCI0.XHC_.RHUB.HS01, DeviceObj)
22 | External (_SB_.PCI0.XHC_.RHUB.HS01.UPCN, PkgObj)
23 | External (_SB_.PCI0.XHC_.RHUB.HS02, DeviceObj)
24 | External (_SB_.PCI0.XHC_.RHUB.HS03, DeviceObj)
25 | External (_SB_.PCI0.XHC_.RHUB.HS03.UPCN, PkgObj)
26 | External (_SB_.PCI0.XHC_.RHUB.HS04, DeviceObj)
27 | External (_SB_.PCI0.XHC_.RHUB.HS04.UPCN, PkgObj)
28 | External (_SB_.PCI0.XHC_.RHUB.HS05, DeviceObj)
29 | External (_SB_.PCI0.XHC_.RHUB.HS06, DeviceObj)
30 | External (_SB_.PCI0.XHC_.RHUB.HS06.WCAM, DeviceObj)
31 | External (_SB_.PCI0.XHC_.RHUB.HS07, DeviceObj)
32 | External (_SB_.PCI0.XHC_.RHUB.HS08, DeviceObj)
33 | External (_SB_.PCI0.XHC_.RHUB.HS09, DeviceObj)
34 | External (_SB_.PCI0.XHC_.RHUB.HS09.UPCN, PkgObj)
35 | External (_SB_.PCI0.XHC_.RHUB.HS10, DeviceObj)
36 | External (_SB_.PCI0.XHC_.RHUB.HS11, DeviceObj)
37 | External (_SB_.PCI0.XHC_.RHUB.HS12, DeviceObj)
38 | External (_SB_.PCI0.XHC_.RHUB.HS13, DeviceObj)
39 | External (_SB_.PCI0.XHC_.RHUB.HS14, DeviceObj)
40 | External (_SB_.PCI0.XHC_.RHUB.SS01, DeviceObj)
41 | External (_SB_.PCI0.XHC_.RHUB.SS01.UPCN, PkgObj)
42 | External (_SB_.PCI0.XHC_.RHUB.SS02, DeviceObj)
43 | External (_SB_.PCI0.XHC_.RHUB.SS02.UPCN, PkgObj)
44 | External (_SB_.PCI0.XHC_.RHUB.SS03, DeviceObj)
45 | External (_SB_.PCI0.XHC_.RHUB.SS03.UPCN, PkgObj)
46 | External (_SB_.PCI0.XHC_.RHUB.SS04, DeviceObj)
47 | External (_SB_.PCI0.XHC_.RHUB.SS04.UPCN, PkgObj)
48 | External (_SB_.PCI0.XHC_.RHUB.SS05, DeviceObj)
49 | External (_SB_.PCI0.XHC_.RHUB.SS06, DeviceObj)
50 | External (_SB_.PCI0.XHC_.RHUB.SS07, DeviceObj)
51 | External (_SB_.PCI0.XHC_.RHUB.SS08, DeviceObj)
52 | External (_SB_.PCI0.XHC_.RHUB.SS09, DeviceObj)
53 | External (_SB_.PCI0.XHC_.RHUB.SS10, DeviceObj)
54 | External (_SB_.PCI0.XHC_.RHUB.USR1, DeviceObj)
55 | External (_SB_.PCI0.XHC_.RHUB.USR2, DeviceObj)
56 | External (_SB_.PCI0.XHC_.RHUB.UUNS, PkgObj)
57 |
58 | Device (_SB.USBX)
59 | {
60 | Name (_ADR, Zero) // _ADR: Address
61 | Method (_STA, 0, NotSerialized) // _STA: Status
62 | {
63 | If (_OSI ("Darwin"))
64 | {
65 | Return (0x0F)
66 | }
67 | Else
68 | {
69 | Return (Zero)
70 | }
71 | }
72 |
73 | Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
74 | {
75 | If (!Arg2)
76 | {
77 | Return (Buffer (One)
78 | {
79 | 0x03 // .
80 | })
81 | }
82 |
83 | Return (Package (0x04)
84 | {
85 | "kUSBSleepPortCurrentLimit",
86 | 0x0BB8,
87 | "kUSBWakePortCurrentLimit",
88 | 0x0BB8
89 | })
90 | }
91 | }
92 |
93 | Scope (_SB.PCI0.XHC.RHUB.HS01) // HS USB3 near right
94 | {
95 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
96 | {
97 | If (_OSI ("Darwin"))
98 | {
99 | Return (Package (0x04)
100 | {
101 | 0xFF,
102 | 0x09,
103 | Zero,
104 | Zero
105 | })
106 | }
107 | Else
108 | {
109 | Return (\_SB.PCI0.XHC.RHUB.HS01.UPCN) /* External reference */
110 | }
111 | }
112 | }
113 |
114 | Scope (_SB.PCI0.XHC.RHUB.HS02)
115 | {
116 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
117 | {
118 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
119 | }
120 | }
121 |
122 | Scope (_SB.PCI0.XHC.RHUB.HS03) // HS USB3 near left
123 | {
124 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
125 | {
126 | If (_OSI ("Darwin"))
127 | {
128 | Return (Package (0x04)
129 | {
130 | 0xFF,
131 | 0x03,
132 | Zero,
133 | Zero
134 | })
135 | }
136 | Else
137 | {
138 | Return (\_SB.PCI0.XHC.RHUB.HS03.UPCN) /* External reference */
139 | }
140 | }
141 | }
142 |
143 | Scope (_SB.PCI0.XHC.RHUB.HS04) // HS USB3 far right
144 | {
145 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
146 | {
147 | If (_OSI ("Darwin"))
148 | {
149 | Return (Package (0x04)
150 | {
151 | 0xFF,
152 | 0x09,
153 | Zero,
154 | Zero
155 | })
156 | }
157 | Else
158 | {
159 | Return (\_SB.PCI0.XHC.RHUB.HS04.UPCN) /* External reference */
160 | }
161 | }
162 | }
163 |
164 | Scope (_SB.PCI0.XHC.RHUB.HS05)
165 | {
166 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
167 | {
168 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
169 | }
170 | }
171 |
172 | Scope (_SB.PCI0.XHC.RHUB.HS06) // camera
173 | {
174 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
175 | {
176 | Name (UPCP, Package (0x04)
177 | {
178 | Zero,
179 | 0xFF,
180 | Zero,
181 | Zero
182 | })
183 | If (_OSI ("Darwin"))
184 | {
185 | Return (Package (0x04)
186 | {
187 | 0xFF,
188 | 0xFF,
189 | Zero,
190 | Zero
191 | })
192 | }
193 | Else
194 | {
195 | Return (UPCP) /* \_SB_.PCI0.XHC_.RHUB.HS06._UPC.UPCP */
196 | }
197 | }
198 | }
199 |
200 | Scope (_SB.PCI0.XHC.RHUB.HS06.WCAM) // camera
201 | {
202 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
203 | {
204 | Name (UPCP, Package (0x04)
205 | {
206 | Zero,
207 | 0xFF,
208 | Zero,
209 | Zero
210 | })
211 | If (_OSI ("Darwin"))
212 | {
213 | Return (Package (0x04)
214 | {
215 | 0xFF,
216 | 0xFF,
217 | Zero,
218 | Zero
219 | })
220 | }
221 | Else
222 | {
223 | Return (UPCP) /* \_SB_.PCI0.XHC_.RHUB.HS06.WCAM._UPC.UPCP */
224 | }
225 | }
226 | }
227 |
228 | Scope (_SB.PCI0.XHC.RHUB.HS07) // SD card reader
229 | {
230 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
231 | {
232 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
233 | }
234 | }
235 |
236 | Scope (_SB.PCI0.XHC.RHUB.HS08) // fingerprint
237 | {
238 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
239 | {
240 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
241 | }
242 | }
243 |
244 | Scope (_SB.PCI0.XHC.RHUB.HS09) // HS USB3 far left
245 | {
246 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
247 | {
248 | If (_OSI ("Darwin"))
249 | {
250 | Return (Package (0x04)
251 | {
252 | 0xFF,
253 | 0x03,
254 | Zero,
255 | Zero
256 | })
257 | }
258 | Else
259 | {
260 | Return (\_SB.PCI0.XHC.RHUB.HS09.UPCN) /* External reference */
261 | }
262 | }
263 | }
264 |
265 | Scope (_SB.PCI0.XHC.RHUB.HS10) // bluetooth
266 | {
267 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
268 | {
269 | If (_OSI ("Darwin"))
270 | {
271 | Return (Package (0x04)
272 | {
273 | 0xFF,
274 | 0xFF,
275 | Zero,
276 | Zero
277 | })
278 | }
279 | Else
280 | {
281 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
282 | }
283 | }
284 | }
285 |
286 | Scope (_SB.PCI0.XHC.RHUB.USR1)
287 | {
288 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
289 | {
290 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
291 | }
292 | }
293 |
294 | Scope (_SB.PCI0.XHC.RHUB.USR2)
295 | {
296 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
297 | {
298 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
299 | }
300 | }
301 |
302 | Scope (_SB.PCI0.XHC.RHUB.SS01) // SS USB3 near right
303 | {
304 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
305 | {
306 | If (_OSI ("Darwin"))
307 | {
308 | Return (Package (0x04)
309 | {
310 | 0xFF,
311 | 0x09,
312 | Zero,
313 | Zero
314 | })
315 | }
316 | Else
317 | {
318 | Return (\_SB.PCI0.XHC.RHUB.SS01.UPCN) /* External reference */
319 | }
320 | }
321 | }
322 |
323 | Scope (_SB.PCI0.XHC.RHUB.SS02) // SS USB3 near left
324 | {
325 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
326 | {
327 | If (_OSI ("Darwin"))
328 | {
329 | Return (Package (0x04)
330 | {
331 | 0xFF,
332 | 0x03,
333 | Zero,
334 | Zero
335 | })
336 | }
337 | Else
338 | {
339 | Return (\_SB.PCI0.XHC.RHUB.SS02.UPCN) /* External reference */
340 | }
341 | }
342 | }
343 |
344 | Scope (_SB.PCI0.XHC.RHUB.SS03) // SS USB3 far left
345 | {
346 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
347 | {
348 | If (_OSI ("Darwin"))
349 | {
350 | Return (Package (0x04)
351 | {
352 | 0xFF,
353 | 0x03,
354 | Zero,
355 | Zero
356 | })
357 | }
358 | Else
359 | {
360 | Return (\_SB.PCI0.XHC.RHUB.SS03.UPCN) /* External reference */
361 | }
362 | }
363 | }
364 |
365 | Scope (_SB.PCI0.XHC.RHUB.SS04) // SS USB3 far right
366 | {
367 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
368 | {
369 | If (_OSI ("Darwin"))
370 | {
371 | Return (Package (0x04)
372 | {
373 | 0xFF,
374 | 0x09,
375 | Zero,
376 | Zero
377 | })
378 | }
379 | Else
380 | {
381 | Return (\_SB.PCI0.XHC.RHUB.SS04.UPCN) /* External reference */
382 | }
383 | }
384 | }
385 |
386 | Scope (_SB.PCI0.XHC.RHUB.SS05)
387 | {
388 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
389 | {
390 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
391 | }
392 | }
393 |
394 | Scope (_SB.PCI0.XHC.RHUB.SS06)
395 | {
396 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
397 | {
398 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
399 | }
400 | }
401 |
402 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS11))
403 | {
404 | Scope (_SB.PCI0.XHC.RHUB.HS11)
405 | {
406 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
407 | {
408 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
409 | }
410 | }
411 | }
412 |
413 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS12))
414 | {
415 | Scope (_SB.PCI0.XHC.RHUB.HS12)
416 | {
417 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
418 | {
419 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
420 | }
421 | }
422 | }
423 |
424 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS13))
425 | {
426 | Scope (_SB.PCI0.XHC.RHUB.HS13)
427 | {
428 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
429 | {
430 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
431 | }
432 | }
433 | }
434 |
435 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS14))
436 | {
437 | Scope (_SB.PCI0.XHC.RHUB.HS14)
438 | {
439 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
440 | {
441 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
442 | }
443 | }
444 | }
445 |
446 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS07))
447 | {
448 | Scope (_SB.PCI0.XHC.RHUB.SS07)
449 | {
450 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
451 | {
452 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
453 | }
454 | }
455 | }
456 |
457 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS08))
458 | {
459 | Scope (_SB.PCI0.XHC.RHUB.SS08)
460 | {
461 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
462 | {
463 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
464 | }
465 | }
466 | }
467 |
468 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS09))
469 | {
470 | Scope (_SB.PCI0.XHC.RHUB.SS09)
471 | {
472 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
473 | {
474 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
475 | }
476 | }
477 | }
478 |
479 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS10))
480 | {
481 | Scope (_SB.PCI0.XHC.RHUB.SS10)
482 | {
483 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
484 | {
485 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
486 | }
487 | }
488 | }
489 | }
--------------------------------------------------------------------------------
/ACPI/CML/Source/SSDT-USB-FingerBT.dsl:
--------------------------------------------------------------------------------
1 | // Optional hotpatch, pair with `Rename Method(_UPC,0,S) to XUPC` rename patch and SSDT-EC
2 | // Maintained by: stevezhengshiqi
3 | // Reference: https://github.com/daliansky/OC-little and https://www.tonymacx86.com/threads/guide-usb-power-property-injection-for-sierra-and-later.222266 by Rehabman
4 | // USB power injection (work with SSDT-EC) and patch USB ports to enable all the ports (work with _UPC rename)
5 |
6 | // HS01 -> HS USB3 near right
7 | // HS03 -> HS USB3 near left
8 | // HS04 -> HS USB3 far right
9 | // HS06 -> camera
10 | // HS07 -> SD card reader (Disabled)
11 | // HS08 -> fingerprint
12 | // HS09 -> HS USB3 far left
13 | // HS10 -> bluetooth (Disabled)
14 | // SS01 -> SS USB3 near right
15 | // SS02 -> SS USB3 near left
16 | // SS03 -> SS USB3 far left
17 | // SS04 -> SS USB3 far right
18 |
19 | DefinitionBlock ("", "SSDT", 2, "hack", "_USB", 0x00000000)
20 | {
21 | External (_SB_.PCI0.XHC_.RHUB.HS01, DeviceObj)
22 | External (_SB_.PCI0.XHC_.RHUB.HS01.UPCN, PkgObj)
23 | External (_SB_.PCI0.XHC_.RHUB.HS02, DeviceObj)
24 | External (_SB_.PCI0.XHC_.RHUB.HS03, DeviceObj)
25 | External (_SB_.PCI0.XHC_.RHUB.HS03.UPCN, PkgObj)
26 | External (_SB_.PCI0.XHC_.RHUB.HS04, DeviceObj)
27 | External (_SB_.PCI0.XHC_.RHUB.HS04.UPCN, PkgObj)
28 | External (_SB_.PCI0.XHC_.RHUB.HS05, DeviceObj)
29 | External (_SB_.PCI0.XHC_.RHUB.HS06, DeviceObj)
30 | External (_SB_.PCI0.XHC_.RHUB.HS06.WCAM, DeviceObj)
31 | External (_SB_.PCI0.XHC_.RHUB.HS07, DeviceObj)
32 | External (_SB_.PCI0.XHC_.RHUB.HS08, DeviceObj)
33 | External (_SB_.PCI0.XHC_.RHUB.HS09, DeviceObj)
34 | External (_SB_.PCI0.XHC_.RHUB.HS09.UPCN, PkgObj)
35 | External (_SB_.PCI0.XHC_.RHUB.HS10, DeviceObj)
36 | External (_SB_.PCI0.XHC_.RHUB.HS11, DeviceObj)
37 | External (_SB_.PCI0.XHC_.RHUB.HS12, DeviceObj)
38 | External (_SB_.PCI0.XHC_.RHUB.HS13, DeviceObj)
39 | External (_SB_.PCI0.XHC_.RHUB.HS14, DeviceObj)
40 | External (_SB_.PCI0.XHC_.RHUB.SS01, DeviceObj)
41 | External (_SB_.PCI0.XHC_.RHUB.SS01.UPCN, PkgObj)
42 | External (_SB_.PCI0.XHC_.RHUB.SS02, DeviceObj)
43 | External (_SB_.PCI0.XHC_.RHUB.SS02.UPCN, PkgObj)
44 | External (_SB_.PCI0.XHC_.RHUB.SS03, DeviceObj)
45 | External (_SB_.PCI0.XHC_.RHUB.SS03.UPCN, PkgObj)
46 | External (_SB_.PCI0.XHC_.RHUB.SS04, DeviceObj)
47 | External (_SB_.PCI0.XHC_.RHUB.SS04.UPCN, PkgObj)
48 | External (_SB_.PCI0.XHC_.RHUB.SS05, DeviceObj)
49 | External (_SB_.PCI0.XHC_.RHUB.SS06, DeviceObj)
50 | External (_SB_.PCI0.XHC_.RHUB.SS07, DeviceObj)
51 | External (_SB_.PCI0.XHC_.RHUB.SS08, DeviceObj)
52 | External (_SB_.PCI0.XHC_.RHUB.SS09, DeviceObj)
53 | External (_SB_.PCI0.XHC_.RHUB.SS10, DeviceObj)
54 | External (_SB_.PCI0.XHC_.RHUB.USR1, DeviceObj)
55 | External (_SB_.PCI0.XHC_.RHUB.USR2, DeviceObj)
56 | External (_SB_.PCI0.XHC_.RHUB.UUNS, PkgObj)
57 |
58 | Device (_SB.USBX)
59 | {
60 | Name (_ADR, Zero) // _ADR: Address
61 | Method (_STA, 0, NotSerialized) // _STA: Status
62 | {
63 | If (_OSI ("Darwin"))
64 | {
65 | Return (0x0F)
66 | }
67 | Else
68 | {
69 | Return (Zero)
70 | }
71 | }
72 |
73 | Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
74 | {
75 | If (!Arg2)
76 | {
77 | Return (Buffer (One)
78 | {
79 | 0x03 // .
80 | })
81 | }
82 |
83 | Return (Package (0x04)
84 | {
85 | "kUSBSleepPortCurrentLimit",
86 | 0x0BB8,
87 | "kUSBWakePortCurrentLimit",
88 | 0x0BB8
89 | })
90 | }
91 | }
92 |
93 | Scope (_SB.PCI0.XHC.RHUB.HS01) // HS USB3 near right
94 | {
95 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
96 | {
97 | If (_OSI ("Darwin"))
98 | {
99 | Return (Package (0x04)
100 | {
101 | 0xFF,
102 | 0x09,
103 | Zero,
104 | Zero
105 | })
106 | }
107 | Else
108 | {
109 | Return (\_SB.PCI0.XHC.RHUB.HS01.UPCN) /* External reference */
110 | }
111 | }
112 | }
113 |
114 | Scope (_SB.PCI0.XHC.RHUB.HS02)
115 | {
116 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
117 | {
118 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
119 | }
120 | }
121 |
122 | Scope (_SB.PCI0.XHC.RHUB.HS03) // HS USB3 near left
123 | {
124 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
125 | {
126 | If (_OSI ("Darwin"))
127 | {
128 | Return (Package (0x04)
129 | {
130 | 0xFF,
131 | 0x03,
132 | Zero,
133 | Zero
134 | })
135 | }
136 | Else
137 | {
138 | Return (\_SB.PCI0.XHC.RHUB.HS03.UPCN) /* External reference */
139 | }
140 | }
141 | }
142 |
143 | Scope (_SB.PCI0.XHC.RHUB.HS04) // HS USB3 far right
144 | {
145 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
146 | {
147 | If (_OSI ("Darwin"))
148 | {
149 | Return (Package (0x04)
150 | {
151 | 0xFF,
152 | 0x09,
153 | Zero,
154 | Zero
155 | })
156 | }
157 | Else
158 | {
159 | Return (\_SB.PCI0.XHC.RHUB.HS04.UPCN) /* External reference */
160 | }
161 | }
162 | }
163 |
164 | Scope (_SB.PCI0.XHC.RHUB.HS05)
165 | {
166 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
167 | {
168 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
169 | }
170 | }
171 |
172 | Scope (_SB.PCI0.XHC.RHUB.HS06) // camera
173 | {
174 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
175 | {
176 | Name (UPCP, Package (0x04)
177 | {
178 | Zero,
179 | 0xFF,
180 | Zero,
181 | Zero
182 | })
183 | If (_OSI ("Darwin"))
184 | {
185 | Return (Package (0x04)
186 | {
187 | 0xFF,
188 | 0xFF,
189 | Zero,
190 | Zero
191 | })
192 | }
193 | Else
194 | {
195 | Return (UPCP) /* \_SB_.PCI0.XHC_.RHUB.HS06._UPC.UPCP */
196 | }
197 | }
198 | }
199 |
200 | Scope (_SB.PCI0.XHC.RHUB.HS06.WCAM) // camera
201 | {
202 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
203 | {
204 | Name (UPCP, Package (0x04)
205 | {
206 | Zero,
207 | 0xFF,
208 | Zero,
209 | Zero
210 | })
211 | If (_OSI ("Darwin"))
212 | {
213 | Return (Package (0x04)
214 | {
215 | 0xFF,
216 | 0xFF,
217 | Zero,
218 | Zero
219 | })
220 | }
221 | Else
222 | {
223 | Return (UPCP) /* \_SB_.PCI0.XHC_.RHUB.HS06.WCAM._UPC.UPCP */
224 | }
225 | }
226 | }
227 |
228 | Scope (_SB.PCI0.XHC.RHUB.HS07) // SD card reader
229 | {
230 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
231 | {
232 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
233 | }
234 | }
235 |
236 | Scope (_SB.PCI0.XHC.RHUB.HS08) // fingerprint
237 | {
238 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
239 | {
240 | If (_OSI ("Darwin"))
241 | {
242 | Return (Package (0x04)
243 | {
244 | 0xFF,
245 | 0xFF,
246 | Zero,
247 | Zero
248 | })
249 | }
250 | Else
251 | {
252 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
253 | }
254 | }
255 | }
256 |
257 | Scope (_SB.PCI0.XHC.RHUB.HS09) // HS USB3 far left
258 | {
259 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
260 | {
261 | If (_OSI ("Darwin"))
262 | {
263 | Return (Package (0x04)
264 | {
265 | 0xFF,
266 | 0x03,
267 | Zero,
268 | Zero
269 | })
270 | }
271 | Else
272 | {
273 | Return (\_SB.PCI0.XHC.RHUB.HS09.UPCN) /* External reference */
274 | }
275 | }
276 | }
277 |
278 | Scope (_SB.PCI0.XHC.RHUB.HS10) // bluetooth
279 | {
280 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
281 | {
282 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
283 | }
284 | }
285 |
286 | Scope (_SB.PCI0.XHC.RHUB.USR1)
287 | {
288 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
289 | {
290 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
291 | }
292 | }
293 |
294 | Scope (_SB.PCI0.XHC.RHUB.USR2)
295 | {
296 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
297 | {
298 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
299 | }
300 | }
301 |
302 | Scope (_SB.PCI0.XHC.RHUB.SS01) // SS USB3 near right
303 | {
304 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
305 | {
306 | If (_OSI ("Darwin"))
307 | {
308 | Return (Package (0x04)
309 | {
310 | 0xFF,
311 | 0x09,
312 | Zero,
313 | Zero
314 | })
315 | }
316 | Else
317 | {
318 | Return (\_SB.PCI0.XHC.RHUB.SS01.UPCN) /* External reference */
319 | }
320 | }
321 | }
322 |
323 | Scope (_SB.PCI0.XHC.RHUB.SS02) // SS USB3 near left
324 | {
325 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
326 | {
327 | If (_OSI ("Darwin"))
328 | {
329 | Return (Package (0x04)
330 | {
331 | 0xFF,
332 | 0x03,
333 | Zero,
334 | Zero
335 | })
336 | }
337 | Else
338 | {
339 | Return (\_SB.PCI0.XHC.RHUB.SS02.UPCN) /* External reference */
340 | }
341 | }
342 | }
343 |
344 | Scope (_SB.PCI0.XHC.RHUB.SS03) // SS USB3 far left
345 | {
346 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
347 | {
348 | If (_OSI ("Darwin"))
349 | {
350 | Return (Package (0x04)
351 | {
352 | 0xFF,
353 | 0x03,
354 | Zero,
355 | Zero
356 | })
357 | }
358 | Else
359 | {
360 | Return (\_SB.PCI0.XHC.RHUB.SS03.UPCN) /* External reference */
361 | }
362 | }
363 | }
364 |
365 | Scope (_SB.PCI0.XHC.RHUB.SS04) // SS USB3 far right
366 | {
367 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
368 | {
369 | If (_OSI ("Darwin"))
370 | {
371 | Return (Package (0x04)
372 | {
373 | 0xFF,
374 | 0x09,
375 | Zero,
376 | Zero
377 | })
378 | }
379 | Else
380 | {
381 | Return (\_SB.PCI0.XHC.RHUB.SS04.UPCN) /* External reference */
382 | }
383 | }
384 | }
385 |
386 | Scope (_SB.PCI0.XHC.RHUB.SS05)
387 | {
388 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
389 | {
390 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
391 | }
392 | }
393 |
394 | Scope (_SB.PCI0.XHC.RHUB.SS06)
395 | {
396 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
397 | {
398 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
399 | }
400 | }
401 |
402 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS11))
403 | {
404 | Scope (_SB.PCI0.XHC.RHUB.HS11)
405 | {
406 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
407 | {
408 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
409 | }
410 | }
411 | }
412 |
413 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS12))
414 | {
415 | Scope (_SB.PCI0.XHC.RHUB.HS12)
416 | {
417 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
418 | {
419 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
420 | }
421 | }
422 | }
423 |
424 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS13))
425 | {
426 | Scope (_SB.PCI0.XHC.RHUB.HS13)
427 | {
428 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
429 | {
430 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
431 | }
432 | }
433 | }
434 |
435 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.HS14))
436 | {
437 | Scope (_SB.PCI0.XHC.RHUB.HS14)
438 | {
439 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
440 | {
441 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
442 | }
443 | }
444 | }
445 |
446 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS07))
447 | {
448 | Scope (_SB.PCI0.XHC.RHUB.SS07)
449 | {
450 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
451 | {
452 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
453 | }
454 | }
455 | }
456 |
457 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS08))
458 | {
459 | Scope (_SB.PCI0.XHC.RHUB.SS08)
460 | {
461 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
462 | {
463 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
464 | }
465 | }
466 | }
467 |
468 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS09))
469 | {
470 | Scope (_SB.PCI0.XHC.RHUB.SS09)
471 | {
472 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
473 | {
474 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
475 | }
476 | }
477 | }
478 |
479 | If (CondRefOf (\_SB.PCI0.XHC.RHUB.SS10))
480 | {
481 | Scope (_SB.PCI0.XHC.RHUB.SS10)
482 | {
483 | Method (_UPC, 0, Serialized) // _UPC: USB Port Capabilities
484 | {
485 | Return (\_SB.PCI0.XHC.RHUB.UUNS) /* External reference */
486 | }
487 | }
488 | }
489 | }
--------------------------------------------------------------------------------