Jump to content

Lenovo ThinkPad T420 with UEFI Only

* * * * * 10 votes UEFI ThinkPad T420 Lenovo Clover

Best Answer tluck, 08 October 2013 - 02:47 PM

21-August-2014 - 10.10 DP6/Beta Update

  • Clover updated to v2830
  • FakeSMC updated to 6.10.1323
  • ACPIBacklight.kext - v2.0.3 - with modified code to fix/workaround for LCD brightness in Yosemite.
  • added drop table MCFG for Nvidia/Optimus (mixed gfx)
  • added 10.10 kext folder (AppleHDA.kext and BroadcomBluetooth kext are different than Mavericks)
  • I originally used Toleda's yosemite installer to make my USB - but its no longer necessary for Beta or later, just follow the 10.9 Mavericks method

30-June-2014 - 10.9.4 update

  • Clover updated to v2747
  • 10.9.4 - 2 custom kexts updated in 10.9.4 since 10.9.3 -  AppleHDA.kext and BroadcomBluetooth kext must be replaced if you do the Update installation. 

25-June-2014 - changes since 22-May

  • Clover updated to v2721
  • Collapsed Clover folders to remove OEM - common configuration set for both USB installers and on the HD.  (also can boot Recovery HD)
  • FakeSMC.kext updated to v6.8.1315
  • VoodooPS2Controller.kext updated to v1.8.13 - modified Info.plist(s) to add LENOVO T420 keys. Removed HP and few other non-relevant options in various Info.plist files
    Note: TrackPad pressure FingerZ value set to 47 - up from default of 30  - change to suite your touch in VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2TrackPad.kext/Contents/Info.plist
  • DSDT mods to KBD device - renamed to PS2K and added LENOVO OEM-ids for VoodooPS2Controller to use.
  • Revised Pike's ssdt generation script and included local copy of iasl

22-May-2014 - 10.9.3 update - changes since 10.9.2

  • Clover updated to v2671
  • Kexts updated to OSX 10.9.3
  • FakeSMC.kext updated to v6.8.1307
  • Recompiled/fixed up VoodooPS2Controller 1.8.11 for double click issue on TrackPoint buttons
  • Revised (again) top-level config.plist for "DSDT-less" OS install, Clover patches built-in on-the-fly
  • Fixed up ssdtPRgen-clover.command script to copy ssdt.aml into proper ESP OEM location when mounted.
  • Added RehabMan's ACPIBacklight.kext v2.0.2 for smoother dimming. (patched DSDT included)
  • RehabMan's DSDT mods to PNLF for ACPIBacklight.kext to function (adds wider smoother LCD brightness range)

T420 users:

 

Attached is a current full /EFI pack for the T420 for Clover and OSX 10.8.5 (12F45) and 10.9.4 (13E28).

 

Caveats:

My system is a T420 1600x900 LCD with dedicated Intel HD 3000 Graphics Only ... So can't speak to enabling Nvidia gfx myself.  This is a zip contains what is working for me. The guide outlines the 2 phases: (1) how create a USB installer and install OSX, and (2) run OSX for your HD. If your HW is not similar as mine, the included DSDT and configuration files may need to be retrofitted to work for your system. 

 

Highlights:

  • A config.plist + kexts for Clover to boot without a custom DSDT file for the OS install 
  • Separated by LCD size -  config.plist with a custom DSDT for Clover to boot via UEFI, post OS install
    • ACPI.1600x900 folder - has dsdt.aml for high-res LCD with DualLink=1 and injects a good/patched EDID
    • ACPI.1366x768 folder - has dsdt.aml for low-res  LCD with DualLink=0 and no injected EDID
    • Note: the CPU section is not needed in the config.plist anymore, as Clover computes Bus Speed ok in later revs - check it though! should be around 99676 - 99700 to keep system clock accurate.
    • A current Clover and Kext Bundle for 10.8.5+10.9.3 is here in this post
  • An older non-maintained Kext Bundle for 10.8.4 is in post #241

ACPI Notes:

  • the new DSDT conforms (more) to the native unmodified kexts ACPI spec... may not have to replace the AppleACPIPlatform.kext.
  • AppleACPIPlatform.kext v2.0 (10.9.x) works with new DSDT
  • AppleACPIPlatform.kext v1.8 (10.8.5) works with new DSDT
  • AppleACPIPlatform.kext v1.7 (10.8.4) works but does not wake as well when you have external eSATA/USB drives.  
  • Notes:  there are kext folders for 10.8 and 10.9 - but many of the kexts are the same.

 

