Jump to content
Kogen Mantis

Lenovo ThinkPad T420 with UEFI Only

4,583 posts in this topic

Recommended Posts

Advertisement
On 4/2/2019 at 4:59 AM, free2000fly said:

Hi @tluck,  Can you give us a bit of explanation for the config file, such as  2e2, EDID etc.?

 

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. 

Share this post


Link to post
Share on other sites

Hi tluck, thanks for posting dosdude´s hack for 10.14.4.

Saving/removing the HD3000 kexts is easy enough, but I can´t find neither GPUSupport.framework nor OpenGL.framework in their mentioned places.

Shall I upgrade in spite of that or will that break 10.14.4?

I´m on 10.14.3 right now and going without the two frameworks.

Share this post


Link to post
Share on other sites
10 hours ago, goodguess said:

Hi tluck, thanks for posting dosdude´s hack for 10.14.4.

Saving/removing the HD3000 kexts is easy enough, but I can´t find neither GPUSupport.framework nor OpenGL.framework in their mentioned places.

Shall I upgrade in spite of that or will that break 10.14.4?

I´m on 10.14.3 right now and going without the two frameworks.

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

Share this post


Link to post
Share on other sites

Thanks a bunch again, for the detailed do-this!

I´ll try these days with your latest repo from GitHub.

I think I´ll have a CCC backup first, as I´m not too keen on installing from scratch again. ;)

 

I never thought we would see 10.14.x on our SandyBridge rigs at all.

Apple´s freebees like Photos and iMovie are a real progress for macOS methinks.

 

Share this post


Link to post
Share on other sites
Posted (edited)

I was thinking of a M2 SSD too, some time ago, Tetonne.

Opened my RAM/PCI-e cover on the back, I´m rather sure that only half size cards would fit in. :(

Also, I seem to recall we would only get SATA-II speed (at most) from the WWAN slot.

 

Unrelated to M2, I cant seem to find OpenGL.framework or GPUSupport.framework on my macOS installations.

Probably I am missing something.

Alas, the sub-version number of Mojave wont matter much when Apple decides to drop support for 10.14 in 2021 -

presuming that the usual roll-out and let-go policy is still valid.

Edited by goodguess

Share this post


Link to post
Share on other sites

Hi guys i'm back from a long time.
What about development of mac os on our lenovo? Latest version is stable? if it is not, wich one should i try?

Share this post


Link to post
Share on other sites
11 hours ago, Fibroga said:

Hi guys i'm back from a long time.
What about development of mac os on our lenovo? Latest version is stable? if it is not, wich one should i try?

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. 

Share this post


Link to post
Share on other sites

It's all been much appreciated, tluck. I finally took the plunge and upgraded from 10.12 to 10.14.4—and it all went very smoothly thanks to your bundle. I'm considering even buying a quad core CPU to try making the upgrade and keep it going for a couple more years yet.

 

I see graphics artifacts in Safari on the tab bar, but reverting the GPUSupport and OpenGL files didn't seem to do anything. Is that what others have been seeing? My main setup (as a desktop) has a cheap egpu+NVIDIA card though, and seems to get full support for everything and much improved render performance (I don't use the LCD screen at all these days, so the HD3000 support doesn't matter anymore for me).

> I was thinking of a M2 SSD too, some time ago, Tetonne.

 

FWIW, in case you're still considering this, I've had my primary SSD in this slot for years. I can't comment on the performance, as I never bothered to measure. All I can say is that it was a very large improvement over the original spinning disk.

Share this post


Link to post
Share on other sites
1 hour ago, Manwe150 said:

It's all been much appreciated, tluck. I finally took the plunge and upgraded from 10.12 to 10.14.4—and it all went very smoothly thanks to your bundle. I'm considering even buying a quad core CPU to try making the upgrade and keep it going for a couple more years yet.

 

I see graphics artifacts in Safari on the tab bar, but reverting the GPUSupport and OpenGL files didn't seem to do anything. Is that what others have been seeing? My main setup (as a desktop) has a cheap egpu+NVIDIA card though, and seems to get full support for everything and much improved render performance (I don't use the LCD screen at all these days, so the HD3000 support doesn't matter anymore for me).

> I was thinking of a M2 SSD too, some time ago, Tetonne.

 

FWIW, in case you're still considering this, I've had my primary SSD in this slot for years. I can't comment on the performance, as I never bothered to measure. All I can say is that it was a very large improvement over the original spinning disk.

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).

