Jump to content

tluck

Members
  • Content Count

    2,139
  • Joined

  • Last visited

  • Days Won

    5

Reputation Activity

  1. Like
    tluck got a reaction from goodguess in Lenovo ThinkPad T420 with UEFI Only   
    FWIW: I used this tool to go from 10.14.4 to 10.14.5.
     
    http://dosdude1.com/mojave/
     
    I created the USB installer (with my Clover bundle in ESP) and installed on top of 10.14.4.
    and then ran the Post Install Tool set to MBP8,1 from this USB Installer.
    Not entirely sure what all was changed - presumably it fixes the frameworks to allow HD 3000 to work! 
     
     
  2. Like
    tluck got a reaction from hrk23 in [GUIDE] Lenovo T460 macOS with Clover   
    Lenovo T460 macOS with Clover Guide
    Latest Release on GitHub (April 2019) Updated to Clover r4918 Updated Lilu kexts - ALC, WEG Merged Verleihnix' config.plist - especially to NOT inject GFX Updated BacklightInjector as option to WEG.
      Various Tweaks over Last months The zip file is a complete Clover ESP (/EFI) bundle and kext pack for the Lenovo T460. The current file bundle is tested on Sierra. 
    Note: I never got the GFX fully working on El Capitan. 
    Full Clover file set - config.plist etc. Includes all custom kexts Includes custom DSDT/SSDT scripts and patches Utility scripts The zip bundles are posted to GitHub: https://github.com/tluck/Lenovo-T460-Clover/releases
    Caveat: The T460 systems used here was configured with: i5-6300U, Intel HD Graphics 520, 1920x1080 touch screen. If you have a different system model, then extract the ACPI files and use the included scripts to create a set of files consistent with your system type and BIOS version. See below for details.
    Credits: RehabMan, Shmilee, vusun123, TimeWalker, Mieze from which, much of their work and help is/was was used to get the T460 to this point.
    Devices and aspects working:
    Ethernet -  Intel I219LM is enabled via IntelMausiEthernext.kext WiFi/BT - substitute the Intel WiFi/BT with a compatible Broadcom or Atheros chip Audio - ALC293 codec implemented via AppleALC.kext (old AppleHDA_ALC293 and CodecCommander kexts are not needed) PS2 - ClickPad + TrackPoint + all 3 buttons - using a modified VoodooPS2Controller to support new layouts - and added some custom Fn key maps based on 440/450 dsdt USB - implemented via custom SSDT + USBInjectAll kext. All USB3/USB2 ports are intel-based and work -  3 external USB and internal Camera, BT, etc  Sleep/Wake - the sleepwatcher package and custom sleep/wake scripts are used to help with sleep/wake for BT and PS2 devices. Note: have not tried to implement the SD card reader - no driver found.
    ACPI Files
    New Installation - Steps and Details
    Part 1 - OS Installation
    Part 2- Post OS Installation and Setup
    Notes on Custom Kexts
     
  3. Like
    tluck got a reaction from kogam22 in Lenovo ThinkPad T420 with UEFI Only   
    good idea ... get started with HighSierra. the support/implementation for Mojave is a bit more tricky.
     
    Better? depends on your metrics. Many (100s or 1000s), as I have since 2013, run macOS on T420/T420s. Dual or triple boot is popular too:  macOS, Windows, Linux.
     
  4. Like
    tluck reacted to kolodzieski in [GUIDE] Lenovo T460 macOS with Clover   
    https://github.com/ESProcessing/OS-X-BrcmPatchRAM -- now has all the changes + the logging I mentions in the previous post. 
     
    boot args are not needed IF your card uses firmware 0489_e07a.
     
    Attached are the release binaries.
     
    brcm.tar.gz
  5. Like
    tluck got a reaction from kogam22 in Lenovo ThinkPad T420 with UEFI Only   
    what if you remove the battery? maybe the bios update will succeed?
    on screen size? I wonder if the size was not properly detected, set DualLink=1 (for 1600x900)
    good luck on the HD replacement - go with SSD. APFS is not very speedy on spinning disk.
     
     
  6. Like
    tluck got a reaction from goodguess in Lenovo ThinkPad T420 with UEFI Only   
    I just updated GitHub. well I would use config.mojave.1600x900.plist if I were you.
    but I would go with 10.14.3 at first unless you have the 10.14.3 frameworks saved off.
  7. Like
    tluck got a reaction from goodguess in Lenovo ThinkPad T420 with UEFI Only   
    @goodguess did you remove the HD3000 kexts before you tried to update to 10.14.4? -- take at look at the post about this. 
    remove HD 3000 kexts
    update to 10.14.4
    put 10.14.3 frames in place
    put HD 3000 kexts back in place.
     
    as far as a replacement - there seems to be plenty of options. i was really happy with T460 and will buy one for my son soon.
     
    @davidian the most recent zip on works with mojave, highsierra and sierra. i use the same Clover ( config and kexts) in the ESP to triple boot all 3 OS.
  8. Like
    tluck got a reaction from goodguess in Lenovo ThinkPad T420 with UEFI Only   
    @goodguess
    are you are on 10.14.3 now? if so you have them:
     
    sudo mkdir /Temp
    sudo cp -a /System/Library/PrivateFrameworks/GPUSupport.framework /Temp/
    sudo cp -a /System/Library/Frameworks/OpenGL.framework                 /Temp/
  9. Like
    tluck got a reaction from goodguess in Lenovo ThinkPad T420 with UEFI Only   
    hey glad to hear from you after all these years! ... SSDs are definitely the way to go - especially with APFS.
    Since HighSierra HD 3000 with full acceleration will get a few gfx glitches (and hangs).
    I boot from my SSD that I put in the expansion bay. Then keep my backup on the original HD in main slot (via Carbon Copy Cloner)  - and actually has Mojave/High Sierra/Sierra on it (for validation).
  10. Like
    tluck got a reaction from goodguess in Lenovo ThinkPad T420 with UEFI Only   
    Well, the last supported version is High Sierra 10.13.6   but you may get random glitches unless you have a non AUO LCD
    But I am running Mojave 10.14.4 with some extra hacking but. that may be the end of road. 
  11. Like
    tluck got a reaction from goodguess in Lenovo ThinkPad T420 with UEFI Only   
    do this:
    save the 2 frameworks from 10.14.3 - i happen put them in /Extra/kext-used/T420/mojave-fix
     
    sudo cp -a /System/Library/PrivateFrameworks/GPUSupport.framework <location>
    sudo cp -a /System/Library/Frameworks/OpenGL.framework   <location>
     
    sudo rm -rf /System/Library/Extensions/*SNB* /System/Library/Extensions/*3000*
     
    and then update to 10.14.4 (don't go to 10.14.5beta - wont work.)
     
    after IN SINGLE USER MODE run the script below to get full gfx acceleration
     
     
    mount -uw /
    cd /Extra/kext-used/T420/mojave-fix/ (your location)
    ./single-user-post-update.bash 
     
     
    $ cat single-user-post-update.bash 
    #!/bin/bash -x
    # replace frameworks
    rm -rf /System/Library/PrivateFrameworks/GPUSupport.framework
    cp -R /Extra/kexts-used/T420/mojave-fix/GPUSupport.framework /System/Library/PrivateFrameworks
     
    rm -rf $prefix/System/Library/Frameworks/OpenGL.framework     
    cp -R /Extra/kexts-used/T420/mojave-fix/OpenGL.framework     /System/Library/Frameworks
     
    chmod -R 755 /System/Library/PrivateFrameworks/GPUSupport.framework
    chown -R 0:0 /System/Library/PrivateFrameworks/GPUSupport.framework
    chmod -R 755 /System/Library/Frameworks/OpenGL.framework
    chown -R 0:0 /System/Library/Frameworks/OpenGL.framework
     
    # put back HD 3000 kexts
    cp -R /Extra/kexts-used/T420/10.14/ /System/Library/Extensions
  12. Like
    tluck got a reaction from Tetonne in Lenovo ThinkPad T420 with UEFI Only   
    if you are using Mohave with non-metal GPU (such as HD3000 on the T420) there is some good news: 10.14.3 is not the end of the road.
     
    @dosdude has discovered and provided a recipe where one can use/roll-back 2 system frameworks from 10.14.3. this is essentially what he discovered: 

    these are 2 frameworks that need to be saved from 10.14.3 and replaced when on a later version such as 10.14.4 (beta):
    /System/Library/PrivateFrameworks/GPUSupport.framework
    /System/Library/Frameworks/OpenGL.framework 
     
    it is a bit tricky...
    1) pre update - remove the HD3000 kexts from /S/L/E
    2) update to 10.14.4 beta
    3) post update - then in single user mode
    replaced the HD3000 kexts in /S/L/E
    replaced the 2 frameworks
  13. Like
    tluck reacted to kolodzieski in [GUIDE] Lenovo T460 macOS with Clover   
    It is working great for me. 
     
    My particular bluetooth card is showing as firmware: [0489:e07a] 
     
    Adding the delays into the appropriate firmware section of Info.plist works, one can remove the args. 
    The code actually looks for a property, and then an arg. So even with the properties in place one can then override with an arg. 
     
    <key>0489_e07a</key> <dict> <key>CFBundleIdentifier</key> <string>com.no-one.$(PRODUCT_NAME:rfc1034identifier)</string> <key>DisplayName</key> <string>Broadcom Bluetooth 4.0 USB</string> <key>FirmwareKey</key> <string>BCM20702A1_001.002.014.1483.1651_v5747</string> <key>IOClass</key> <string>BrcmPatchRAM2</string> <key>IOMatchCategory</key> <string>BrcmPatchRAM2</string> <key>IOProviderClass</key> <string>IOUSBHostDevice</string> <key>idProduct</key> <integer>57466</integer> <key>idVendor</key> <integer>1161</integer> <key>UpgradeDelay</key> <integer>200</integer> <key>InitialDelay</key> <integer>400</integer> <key>PostResetDelay</key> <integer>400</integer> </dict> I add a debug to the log file:
    sjk$ sudo dmesg | fgrep -i brcm | fgrep Delay BrcmPatchRAM2: [brcm (prop)-- UpgradeDelay]: 200 BrcmPatchRAM2: [brcm (prop)-- InitialDelay]: 400 BrcmPatchRAM2: [brcm (prop)-- PostResetDelay]: 400 I will upload a new binary soon. 
  14. Like
    tluck reacted to kolodzieski in [GUIDE] Lenovo T460 macOS with Clover   
    I discovered something strange with regards to BRCM bluetooth, and it must be timing related. 
     
    I previously mentioned that I patched RehabMan's latest code with some configurable delays present in @tluck's older codebase. This was working great for me when sleeping from shutting my lid, then reopening. If sleep was initiated, from the menu, however it was not working as good. 
     
    I went back and diff the two code set's again, and had a small bug in my correction. I also found one other IOSleep that I skipped. Fixed all of this up, and the latest patched RehabMan's BRCM seems to be working great.
     
    I am using in my config.plist:
    <string> kext-dev-mode=1 bpr_initialdelay=400 bpr_upgradedelay=200 bpr_postresetdelay=400</string> </string> I discovered something strange with regards to BRCM bluetooth, and it must be timing related. 
     
    I previously mentioned that I patched RehabMan's latest code with some configurable delays present in @tluck's older codebase. This was working great for me when sleeping from shutting my lid, then reopening. If sleep was initiated, from the menu, however it was not working as good. 
     
    I went back and diff the two code set's again, and had a small bug in my patch. I also found one other IOSleep that I skipped. Fixed all of this up, and the latest patched RehabMan's BRCM seems to be working great. Both sleep/wake initiated from lid closure, or sleep from menu work fine, with bluetooth restored correctly after wake. 
     
    I am using in my config.plist:
    <string>    kext-dev-mode=1 bpr_initialdelay=400 bpr_upgradedelay=200 bpr_postresetdelay=400 </string> Attached are the rebuild kexts. 
    brcm.tar.gz
  15. Like
    tluck got a reaction from goodguess in Lenovo ThinkPad T420 with UEFI Only   
    Well, the last supported version is High Sierra 10.13.6   but you may get random glitches unless you have a non AUO LCD
    But I am running Mojave 10.14.4 with some extra hacking but. that may be the end of road. 
  16. Like
    tluck got a reaction from hrk23 in [GUIDE] Lenovo T460 macOS with Clover   
    Lenovo T460 macOS with Clover Guide
    Latest Release on GitHub (April 2019) Updated to Clover r4918 Updated Lilu kexts - ALC, WEG Merged Verleihnix' config.plist - especially to NOT inject GFX Updated BacklightInjector as option to WEG.
      Various Tweaks over Last months The zip file is a complete Clover ESP (/EFI) bundle and kext pack for the Lenovo T460. The current file bundle is tested on Sierra. 
    Note: I never got the GFX fully working on El Capitan. 
    Full Clover file set - config.plist etc. Includes all custom kexts Includes custom DSDT/SSDT scripts and patches Utility scripts The zip bundles are posted to GitHub: https://github.com/tluck/Lenovo-T460-Clover/releases
    Caveat: The T460 systems used here was configured with: i5-6300U, Intel HD Graphics 520, 1920x1080 touch screen. If you have a different system model, then extract the ACPI files and use the included scripts to create a set of files consistent with your system type and BIOS version. See below for details.
    Credits: RehabMan, Shmilee, vusun123, TimeWalker, Mieze from which, much of their work and help is/was was used to get the T460 to this point.
    Devices and aspects working:
    Ethernet -  Intel I219LM is enabled via IntelMausiEthernext.kext WiFi/BT - substitute the Intel WiFi/BT with a compatible Broadcom or Atheros chip Audio - ALC293 codec implemented via AppleALC.kext (old AppleHDA_ALC293 and CodecCommander kexts are not needed) PS2 - ClickPad + TrackPoint + all 3 buttons - using a modified VoodooPS2Controller to support new layouts - and added some custom Fn key maps based on 440/450 dsdt USB - implemented via custom SSDT + USBInjectAll kext. All USB3/USB2 ports are intel-based and work -  3 external USB and internal Camera, BT, etc  Sleep/Wake - the sleepwatcher package and custom sleep/wake scripts are used to help with sleep/wake for BT and PS2 devices. Note: have not tried to implement the SD card reader - no driver found.
    ACPI Files
    New Installation - Steps and Details
    Part 1 - OS Installation
    Part 2- Post OS Installation and Setup
    Notes on Custom Kexts
     
  17. Like
    tluck reacted to kolodzieski in [GUIDE] Lenovo T460 macOS with Clover   
    I could not get BRCM working well with just the delays that RehabMan put in. I tried many combinations. 
     
    I added one additional delay after comparing your code and RehabMan's. It is in my forked repo: https://github.com/ESProcessing/OS-X-BrcmPatchRAM
     
    I am having success with the following boot args:
     
     <key>Arguments</key>
             <string>kext-dev-mode=1 bpr_upgradedelay=200 bpr_postresetdelay=400</string>
  18. Like
    tluck got a reaction from Tetonne in [GUIDE] Lenovo T460 macOS with Clover   
    I just updated the repo and package release - merged in Verleihnix config.plist
    I believe the big difference was that my old config.plist was still injecting Intel gfx. that may be why some where not getting backlight correct when using WEG for backlight. 
     
    BRCM - I believe the later versions included similar delay features needed to support startup and wake from sleep etc. IIRC, RehabMan put in configurable delays at various points in the code...  where as I just hard-coded the value. 
     
     
  19. Like
    tluck got a reaction from goodguess in Lenovo ThinkPad T420 with UEFI Only   
    do this:
    save the 2 frameworks from 10.14.3 - i happen put them in /Extra/kext-used/T420/mojave-fix
     
    sudo cp -a /System/Library/PrivateFrameworks/GPUSupport.framework <location>
    sudo cp -a /System/Library/Frameworks/OpenGL.framework   <location>
     
    sudo rm -rf /System/Library/Extensions/*SNB* /System/Library/Extensions/*3000*
     
    and then update to 10.14.4 (don't go to 10.14.5beta - wont work.)
     
    after IN SINGLE USER MODE run the script below to get full gfx acceleration
     
     
    mount -uw /
    cd /Extra/kext-used/T420/mojave-fix/ (your location)
    ./single-user-post-update.bash 
     
     
    $ cat single-user-post-update.bash 
    #!/bin/bash -x
    # replace frameworks
    rm -rf /System/Library/PrivateFrameworks/GPUSupport.framework
    cp -R /Extra/kexts-used/T420/mojave-fix/GPUSupport.framework /System/Library/PrivateFrameworks
     
    rm -rf $prefix/System/Library/Frameworks/OpenGL.framework     
    cp -R /Extra/kexts-used/T420/mojave-fix/OpenGL.framework     /System/Library/Frameworks
     
    chmod -R 755 /System/Library/PrivateFrameworks/GPUSupport.framework
    chown -R 0:0 /System/Library/PrivateFrameworks/GPUSupport.framework
    chmod -R 755 /System/Library/Frameworks/OpenGL.framework
    chown -R 0:0 /System/Library/Frameworks/OpenGL.framework
     
    # put back HD 3000 kexts
    cp -R /Extra/kexts-used/T420/10.14/ /System/Library/Extensions
  20. Like
    tluck got a reaction from davidian in Lenovo ThinkPad T420 with UEFI Only   
    these files inject an alternate EDID - rather that default/built-in EDID for your LCD. these are the EDID 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 These 2 are for using the unsupported OS Mojave based on LCD size - sets model to MBP9,1 instead of MBP8,1 as well sets a few gfx properties needed.
    config.mojave.1366x768.plist config.mojave.1600x900.plist Some folks were seeing problems when Clover was asked to patch the DSDT - most of the patching was redundant with the provided DSDT. so now there are 2 versions - one that does a number of patches to patch the built-in DSDT (i.e. when you don't provide one) and a config.plist that does almost nothing to the DSDT since over the years - way before the current SSDT/hot-patch approach was devised - manual edits were made to the DSDT.
    config.patchDSDT.plist - does some patching. config.plist (default) - only fixes regions  So one should start with config.plist 
    if there are glitches, then try config.EDID-2e2 or EDID-2e3
    if you are on Mojave - presumable means you know what are doing! - then you need start with this one - which injects EDID-2e3. Note: I am actually using EDID-2e2.
     
    the name/number ie 2e3 is representative of the product id encoded in the EDID string - for example:
    00FFFFFF FFFFFF00 30E4E302 00000000 FF140104 801F1178 E2338599 56559127 17505400 00000101 01010101 01010101 01010101 0101AE24 405A6084 1A303020 350036AE 1000001A 401F4080 60841A30 30203500 36AE1000 00180000 00FE004C 656E6F76 6F0A2020 20202020 000000FE 00313630 30783930 300A2020 202000C6 
     
    which means vendor_id 30E4 and product_id E302 - which is byte swapped to mean 02E3
     
    there are corresponding Displayoverride files that match vendor/product_id to provide a better gamma and color space definition. 
     
    Note: The 2e2 EDID worked great for many years (and 5 OS releases - 10.8-10.12) but when HighSierra (and now Mojave) came out glitches and freezes were back for many. Mostly with an AUO LCD and/or less than 16GB of memory. 
     
    But sad to say, seems like HD 3000 models - such as the trusty T420 - are at EOL with the latest macOS. 
    - My son has a T420 with 16GB and LGD model LCD on HighSierra and it works quite well for him.
    - My T420 has 8GB and AUO LCD and it hangs about every 3 days. i can often revive it by 1-2 sleep/wake cycles (or remote shell to reboot). So I don't use it as my main machine anymore. 
  21. Like
    tluck got a reaction from Tetonne in Lenovo ThinkPad T420 with UEFI Only   
    if you are using Mohave with non-metal GPU (such as HD3000 on the T420) there is some good news: 10.14.3 is not the end of the road.
     
    @dosdude has discovered and provided a recipe where one can use/roll-back 2 system frameworks from 10.14.3. this is essentially what he discovered: 

    these are 2 frameworks that need to be saved from 10.14.3 and replaced when on a later version such as 10.14.4 (beta):
    /System/Library/PrivateFrameworks/GPUSupport.framework
    /System/Library/Frameworks/OpenGL.framework 
     
    it is a bit tricky...
    1) pre update - remove the HD3000 kexts from /S/L/E
    2) update to 10.14.4 beta
    3) post update - then in single user mode
    replaced the HD3000 kexts in /S/L/E
    replaced the 2 frameworks
  22. Like
    tluck got a reaction from tolex in Clover Themes   
    @Slice  the recent change 4867 puts the messaging text in bad location (too high) overlapping with other icons with Clovy. can you adjust it to move it down a bit?
    the messages: Boot macOS or Start UEFI is right next to the icons and overlaps them a bit. \
    and with other themes seems like the same thing message is pretty jammed up with icons?
     

  23. Like
    tluck got a reaction from Tetonne in Lenovo ThinkPad T420 with UEFI Only   
    @Tetonne so you can get into BIOS with F1 - then you can do F9 to load Defaults. then set ACHI mode etc. 
    to see if the computer is toast or not. maybe download and create an Ubuntu USB and see if you can boot that.
    otherwise not sure what to say?
  24. Like
    tluck got a reaction from Tetonne in Lenovo ThinkPad T420 with UEFI Only   
    if you are using Mohave with non-metal GPU (such as HD3000 on the T420) there is some good news: 10.14.3 is not the end of the road.
     
    @dosdude has discovered and provided a recipe where one can use/roll-back 2 system frameworks from 10.14.3. this is essentially what he discovered: 

    these are 2 frameworks that need to be saved from 10.14.3 and replaced when on a later version such as 10.14.4 (beta):
    /System/Library/PrivateFrameworks/GPUSupport.framework
    /System/Library/Frameworks/OpenGL.framework 
     
    it is a bit tricky...
    1) pre update - remove the HD3000 kexts from /S/L/E
    2) update to 10.14.4 beta
    3) post update - then in single user mode
    replaced the HD3000 kexts in /S/L/E
    replaced the 2 frameworks
  25. Like
    tluck got a reaction from tolex in Clover Themes   
    @Slice  the recent change 4867 puts the messaging text in bad location (too high) overlapping with other icons with Clovy. can you adjust it to move it down a bit?
    the messages: Boot macOS or Start UEFI is right next to the icons and overlaps them a bit. \
    and with other themes seems like the same thing message is pretty jammed up with icons?
     

×