T440s安装OSX 10.11.6黑苹果教程 零,背景 程序员的习惯是一切从零开始,说到背景我的台式电脑已经收起来很久,目前专心带娃中,两岁啦, 小孩教我注意言行举止,生活习惯,脾气控制,包容谅解,也教会了我摒弃隔阂,迅速修复关系。 回到正题,虽然台式机收起来了,台式迷你白果虽不占地方,毕竟台式不变,偶尔闲时又想使用苹果系统, 所以小黑洗白之路,从此开始,路途漫漫,其修远兮。 使用MAC可真不是为了装,有时候习惯一旦养成,改变习惯需要代价,而且记忆中好用的习惯会留念想。 比如当年,头脑一热干掉win只装了linux后来发现,有些软件或者功能只能win下面并且高效好用。 就象现在,mac的Safari浏览器有个浏览模式,可以自动去掉博客/论坛的侧边栏导出pdf无比好用。 一,预设 BIOS Disable Security Chip Disable Anti Theft Module Disable TPM Clover 3998/4444: Install for UEFI Booting Only Install Clover in ESP Drivers64UEFI > OsxAptioFixDrv-64 Drivers64UEFI > HFSPlus.efi Drivers64 > NTFS.efi 二,准备 1,下载,获取MAC OS X 10.11.6系统,仅限mac系统/app store下载,目前最新是macOS 10.13.4正式版 2,烧写,准备USB使用mac系统命令写入。也可以把下载下来的系统使用系统工具制作成DMG镜像文件 3,引导,需要一个USB/HDD具备EFI分区,分区大小mac要求不能小于200M,解压clover 3998/4444文件 4,配置,APCI/patched不想需要放入DSDT/SSDT,放入必须kext/目录,添加driver,定制config.plist 三,安装 此处应该有图,1安装完成截图,2驱动完成截图ACPI和Driver和kext及clover,3,系统驱动截图,4,相关附件上传 备注:!!!重要,初次进入系统,需要重建缓存,否则clover的部分kext不会生效,比如八个白苹果和声卡驱动,切记!!! 四,驱动 Intel显卡驱动,显卡型号HD4400,只需Clover注入显卡ID以及添加kextToPatch和两个显卡驱动即可驱动,否则给ACPI注入显卡ID。 Intel有线驱动,直接使用IntelMausiEthernet(正在用)或者IntelMausiEthernet(未尝试)驱动,不用其他修改。最不操心暂未使用。 Audio声卡驱动,声卡型号ALC 292,仿冒2.8.7声音偏小,使用lilu和appleALC外加DSDT注入layout-id驱动及4patch,三快捷键可调。 Bright亮度条,打完Brightness fix(Haswell/Broadwell)补丁之后,偏好设置->显示器出现亮度调节进度条,可调节,重启保存亮度。 Bright快捷键,手动打完FN+F4~F12快捷键补丁,可调节亮度,并且调节完成之后,重启调整的亮度状态可以保存,无需研究nvram保存。 Sony电池驱动,电池打完x220(support t4440s)补丁配合ACPIBatteryManager驱动,显示电量充电状态,待研究同时显示两个电池。 Intel无线驱动,自带Intel AC7260无解,偶尔断流,可无痛更换AC7260 FRU ,黑苹果只能更换网卡DW1560 BCM94352Z,刷白名单。 Bluetooth蓝牙驱动,使用appleBluetoothInject时好时坏,貌似修复万所有DSDT可见,暂时不用关注,主需要别显示在状态栏即可。 Other问题驱动,关机熄灯缓慢,自提ACPI打补消失,开机clover引导MACOSX闪屏两次暂未解决,睡眠无法唤醒暂未测试。 Other问题驱动,开机第二节阶段八个白苹果花屏,以及进入系统左侧菜单栏花屏,添加KextsToPatch/Boot graphics glitch补丁解决。 Other问题驱动,开机进入系统cam不可用提示需要电源,隐约在Clover参数架构讲解看到配置USB Hight current可以提高充电电流。 All kext: FakeSMC.kext + ACPIsensors.kext + LPCsensors.kext + CPUsensors.kext FakePCIID.kext + FakePCIID_Intel_HD_Graphics.kext # Intel graphics appleALC.kext + Lilu.kext # Audio ALC 292 # "-lilubeta" ?????? ACPIBatteryManager.kext # patch x220(support t4440s) changing status ok AppleIntelE1000e.kext # IntelMausiEthernet.kext # not use IntelGraphicsFixUp.kext + Shiki.kext + Lilu.kext # not use USBInjectAll.kext # make apple driver support USB CodecCommander.kext # Headphones noice fix ALC3232.kext # not use # same as ALC 292 Sinetek-rtsx.kext # not use # Card Reader kext FakePCIID_Broadcom_WIFI.kext # not use supported DW1560 BCM94352Z AppleBacklightInjector.kext # not use hotpatch / static patch: --Satrt of DSDT fixes hotpatch -- Extract ACPI (DSDT & SSDT) tables via clover (using F4) Patches to apply using MaciASL and Rehabman's patch repository: Remove _DSM Replace Names (sourceforge) Remove WMI (sourceforge - run 3 times to remove all 3 WMI devices) Rename PCI0.VID to PCI0.IGPU (also SSDT) Haswell HD4600 Yosemite battery lenovo X220 (remove lines to keep second battery before running) IRQ Fix SMBUS Fix AC Adapter Fix Add MCHC Fix _WAK Arg0 v2 Fix PNOT/PPNT Add IMEI Haswell LPC Brightness fix (Haswell) 7-series / 8-series USB Insert DTGP (sourceforge) Manual fixes: LED wake fix (stops LED from continuing to blink after wake from sleep) Always run fan at high speed (part patch part manual fix) Custom patches: # OS Check fix - Emulate windows 8 or higher: # HDMI / Display Port Audio fix (untested) # Add ALC292 information into HDEF device Always run fan at high speed (part patch part manual fix) Add missing Airport device Fix the Fn keys so that all of them have a function --End of DSDT fixes hotpatch -- --Satrt of SSDT fixes static patch -- 1, Clover ACPI/Fixes and Patch 2, Build Only make SSDT-T440s.aml include file to APCI/patched directory --Satrt of SSDT fixes static patch -- Command: alias ll='ls -la' iasl -da -dl DSDT.aml SSDT*.aml iasl -da -dl -fe refs.txt DSDT.aml SSDT*.aml iasl DSDT.dsl SSDT*.dsl sudo cp -R desktop/kext/KextToInstall.kext /Library/Extensions sudo rm -Rf /Library/Extensions/KextToInstall.kext sudo rm -Rf /System/Library/Extensions/KextToInstall.kext sudo kextcache -i / sudo touch /System/Library/Extensions && sudo kextcache -u / # Or with older OS X kextstat|grep -y applehda kextstat -a | egrep -i 'hda|rehab|org|voodoo|brcm|alc|lpc|cpu' kextstat -a | egrep -i 'acpiplat|appleintelcpu|applelpc|applehda' sudo /usr/libexec/PlistBuddy -c "Add :OSBundleRequired string" /kexts/msdosfs.kext/Contents/Info.plist sudo /usr/libexec/PlistBuddy -c "Set :OSBundleRequired \"Safe Boot\"" /kexts/msdosfs.kext/Contents/Info.plist sudo kextutil /kexts/msdosfs.kext pkgutil --pkgs curl -sL https://raw.github.com/mpapis/pkg_uninstaller/master/pkg-uninstall sudo ./pkg-uninstall org.hwsensors.HWMonitor patchmatic -extract # get loaded DSDT/SSDTs 五,常识 1,DropOem 使用自己提取的DSDT/SSDT时勾选DropOem 2,ACPI/DSDT/Fixes 子项新版本已经移除后缀数字,如果DSDT打 Brightness fix(Haswell/Broadwell)补丁 当自己提取DSDT/SSDT时,建议移除全部fix子项,打了亮度补丁否则panic(unable to find driver ... IOPlatformExpert.cpp:1665) 实际应该Fixes/AddPNLF导致 参数说明:这个参数作用不是使声卡工作,但它能帮助你,注入声音芯片属性。其中:“layout-id”是指填入你能正常工作的声卡的“LayoutID”。 该参数功能生效条件:当DSDT文件里定义了Device(HDEF)项,如果你重新命名它(指HDEF),你可以注入其他不同的属性。使用VodooHDA驱动时,此参数无效。 3,Device/Audio/Inject/No/Detect/layout id/Default close 测试发现当DSDT注入layoutID的是时候发现,当前clover注入id的layout-id数值不生效。 Note: If you already have patched your DSDT (or SSDT) with a "Brightness" patch (PNLF), you must remove it! Same if you're using Clover's AddPNLF_1000000. Also Note: The SSDT-PNLF.aml assumes that GFX0 (or VID on Thinkpads) is already renamed to IGPU. It will not work if your IGPU is not at _SB.PCI0.IGPU. 4,为了调节背光亮度,你首先要驱动自己的显卡,而且你必须使用ig-platform-id。另外,背光调节只对笔记本内部的LVDS显示器有效。 使用DSDT + IntelBacklight.kext 应用:”Brightness Fix”注意:如果你愿意,”Brightness Fix”也可以应用在SSDT中 使用DSDT + ACPIBacklight.kext Haswell之前的版本(pre-Haswell):”Brightness Fix (HD3000/HD4000)” Haswell/Broadwell: “Brightness Fix (Haswell/Broadwell)” IntelBacklight.kext and ACPIBacklight.kext were broken by the 10.12.4 update. 5,Clover/DSDT:Change XHCI to XHC /*make apple driver support USB*/ change EHC1 to EH01 /*usb 2.0*/ change EHC2 to EH02 /*usb 3.0*/ 6,Its easiest to extract ACPI tables via clover (using F4 or Fn+F4 at clover screen). 7,AppleBacklightInjector.kext and SSDT-PNLF.aml KextsToPatch remove IntelBacklight.kext (and/or ACPIBacklight.kext) 8,For me i install into /Library/Extensions as Apple recommends it. 9,Bluetooth is working, but the Bluetooth Assistant keeps popping up. How to fix? SysPrefs->Bluetooth->Advanced. Uncheck the boxes A,实测 CodecCommander.kext这个解决了T440s耳机噪音大的问题 B,在系统信息里看,AppleALC已加载,但appleHDA已载入 C,开机有一段会花屏出现8个条纹间隙的苹果(已打补丁),进度条也乱,然后正常进度密码登录,BOIS 开启兼容模式csm,再clover打补丁可能解决 D,ThinkPad从第三代开始有白名单机制,但是从2016年开始的机器取消了白名单机制,买前多查下。 E, 开机无法使用F4进行提取。根据个人经验,efi分区必须是fat32的才可以,mac的格式不行 F,反编译aml命令,编译dsl命令,安装删除kext到系统,重建缓存,查看已经加载的驱动。 六,变频 一,提取Clover的DSDT/SSDT文件 二,有关加载DSDT/SSDT相关疑惑 config.plist/ACPI/name如果指定DSDT名字则加载,Fixes(冷补丁)最好不要与DSDT.aml(热补丁)共用, 注意SSDT中的sortOrder仅用于排序一般也没有必要指定,SSDTx命令最好后杠相关的功能子项,无需数字。 值得注意的是,config.plist/ACPI/patches仅适用于本机SSDT,而不适用于ACPI/patched文件夹中的SSDT。 这意味着如果使用config.plist重命名对象,则附加SSDT必须引用新名称,而不是旧名称。 与ACPI/patched中的SSDT不同,ACPI/patches中的二进制补丁适用ACPI/Patches文件夹的DSDT.aml。 如果您使用静态和热修补的组合,请记住这一点。 三,处理器Haswell相关变频 1 大神rehabman解释 The Clover bootloader has this patch built-in with the config.plist/KernelAndKextPatches/KernelPm option. With Clover, it is automatic provided the code in Clover is updated (if necessary) to patch the (new) kernel. XCPM is default for Haswell. ((if use -xcpm ,must patch the kernel) or all not)or BIOS does not lock CPU MSR 0xe2. Haswell CPUs use XCPM management by default and doesn't change. and auto patch to kernel by clover preboot 2 查看变频曲线图 我在clover configurator的Boot下也找到了-xcpm 实现变频,只要是ivy bridge及其以后的cpu的机型, 只要设置能够加载AppleLPC.kext和X86PlatformPlugin.kext,都能够实现变频 Clover ACPI下应该把plugin type设为1. 意思是加载X86PlatformPlugin,而设为0表示加载ACPI_SMC_PlatformPlugin 3 提取SSDT变频检查kext加载 使用rehabman编译的Clover提取DSDT/SSDT注意带X的文件不需要,搜索每个文件的[OEM Table ID]键值, 例如SSDT.aml是Cpu0Ist,SSDT-1.aml是CpuPm,然后再[Acpi]—>[Drop Tables],输入上面的键值 加载SSDT变频注意事项,使用ssdtPRGen.sh 2900命令提取SSDT_PR.aml编辑或编译,然后冷热补丁处理。 关于本机/系统报告/软件/功能扩展 下的AppleLPC.kext ,如果是否,查看相关性描述 查看IORegistryExplorer ,看看X86PlatformPlugin.kext是否载入,明显是加载 4,其他网友结论有待验证 老机型例如:Sandy Bridge或更老的机型,通常需要使用Drop OEM,并且使用Generate PStates与Generate CStates来生成可变频SSDT。 但是对于现在的主流机型,如:Broadwell/Haswell/Ivy,通常无需Drop OEM就可以正常工作。以及Generate设置,需设置PluginType字段 把Boot下面的-xcpm默认Haswell启用,把SMBIOS机型设置为Ivy bridge以后的机型,hwmonitor开着曲线图就会持续高频 intel power gadge2300,共9档。标准频率1600,加上6档睿频 5,其他网友结论已经翻车但有指导意义 你绝对不可能有11档,haswell的cpu最多只有7档,连苹果自己的macbook都是这样,而且haswell变频本身和放不放ssdt没有任何关系。 haswell的cpu变频是macos的内核直接控制的,也就是xcpm,与ssdt毫无关系,只和机型有关。所有的haswell cpu都只有800mhz,标准频率加上几档睿频, 如果机型是macbook,会有一档中间频率,一般是x17。机型为iMac和MacPro就不会有中间频率。 下载intel power gadget看。点击“log to file”后,日志在/tmp文件夹里。d列,CPU Frequency_0(MHz),有800 x 1600 x x x x x 。 haswell cpu加载ssdt,对变频本身没用。但加载ssdt后,可以加载x86platformplugin.kext,节能器里的选项才全。 ---变频暂时估计没戏,可能需要将相当一部分kext安装到LE or SLE,但是目前全部安装在Clover kext 10.11目录下--- 七,链接: 1,Clover参数架构讲解: http://bbs.pcbeta.com/viewthread-1551482-1-1.html 2,大神Rehaman写的入门FQ问答: https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/ 3,显卡HD4400相关技术分享: https://forum.51nb.com/forum.php?mod=viewthread&tid=1645472 4,驱动背光亮度相关技术分享: https://blog.csdn.net/wr132/article/details/54849387 https://www.tonymacx86.com/threads/guide-laptop-backlight-control-using-applebacklightinjector-kext.218222/ 5,大神T440s安装指导: https://www.tonymacx86.com/threads/guide-lenovo-thinkpad-t440s.244798/ 6,大神T440s Clover UEFI配置: https://www.tonymacx86.com/threads/guide-lenovo-t440s-clover-uefi.158369/ https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/ 7,大神Rehaman的补丁源及配置 https://github.com/RehabMan/Laptop-DSDT-Patch https://github.com/RehabMan/OS-X-Clover-Laptop-Config https://github.com/RehabMan/OS-X-Clover-Laptop-Config/tree/master/hotpatch 8,BIOS T440s刷白名单驱动BCM94352Z无线网卡 购买刷BIOS硬件:CH341A土豪金驱动及编程器和SOP8测试烧录夹 https://forum.51nb.com/thread-1816437-1-1.html http://bbs.pcbeta.com/viewthread-1754676-1-2.html A,[Guide] Lenovo ThinkPad T440S https://www.tonymacx86.com/threads/guide-lenovo-thinkpad-t440s.244798/ B,[Guide] Using Clover to "hotpatch" ACPI https://www.tonymacx86.com/threads/guide-using-clover-to-hotpatch-acpi.200137/ C,[Guide] Patching laptop DSDT/SSDTs http://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/ D,[Guide] Patching the kernel for haswell cpus xcpm https://www.insanelymac.com/forum/topic/302376-guide-patching-the-kernel-for-haswell-cpus-xcpm-early-reboot/ E,Can I still download El Capitan? Yes. Read here: https://support.apple.com/en-us/HT206886 F,Please, use the IORegistryExplorer v2.1 attached to the post! http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html G,Lenovo thinkpad 2014 remove Whitelist https://www.bios-mods.com/forum/Thread-Guide-Whitelist-remove-for-2014-Lenovo-thinkpad https://www.bios-mods.com/forum/Thread-Request-Lenovo-T440-S-WWAN-Whitelist-Removal H,[Request] Lenovo T440(S) WWAN Whitelist Removal->BIOS can be downloaded from here: http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/gjuj08us.exe