Custom Kexts

 

- use kext inject or install in /S/L/E (/System/Library/Extensions).

  • FakeSMC.kext (v6.x.xxxx) - Core hack mechanism. Using Kozlek's version + plugins - Note: Follow link to download full package - so you can install HWMonitor.app etc (no need to re-install FakeSMC.kext unless there is a newer rev - so if you do install - just select these 2 Plugins Sensors: ACPI and CPU)
  • AppleIntelE1000e.kext (v2.4.14) - Ethernet (gigE) - goes in /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns
  • VoodooPS2Controller.kext (v1.8.13) - RehabMans's PS2 Keyboad/Trackpad -   Note: Follow link to get full package and installation instructions to install daemon and pref-panel 
  • ACPIBatteryManager.kext (v1.52) - RehabMan's kext configured for v3 ACPI instructions to show/track battery info on menu bar
  • ACPIBacklight.kext (v2.0.3) - RehabMan's kext for smoother/enhanced LCD backlight (dimming) control.
  • IOAHCIBlockStorageInjector.kext -  configured to make just the DVD device appear internal so iDVD player works. 

Mountain Lion (10.8.5)    These kexts are 10.8.5 specific:

  • AppleHDA.kext (v2.4.7 patched from 10.8.5)- for full audio support - note: requires matching DSDT sections using Conexant Codec and layoutID 12. Note: AppleHDA.kext has Manwe150's fix/additions for dock ports.
  • BroadcomBluetoothHostControllerUSBTransport.kext (v4.1.7 with patched Info.plist from 10.8.5) - adds ProductID 8575 to make BT work! Put/replace one in /S/L/E/IOBluetoothFamily.kext/Contents/PlugIns

Mavericks (10.9.4)     These kexts are 10.9 specific:

  • AppleHDA.kext (v2.6.3 patched from 10.9.4) - for full audio support (analog and DisplayPort/HDMI) Note: requires matching DSDT HDEF device sections using layoutID 12. (kext is patched for CX20590 codec)
  • BroadcomBluetoothHostControllerUSBTransport.kext (v4.2.6 with patched Info.plist from 10.9.4) - adds ProductID 8575  in Info.plist to make BT work better! Put/replace one in /S/L/E/IOBluetoothFamily.kext/Contents/PlugIns

​10.*-Chameleon - extra patched kexts for use with Chameleon 

  • AppleIntelCPUPM.kext (patched 10.8.5 and 10.9.3) - not really necessary to install/replace with clover since it does the patching. Optional Install in /S/L/E for Chameleon compatibility.

General Notes, Fixes, and Features of the Zip

  • Clover configuration files (config.plist) 
     a ) config.plist               - (default) to use the custom DSDT and WITH extra Clover patching
     b ) config.nodsdt.plist   - this testing version - everything works except battery levels
                                           - remove/rename DSDT.aml and use built-in/BIOS DSDT with Clover patching
  • Model is to set MacBookPro8,1 explicitly in config.plist. (needed to get proper DP/HDMI/DVI/VGA FrameBuffers)
  • Zip includes extra and custom kexts plus cVad's Kext Utility v2.5.7 for easy kext installation (or you can use manual kext  _install_SLE.bash script)
    Note: VoodooPS2Controller keyboard mappings have 3 or 4 finger swipe left/right to back/forward for browsers configured.
  • removed ssdt.aml files from zip and added ssdtPRgen-clover.command script so you can create your own SSDT P/C state tables
  • High-res vs low-res config.plist (and DSDT) are very consistent - difference is EDID and DualLink settings.
  • Note: for 1600x900 the EDID is injected by Clover and is also in the 1600x900 version of the DSDT for - there are 2 sets of timings for 60 and 50 Hz options
  • Added folder for Displays/Overrides (for more natural color gamma curves and more screen size options) in this zip
  • Swapped out VBoxHFS-64.efi for HFSPlus-64.efi - supports installation bundles and Recovery HD better.
  • Clover patches string for SNBFrameBuffer kext to fix LCD brightness max level - now its the same brightness before and after sleep. Thanks to Timewalker75a (again!)
    Note: this same kext 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 you can either not do this! Or replace the 3rd port (DP) if you want the VGA.
  • Thinkpad theme (updated) to show badge (disk type) and added a Mavericks and Yosemite Icons instead of using generic apple.
  • ScrLk and Pause keys change LCD brightness. ThinkPad button toggles fan to high speed.
  • Alt key is the Command key and Microsoft flag key is the Option key.

