Jump to content
Kogen Mantis

Lenovo ThinkPad T420 with UEFI Only

4,550 posts in this topic

Recommended Posts

I also added Trim patch for enabling SSD Trim support without needing TrimEnabler. (wow, Mavericks boots FAST OOTB. It feels like < 10 seconds to desktop right now.)


                <key>KextsToPatch</key>

                <array>

                        <dict>

                                <key>Comment</key>

                                <string>Replace 4th port with VGA</string>

                                <key>Find</key>

                                <data>

                                AQIEABAHAAAQBwAABQMAAAIAAAAwAAAAAgUAAAAEAAAH

                                AAAAAwQAAAAEAAAJAAAABAYAAAAEAAAJAAAA

                                </data>

                                <key>Name</key>

                                <string>AppleIntelSNBGraphicsFB</string>

                                <key>Replace</key>

                                <data>

                                AQIEABITAAASEwAABQMAAAIAAAAwAAAAAgUAAAAEAAAH

                                AAAAAwQAAAAEAAAJAAAABgIAABAAAAAJAAAA

                                </data>

                        </dict>

                        <dict>

                                <key>Comment</key>

                                <string>Enable TRIM</string>

                                <key>Name</key>

                                <string>IOAHCIBlockStorage</string>

                                <key>Find</key>

                                <data>QVBQTEUgU1NE</data>

                                <key>Replace</key>

                                <data>AAAAAAAAAAAA</data>

                        </dict>

                </array>

 

 

Also, from my old thread, executing these (once) speeds up sleep/wake signficantly:

sudo pmset -a hibernatemode 0
sudo rm /var/vm/sleepimage

Share this post


Link to post
Share on other sites
Advertisement

@manwe150 - nice add. yeah i have the hybrid momentus XT...  and yeah mavericks is fast. 10 seconds (including 3 seconds in GUI!) clover  log show 9:834 seconds.  the little apple circle does about 4-5 rotations never gets to the 6th!

 

i am running clover b2377 - not any real changes since i posted the zip in november. using latest "kext utility" vs "kext wizard" now which adds the right info signatures etc to AppleKextExcludeList.kext - so no more warnings from non-apple kexts during carbon clone etc.

 

@safsprin - did you get the DSDT and custom kexts installed?

Share this post


Link to post
Share on other sites
I forgot to mention that the following dsdt patch causes my speaker to emit a continuous beep after waking my system, so I put it back in:

/* tjl - turn off beep! - 0x01 is turn power on sleep off

                If (LOr (\SPS, \WNTF))

                {

                    \_SB.PCI0.LPC.EC.BEEP (0x05)

                }

*/

Share this post


Link to post
Share on other sites

hmm. sorry about that. odd but good to know! i will look at that - so I put that it back. i think it was a left over when i working on internal speaker after sleep. 

Share this post


Link to post
Share on other sites

thanks a lot tluck for your supports. I installed OSX on my T420 successfully. But the sound does not work! I tried to patch the appleHDA but i found that you did everything! I attatched my codec dump. Please see the dump file and tell me how i can correct the sound. Thank you so much!

codec_dump.txt

Share this post


Link to post
Share on other sites

@zavataafnan - sound will work with these 2 things:

 

1) use the custom/patched DSDT - has the right audio codec defined as layout 12

2) replace AppleHDA.kext with the one in the zip. you must remove or replace the one in /S/L/E

 

@honeywall - the PS2 issue seems to be a UEFI issue. you can validate by booting with chameleon (not sure why CloverEFI on MBR ) is not working for you.

Share this post


Link to post
Share on other sites

@tluck, thanks for your fast reply!

I replace appleHDA.kext with ubuntu!

But i do not know how to use the custom/patched DSDT! Is it possible to introduce me a link to do that?!

Share this post


Link to post
Share on other sites

@zavataafnan.

Read the guide from the link in my signature. in the zip bundle, there is a custom DSDT that is loaded by clover.  and you just pick the one that matches your display size.

Share this post


Link to post
Share on other sites

@zavataafnan - 

 

uh well yeah,  after you install OSX.  how far in the installation guide steps did you get? you will need to install the custom kexts into your /S/L/E folder. then follow instructions to rename the clover OEM folder to boot your system.  if you don't remove the original AppleHDA, the custom one will be ignored. 

Share this post


Link to post
Share on other sites

@tluck

first of all thanks for your support and fast reply!

Yes, I copied the kexts from the Clover folder with ubuntu! OSX starts more faster. But the sound is not working (my button for decreasing and increasing volumes, seems, are working. but the sound is muted). Another thing, trackball is not working after installing the kexts ?(It seems VoodooPS2 was loaded)!!!!!

Share this post


Link to post
Share on other sites

@zavataafnan 

 

why are you doing all this from ubuntu??? it is best to install the kexts from the OSX. sounds like your kexts are not installed right? I use cvad's Kext Utility to copy/install them so it will get the permissions right and update the caches etc. Are you using external speakers (headphone) or built-in internal laptop speakers. if the new AppleHDA installed you will see Internal Speakers and Internal Microphone when hold Option (MS flag) and click on the Speaker Icon on the Menu Bar.

 

Share this post


Link to post
Share on other sites

@tluck

Thank you for your nice utility for kext!

I am really confused! I am using internal speaker and Mic. I attached a screenshot. I am really glad to hearing from you some advice to correct it!

 

 

post-948230-0-87730300-1387220405_thumb.jpg