Share this post


Link to post
Share on other sites
Posted (edited)

I´m still missing the needed frameworks for upgrading to 10.14.4. :(

Already searched high and low in vain, could somebody please upload the two files here for me?

GPUSupport.framework

OpenGL.framework

 

Thanks for caring!

Edited by goodguess

Share this post


Link to post
Share on other sites

@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/

Share this post


Link to post
Share on other sites
Posted (edited)

Thank you so much for your time and patience, I must have been too blind to see. ;)

The frameworks are of course in the place you pointed to.

I tried upgrading to 10.14.4 via combo update, but the installer hangs in an early stage forever with less than 1 cm of the progress bar.

No damage done, as I could drop back to 10.14.3 easily.

One thing is somewhat annoying though. I tried upgrading three times an now my BIOS boot screen is crowded like this:

 

P1080591.thumb.JPG.a08f53b50eb7c5480ef3ba6d3d035792.JPG

 

P1080592.thumb.JPG.9bda06f873f827e3adc5bcd42b7c073e.JPG

 

How can I clean up that? (SSD-120 and MJ_240 are the two SSDs installed.)

Further I would like to get rid of the 10.14.4 Update partition, as it seems to be useless.

 

Last not least, would you like to recommend a simple setup hackintosh for me to replace the T420?

I was thinking of a DELL Latitude E5470, i5-6300U, 256MB M2, but it may not be all that hassle free. 

Edited by goodguess

Share this post


Link to post
Share on other sites

I am thinking about going from El Capitan to Sierra (not High) (reason: I want to change my egpu to gtx 1070, and 10xx is only supported from Sierra).

Would the High Sierra plist/Clover files work for Sierra, or do I need to look through the GitHub versions for some older zip?

Thanks a bunch :)

Share this post


Link to post
Share on other sites
Posted (edited)

@goodguess: related the unwanted uefi boot options. I had the same issue a couple of years ago. I don't remember exactly the method I used, but it was not difficult to get rid of them. Start with a search for "clean uefi boot options", and refine your search from there, you'll find videos and examples as well on how to do it.

I see in your signature you use macos Sierra with T420. You use tluck's ESP files (if so, the most recent, or older ones), or your own?

Edited by davidian
added question

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites
Posted (edited)

Thanks fellows, I´ll try again.

As far as I can tell, I did delete the HD 3000 kexts as advised.

I´m using tluck´s latest repo from 19/04/03, just to confirm.

 

I did have upgrade issues in the past with a Intel SSD, where upgrading failed in a similar way.

MJ_240 has 80 GB free, so it should not be a storage issue this time.

 

A T460 will be a nice solution as soon as more leasing returners show up on the 2nd hand market in autumn.

I´ll give the E5470 a go, as its guts look quite similar, (same silly pry open back cover) worst case I have a 30 day return policy. :)

Edited by goodguess

Share this post


Link to post
Share on other sites

Cleaning up the boot devices goes like this, just to let you know. ;)

t3chman posted this in the Lenovo forums in 2013.

 

Quote

 

Ladies and Gentlemen...  I have the solution you have been looking for:

 

----------------------------------------------------------------------

 

Go to the BIOS Setup page.

 

In the BIOS page go to the "Startup." tab.

 

Press, "Enter, (the, "Boot," option should be hilighted)."

 

Now... You don't see the USB device listed, huh?

 

Press, "F9," for, "Setup Defaults."

 

A dialogue will appear that asks, "Setup Confirmation.  Load default configuration now?" To which you will press enter for, "Yes."

 

After you do this ALL of the bootable devices should appear.  I went from only seeing two devices to seeing 12 devices.  If your USB jump drive is in, it should display the make/model of the USB device too.  You can then press the +/- keys to move that deviceto the top of the list.

 

----------------------------------------------------------------------

 

Note 1:  I am running BIOS version 1.38.

 

Note 2: I signed up for this forum just so that I could share this information with you because I couldn't find it anywhere else online. :-)

 

 

Share this post


Link to post
Share on other sites

Clover can remove these Clover boot options.

boot to clover and stop... and then move down to Clover boot options with arrow key and then it will be obvious.

Share this post


Link to post
Share on other sites

I upgraded from El Capitan to Sierra, changed the EFI files before reboot, and all went well.

Everything seems ok, sometimes I see post boot after the apple logo disappears that the screen is getting slower whiter and whiter until reaches a burning white, didnt see this in El Capitan, weird. But it's not always, anyone else seen this before? A reboot or a sleep/wake makes it ok.