DSDT tweaks since 10.8.x version:

  • DSDT includes source and binary with recent patches (some beyond Clover and manwe150's original post edits)
  • 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.

  • For 1600x900 LCDs, added an EDID that removes infamous HD 3000 glitches and buffer hangs.

  • PNLF additions from RehabMan for smoother LCD backlight control with ACPIBacklight.kext

 

INSTALLATION GUIDE

 

BIOS settings:

- Most defaults settings will work - but make sure SATA is set to AHCI mode and disable VT-d in the Virtualization option.

- Disable Nvidia/Optimus (use HD 3000 only unless you really know what you are doing!)

- The custom DSDT is based off BIOS v1.46 (flashed with whitelist mod or original)

 

Part 1 - OS Installation

 

Install (or reinstall/update) OS X to a GUID/GPT formated disk from a USB using the standard Install OSX .app

You can use this zip to build a Clover-based USB installer and then install on HD for UEFI boot.

  • For Mountain Lion (10.8.x) USB installer
  1. Download Mountain Lion from the App Store - puts in /Applications
  2. Partition an 8GB USB as GUID (use option menu to change from MBR) - name this partition USB
    Note: if you have a larger USB (say 16GB) you can split into 2 8GB partitions, so you can have 10.8.x and 10.9.x installers on the same USB key
  3. Use Disk Maker to create an Installer from the downloaded Install Mountain Lion OSX.app

    Note: you may need to disable BlueTooth in the BIOS to install 10.8.5 directly. Enable later when you boot up.
  • For Mavericks (10.9.x) and Yosemite (10.10.x) USB installer
  1. Download latest Mavericks from the App Store - default location is in /Applications
  2. Partition an 8GB USB as GUID (use option menu to change from MBR) - name this partition USB
    Note: if you format the USB as MBR, then you will need to install the Clover boot tools (after) - see note at the bottom.
  3. Run this command:
    sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ OS\ X\ Mavericks.app —nointeraction
    
  • Common steps
  1. manually mount ESP of USB and copy the entire EFI folder (from the zip) onto USB ESP
    For example, assuming the USB is disk2:

    sudo mkdir /Volumes/ESP-USB
    sudo mount -t msdos /dev/disk2s1 /Volumes/ESP-USB
    sudo cp -a ~/Downloads/T420/EFI /Volumes/ESP-USB

    Note: run "diskutil list" on the command line to find your USB disk
             if your USB is MBR format - just copy the EFI structure to the / (root) of the main partition instead!

     

  2. Setup configuration files to match your LCD resolution in /Volumes/ESP-USB/EFI/CLOVER:
    1. ​​​Rename ACPI.1600x900 to ACPI or rename ACPI.1366x768 to ACPI
    2. Rename config.1600x900.plist to config.plist or rename config.1366x768.plist to config.plist
       
  3. Boot from USB and select Install OSX
     
  4. Install on your GUID OSX partition!

TIP: enable debug mode for Disk Utility to see all the partitions (such as hidden EFI). From the Terminal command line, run this:

sudo defaults write com.apple.DiskUtility DUDebugMenuEnabled 1

Part 2 - Post OS Installation and Setup on HD

  1. Boot Clover from USB - but now select the new OS X partition to start OS X. 
    This will boot up OS X with Clover using the custom kexts with the "top" level config.plist.
     
  2. Install Clover on to HD 

    a ) Run the full Clover_v2k_rxxxx.pkg to install the related latest bits into the HD OS and ESP (usually partition 1) of disk0. Use the link to download the pkg from SourceForge.  You can do this step later on if you don't have way to get it before you are setup on the network. Select (check box) at least first 2 items! This picture shows a good set of overall options:
    [attachment=134184:clover-pkg-install.png] After you close the pkg installer, then follow these step:

    b ) REPLACE the ESP (EFI folders) contents with the exact CLOVER folder as your setup on USB from steps above. If not still automatically mounted by the installer pkg, manually mount the ESP of your HD on say /Volumes/ESP. Then copy and replace the folders /Volume/ESP/EFI/CLOVER and BOOT from the USB installer you just built and used.
     
  3. Install custom kexts on HD
    • Recommended: Use the folder with its config.plist with the custom dsdt.aml (as is) to start.  And install the custom kexts from the zip folder to the /System/Library/Extensions folder. 

      Install these kexts from the zip folder EFI/CLOVER/kexts/10.[8 or 9] by either method:
      - if you don't have a GUI, use the included shell script _kext-install-SLE.bash
      OR 

      - if you have a GUI, then use the Kext Utility tool (from cvad included in Utilities folder). 

      Note: If you choose to NOT install the custom kexts in the OS /S/L/E folder, then modify the config.plist to force injection of these custom kexts. Note: Injecting AppleHDA and BroadcomBluetooth kexts from the ESP may conflict unless the originals are removed from /S/L/E. 
       
  4. Install (copy) the DisplayVendorID-* folders
    These are from the zip file and should be put in /System/Library/Display/Overrides
    Note: These provide alternate color correction and gamma curves as well as more screen sizes for just a few LCD models. 
     
  5. Reboot - Boot Clover from HD vs USB.
    Hit the spacebar on your boot selection (OSX) to start up
     without kext caches to make sure it loads all the custom kexts just installed. 
     
  6. Ethernet Device Install
    Note: This step is optional but usually needed after a fresh OS install.
    This loads the ethernet kext and resets network device order to have ethernet as en0 (may help with iMessage etc)
    Run this set of commands in a terminal window:
    sudo kextload /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleIntelE1000e.kext
    sleep 10
    sudo rm       /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
    
  7. Create a custom SSDT
    This is for proper P/C states to match system (optional - but this tool may do a better job than Clover) 
    Run the custom ssdtPRgen-clover.command script in Zip Utilities folder. It should ask you if you want copy ssdt.aml to your ESP ACPI/patched folder, otherwise copy/move ssdt.aml to the same location as your custom dsdt.aml 
    which is: /Volumes/ESP/EFI/CLOVER/ACPI/patched

    Note: it will copy iasl from the Utility folder to /usr/local/bin/iasl

     
  8. Reboot a final time to use the new SSDT table (and other changes from last 3 steps)

 