Share this post


Link to post
Share on other sites

About the first one, I am sure to place AppleHDA.kext to proper place!

But about the custom DSDT.aml, I just changed ProductionId.1600*900 and Productionid137... to 41786KG.1600*9-- and 41786KG.137... !

Is that enough?

Share this post


Link to post
Share on other sites

just change 1 of 2 folders OEM/Product folder to match 41786KG product type.

 

ie

 

$ mv ProductID.1366x768 41786KG

Share this post


Link to post
Share on other sites

@tluck,

Oh, when i changed it correctly, the OSX can not start! OMG.................. when i set to 4236AT9, i can install it but my sound is not working!!!!!!!!

It seems there is no way to correct it! 

Share this post


Link to post
Share on other sites

@tluck

thanks again for your reply!

I do not believe it! I installed it again with your instruction and now i have sound!

Thank you so much for your patient, support and help!

Share this post


Link to post
Share on other sites

hello tluck i just found that if you apply this patch from RehabMan in dsdt the sound from speaker works after sleep :)
 
 #Maintained by: RehabMan for: Laptop Patches
#system_WAK2.txt
 
#
# In 10.8.5 and perhaps later versions of OS X, DSDT method _WAK
# called after resuming from S3 suspend (Sleep, or suspend to RAM),
# is called with garbage in Arg0, where it should be a value
# representing the sleep state being left (1-5).
#
# This causes problems for code in DSDT _WAK method which expects
# and checks against Arg0==3 for wake from sleep to turn on various
# devices or restore internal state to a working state.
#
# This patch adds code at the very beginning of the method to
# force an an out-of-range Arg0 to 3.
#
# See system_WAK1.txt for an alternate patch
#
 
into method label _WAK code_regex ([\s\S]*) replace_matched
begin
If (LOr(LLess(Arg0,1),LGreater(Arg0,5))) { Store(3,Arg0) }\n
%1
end;

Share this post


Link to post
Share on other sites

Just posted a bundle updated for 10.9.1 ... Clover UEFI on T420 Guide

 

17-Dec-2013

  • Updated for 10.9.1 - AppleHDA.kext v2.5.3 patched
  • Updated Clover to b2377
  • Minor teaks for DSDT and config.plist
    Note: Still no internal speaker on resume for sleep - even with RehabMan's _WAK patches - must power off/on after wake to get speaker to work.

@sot_22 - Bummer. if it works for you thats great. I tested RehabMan's patch (it is included in the this bundle) on my box - but nothing changed - speaker still dead after wake. I fear there is a bit more to this issue... To resume the speaker, I must power all the way off - a reboot will not reset the audio HW. If you really need the speaker, then if you roll back to the AppleACPIPlatform.kext from 10.8.4 there is no issue with the speaker.  However, for me, I am using the Mavericks AppleACPIPlatform since I get better sleep/wake for my eSATA disk AND I don't really care about the internal speaker as I use headphones or real speakers!

Share this post


Link to post
Share on other sites

tluck i'm using the latest maverick acpiplatform not rollback and had the same problem with speaker , only power off and on will resume it (not reboot) but with wak2 patch it works now after sleep , i don't know maybe x220 has some different function but the only patches i applied to my dsdt and now the speaker work is 

system_Mutext.txt and wak2 from rehabman https://github.com/RehabMan/Laptop-DSDT-Patch

 

anyway if i find something i'll post , thank you for patched appleHDA i'm gonna try it right now 

 

note: i'm using latest chameleon

 

i tested it again with your 10.9.1 appleHDA , speaker works after sleep  and like you say its minor issue that me too don't really care about cause the speaker is {censored} anyway :) 

Share this post


Link to post
Share on other sites

@sot_22 - well good news (for you!)  - but maybe be we can track down the something else that needs to be patched on the T420. certainly seems ACPI related. ... i tried the both patches - mutex and wak2 patch - and got dead speaker. 

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   0 members

    No registered users viewing this page.

  • Similar Content

    • By Reel
      All work 10.10, 10.11, 10,12
      camera not work in 10.13, 10.14
      You need SwitchResX that the screen does not freeze
      Custom resolutions: Back porch - lines change to 2
      UEFI boot moded bios https://github.com/Thiblizz/l502x-modded-bios
       
      For 10.14 you need: HD3000 Fix for Mojave.zip
      Installed in S/L/E 
       
      SMBIOS: MacbookPro 8.3 or MacbookPro 9.1
       
       

       

       
       
    • 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 
       
       
    • By SepehrM
      I'm trying to install High Sierra 10.13.3 on an ASUS N552VW laptop, and I get stuck after this message:
      "could not recover SATA HDD after 5 attempts, terminating" 
      And some other warnings afterwards.
      Specs:
      CPU: Intel Skylake 6700HQ 2.6GHz
      RAM: 16GB DDR4
      2TB HDD + 128GB SSD
      GPU: Intel HD Graphics 530 + Nvidia GTX960m
      I'm installing using a 16GB USB3 flash drive on one of HDD volumes (UEFI Mode)
       
      I uploaded the verbose log and clover config.plist
      config-new.plist

    • By Leinad12
      Olá a todos.
      Estou com o macOS Mojave instalado num Lenovo 305 (com um i3 5005 e uma HD 5500) porém tou com um problema.
      Sempre que o computador entra em pausa (Sleep) não consigo voltar a "acordar" (Wake).
      Alguém pode me ajudar pf?
×