Another thing I noticed is that I don't have the battery icon anymore, if I try to switch it on from Energy saver, it shows it for a moment, and then it disappears. HW Monitor shows the battery percentage correctly though. Any ideas?

@tluck someone mentioned earlier changing the cpu to a quad. If one would do this, or someone has a different CPU than yours, should they generate new SSDT with ssdtPRGen? I never thought of this before since with your files the T420 works out of the box, but my hunch would be yes, because of different power states.

Share this post


Link to post
Share on other sites
Posted (edited)

Note: the guide mentions in the post boot steps that running the _kext-install.command or copying kexts to /L/E as optional. I noticed with 2-3 installs, that if I don't do that step, then I don't have sound. After running the scrip, sound works.

Edited by davidian

Share this post


Link to post
Share on other sites
On 5/8/2019 at 10:22 AM, davidian said:

Note: the guide mentions in the post boot steps that running the _kext-install.command or copying kexts to /L/E as optional. I noticed with 2-3 installs, that if I don't do that step, then I don't have sound. After running the scrip, sound works.

Either way is fine. for me, i dont install kexts on my HD anymore. well except with Mojave I install the HD3000 kext in /S/L/E.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   1 member

  • Similar Content

    • By glasgood
      CLOVER DUAL BOOT MOJAVE & WINDOWS 10 GUIDE 
       

       
       
      INCLUDES  MBR / LEGACY BIOS  TO  GPT / EFI CONVERSION
      USING MBR2GPT TOOL
       
       
      PREREQUISITE: Two physical discs ( SSD’s or HDD’s )
       
       
       
       
       
      STEP 1 - Clover dual boot configuration 
       
      Open config.plist with Clover Configurator
       
      Boot
       Legacy = PBR Timeout = True ( will remove the Timeout countdown, from Clover boot menu)  

       
      GUI 
      Scan / Custom
       Entries = True  Tool = True  Legacy = False ( removes extra Windows 10 entries )  
      Hide Volume
      - Preboot ( macOS Preboot )
      - Recovery ( macOS Recovery )
       

       
      So at boot you will have two options: boot macOS Mojave or Windows 10 
       
       
       
       
       
       
       
      ————————————————————
       
       
      STEP 2 - Using a drive without Windows 10 installed
       
      Disconnect system drive that contains your macOS Mojave install from computer ( This is so that Windows does not overwrite existing macOS Mojave boot loader )
       
      Proceed with a Windows 10 UEFI install.  
      After installation reconnect macOS Mojave Drive, the Windows installation should now be detected and usable in Clover. 
      If Windows 10 is not detected or able to boot,  then verify you installed Windows 10 as UEFI and not MBR ---->  ( Read step 2 - For a drive with Windows 10 installed )
       
       
      OR
       
       
       
      STEP 2 - Using a drive with Windows 10 already installed
       
      Verify your Windows install is  GPT / UEFI or MBR / Legacy BIOS.   
      If Windows install is GPT UEFI then Windows 10 install is ready to use at Clover boot menu, you should be able to boot into Windows directly from Clover boot screen. 
       

       
       
      But if  Windows drive is detected at Clover boot screen, but when booting Windows you get a black screen with a cursor on the top left,
      then this is most likely because Windows drive is MBR ( Legacy BIOS ).  You can easily convert MBR to GPT using  Windows MBR2GPT tool ( this saves hours work having to reinstall Windows 10 and setting up all your applications again  ) 
       
      If Windows 10 install is MBR / Legacy BIOS  then simply convert to GPT / UEFI  following instructions below ( read video summary and view video )
       
       
      ** To use Windows 10  MBR2GPT tool  you must have Windows 10 version 1703 ( creators update  ) or later and less than 3 partitions on 
      the Windows 10 drive **
       
      Video summary:
       
      Confirm Windows 10 drive is MBR Legacy BIOS ( in Windows Disk Management ) Reboot into Windows PE ( Advanced Startup ) Convert from MBR Legacy BIOS to GPT UEFI ( using commands below ) mbr2gpt /validate mbr2gpt /convert Restart Verify Windows 10 drive has changed to GPT UEFI ( in Windows Disk Management )  
       
       
       
      After conversion Windows 10 is ready to use at the Clover boot menu 
       
       
       
      STEP 3 - Stop Windows Boot manager from overriding Clover boot manager
       
      How to stop Windows boot manager from overriding your Hackintosh Clover boot manager when using dual booting between macOS and Windows
       
       
       
       
       
       
    • By Averyfreeman
      Dear @tluck 
       
      I have a T460s 20F9-003HUS - I5-6300U 2C 2.4GHz, FHD non-touch, 8GB DDR4, PM961 NVMe, vPro, AMT, etc.
      http://psref.lenovo.com/Detail/ThinkPad_T460s?M=20F9003HUS
       
      I have been following the following thread to hackintosh my T460s:
       but it's very long and hard to sort through, so I thought I'd start a new thread specifically for this issue
       
      Personally, my model has been doing pretty good with just the T460 EFI from github.  I did run the scripts to create and patch a new DSDT, though, after installing patchmatic and iasl.  I also manually installed VooDooPS2Controller.kext by following the guide on RehabMan's git wiki. 
       
      I also re-installed my kexts from CLOVER/kexts/other using kext helper to build them into the kext cache
       
      My only glaring issue is the touchpad.  It's unusably bad, I've had to use a mouse which kinda sucks on a laptop.
       
      It'll be really slow and then all of the sudden be really fast.  It hangs and skips intermittently.  Kind of hard to describe but it's {censored}. 
       
      So far I've tried: 
       
      installing latest version of VooDooPS2Controller, urning off all gestures, modifying speed, patching DSDT with autogen scripts (iASL, patchmatic). 
       
      Has anybody seen this problem?  What do you recommend I do?  
       
      Happy to provide any logs anyone believes would be relevant via pastebin, etc. 
       
      Thank you!
    • By SoThOr
      This was spurred on from a discussion in the Clover General thread. Where there was a debate on bcdedit being able create/read/edit (U)EFI Boot entries. I didn't think it appropriate to post all this information there and somebody may want to make use of this and its likely to get lost in that massive thread.
       
      Out of curiosity I decided to see if I could create an EFI entry using bcdedit. What can I say I like a challenge.  Whilst is not a documented method by Microsoft, as it turns out in a round about way it IS possible to create an EFI entry using bcdedit and these are the steps I went through to add UEFI Shell located on a USB stick to the EFI entries. 
       
      Third party software is available that can create and edit UEFI entries from Windows with better support and more features. I'm just making this information available in case those options are unavailable. 
       
      DISCLAIMER - This is not a supported method. Use at your own risk. I recommend backing up your BCD/Firmware variables/settings beforehand.
       
      1) Copy {bootmgr} entry.
      C:\Windows\System32>bcdedit /copy {bootmgr} /d "UEFI Shell" The entry was successfully copied to {34e8383c-73a7-11e9-9cb0-94de8078a7b5}. 2) Edit the new entry using the new GUID bcdedit generated in the copy step.
        a) Set the device and path for UEFI shell on my USB stick.
      bcdedit /set {34e8383d-73a7-11e9-9cb0-94de8078a7b5} device partition=G: bcdedit /set {34e8383d-73a7-11e9-9cb0-94de8078a7b5} path \EFI\SHELL\SHELLX64.efi   b) Clean up some of the stuff that was copied from {bootmgr} (optional as far as I can tell, just makes things tidier in bcdedit)
      3) Put the new EFI entry first in boot order. (optional)
       
      After completing the steps above, here is what "bcdedit /enum firmware" shows:
       
      I shutdown my computer and when I turned my computer back on it booted up into UEFI Shell. After exiting the shell my PC went on to boot Windows.
      Here is the resulting dump using "bcfg boot dump -v" from that shell:
       
      You may notice that the shell shows as "Windows Boot Manager" in the bcdedit output. This I believe is because of the "WINDOWS" at the beginning of the option data that bcdedit added to the EFI Boot entry. I also believe this why bcdedit shows my Windows 8 installation as "Firmware Application" because it has no option data. I don't know how to remove this data using bcdedit nor do I know how the option data, that bcdedit adds, will affect other EFI applications.

      There might be a way to create the EFI entry without copying the Windows entry but if there is I'm unable to find any documentation on how one would do so. If you use the create command then it just puts it in the BCD and I'm unaware of a way to tell it to create it in EFI instead, other than by doing the above.
    • By cvad
      Small tool to download, compile and build the latest Clover X64 package.
       
       
       

      The script inside is editable.

       
      Enjoy...
       
      Many thanks to the comrade SunKi for help with creating the script.
       
       
       
       
       
      Best thanks - click "Rate File".
       
×