Known Issues:

  • E1000e ethernet hang: with the 2.5.4d and 3.0.4.x version of the Intel E1000e ethernet kext, I have seen some random problems. I rolled back to v2.4.14 and have not had issues lately. The issue crop up under heavy file copy/transfers and your ethernet stops working with a lot of log messages that only a reboot fixes. 

Note: the 4 problems listed below happened with earlier versions of Clover, but on 10.9.2 or later, and with the rewrite of Clover and OsxAptopFixdrv-64.efi, these UEFI/ESP issues are seem to be a thing of the past.

  1. putting to sleep can result in flashing/hung state

  2. built-in keyboard mute button can totally freeze system - works fine from software (i.e. apple bluetooth KB)

  3. shutdown may not go all the way to full power off (OS shuts down but at black screen with fans/lights on)

  4. built-in PS2 keyboard/trackpad may disappear after sleep/wake 

Optional: Boot with Clover on MBR USB

 

One can still boot from the HD using UEFI. But one can also create a bootable MBR formatted USB with CloverEFI. This boot method may mitigate or eliminate any random UEFI issues. The exact same EFI folder can be used. To make a bootable MBR USB:

  1. Format the stick as MBR (which is usually the default) with a single FAT32 partition named USB.
  2. Optionally copy the OSX installer to USB (same command for GUID USB above) but must be done before steps below!
  3. Then with Clover_v2k_rxxxx.pkg, install to the USB for "legacy CloverEFI" boot.  That is: Uncheck the top 2 items, and in Bootloader check the 2nd option to install boot0af.
  4. After the Clover pkg installer is finished and closed, then replace the EFI/CLOVER folder just like you did on the HD. the EFI/BOOT folder is not needed. Note: the HD ESP EFI folder and USB EFI folder should be exactly the same now.
  5. Then from the BIOS, set USB-HDD as top boot option (so you don't have manually boot from USB vs the HD)
Go to the full post


  • Please log in to reply
1312 replies to this topic

#101
dmazar

dmazar

    InsanelyMac Sage

  • Coders
  • 265 posts
  • Gender:Male
Yes, at least it should work as before. So this is good. Thanks for testing.

#102
Tetonne

Tetonne

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 251 posts
new pack for 10.8.3 see post 238 there
Thanks to

tluck



#103
Espamac

Espamac

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts

Hi there!

Since you guys are using EmuVariableUefi driver when using Clover, please test new version. Details here: http://www.projectos...indpost&p=28411

Thanks.


Hi there,

The EmuVariableUefi driver seems to be working alright on my X220 but the CLOVERX64 driver made the whole boot really slow with lots of error messages. I couldn't get passed a white screen at the end after some fatal error related to SuperIODevice (I couldn't copy).

