Jump to content


  • Content Count

  • Joined

  • Last visited

Reputation Activity

  1. Thanks
    SuperReaper reacted to tluck in Lenovo ThinkPad T420 with UEFI Only   
    @pcace on your wifi -- i have the same card. but i wonder if the range of values has to do with the locale set? mine is set to FCC... a long time ago i remember re-flashing the chip. i connect at 300 at 5 Ghz on channel 48
  2. Thanks
    SuperReaper reacted to jackluke in Mojave "light mode" hybrid transparency "patch" WORKING (with proof pictures)   
    Those who use Mojave with an OpenGL (non-Metal) Video Card in "dark mode" have noticed that global transparencies are working fine, while in "light mode" encountered the "grey" Finder menu bar and sidebars issues, this patch is intended for those who want to use Mojave mainly in "light mode" saving some transparencies around, so here is my "hybrid reduce transparency" patch.
    It is totally safe, harmless and reversible, it has been deeply tested and will 100% work until restart or logout, even after sleep lock screen it will still work.
    To return with normal "transparency" you can also do that from Accessibility prefpane disabling the "reduce transparency" checkbox.
    To use this patch just double click on this attached shell "mojavehld.command" and it will launch through Terminal.

    [METHOD 1: Enable hybrid transparency]
    After launch the mojavehld.command just follow these steps:
    type 1
    type 4
    close Terminal (CMD+Q) and any other app previously opened.

    (The choice number 3 is not mandatory)

    [METHOD 2: Force hybrid transparency]
    If for some reason after that you will still get Dock and Notification Center without "transparencies" then relaunch the mojavehld.command:
    type 2
    type 1
    type 4
    close Terminal (CMD+Q) and any other app previously opened.
    Download attached here: mojavehld.zip

  3. Like
    SuperReaper reacted to tluck in Lenovo ThinkPad T420 with UEFI Only   
    @SuperReaper you need to create a Display Override with id to match. see the ones i provide as an example.
  4. Like
    SuperReaper got a reaction from tluck in Lenovo ThinkPad T420 with UEFI Only   
    Hi, I just test your new boot pack (2018.09.18) and it work fine with lastest version of clover, I'm not see any errors yet
  5. Like
    SuperReaper reacted to SnuK in Lenovo ThinkPad T420 with UEFI Only   
    @SuperReaper the v1.52 is based on the original bios, just with whitelist mod.
    As the T420 is from a colleague, I will ask him where he got the bios from.
    Keep you updated...
    Link to the original BIOS with explanation: T420 BIOS v1.52
    Link to the BIOS v1.52 with whitelist mod: T420 BIOS v1.52 mod
  6. Like
    SuperReaper reacted to tluck in Lenovo ThinkPad T420 with UEFI Only   
    10.13.5 and sound works for me? I will push a new zip out when i get home later today. 
    The latest zip contains a cleaned-up/fixed AppleALC.kext. 
  7. Like
    SuperReaper reacted to jboeren in Lenovo ThinkPad T420 with UEFI Only   
    For what I have heard this is a Clover bug... Other users downgraded Clover.
  8. Like
    SuperReaper reacted to tluck in Lenovo ThinkPad T420 with UEFI Only   
    @superReaper -  ok. i will retest on Sierra.
    well i boot sierra with all kext in ESP and i didnt have an issue?
  9. Like
    SuperReaper reacted to Hervé in Increase vram - hd 3000   
    The SNB code is different again in High Sierra. In 10.13, the binary string to change is:
    C7 45 D0 00 00 00 xx Where xx is the byte to modify according to the default amount of VRAM (should be 18 or 20) and desired target allocation (say 20, 30, 40, 60, 80).
    So, for instance, to change default VRAM on my E6220 (with 4GB RAM) from 384MB to 1024MB, the patch is:
    Find: C7 45 D0 00 00 00 18 Replace by: C7 45 D0 00 00 00 40  
  10. Like
    SuperReaper reacted to tluck in Lenovo ThinkPad T420 with UEFI Only   
    this is expected since VGA is not an active signal. 
  11. Like
    SuperReaper reacted to Sherlocks in Increase vram - hd 3000   
    i finished vram patch cleanup for each os.

    ==4gb user==
    N: com.apple.driver.AppleIntelSNBGraphicsFB
    F: c745cc00 000018
    R: c745cc00 000040
    MacOS: 10.6.x

    ==8gb user==
    N: com.apple.driver.AppleIntelSNBGraphicsFB
    F: eb19b800 000020
    R: eb19b800 000040
    MacOS: 10.6.x
    ==4gb user==
    N: com.apple.driver.AppleIntelSNBGraphicsFB
    F: c745bc00 000018
    R: c745bc00 000040
    MacOS: 10.7.x,10.8.x,10.9.x,10.10.x,10.11.x
    ==8gb user==
    N: com.apple.driver.AppleIntelSNBGraphicsFB
    F: c745bc00 000020
    R: c745bc00 000040
    MacOS: 10.7.x,10.8.x,10.9.x,10.10.x,10.11.x
    ==4gb user==
    N: com.apple.driver.AppleIntelSNBGraphicsFB
    F: c745c400 000018
    R: c745c400 000040
    MacOS: 10.12.x
    ==8gb user==
    N: com.apple.driver.AppleIntelSNBGraphicsFB
    F: c745c400 000020
    R: c745c400 000040
    MacOS: 10.12.x
    ==4gb user==
    N: com.apple.driver.AppleIntelSNBGraphicsFB
    F: c745d000 000018
    R: c745d000 000040
    MacOS: 10.13.x
      ==8gb user== N: com.apple.driver.AppleIntelSNBGraphicsFB
    F: c745d000 000020
    R: c745d000 000040
    MacOS: 10.13.x
  12. Like
    SuperReaper reacted to soumaxetuirk in GUIDE: How to Fix Brightness hotkeys in DSDT   
    If you have a working Brightness Slider and you might be using Brightness slider or manual hotkeys to control brightness then this guide may help you to use your Native hotkeys of laptop.
    (All the Credits goes to @RehabMan     For OS-X-ACPI-Debug Kext and DSDT Patches.)
    This step assumes that you are using RehabMan's VoodooPS2Controller or Acidanthera's PS2Controller
    Install the kext: https://github.com/RehabMan/OS-X-ACPI-Debug Open MaciASL and click on patch.(Add rehab man repo) Apply "Add DSDT Debug Methods" and "Instrument EC Queries" that are under Brightness Fix. Save the DSDT and restart Look in Syslog as you press the key corresponding to brightness to determine which _QXX methods handle the keys (UPDATE: From Sierra Apple changed logging process. So you won't find ACPIdebug result using syslog command. Instead use following command )
    log show --last 5 | grep ACPIDebug 6. Then patch DSDT:
    into method label _Q1D replace_content begin // Brightness Down\n Notify(\_SB.PCI0.LPCB.PS2M, 0x0205)\n Notify(\_SB.PCI0.LPCB.PS2M, 0x0285)\n end; into method label _Q1C replace_content begin // Brightness Up\n Notify(\_SB.PCI0.LPCB.PS2M, 0x0206)\n Notify(\_SB.PCI0.LPCB.PS2M, 0x0286)\n end; Change the variable _Q1D/_Q1C as per the log. 

    7. Try compiling and check if it generates errors
    8. If it does, then change the PS2M to PS2X according to the one found in your DSDT
    9. Save and place the compiled DSDT.
    10. Now you should see that you have your corresponding keys to change your brightness 
     FOR  more detail and Queries,Check Out original Post of @RehabMan Here;
    Get Latest Version of  OS-X-ACPI-Debug kext here:
  13. Like
    SuperReaper reacted to tluck in Lenovo ThinkPad T420 with UEFI Only   
    yeah you will have to write to the file directly.
    see /Library/Preferences/com.apple.PowerManagement.<UID>.plist 
    Dict {
        Battery Power = Dict {
            Hibernate Mode = 7
            Wake On AC Change = 0
            Wake On Clamshell Open = 1
            AutoPowerOff Delay = 0
            Standby Delay = 10800
            TTYSPreventSleep = 1
            TCPKeepAlivePref = 1
            Hibernate File = /var/vm/sleepimage
            Standby Enabled = 1
            AutoPowerOff Enabled = 0
  14. Like
    SuperReaper reacted to bu11etpr00f in Clover EFI Bootloader - Understanding KextsToPatch HOW TO GUIDE   
    I decided to write up an Article on Understanding how Clover's KextsToPatch feature works. There doesn't seem to be a whole lot of documentation explaining how to use this feature correctly (not that I have been able to find anyway). There is a lot of information out there about what to use, and what to put into your config.plist, but not much as to how to find out why the values used are used, and how the "data" was obtained. This guide hopes to address that. I tried to update this information on the Wiki, but the authentication between Github and Google appears to be nonfunctional... or no longer open to the public.
    "Authentication failed Provider did not validate your credentials (invalid_credentials) - please retry or choose another login service" This Guide will hopefully help those of you (like me) who would like to know how (and why) to use a tool, and not just use it a certain way because you were told to. For now, this Guide will just be an expansion of the part of the Wiki page found here.
    KextsToPatch   <key>KextsToPatch</key> <array>   Aside from the patches already built-in to Clover, you also have the ability to create your own by using the following obtainable values: the Binary File Name, the Data to Find, and the Data to Replace. Both Data Values will need to be in the same format; either in hexadecimal (Property List Editor/Clover Configurator), or in base64 (plain text editor). The Data Value lengths MUST also be equal. A smaller replacement Data Value may be filled with zeroes.   Fresco FL1009 USB 3.0 Device ID Patch by bu11etpr00f (BTW: This patch is great for people who have a Gigabyte X79-UD5 Motherboard in their hackintosh and want to resolve their USB issues with macOS El Capitan 10.11, Sierra 10.12, High Sierra 10.13, & Mojave 10.14. It enables the Fresco FL1009 USB 3.0 Controller as a Fresco FL1100 USB 3.0 Controller. Works Great! ) The following example shows a patch for AppleUSBXHCIPCI replacing the data <string>0x11001b73</string> with <string>0x10091b73</string>:   <key>KextsToPatch</key> <array> <dict> <key>Comment</key> <string>Fresco FL1009 USB 3.0 Device ID Patch by bu11etpr00f</string> <key>Disabled</key> <false/> <key>Find</key> <data>PHN0cmluZz4weDExMDAxYjczPC9zdHJpbmc+</data> <key>InfoPlistPatch</key> <true/> <key>Name</key> <string>AppleUSBXHCIPCI</string> <key>Replace</key> <data>PHN0cmluZz4weDEwMDkxYjczPC9zdHJpbmc+</data> </dict> <array> Note: the patch data is encoded in base64 due to the data type of the field.   Unfortunately, Tables don't seem to be supported on this Forum, so I've put images of them in this post. I will also leave the text data below them if you wish to copy/paste it somewhere.     Find Value (base64) PHN0cmluZz4weDExMDAxYjczPC9zdHJpbmc+ Find Converted to (UTF-8): <string>0x11001b73</string> Find Converted to (HEX): 3C737472696E673E307831313030316237333C2F737472696E673E   Replace Value (base64) PHN0cmluZz4weDEwMDkxYjczPC9zdHJpbmc+ Replace Converted to (UTF-8): <string>0x10091b73</string> Replace Converted to (HEX): 3C737472696E673E307831303039316237333C2F737472696E673E     For help converting base64: https://www.base64decode.org/ http://tomeko.net/online_tools/base64.php?lang=en       Viewed in Property List Editor:   Note: The config.plist uses a base64 value, while Property List Editor shows you the HEX value.       Viewed in Clover Configurator:   Note: The config.plist uses a base64 value, while Clover Configurator shows you the TEXT (UTF-8) or HEX value.         It is sometimes necessary to use a patch to modify a kext's Info.plist. In this case, the following Boolean Key needs to be added to the Patch's Dictionary Item:               <dict>                 <key>InfoPlistPatch</key>                 <true/>             </dict> Side note: Patches are applied in the kext cache. If you patch an Info.plist in order to enable the loading of a specific kext, which is not currently present in your cache, you will need to reboot twice: Once with the option NoCaches to allow FSInject to load the specific kext into the cache, and Then again for the cache to be patched successfully.       Other Examples:   Enable TRIM for non-Apple SSD The following example shows a patch for IOAHCIBlockStorage replacing the data APPLE SSD with an empty value:   <dict> <key>Comment</key> <string>Enable TRIM for non-Apple SSD</string> <key>Disabled</key> <false/> <key>Find</key> <data>AEFQUExFIFNTRAA=</data> <key>InfoPlistPatch</key> <false/> <key>Name</key> <string>com.apple.iokit.IOAHCIBlockStorage</string> <key>Replace</key> <data>AAAAAAAAAAAAAAA=</data> </dict> Note: the patch data is encoded in base64 due to the data type of the field.     Find Value (base64) QVBQTEUgU1NEAA== Find Converted to (UTF-8): APPLE SSD Find Converted to (HEX): 4150504C452053534400   Replace Value (base64) AAAAAAAAAAAAAA== Replace Converted to (UTF-8) (yes, it's blank):   Replace Converted to (HEX): 00000000000000000000       AppleAHCIPort patch to fix internal disks displayed as external (Orange Icon) by Slice The following example shows a patch for AppleAHCIPort replacing the data External with Internal:   <dict> <key>Comment</key> <string>AppleAHCIPort patch to fix internal disks displayed as external (Orange Icon) by Slice</string> <key>Disabled</key> <false/> <key>Find</key> <data>RXh0ZXJuYWw=</data> <key>Name</key> <string>AppleAHCIPort</string> <key>Replace</key> <data>SW50ZXJuYWw=</data> </dict>   Note: the patch data is encoded in base64 due to the data type of the field.     Find Value (base64) RXh0ZXJuYWw= Find Converted to (UTF-8): External Find Converted to (HEX): 45787465726E616C Replace Value (base64) SW50ZXJuYWw= Replace Converted to (UTF-8): Internal Replace Converted to (HEX): 496E7465726E616C     Allow booting with a MacPro4,1 or MacPro5,1 SMBIOS definition without ECC Memory The following example shows a patch for AppleTyMCEDriver replacing the data r
    MacPro4,1MacPro5,1Xr  with r
    X <dict> <key>Comment</key> <string>Allow booting with a MacPro4,1 or MacPro5,1 SMBIOS definition without ECC memory</string> <key>Disabled</key> <false/> <key>Find</key> <data>cgoATWFjUHJvNCwxAE1hY1BybzUsMQBY</data> <key>InfoPlistPatch</key> <false/> <key>Name</key> <string>AppleTyMCEDriver</string> <key>Replace</key> <data>cgoAAAAAAAAAAAAAAAAAAAAAAAAAAABY</data> </dict> Note: the patch data is encoded in base64 due to the data type of the field.     Find Value (base64) cgoATWFjUHJvNCwxAE1hY1BybzUsMQBY Find Converted to (UTF-8): r MacPro4,1MacPro5,1X Find Converted to (HEX): 720A004D616350726F342C31004D616350726F352C310058   Replace Value (base64) cgoAAAAAAAAAAAAAAAAAAAAAAAAAAABY Replace Converted to (UTF-8): r X Replace Converted to (HEX): 720A00000000000000000000000000000000000000000058
  15. Like
    SuperReaper reacted to tluck in Lenovo ThinkPad T420 with UEFI Only   
    ok sure your patch is: 
    01020400 10070000 10070000 05030000 02000000 30000000 02050000 00040000 07000000 03040000 00040000 09000000 04060000 00040000 09000000
    01020300 10070000 10070000 05030000 02000000 30000000 03040000 00080000 06000000 06020000 00010000 09000000 00000000 00000000 00000000
    so you go 3 buffers - eliminate DP on side (205) 
    my patch is: change levels from 1007 to 1213 and put VGA on 4th port.
    01020400 12130000 12130000 05030000 02000000 30000000 02050000 00040000 07000000 03040000 00040000 09000000 06020000 10000000 09000000
    this seems to be the difference: 
    yours: 06020000 00010000 09000000
    mine:  06020000 10000000 09000000
    so i just tested with 0001 instead of 1000 and that works too. so maybe 0001 is better to use?
    the DSDT patch(es) if you added the snb thing is not needed - we are already patching (and using ) the 1st buffer set.
    this was the original (or one of the early sources) of information from 2011: 
    so try with this patch as the replace string:
    01020400 12130000 12130000 05030000 02000000 30000000 02050000 00040000 07000000 03040000 00040000 09000000 06020000 00010000 09000000
  16. Like
    SuperReaper reacted to tluck in Lenovo ThinkPad T420 with UEFI Only   
    Lenovo T420 Clover Guide
    Release on GitHub Updated to Clover r5120 Added OpenCore alternative boot manager
      Recent highlights: Added older versions of IntelMausiEthernet for 10.12, 10.13, 10.14, 10.15 Force DualLink for the 1600x900 configs Update Theme (icons and boot chime option) Use WhateverGreen.kext for GFX patching and properties by default VoodooPS2Controller.kext  - with new SSDT option for custom key map AppleALC.kext - merged properties for T420 (changed Layout 12 to 14) Update T420s with SSDT for PS2K device config.plist changes: Revised to common config.plist for simplicity Changed config.plist file to use audio layout id 14 (or 13 for dock)  Update config.plist files to set slide=0 by default Removed ACPI patching by Clover (except Fix_Regions) since patching is already in provided in the DSDT Provide alternate config.plist files and DSDT files for testing glitchy 1600x900 LCD 3 alternate configs: EDID-2e2, EDID-2e3, EDID-366  - 60 and 50 Hz modes  
    T420 Clover Guide and Steps
    The zip file is a complete ESP/kext pack for the Lenovo T420 using Clover on macOS. This file set and method works for Sierra and High Sierra. 
    Full Clover ESP file set - config.plist + required custom kexts + custom ACPI files (DSDT/SSDT) The actual zip bundle releases are posted on GitHub.com  
    * For Mojave (10.14.x) and Catalina (10.15.x) - use dosdude1 installer method + this ESP bundle
    Apple removed support of HD 3000 Graphics  see the "dosdude1" method to create an installer for unsupported Macs: http://dosdude1.com/software.html combine the methods outlined here with dosdude1 method (add Clover to EFI) tested on: 10.12.6, 10.13.5, 10.14.x and 10.15.x  
    Non-maintained Mountain Lion Kext Bundles for 10.8.4 are in post #241 and 10.8.5 in post #397
    Also for L420 Guide, see the one by kosakgroove
    Why Clover vs Chameleon?
    Native UEFI boot support for macOS (and Windows) on GPT disks. Native Apple macOS Installers and App Store Updates. Supports Recovery HD for system recovery, iMessage, Find My Mac, etc. Dynamic DSDT and Kext patching.
      Caveat: My system is a T420 with 1600x900 LCD and dedicated Intel HD 3000 Graphics Only. This zip contains what is working for me on this specific model. The related models - such as T420s, T420i, T520 and W520 family - may work as is or need some changes to config.plist and/or the DSDT. In the DSDT source (.dsl) file, the changes are indicated by notes and comments. If your HW is the same as mine, the included DSDT and configuration files may need to be retrofitted to work for your system.

    The guide has 2 parts or phases:
    How to create a USB installer to install macOS,
    and How to complete the OS installation to run macOS
      BIOS settings
    Recommended is BIOS v1.46 (and stay on 1.46 if you want use a modded bios - but there are later mods now) Recommended: reset to defaults. Most defaults settings will work - but check these settings: Set Config / Serial ATA (SATA) / SATA = AHCI Set Security / Memory Protection / Execution Prevention = Enabled Disable Discrete Nvidia/Optimus (use integrated HD 3000 only - unless you really know what you are doing!) Note: The custom DSDT is based off BIOS v1.46 (flashed with whitelist mod or original) Terms:
    GPT = GUID Partition Table MBR = Master Boot Record ESP = ESP = EFI System Partition, the ESP is created automatically as the first (hidden) partition by the Disk Utility when the GPT option is selected for partitioning a disk.  
    Part 1 - OS Installation
    These steps and procedure is for a complete new fresh installation using an USB Installer. If you are upgrading to High Sierra from an older working version of macOS (say El Capitan or Sierra is on your HD downloaded from the App Store), skip down to Part 2, Step 3 to update your ESP. You must replace or merge in the changes from the EFI/CLOVER files to your HD ESP before you perform the upgrade.
    1.1 Overview and Downloads
    Download and expand (extract) the zip file contents from here:
    GitHub Lenovo T420 Clover Latest Release. This same file set will be installed on the USB and the HD for UEFI boot. Download macOS from the App Store - they are freely available. One can build a macOS USB installer with the standard macOS installer app downloaded from the "App Store". Install macOS to a GPT formatted disk using the standard Install macOS.app downloaded from the Apple Store.  
    1.2 Create a standard macOS USB installer
     Partition an 8GB (or larger) USB formatted with GUID Partition Table (GPT) use the Partition Options... menu to change from MBR to GPT Name the partition - USB - the install process will rename it, but it matches the script below. Use format: Mac OS Extended (Journaled) (formerly OS X Extended) Note: if you have a larger USB (say 16GB) you can split into 2 8GB partitions, so you can have 10.13 and 10.12 installers on the same USB key
      Run this command to copy the bits to the USB key: sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ macOS\ High\ Sierra.app –nointeraction  
    Note: if using an older version of macOS, replace with the corresponding app name. 
    1.3 Put Clover installation on USB
    Install Clover on the USB sudo mkdir /Volumes/ESP-USB sudo mount -t msdos /dev/disk1s1 /Volumes/ESP-USB cp -a ~/Downloads/Lenovo-T420-CloverYYYY.MM.DD/EFI/ /Volumes/ESP-USB/EFI Manually mount the ESP of the USB (there is script - espmount.bash - that you can use later in the Utilities folder as an option) If not done already, expand the downloaded Zip to ~/Downloads/LenovoT420-Clover-YYYY.MM.DD (this file set is the Zip) Copy the EFI directory to the ESP directory of the USB
    For example, assuming the USB is disk1:
    Note: run "diskutil list" on the command line to find your USB and HD disk devices 1.4 Boot Clover from USB Installer and select Install macOS
    Install the OS on your GPT disk on the macOS partition. Make sure the drive is formatted using: Scheme: GUID Partition Map (GPT) Partition Name: macOS Format: APFS - use macOS Extended (Journaled) for Sierra Dual BOOT tip: If you plan to dual boot Windows from the same HD - DO NOT make the 2nd partition NTFS or ExFAT with the Disk Utility app. For now make the all partitions "APFS" or "Mac OS Extended (Journaled)" Size the 2 partitions appropriately - later you will delete and reformat the 2nd unused partition space for Windows 1.5 GUI Install of macOS
    Click through the install menus and wait for the installation to fully complete - on a spinning disk takes about 30-45 minutes.
    Follow these Notes and Tips: When the installer screens shows: "To pair a Bluetooth keyboard, turn it on and wait for your computer to connect to it.” Hit the Space Bar to get past this step. When installer seems to hang at: "About a second remaining” Don’t Panic, this "second" may take about 10 minutes or more to finish. Just wait for the installer to reboot the computer and continue the installation. The whole install process takes about 1 hour to complete. On the first boot from the HD when asked:  "How Do You Connect?” Select: “My computer does not connect to the Internet” You can set up the network later after installation of the NIC driver kext - but it may already be working. The stock Intel WiFi will not work. Period.    
    Part 2 - Post OS Installation and Setup on HD/SSD
    2.1 Boot Clover from USB 
    On startup, hit F12 and select USB boot - but now in Clover select the newly installed disk/partition to start macOS.
    Note: You may see 3 Volumes instead of the expected 2 on the HD - macOS + Recovery HD - make sure you pick the volume that is NOT labelled Recovery HD. See step 3 below to remove the logical volume eliminates the confusion.
    2.2 Complete the installation steps - boot up and login
    Boot up macOS with Clover injecting the custom kexts from the USB.  Login and start a terminal session. 2.3 Install Clover on the Boot Drive ESP
    Download (or transfer) the same Zip files to the HD. (See below for details) In general, the provided kexts do not require any modification. Backlight should work if using WhaterEvergreen kext. 
      Details for Installing Clover Bundle on the Boot Drive ESP
    Now make the ESP contents on the boot drive exactly like the ESP used to setup the USB installer above. Manually mount the ESP of your HD on /Volumes/ESP. (See first 2 commands below.) Replace the ESP installed by Clover in the previous step -- means you copy/replace these 2 directories /Volume/ESP/EFI/CLOVER and BOOT with the ones from the Zip file. Just as you did for the USB, the config.plist is renamed from the one that matched your LCD. Mount and install the ESP bits to your HD/SSD (disk0) by following the same procedure as for the USB. Note: If you previously installed Windows, be careful to not lose the EFI/Microsoft contents.  Note: The Clover config.plist default volume name (the volume to boot automatically) is set to "macOS" - meaning your new volume is assumed to be named "macOS". If you use a different name - like "Macintosh HD" change the volume name or edit the name in config.plist to match. sudo mkdir /Volumes/ESP sudo mount -t msdos /dev/disk0s1 /Volumes/ESP cp -a ~/Downloads/Lenovo-T420-Clover-YYYY.MM.DD/EFI/ /Volumes/ESP/EFI  
    2.4 For 1600x900 LCD - Recommended Option: Install (copy) the DisplayVendorID-* directories 
    Many have GFX problems (glitches/lines) with 1600x900, so there are 3 configurations that inject an alternate EDID and set DualLink=1. Gfx freezes and glitches can be minimized by these alternate configs. If the default doesnt help - try the other EDID-* configs ( 2e2 or 2e3) which is the same as config.plist) first - copy one to replace the default config.plist. Then, these matching display options can help remove glitches with display speed/size options. The override files also provide a more natural color correction and gamma curves as well as more screen sizes for select Lenovo LCD models. These files are included in the Zip file and should be copied (via sudo) to /System/Library/Displays/Contents/Resources/Overrides.
    NOTE: For Catalina you may need to mount / (root) as read/write. SIP should already be disabled so you can write to the destination.
    Note: For Yosemite or earlier versions, these files go in /System/Library/Displays/Overrides sudo cp -a ~/Downloads/Lenovo-T420-Clover-YYYY.MM.DD/\:System\:Library\:Displays\:Contents\:Resources\:Overrides/DisplayVendorID-* /System/Library/Displays/Contents/Resources/Overrides/ Note: for Catalina you need to make / (root) read/write  - to do this step, issue this command before the above command: sudo mount -uw /  2.5 Remove the USB and Reboot to load Clover from the HD
    Notes: For this first boot, hit the spacebar on your boot selection (macOS) and use verbose mode.
    See below for other tools and scripts for to help with sleep/wake issues.
    Enjoy your Hackintosh!
    Optional Steps (no longer required)
    1) Install the all custom kexts to your OS /Library/Extensions folder
    Note: These days, Clover can "Inject" all the custom kexts from the ESP - so you no longer have to copy/install them into your system OS. However, if desired install the custom kexts from the Zip kexts directory to the /Library/Extensions directory by running:
    cd ~/Downloads/Lenovo-T420-Clover-YYYY.MM.DD/EFI/CLOVER/kexts/ sudo ./_kext-install.command  
    2) Ethernet Device Installation
    If you do not already have an ethernet device created as en0 - you can check the System Preferences/Network tool - this step loads the ethernet kext and resets network device order to have ethernet as en0. Seems to help with AppStore and iMessage etc.
    Note: macOS may already have configured the ethernet, so this step may be unnecessary but it will not hurt anything either for a fresh installation. Run this set of commands: sudo kextload /Library/Extensions/IntelMausiEthernet.kext sleep 10 sudo rm   /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist  
    3) Optional: Create a customer injector.The included/pre-made AppleBackLightInjector kext may work "as is" if you have a common Lenovo LCD. This kext gives full uniform brightness range for the LCD.  You can create a custom Backlight Injector kext for your LCD Panel if needed. This script will update the kext in the ../../EFI/CLOVER/kexts/Other directory - which is the unzipped package location.  This AppleBacklightInjector kext replaces the (obsolete) IntelBacklight.kext and the kext install script will remove the old one if on 10.12.4 or later. You may manually remove that kext if present.  To create this custom kext, run this procedure script:
    cd ~/Downloads/Lenovo-T420-CloverYYYY.MM.DD/Utilities/Create_AppleBacklightInjector_kext/ sudo ./createAppleBacklightInjector.command  
    Post Installation - Known Issues and Random Tips:
    GFX distortion/stretching: See Step 2.4 - sometimes DualLink is not set right for 1600x900 LCD.  WIFI: The stock Intel WiFi will not work. The common approach is use a modded BIOS 1.46 (or later) and replace the WiFi with a Broadcom or Atheros chip.  Bluetooth: Enable (turn on and leave on) Bluetooth so the green light is showing on the LCD bezel (do from Windows or Ubuntu). Also make sure the side switch is set to green too!   "Black" Screen - hit "Pause" (or FN Home) key to increase LCD brightness sometimes the saved value in the nvram is out of sync or zero so LCD seems to be off. Audio: When using external headphones or speakers, may need to plug and unplug 1 or 2 times for recognition. Suggested settings if you don't want or use hibernation: sudo pmset -a hibernatemode 0 rm /var/vm/sleepimage Hibernation - Use OsxAptioFix2Drv-64.efi instead of OsxAptioFixDrv-64.efi UEFI driver for restart from hibernation. (Have not tested this in a long time). For hibernation, then set hibernate mode to 7 (mode 7 is like mode 3 but without encryption) - may need to manually edit this value into the plist file now. Note: Booting up from the hibernated image may have jumbled or blank LCD until you do a sleep/wake cycle to reset the LCD. sudo pmset -a hibernatemode 7 If you still have HFS+ formatted part vs APFS, Clover may present 2 options for main OS partition if using Logical Volume vs Standard Volume. You can revert the logical volume, so Clover will not get confused and present duplicate options. Just "revert" using: sudo diskutil corestorage revert /  
    Note: Bluetooth seems to have some issues in High Sierra (early version) the workaround seems to be turning off BT before sleep. This process can be automated by installing the Sleepwatcher tools - which handles the sleep/wake scenario. Optionally one can install "Clover" scripts which turn on/off all networks during shutdown via LoginHook and LogoutHook. The are scripts to re-enable all networks up login or during boot up. Go the Utility Folder in the zip and run these command: ./install_tools.command ./install_sleepwatcher.command ./install_clover_scripts.command  
    Fixed: iMessage/Messages/FaceTime may not register without overriding the Clover generated values for ROM and MLB values. Search thread for ROM to get more info. Otherwise define and inject using RtVariables -- see wiki for details - there are placeholders in the config.plistFixed: TrackPoint may not be responsive on startup (very random occurrence anymore) - a sleep/wake cycle should revive it. Fixed: With WhateverGreen or ACPIBacklight.kext installed, boot with lid open or LCD will be black when you open it. Fixed: Not needed anymore: Add boot option darkwake=0 if you would like to disable power nap - and have the lid wake the gfx instead of hitting extra key. OBSOLETE: After installing the kexts to /L/E, sometimes the symbolic link to the actual binary file referenced in AppleHDA_20672.kext is not right. Fix this link by running this script: cd /Library/Extensions/AppleHDA_20672.kext/Contents/ MacOS
    sudo rm AppleHDAsudo ln -s /System/Library/ Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA
    sudo touch /System/Library/Extensions  
    Notes on Custom Kexts
    - Core hack mechanism. Using Kozlek's version + plugins + custom FakeSMC Info.plist
    - 2 Custom SMC keys are added to Kozlec's standard FakeSMC
    - FNum (to find the Fan) and ACID (for AC power and eliminate powerd syslog messages every 30 seconds).
    - A Custom package is included in the Utilities folder so you can install HWMonitor.app - it just selects these 2 Plugins Sensors: ACPI and CPU.
      Lilu.kext  - by acidanthera - for use with certain kexts such as AppleALC, NightShift, WhateverGreen AppleALC.kext - by acidanthera - Keep original/unmodified AppleHDA.kext in /S/L/E and use this kext to add full audio support for CX20672/CX20590.

    There are 2 layout-id profiles:
    (1) ID 14 for normal laptop ports
    (2) ID 13 which adds the audio ports on the Docking Station. Thanks to Manwe150's fix/additions for dock ports.

    The "dock" version adds the second channel output called "Headphones" and a second Input which shows up as either "Line In or Built-in Microphone" - these ports are physically on the Docking Station itself.
    IF you have a dock and want to use the extra ports, then set/inject Audio ID 13 in the Clover config.plist - IF you DO NOT have a dock, then use everything as is (and not be confused by the extra Input/Output options!!!)
      WhateverGreen.kext - by acidanthera - for Graphics and Backlight patching
      ACPIBatteryManager.kext - by RehabMan - show/track battery info on menu bar - Note: most Info.plist items are set to False instead of True Bluetooth_Injector_T420.kext - adds ProductID 8575 to make BT work better (provides on/off capability). IntelMausiEthernet.kext - Mieze's Intel LAN kext that supports TSO, EEE and other features. Put this kext in /Library/ Extensions and remove or disable AppleIntelE1000e.kext IOAHCIBlockStorageInjector.kext - configured to make just the DVD device appear internal so iDVD player works. USBInjectAll.kext - helps with USB properties VoodooPS2Controller.kext (v1.9.2) - RehabMans's PS2 Keyboard/TouchPad/TrackPoint SSDT are used to modify options instead - and can be used to setup alternate FN/key maps. keyboard mappings have 3 or 4 finger swipe left/right to back/forward configured for Safari browser vs space swipe  
    •       Obsolete:
    AppleBackLightInjector.kext - RehabMan's Injector method - modified for Lenovo T420 to incrementally scale brightness in 17 levels from 0 to 4882 (0x1312). Note: The template file has 2 models: T420 and T460. To create a customer Injector, run the Utilities createAppleBacklightInjector script to create a custom Panel definition specific to your LCD. It will put the new injector in the kexts/Other folder. Install it along other kexts with _kext_install.bash script. cd ~/Downloads/Lenovo-T420-Clover-YYYY.MM.DD/ Utilities/Create_AppleBacklightInjector_kext/sudo ./ createAppleBacklightInjector.command AppleIntelE1000e.kext (v2.4.14) - Ethernet (gigE) - can go in /System/ Library/Extensions vs Plugins so OSX re-installations or patch updates will not delete it. IntelBacklight.kext (v1.0.10) - RehabMan's kext for smoother/enhanced LCD backlight (dimming) control. In 10.12.4 (or later) this kext does communicate with Brightness keys or System Preferences Display Slider. So remove this kext unless on a version older (less) than 10.12.4 AppleHDA_20672.kext (v999.99) Keep original/unmodified AppleHDA.kext and add this kext to /L/E for full audio support for CX20672 (same as CX20590). Note: requires matching DSDT sections for Conexant Codec and layoutID 12. and Kext Patch via Clover. Also has Manwe150's fix/additions for dock ports. Credit and thanks to vladichimescu. There are 2 files in AppleHDA_20672.kext/Contents/Resources Platforms.xml.zlib.dock and Platforms.xml.zlib.nodock The "dock" version adds the second audio output called "Headphones" and a second Input "Line In" - both of which are on the Docking Station itself. • - IF you have a dock and want to use these ports - then just replace the Platforms.xml.zlib file with Platforms.xml.zlib.dock • - IF you DO NOT have a dock, then use the new kext as is! (and not be confused by the extra Input/Output options!!!)  
    General Notes, Fixes, and Features
    Installing Clover from the .pkg file:
    If you would like to run the included installer package, Clover_v2.5k_rxxxx.pkg, to install the related tools and latest bits into the OS and ESP of this HD, there is an installer package in the Utilities directory.
    Select (check box) at least first 2 items! This picture shows a good set of overall options:
    After you close the pkg installer, then follow these step to replace the ESP with the zip contents (step 4 above)
    There are extra Clover configuration files (config.plist) that use the custom DSDT and WITH extra Clover patching for EDID Certain config files inject an alternate EDID - rather than the default/built-in EDID for your LCD. These EDID were extracted and corrected (set to RGB only mode etc) from other LCD vendors such as LGD that seem to work better than the common/inferior standard from AUO. Historically, these fix problems such as white screen, glitches, and ring buffer hangs. 
    config.EDID-2e2.plist config.EDID-2e3.plist config.EDID-366.plist One should start with config.plist 
    if there are freezes or glitches, then try config.EDID-2e2 or EDID-2e3
    Note: The Model should be set to MacBookPro8,1 to get proper Graphics patching - DP/HDMI/DVI/VGA FrameBuffers
    config.patchDSDT.plist - does some patching. config.plist (default) - only fixes regions  Some folks were seeing problems when Clover was asked to patch the DSDT - most of the patching was redundant with the provided DSDT. So there are 2 generic versions - (1) does a number of patches to patch the built-in DSDT (i.e. when you don't provide one) and (2) a config.plist that does almost nothing to patch the DSDT. Over the years - way before the current SSDT/hot-patch approach was devised - manual edits were made to the DSDT.
    Clover does dynamic patching Patch for AppleIntelSNBGraphicsFB.kext - The included patch replaces the 4th port/buffer (DVI on dock) with VGA on left side. The 4 ports after patch are: LCD, DisplayPort on side, DisplayPort on dock, VGA on side. If you need DVI on the dock - then disable this patch! Or modify the edit scheme to change the 2nd or 3rd port (DP) to be the DVI if still want the VGA port. Patch for IOAHCIBlockStorage.kext - adds SSD TRIM function for a 3rd Party SSD - one can use the "trimforce" command now Patch for SATA ultra bay Note: Lilu+AppleALC will patch AppleHDA.kext for audio codec Conexant 20590/20672 chipset The Zip includes Clover files and custom kexts with kext install script: _kextinstall.command (but this is not really needed anymore) Gfx parameter files in Displays/Overrides offer more natural color gamma curves and screen options Newer Thinkpad theme - adds macOS Icons that may not be in the standard clover installer. Special keys on laptop (not USB or Bluetooth keyboard) without keymap remap SSDT :  FN keys LCD Brightness are controlled by these 2 button pairs to change brightness up/down: Fn+Home/End or ScrLck/Pause Audio Levels: The 3 buttons above F1-F3 control volume (except mic mute) Insert key is the CD/DVD eject. Blue ThinkVantage button - toggles fan to highest speed. The Alt key is the Mac Command key and Microsoft flag key is the Mac Option key. Fn+PgUp - turns on the light!
      DSDT Notes
    Some of the DSDT tweaks (beyond manwe150's original version) are listed here. DSDT includes source and binary The "EDID" versions of DSDT.aml be use override removes infamous HD 3000 glitches and buffer hangs or so-called artifacts for 1600x.900 LCD. Added MaxBeepBootVolume to DSDT to rid AppleHDA assertion on startup Shutdown fixes in DSDT _PTS and _WAK (thanks to TimeWalker75, RehabMan and Manwe150) Change/fixes to reset LEDs for proper sleep/wake status Battery fixes to use native/current ACPIPlatform.kext with Rehabman's ACPIBatteryManager.kext - no need to rollback or patch AppleACPIPlatform.kext anymore. PNLF additions from RehabMan provide smoother/wider LCD backlight control with IntelBacklight.kext DSDT mods to KBD device - renamed to PS2K and added LENOVO OEM-ids for VoodooPS2Controller to use. The PS2 Keyboard is identified as id LENOVO table-id T420 which will pickup the custom VoodooPS2Controller settings. For El Capitan+, removed the _PRW method from some of the devices in the DSDT
    DSDT for "heat-step" (DSDT.heat-step.aml) has a modified method to incrementally control the fan speed vs automatically by BIOS.
    Follow the installation recipe to use this approach:
    copy/replace the default DSDT.aml file with the DSDT.heat-step.aml file in the ESP (cp DSDT.heat-step.aml patched/DSDT.aml) make sure the ACPIPoller.kext is in use (move from Misc to Other folder) to active the method - changes fan speed vs CPU temperature. reboot For Example:
    mkdir /Volumes/ESP sudo mount -t msdos /dev/disk0s1 /Volumes/ESP cp -a /Volumes/ESP/EFI/CLOVER/ACPI/DSDT.heatstep.aml /Volumes/ESP/EFI/CLOVER/ACPI/patched/DSDT.aml cp -a /Volumes/ESP/EFI/CLOVER/ACPI/kexts/Misc/ACPIPoller.kext /Volumes/ESP/EFI/CLOVER/kexts/Other/  
    Scripts and tools will be put in /usr/local/bin. A directory ~/Library/ssdtPRGen will be created with other related data
    Script creates P and C states to match system CPU. One can hand-edit to modify values for lower power consumption.
    Copy ssdt.aml to your ESP ACPI/patched folder: /Volumes/ESP/EFI/CLOVER/ACPI/patched
  17. Like
    SuperReaper reacted to avdo in Lenovo ThinkPad T420 with UEFI Only   
    Ignore kernel cache.  
    Looking back at what you originally posted I'd missed that the WiFi you had replaced was the stock Intel card so I assume you haven't had working WiFi.
    I'll also assume that you have flashed a custom BIOS to remove the whitelist?
    No direct experience with the Atheros card but after a quick read up the simplest way seems to be to get clover to patch the DSDT on the fly unless your comfortable with editing your own DSDT with Maciasl.
    You'll also need to inject your device and vendor id's into the appropriate kext(s) :
    Device ID = 002b
    Vendor ID = 168c
    See here
    Maybe a bit late now but a Dell DW1510 card would have been a much better option for you as it's plug and play, dirt cheap secondhand and doesn't require any messing around with.
  18. Like
    SuperReaper reacted to avdo in Lenovo ThinkPad T420 with UEFI Only   
    Never tried with NVS4200m but performance-wise it's only like a 20% improvement over Hd3000 (IIRC) therefore not really worth the hassle.
    Clover / Options / Boot Args:
    Press return
    Type -f
    Press return
    Start the system
  19. Like
    SuperReaper reacted to blackosx in Clover Theme Manager   
    Sorry guys. Please try this version.