Jump to content
K0gen

Lenovo ThinkPad T420 with UEFI Only

4,865 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

@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 TomZanna
      Hi, I'm trying to install Mac Os Catalina on a HP 550-132NL.
      The system has:
      i7-6700
      RAM 12 GB
      GT 730
      LAN Realtek RTL8161
      ALC3863
       
      It passes the verbose phase but after the Apple logo goes away, it gets stuck on a grey screen and I can only move the pointer.
      Can I try to boot with the iGPU?
       
      origin.zip
      CLOVER_dGPU_USB_3.zip
    • By MaLd0n
      --Donations via PayPal--
      https://tinyurl.com/r2bvzm7
       
      --Original Topic--
      https://www.olarila.com/topic/6874-olarila-hackbook-lenovo-ideapad-s145-mojave-catalina-full-dsdt-patches/
       

       
      -Perfect HackBook, HDMI Audio/Video, Bluetooth, AirPlay, Sleep, Lid Sleep, Auto Sleep, Audio, etc!
      -Wifi card has been replaced with Dell DW1560!
      -I'm using a S145-15IWL Model with Intel Core i5 8265u / Intel UHD Graphics 620
      -Update bios/uefi to last version
       
      --Installation--
      https://www.olarila.com/topic/5794-guide-install-macos-with-olarila-image-step-by-step-install-and-post-install-windows-or-mac/
       
      --Clover Folder--
      Just paste EFI folder inside EFI partition
      https://www.olarila.com/files/Clover.Folder/Lenovo IdeaPad S145.zip
      Notebooks with ELAN trackpad use it with my folder above
      IdeaPad S145 ELAN.zip
       
      Bluetooth Broadcom
      Bluetooth Broadcom.zip
       
      CPUFriend for i5-8265U
      CPUFriend i5-8265U.zip
       
      --Full DSDT Patches--
      -My DSDT
      DSDT Lenovo IdeaPad S145.zip
       
      This DSDT work on S145-14IWL, S145-15IWL, V14-IWL, V15-IWL models
      -Patches
      -FIX ERRORS AND WARNINGS -REMOVE UNUSED SCOPES / DEVICES -HIGH PRECISION EVENT TIMER -SATA SERIE 11 ID -DMAC -REMOVE LINES, PROBLEMATIC and UNUSED -SLPB -DARWIN / WINDOWS 2015 -XHCI -PLUGIN TYPE -HDAS to HDEF -HDEF -REAL TIME CLOCK -ARTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -FWHD -USBX -PMCR -PPMC -XSPI -GMM -IMEI -EC -PRWs -_DSMs -PNLF -BRIGHTNESS KEYS -I2C -NATIVE USB -ARPT -GFX0 -DTGP -kUSBCompanionIndex -io-device-location -FULL RENAMED DEVICES   --IGPU Patch--
      Video solution with HDMI Audio and Video
      <key>PciRoot(0x0)/Pci(0x2,0x0)</key> <dict> <key>AAPL,GfxYTile</key> <data> AQAAAA== </data> <key>AAPL,ig-platform-id</key> <data> CQClPg== </data> <key>device-id</key> <data> pT4AAA== </data> <key>enable-hdmi20</key> <data> AQAAAA== </data> <key>framebuffer-con0-alldata</key> <data> AAAIAAIAAACYAAAA </data> <key>framebuffer-con0-enable</key> <integer>1</integer> <key>framebuffer-con1-alldata</key> <data> AQEJAAAIAADHAQAA </data> <key>framebuffer-con1-enable</key> <integer>1</integer> <key>framebuffer-con2-alldata</key> <data> AgYKAAAEAADHAQAA </data> <key>framebuffer-con2-enable</key> <integer>1</integer> <key>framebuffer-fbmem</key> <data> AACQAA== </data> <key>framebuffer-patch-enable</key> <data> AQAAAA== </data> <key>framebuffer-stolenmem</key> <data> AAAwAQ== </data> <key>framebuffer-unifiedmem</key> <data> AAAAgA== </data> <key>hda-gfx</key> <string>onboard-1</string> <key>model</key> <string>Intel Corporation, Cannon Point-LP Iris Plus Graphics 655</string> </dict>   --Native USB Fix for Notebooks - No Injector/Kext Required--
      https://www.olarila.com/topic/6878-guide-native-usb-fix-for-notebooks-no-injectorkext-required/
      https://www.olarila.com/topic/6181-guide-native-usb-fix-for-desktops-no-injectorkext-required-skylake/
       
       
      -ScreenShots

































      -Links
       
       
      Clover https://github.com/CloverHackyColor/CloverBootloader
      AirportBrcmFixup.kext https://github.com/acidanthera/AirportBrcmFixup
      AppleALC.kext https://github.com/acidanthera/AppleALC
      Brcm Bluetooth https://github.com/acidanthera/BrcmPatchRAM
      Lilu.kext https://github.com/acidanthera/Lilu
      SystemProfilerMemoryFixup.kext https://github.com/Goldfish64/SystemProfilerMemoryFixup
      VirtualSMC.kext https://github.com/acidanthera/VirtualSMC
      VoodooI2C.kext https://github.com/alexandred/VoodooI2C
      VoodooPS2Controller.kext https://github.com/acidanthera/VoodooPS2
      WhateverGreen.kext https://github.com/acidanthera/WhateverGreen
      MaciASL - https://github.com/acidanthera/MaciASL
      acpica - https://github.com/acpica/acpica
      AptioMemoryFix.efi https://github.com/acidanthera/AptioFixPkg
      ApfsDriverLoader.efi https://github.com/acidanthera/AppleSupportPkg
      HFSPlus.efi https://github.com/JrCs/CloverGrowerPro/blob/master/Files/HFSPlus/X64/HFSPlus.efi?raw=true
      Hackintool https://github.com/headkaze/Hackintool
       
      -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!
       
      Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad, Sampath007, onemanosx, erroruser, Jenny David, Olarila Facebook Community, Hackintosh Facebook Community and many others!
       
      We're all here to have fun and learn from each other!
    • By mikezexter
      (Dear moderators please replace this topic to another category if I made a mistake in choosing it)
       
      Hello everybody. I need some help in trying to fix native AppleHDA sound on my X230T.
      VoodooHDA works perfectly but without needed HDMI audio channel so I need to try fix my sound in native mode.
       
      AppleALC told us here (README) that in v1.2.1 Added ALC269 layout-id 18 for Thinkpad X230 by Hypereitan. And if it works I didn't need to create this topic.  Unfortunately layout ids 1,2,3,18 and 55 didn't help me to fix sound issue.
       
      My Clover: https://drive.google.com/open?id=1FuGS7iE59ydgiMsxZcDMarlAFH3FliNE (it's 2 MB bigger than I could upload for now)
      I've also uploaded some screenshots of what I've seen after 5 reboots in a row changing layout ids. Please help me to fix this issue.
       
    • By MaLd0n
      ---TUTORIAL---
      https://www.olarila.com/topic/5794-guide-install-macos-with-olarila-image-step-by-step-install-and-post-install-windows-or-mac/
       
      --Original Post--
      https://www.olarila.com/topic/6531-olarila-hackbeast-z390-designare-thunderbolt-full-dsdt-patches-clover-opencore/
       
      --Bios/UEFI Settings--
       
      *Update bios/uefi to F7+*
      1- Go to M.I.T./Advanced Frequency Settings tab
       
      Extreme Memory Profile (X.M.P.) - Profile 1
       
      2- Go to BIOS tab
       
      CSM Support - Disabled
       
      3- Go to Peripherals/Thunderbolt(TM) Configuration tab
       
      Security Level - No Security
      Thunderbolt USB Support - Enabled
      GPIO3 Force Pwr - Enabled
       
      4- Go to Chipset tab
       
      Internal Graphics - Enable
       
      ---CLOVER FOLDER---
      https://olarila.com/files/Clover.Folder/EFI CLOVER Z390 DESIGNARE.zip
      *Use this folder with FULL DSDT PATCHED
       
      ---OPENCORE FOLDER---
      https://www.olarila.com/topic/6364-mojave-catalina-on-mobos-series-100200300-with-opencore-bootloader/
      *Use this folder with FULL DSDT PATCHED
       
       
      ---Extract one Full dump for DSDT edits, post files---
       
      RunMe.app
       
       
       
      ---HARDWARE---
       
      --MOBO

      GIGABYTE Z390 DESIGNARE
      -Link
      https://www.amazon.com/Z390-DESIGNARE-Gigabyte-Thunderbolt-Motherboard/dp/B07K8RJZRG/ref=sr_1_1?keywords=Z390+DESIGNARE&qid=1565492390&s=electronics&sr=1-1

      --PROCESSOR

      Intel Core i9-9900K
      -Link
      https://www.amazon.com/Intel-i9-9900K-Desktop-Processor-Unlocked/dp/B005404P9I/ref=sr_1_1_sspa?keywords=Intel+Core+i9-9900K&qid=1553358099&s=gateway&sr=8-1-spons&psc=1

      --COOLER

      CORSAIR H100i RGB PLATINUM AIO Liquid CPU Cooler
      -Link
      https://www.amazon.com/CORSAIR-H100i-PLATINUM-Liquid-Cooler/dp/B07JWB5BSN/ref=sr_1_4?keywords=WATER+COOLER+CPU&qid=1565492509&s=gateway&sr=8-4

      --MEMORY

      Corsair CMW32GX4M2C3200C16 Vengeance RGB PRO 32GB (2x16GB) DDR4 3200 (PC4-25600)
      -Link
      https://www.amazon.com/Corsair-CMW32GX4M2C3200C16-Vengeance-PC4-25600-Desktop/dp/B07GTG2T7L/ref=sr_1_15?keywords=memory+ddr4+32&qid=1553358238&s=gateway&sr=8-15

      --GPU

      MSI RX Vega 64 AIR Boost 8G OC
      -Link
      https://www.amazon.com/MSI-RX-64-AIR-8G/dp/B07DH7S1X1/ref=sr_1_2?keywords=vega+64+gigabyte&qid=1565492819&s=electronics&sr=1-2

      --SSD

      Samsung 970 EVO 1TB SSD (MZ-V7E1T0BW) NVMe M.2 V-NAND
      -Link
      https://www.amazon.com/Samsung-970-EVO-1TB-MZ-V7E1T0BW/dp/B07BN217QG/ref=sr_1_1?keywords=s+samsung+970+evo+1tb&qid=1565493002&s=electronics&sr=1-1

      --POWER SUPPLY

      EVGA Supernova 1000 P2 80+ Platinum, 1000W ECO Mode Fully Modular 
      -Link
      https://www.amazon.com/EVGA-Supernova-Platinum-Crossfire-220-P2-1000-XR/dp/B00EKJQM5E/ref=sr_1_3?keywords=power+supply+1000w&qid=1565493196&s=gateway&sr=8-3

      --WIRELESS

      TP-Link Archer T9E
      -Link
      https://www.amazon.com/TP-Link-Archer-T9E-Beamforming-Technology/dp/B00TQEX7AQ/ref=sr_1_1?keywords=TP-Link+Archer+T9E&qid=1553358397&s=gateway&sr=8-1

      --CASE

      Thermaltake Core P5 Tempered Glass Black Edition ATX Open Frame Panoramic Viewing
      -Link
      https://www.amazon.com/Thermaltake-Tempered-Panoramic-Certified-CA-1E7-00M1WN-03/dp/B01N4IGVSC/ref=sr_1_2?keywords=Thermaltake+Core+P5&qid=1565493567&s=gateway&sr=8-2

      --DSDT Patches--
      -FIX ACPI ERRORS -FIX OEM SSDTs to AVOID ERRORS AND WARNINGS -REMOVE UNUSED SCOPES / DEVICES -HIGH PRECISION EVENT TIMER -SATA -DMAC -REMOVE PROBLEMATIC AND UNUSED DEVICES -FIX K.P in REBOOT -SLPB -DARWIN / WINDOWS 2015 -XHCI -PLUGIN TYPE -HDAS to HDEF -HDEF -REAL TIME CLOCK -ARTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -FWHD -USBX -PMCR -PPMC -XSPI -CNVW -GMM -IMEI -EC -PNLF -ARPT -GFX0 -NVME -DTGP -ACQUIRE MUT0 0XFFFF -MUTEX MUT0 0x00 -EXTERNAL REFERENCES -UNKNOWNOBJ -HDMI / HDAU -FULL RENAMED DEVICES ---SCREENSHOTs---




















      -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!
      Thanks to KGP for SSDT Thunderbolt
      Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad, Sampath007, onemanosx, erroruser, Jenny David, Olarila Facebook Community, Hackintosh Facebook Community and many others!
      We're all here to have fun and learn from each other!
×