So I'm keeping only the EmuVariableUefi and discarding the other. UPDATE: this file is also causing the same problems as the cloverx64 driver; slow boot, lots of errors and the trackpad doesn't work after completing the boot (around 5 minutes...).

My system is now working more or less properly :thumbsup_anim: I have to recognise my utter dumbness: I wasn't placing the modified DSDT on the Patched folder but on the ACPI one, so nothing made sense and none of the changes applied on the dsdt worked.

The internal WWAN card is recognised and works with a valid SIM card on 3G networks, very fast and convenient. To connect I use this script:
http://www.mydellmin...module-osx.html
The setup is pretty straightforward if you know your service provider settings.

USB 3.0 works perfectly with the code added to the info.plist file suggested by Kogen Mantis on post #70.

I have sound working with the latest kext used by tluck (previous post). I have a slight sound distortion on higher volume outputs not present in Linux. Any idea of what values can be modified so I can play a little?

Bluetooth does not work because it is associated to the WLAN card. I'm still thinking about flashing the BIOS, I'm scared I'll brick my system :worried_anim: Do you need windows running to flash the BIOS? at the moment I only have OS X.

In my case the two finger scroll was working in the opposite direction, that can be changed setting the MultiFingerVerticalDivisor line to -1 found on the VoodooPS2Controller.kext->Contents->Plugins->VoodoooPS2Trackpad.kext->Contents->Info.plist

Brightness works adding the PNLF code on the DSDT. But it is too high :thumbsdown_anim: , the minimum setting is way higher than the minimum in Linux and it kills the battery. It's particularly annoying in a very dark room. Any ideas? I can't find the BNC, BNL and BNQ methods in my dsdt, where would you place them? Should I modify something on the info.plist?

The fingerprint reader works perfectly using the TrueSuite software from Authentec (http://support.authe.../TrueSuite.aspx).

#104
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 619 posts
  • Gender:Male
  • Location:NC, USA
i just switched over to Clover yesterday. i have dual boot osx and win7 (native uefi).
there is a learning curve for sure!!!

i am currently using b1208. i tried the b1316 (with the new directory layout ) but shows 12 GB of memory instead of 8GB so i backed off. + the b1316 shell crashes.

btw, what does emuvariableuefi do exactly?! - i have in place but was just curious as to what it fixes.
definitely needs the osxaptioFixDrv or the boot just hung after reading the kernel cache!

@k0gen - thanks!

#105
Kogen Mantis

Kogen Mantis

    InsanelyMac Protégé

  • Donators
  • 98 posts
  • Gender:Male
It's been awhile since my last post. Just wanted to let everyone know that thanks to cayspekko's donation I'm back and running with my T420 LCD screen replaced to a new one. Thank You again cayspekko!

It is good to see that people are progressing with the UEFI setup. Because I have lost all my previous work with the mSATA that is waiting to be found in my house - somewhere :) - I'll start from the beginning using my internal HDD. I'm not sure yet if I want to keep the windows by preparing dualboot setup but for sure I'll experiment a bit on my new motherboard original/older UEFI Bios (83ET65WW - 1.35 - no whitelist).

... btw, what does emuvariableuefi do exactly?! - i have in place but was just curious as to what it fixes.
definitely needs the osxaptioFixDrv or the boot just hung after reading the kernel cache!

@k0gen - thanks!



I'm not an expert - I guess dmazar should answer that - but if I understand it correctly the EmuVariableRuntimeDxe is essential for us (Phoenix UEFI users) to avoid long bootup time because of no runtime services are being present.
So instead of real NVRAM variables from the firmware we use emulated runtime variables from the memory to speed up the boot up time proces.

#106
Tetonne

Tetonne

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 251 posts
I'm using clover 1344
tluck's dsdt.aml & AppleIntelSNBGraphicsFB.kext
DualLink to 0
i've 4 screens on my LCD (like i use to had in the past before using DualLink to 0)

CAN someone help please
issue is gone when AppleIntelSNBGraphicsFB.kext is get out /S/L/E but no acceleration and resolution is 1024x768 only

#107
Kogen Mantis

Kogen Mantis

    InsanelyMac Protégé

  • Donators
  • 98 posts
  • Gender:Male

I'm using clover 1344
tluck's dsdt.aml & AppleIntelSNBGraphicsFB.kext
DualLink to 0
i've 4 screens on my LCD (like i use to had in the past before using DualLink to 0)

CAN someone help please
issue is gone when AppleIntelSNBGraphicsFB.kext is get out /S/L/E but no acceleration and resolution is 1024x768 only

Change tluck dsdt.aml to DualLink 0 aswell

#108
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 619 posts
  • Gender:Male
  • Location:NC, USA
hmm. for a 1600x900 resolution LCD (like mine) it needs DualLink 1 (default now apparently in clover now) otherwise it's very wide.
AppleInteSNBGraphicsFB.kext must be in /S/L/E (or put the patched ones in /EFI/Clover/kexts.) otherwise you wont get any display buffers.

i'm on clover 1208 currently. will try 1344 later today. Note: i had problems with 1316 - memory was reported as 12GB and the shell was crashing.

i think i figured out the sleep issue for some using clover - dont set AsusAICPUPM in the config.plist. i am using a patched AppleIntelCPUPowerManagement.kext and the rollback v1.3.5 (aka snowleopard) AppleACPIPlatform.kext instead. will report other findings as they crop up. To keep it simple and backward compatible, kept all the patched kexts as with chameleon. just booting with clover efi.

#109
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 619 posts
  • Gender:Male
  • Location:NC, USA
@k0gen - glad you are back up and running.

i tried b1344 and it still reports 12GB of memory instead of 8GB. and the Shell crashes. not sure where to report these bugs/issues? i will stay on b1208 until i see this items fixed.

#110
Tetonne

Tetonne

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 251 posts

@k0gen - glad you are back up and running.

i tried b1344 and it still reports 12GB of memory instead of 8GB. and the Shell crashes. not sure where to report these bugs/issues? i will stay on b1208 until i see this items fixed.

I'm under 1344, no issue with my 4Gb here. but the 2 last releases gave me a lot of work in fact.
Everything is ok now, but now i'll wait a bit to see if the next release are stables or not lol

#111
Kogen Mantis

Kogen Mantis

    InsanelyMac Protégé

  • Donators
  • 98 posts
  • Gender:Male

@k0gen - glad you are back up and running.

i tried b1344 and it still reports 12GB of memory instead of 8GB. and the Shell crashes. not sure where to report these bugs/issues? i will stay on b1208 until i see this items fixed.

Yes I have same thing on b1346:
Attached File  Screen Shot 2013-04-21 at 4.17.31 AM.png   198.14KB   41 downloads
I see apianti is doing all the memory changes, try contacting him on projectosx.

#112
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 619 posts
  • Gender:Male
  • Location:NC, USA
@tetonne - that dsdt snippet is for a different codec than in my - some T420s may have cx20672 vs cs20590 codec. i dont know how different the pinouts. but it seems like someone had a x220 with that codec and got AppleHDA working now. dont really understand how the cached kexts loose sound? weird.
you are welcome.

@k0gen - well glad its not just me with the memory report of 12 vs 8GB.

clock question. i am still learning and adjusting to Clover... but i have a question for you and others:

does your box lose time? my date clock is off - it runs slow. after a few hours its off by several minutes when i boot with Clover. When i boot the same disk with Chameleon the clock stays accurate? i created a clean installation and ran it for a few hours and it was off by a lot.

#113
Kogen Mantis

Kogen Mantis

    InsanelyMac Protégé

  • Donators
  • 98 posts
  • Gender:Male

@tetonne - that dsdt snippet is for a different codec than in my - some T420s may have cx20672 vs cs20590 codec. i dont know how different the pinouts. but it seems like someone had a x220 with that codec and got AppleHDA working now. dont really understand how the cached kexts loose sound? weird.
you are welcome.

@k0gen - well glad its not just me with the memory report of 12 vs 8GB.

clock question. i am still learning and adjusting to Clover... but i have a question for you and others:

does your box lose time? my date clock is off - it runs slow. after a few hours its off by several minutes when i boot with Clover. When i boot the same disk with Chameleon the clock stays accurate? i created a clean installation and ran it for a few hours and it was off by a lot.


tluck can you try adding:

<key>SMBIOS</key>
<dict>
<key>Trust</key>
<string>No</string>
</dict>
to your Clover config.plist and test out if the memory is still reporting 12GB?
I don't have a access to my t420 at the moment to test it out, but I guess this will fix the problem.
Also do share your working EFI folder - I'll start from the point your in, cause I still use 1050 that works best for me.
As for time I'm just guessing this might be the TSC sync causing all the mess - is your CPU reporting 2.51GHz or 2.5GHz?

#114
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 619 posts
  • Gender:Male
  • Location:NC, USA

@k0gen

here is my /EFI that i am using with b1597 - the config.plist is the key to making it all work!!! i had to specify CpuFrequencyMhz and BusSpeedkHz as clover does not compute a speed of 2.50 GHz and the clock would not stay accurate - BusSpeed is key to getting my clock to stay on track.
 

<key>ACPI</key>
  <dict>
  <key>DropOemSSDT</key>
  <string>Yes</string>
  <key>FixDsdtMask</key>
  <string>0x0000</string>
  <key>GenerateCStates</key>
  <string>No</string>
  <key>GeneratePStates</key>
  <string>No</string>
</dict>

<key>CPU</key>
  <dict>
  <key>BusSpeedkHz</key>
  <string>99700</string>
  <key>CpuFrequencyMHz</key>
  <string>2500</string>
  <key>Turbo</key>
  <string>Yes</string>
</dict>

Note: I added the Microsoft EFI boot loader and can directly boot the Windows7 with EFI - did not have to reinstall. just had to fiddle with BCD to find the windows volume.

UPDATED: May-10-2013 - revised zip to include ssdt.aml from verleihnix (thanks!) and updated config.plist to NOT generate P/C states. (this fixed some wake from sleep issues for me)

 

UPDATED: see #202 for newer bundle for newer Clover.



#115
Tetonne

Tetonne

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 251 posts
wifi on your T4x0?
my advice :

http://www.ebay.fr/i...#ht_3473wt_1134
driver : http://www.osx86.net...-rtl8188cu.html

My Duallink issue (4 screens in one) with DSTL.aml is solved thanks to truck :)

#116
Kogen Mantis

Kogen Mantis

    InsanelyMac Protégé

  • Donators
  • 98 posts
  • Gender:Male
@tluck
Yes the config.plist customization is the key to perfect setup. But right now I'm trying to make a solution for all Lenovo UEFI users to have a easy way of installing the system. Then point them in the right direction to tweak their Clover config for a specific lenovo model and share their OEM folders here for others to follow.

You can use my Clover custom build based on 1229 - the last one that was not broken by the SMBIOS memory detection and alocation changes. I have also regressed the CPU TSC Sync calculation, so try it without defining the CpuFrequencyMHz and BusSpeedkHz.
The package will install all the necessary efi drivers, FakeSMC, ethernet and PS2 devices kexts. The config file is also fine tuned to run without any DSDT. So if anybody needs easy way to make recovery pen-drive just point the installer to correct media and you are ready to boot.

NOTE: Users with low resolution should edit config.plist and change DualLink from 1 to 0

Attached File  Custom Clover 1229k0.png   172.11KB   37 downloads

Attached Files



#117
mark9white

mark9white

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts
I'm on 1306 on my T420, it's working great for me (apart from the sleep problem mentioned at: http://www.insanelym...80#entry1910057, which also happened with old Clover) with the correct amount of memory reported with the SMBIOS Trust=No config setting mentioned above (I've got 8Gb and I was also getting 12Gb reported without that setting).

My config.plist is at:
https://www.dropbox....1a/config.plist

#118
Wavelets

Wavelets

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts
@k0gen
Thank you for this guide. I have followed your instructions for my T420. I had to change model number to mine which is 4180AF6 Running stock BIOS version 1.44 and screen is 1600x900. Hard disk is OCZ-AGILITY3 (60GB SSD) which is recognised correctly with link speed of 6 Gigabit (SATA III) which I'm very happy about.

My main issue is that I have no sound. Please confirm that your set-up supports sound? and advise what might be wrong? Do I have to install VoodooHDA. Another issue is that I am still booting off USB - I did copy UFI folder to primary disk using your instructions but system does not even start to boot beyond Lenovo BIOS. I can select primary disk to boot but just comes flashes and returns to same UEFI/BIOS screen.

Regarding your post #117 should I install Clover_v2_r1229k0.zip?

Please forgive any mistakes in this my first post.

Enjoying OS X 10.8.3 so far on my T420 and hope I can get sound and WiFi in due course. (Have Dell DW1510 but think I need BIOS with no whitelist for it to work)

Now booting off primary!

Just double checked EFI partition and I had copied files into a sub EFI folder so moved them up one level. (there is already an APPLE folder here too)

Anyway now able to boot off system - USB stick not required. :-)

Now onto SOUND - please advise what logs I can review to try and determine issue or post here.

thanks

#119
Espamac

Espamac

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts

Now onto SOUND - please advise what logs I can review to try and determine issue or post here.

thanks


AppleHDA.kext should work. You don't need VodooHDA. Which DSDT file are you using? Try placing the attached AppleHDA kext on the Extras folder, repair permissions, and check you have this lines on your dsdt file. You also have to remove the original AppleHDA kext placed on System/Library/Extensions/

Device (HDEF)
					 {
							 Name (_ADR, 0x001B0000)
							 Name (_S3D, 0x03)
							 Name (RID, Zero)
							 Name (_PRW, Package (0x02)
							 {
									 0x0D,
									 0x04
							 })
							 Method (_PSW, 1, NotSerialized)
							 {
									 Noop
							 }
						 Method (_DSM, 4, NotSerialized)
							 {
									 Store (Package (0x0A)
											 {
													 "codec-id",
													 Buffer (0x04)
													 {
														 0x6E, 0x50, 0xF1, 0x14
													 },
													 "layout-id",
													 Buffer (0x04)
													 {
													 // for 10.8.x use layout12
														 0x0C, 0x00, 0x00, 0x00
													 // 0x6E, 0x50, 0x00, 0x00
													 },
													 "PinConfigurations",
													 Buffer (Zero) {},
													 "hda-gfx",
													 Buffer (0x0A)
													 {
															 "onboard-1"
													 },
													 "device-type",
													 Buffer (0x11)
													 {
															 "Conexant CX20590"
													 }
											 }, Local0)
									 DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
									 Return (Local0)
							 }
					 }

Credit for this goes to tluck (http://www.insanelym...n/page__st__160) I'm just pasting ^_^

Attached Files



#120
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 619 posts
  • Gender:Male
  • Location:NC, USA
@espamac - thanks! - btw, what laptop/codec do you have?

@wavelets - if you are on 10.8.3, then there is a slightly newer kext pack that has an updated 10.8.3 AppleHDA patched for CX20590.
what sound codec do you have - some T420s might have a different chip now.

see post #238 - just replace all the kexts in /S/L/E - but you know that!

i have a copy of these in my /EFI/kexts also. Note: the dsdt.aml goes in /EFI/CLOVER/ACPI/patched
and the HDEF section (per above) needs to match for ID 12.

@kogen
i am on Clover B1360 now... will try your package on my test disk later today. pretty cool.
so what do you mean exactly by regressing the TSC calculation? the logs show it calculates 2507 or 2508 MHz and then bus speed is around 100270 kHz. (which does not work for my system)

i need to use this to lower the bus speed or i get a lot of time drift:


<key>CPU</key>
<dict>
<key>BusSpeedkHz</key>
<string>99700</string>
<key>CpuFrequencyMHz</key>
<string>2500</string>
<key>Turbo</key>
<string>Yes</string>
</dict>






Also tagged with one or more of these keywords: UEFI, ThinkPad, T420, Lenovo, Clover


2 user(s) are reading this topic

1 members, 1 guests, 0 anonymous users


© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy