Jump to content

Lenovo ThinkPad T420 with UEFI Only

* * * * * 12 votes UEFI ThinkPad T420 Lenovo Clover

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

18-October-2014 - OS X 10.8.x 10.9.x 10.10.x Update

  • Clover updated to v2953
  • New custom kexts AppleHDA_20672.kext (fixed since October 13) and BroadcomBluetooth_T420.kext are added. Huge thanks to vladichimescu for showing me this kext method.
  • All custom/extra kexts are OS version independent and go in /Systems/Library/Extensions 
  • New Clover config.plist files for on-the-fly HDA kext patching. No need to replace any kexts after updates anymore.
  • Removed EmuVariableUefi-64.efi driver to use native NVRAM (vs /nvram.plist) - see note below on how to migrate.
  • FakeSMC updated to 6.11.1328
  • Added drop table MCFG for Nvidia/Optimus (mixed gfx)
  • Added drop table DMAR so VT-d does not have to be disabled
  • ACPIBacklight.kext - v2.0.3 - with modified code to fix/workaround for LCD brightness in Yosemite.
  • Updated 10.10 kexts folder (10.10. AppleHDA and BroadcomBluetooth kexts + Hackintosh Kexts)
  • Updated 10.9  kexts folder (10.9.5 AppleHDA and BroadcomBluetooth kexts + Hackintosh Kexts)
  • Note: To make an Mavericks USB installer, just follow the Yosemite method

Lenovo T420 Clover Guide

 

Attached is a current /EFI pack for the Lenovo T420 using Clover on OS X versions:

  • 10.8.x  Mountain Lion 
  • 10.9.x  Mavericks
  • 10.10.x Yosemite

Why Clover vs Chameleon?

  • Native UEFI boot support for OS X and Windows on GUID/GPT disks.
  • Native Apple OS X Installers and App Store Updaters. 
  • Supports Recovery HD for system recovery and iMessage, Find My Mac, etc.
  • Dynamic DSDT and Kext patching.

Caveat:

My system is a T420 with 1600x900 LCD and dedicated Intel HD 3000 Graphics Only.  This is a zip contains what is working for me on my specific model. 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.  The models T420s, T420i as well as the T520 family may work as is or need some changes to the DSDT.

 

Highlights:

  • Clover config.plist + required kexts + custom DSDT
  • 2 versions are separated by LCD size
    • 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, 10.9 and 10.10 is here in this post
  • An older non-maintained Kext Bundle for 10.8.4 is in post #241

Misc Notes:

  • VoodooPS2Controller.kext  - slightly 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.
     
  • 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)
     
  • Included is a revised Pike's  SSDT generation script (sdtPRgen-clover.command) and a local copy of iasl. running the script will end with making a copy of ssdt.aml into proper ESP location when mounted.

Custom Kexts

 

Use kext install tool to install all kexts to /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) - can go in /System/Library/Extensions vs Plugins so updates will not delete it.
  • 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. 
  • AppleHDA_20672.kext (v999.99) Keep original/unmodified AppleHDA.kext and add this kext to /S/L/E for full audio support for CX20672 (same as CX20590). Note: requires matching DSDT sections for Conexant Codec and layoutID 12. Also has Manwe150's fix/additions for dock ports. Credit and thanks to: vladichimescu
  • BroadcomBluetooth_T420.kext (v999.99) - adds ProductID 8575 to make BT work better (on/off capability). Keep original/modified BroadcomBluetooth plug-in and add this kext to /S/L/E.

​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

EmuVariableUefi-64.efi migration

 

1) Before updating if you are still using EmuVariable, run this command see and then save current nvram values:

nvram -p
nvram -xp > ~/nvram.plist

2) Update the ESP with new Clover version (from zip or pkg) - uncheck EmuVariableUEFI-64 driver option.

3) Rename (or remove) EmuVariable driver the ESP so it will not be loaded on next boot, if there is one still in the Clover driver folder.  

Note: manually mount ESP on /Volumes/EFI or /Volumes/ESP, if not already mounted and then run:

mv /Volumes/ESP/EFI/CLOVER/drivers64UEFI/EmuVariableUEFI-64.efi /Volumes/ESP/EFI/CLOVER/drivers64UEFI/EmuVariableUEFI-64.efi.NU

4) Reboot and restore previous nvram values and remove Clover NVRam variable. You should see some variables already in there!

nvram -p

sudo nvram -xf ~/nvram.plist
sudo nvram -d Clover.NVRamDisk

5) Reboot to boot run with final values! 

 

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 Yosemite or 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 (if Mavericks, the replace word Yosemite with Mavericks):
    sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ OS\ X\ Yosemite.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! Notes and Tips:
  • When the installer screens shows: "To pair a Bluetooth keyboard, turn it on and wait for your computer to connect to it.”

 

Hit the Space Bar to get past this step.
  • When installer seems to hang at: "About a second remaining”
Don’t Panic, this "second" may take about 10 minutes or more to finish. Just wait for the installer to reboot the computer and continue the installation.
The whole install process takes about 1 hour to complete.
  • On the first boot from the HD when asked: “How Do You Connect?”
Select: “My computer does not connect to the Internet”
And set up the network later after installation the NIC driver kext.
And your Intel WiFi will not work. Period. 

 

 

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

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=149386:clover-pkg-options.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 or 10] 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/AppleIntelE1000e.kext
    sleep 10
    sudo rm       /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
    
  7. Create a custom SSDT (optional)
    Creates P and C states to match system CPU. Test against Clover generated SSDT PM tables - may be the same performance lately. (Long ago Clover had some issues here.)
    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)

Random Tips:

  • Enable (turn on) Bluetooth so the green light is showing on the LCD bezel (do from Windows or Ubuntu).  
  • Also make sure the side switch is set to green too!
  • When using external headphones or speakers, may need to plug and unplug 1 or 2 times for recognition.

 

Known Issues:

  • E1000e ethernet hang: with the 2.5.4d and 3.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 occurs under heavy file copy/transfers and your ethernet stops working with a lot of log messages that only a reboot fixes. 
     
  • iMessage/Facetime may not register without overriding the Clover generated values with real ROM and MLB values from a real Apple Mac.
     
  • Hibernation does not wake from stored image with OsxAptioFixDrv-64.efi - suggested setting:
    sudo pmset -a hibernatemode 0
    rm /var/vm/sleepimage

OR if you really need hibernation:

 

use (experimental) OsxAptioFix2Drv.efi instead of OsxAptioFixDrv-64.efi UEFI driver and set hibernate mode to 7 (like 3 with no encryption)

sudo pmset -a hibernatemode 7

 

Note: booting from hibernated image may have jumbled LCD until one sleep/wake (non-hibernated) cycle.

 

 

Old issues - no longer happening. 

These 4 problems listed below happened with earlier versions of Clover and OS X  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 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
1402 replies to this topic

#161
ag6952563

ag6952563

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts

sounds good - how about combination "Clover EFI ThinkPad Edition" ?



Sounds good!

#162
360game360

360game360

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts
Good Idea for

Clover EFI ThinkPad Edition



Thanks to @Kogen,@Tluck and Tetonne my screen work good now
I've install Kext Blutooth by Tetonne with Kext Wizard But my Bluetooth doesn't work :/ I can't activate with Fn + F5 and i didn't show on the panel bluetooth :/

and my Imessage doesn't work too i have a connection impossible


My config.plist on EFI/Clover/OEM/4236JY2 :



<dict>
<key>BiosReleaseDate</key>
<string>04/22/11</string>
<key>BiosVendor</key>
<string>Apple Inc.</string>
<key>BiosVersion</key>
<string>MBP81.88Z.0047.B0E.1104221557</string>
<key>BoardSerialNumber</key>
<string>CMX77JGTPUT354126</string>
<key>Manufacturer</key>
<string>Apple Inc.</string>
<key>ProductName</key>
<string>MacBookPro8,1</string>
<key>SerialNumber</key>
<string>CMX77JGTPUT354126</string>
<key>Version</key>
<string>1.0</string>
</dict>
<key>SystemParameters</key>
<dict>

Thank you in advance I shall like I can pay you a beer so much your help is precious

#163
Kogen Mantis

Kogen Mantis

    InsanelyMac Protégé

  • Donators
  • 98 posts
  • Gender:Male
@360game360 - bluetooth works OOB you just need to activate it using Linux or Windows. I have used latest ubuntu for that.
As for iMessage make sure your ethernet is en0 also try adding MLB full (17 digit) number in RtVariables to config.plist

@all - slightly updated first post.

#164
ag6952563

ag6952563

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts
Hi Kogen-
What do the RC scripts do if you install them with Clover?

Thanks,
AJ

#165
Kogen Mantis

Kogen Mantis

    InsanelyMac Protégé

  • Donators
  • 98 posts
  • Gender:Male

Hi Kogen-
What do the RC scripts do if you install them with Clover?

Thanks,
AJ

RC scripts are quite important, especially for us UEFI users. Essential are:
rc.local - is responsible for saving boot.log and mounting EFI partition
rc.shutdown.local deals with storing nvram settings

You can add your custom scripts with actions like: fixing permissions, patching kexts like AppleHDA, etc

#166
ag6952563

ag6952563

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts
Thanks Kogen.

One more question, when upgrading Clover, I normally just copy to my EFI partition the BOOT folder. Should I also replace other files or folders? Like CLOVERIA32.efi, CLOVERX64.efi, and folders like drivers64UEFI, etc?

#167
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 654 posts
  • Gender:Male
  • Location:NC, USA
@ag6952563- Clover installer will automatically install what it needs in your EFI system partition (ESP). it will mount /Volumes/ESP and copy the stuff in if you select the checkbox at the top. (Note: i uncheck themes since i use ThinkPad)

i then remove *32* from /EFI/BOOT and /EFI/CLOVER /EFI/CLOVER/tools

i use these options:
Attached File  clover.png   177.74KB   2 downloads

then if i look at /Volumes/ESP i have this:


$ cd /Volumes/ESP/EFI
$ ls -1 .

APPLE
BOOT
CLOVER
Microsoft


$ ls -1 BOOT CLOVER
BOOT:
BOOTX64.efi

CLOVER:
ACPI
CLOVERX64.efi
OEM
config.plist
doc
drivers64UEFI
kexts
misc
refit-default.conf
refit.conf
themes
tools

#168
ag6952563

ag6952563

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts
Thanks a lot tluck!

#169
ag6952563

ag6952563

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts
Hi again-
Today I went to software update, and I see there is a new update for "Thunderbolt Firmware Upgrade 1.0".
Did you guys get this update? It's firmware... Should I install it?

Thanks,
AJ

#170
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 654 posts
  • Gender:Male
  • Location:NC, USA
@AJ -

i just hid the thunderbolt FW upgrade - there isn't an SMC to actually update!

@all -

btw, if anyone moves up to the Clover ~1654+, they merged refit.conf into config.plist and the theme settings.conf became theme.plist.

Note: GUI section in config.plist for OEM\<product> - and then theme.plist for ThinkPad.

this is example for i5-2520m and 1600x900 LCD (injects EDID)
- change speeds freqs, as well the name of your default Volume.
if you have low res LCD remove/replace the EDID and change DualLink to 0.

See post #174

#171
Tetonne

Tetonne

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 260 posts

Automatic Config.plist Generator (thanks to Slice)



You have to boot with Clover rev.1672+ with some minimum config.plist then type in terminal


./getconfig >config.plist


Then look into and think about.

GetCloverConfig.zip

#172
ag6952563

ag6952563

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts
Hi guys-
I still have some issues with sleep/shutdown with my new UEFI setup.
Sometimes, the laptop does not go to sleep or even shutdown. For shutdown, since I have verbose boot, I see the daemons are killed, the cpu halted, but the power button stays on and the bluetooth light is also on... and it doesn't shut down. I assume it is the same issue when going to sleep.
Also, when it does go to sleep, I have noticed the touchpad is not working after resuming... but I guess this is a different issue.

Any ideas?

Thanks,
AJ

#173
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 654 posts
  • Gender:Male
  • Location:NC, USA
@AJ - i have seen this same thing from time to time. sometimes the system will shutdown cleanly all the way to everything off. and sometimes it will shutdown OSX and then the laptop has a blackscreen with powerlight on.

@tetonne - i updated to r1690 and tried the genconfig. pretty cool. shows a lot of keys that one may not know about!


Note: Now that I trust Clover ;) I replaced the AppleRTC.kext and AppleIntelCPUPowerManagement.kext with the vanilla versions and let clover do the work! i still have other some other modified kexts in /S/L/E but that is 2 less to worry about!

here is what i am using now... I trimmed out some of the extra variables so its easier to see what is set and what is not.
OEM/4236AT9 config.plist:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>ACPI</key>
        <dict>
                <key>DropOemSSDT</key>
                <true/>
                <key>FixDsdtMask</key>
                <string>0x0000</string>
                <key>GenerateCStates</key>
                <false/>
                <key>GeneratePStates</key>
                <false/>
        </dict>
        <key>CPU</key>
        <dict>
                <key>BusSpeedkHz</key>
                <string>99700</string>
                <key>Comment</key>
                <string>i5 2520m</string>
                <key>CpuFrequencyMHz</key>
                <string>2500</string>
                <key>Turbo</key>
                <true/>
        </dict>
        <key>GUI</key>
        <dict>
                <key>DefaultBootVolume</key>
                <string>OSX+</string>
                <key>Mouse</key>
                <dict>
                        <key>DoubleClick</key>
                        <integer>500</integer>
                        <key>Enabled</key>
                        <true/>
                        <key>Speed</key>
                        <integer>8</integer>
                </dict>
                <key>ScreenResolution</key>
                <string>960x600</string>
                <key>Theme</key>
                <string>ThinkPad</string>
                <key>Timeout</key>
                <integer>8</integer>
                <key>Volumes</key>
                <dict>
                        <key>Legacy</key>
                        <false/>
                </dict>
        </dict>
        <key>Graphics</key>
        <dict>
                <key>Comment</key>
                <string>LCD 1600x900</string>
                <key>CustomEDID</key>
                <data>
                AP///////wAw5OICAAAAAAAUAQOAHxF4CkNFl1lXjighUFQAAAABAQEBAQEB
                AQEBAQEBAQEBgCVAgGCEGjAwIDUANq4QAAAZAAAAAAAAAAAAAAAAAAAAAAAA
                AAAA/gBMRyBEaXNwbGF5CiAgAAAA/gBMUDE0MFdEMi1UTEIxADg=
                </data>
                <key>DualLink</key>
                <string>1</string>
                <key>GraphicsInjector</key>
                <true/>
                <key>InjectEDID</key>
                <true/>
        </dict>
        <key>KernelAndKextPatches</key>
        <dict>
                <key>AppleRTC</key>
                <true/>
                <key>AsusAICPUPM</key>
                <true/>
                <key>Debug</key>
                <false/>
                <key>Comment</key>
                <string>Replace 4th port with VGA</string>
                <key>KextsToPatch</key>
                <array>
                        <dict>
                                <key>Find</key>
                                <data>
                                AQIEABAHAAAQBwAABQMAAAIAAAAwAAAAAgUAAAAEAAAH
                                AAAAAwQAAAAEAAAJAAAABAYAAAAEAAAJAAAA
                                </data>
                                <key>Name</key>
                                <string>AppleIntelSNBGraphicsFB</string>
                                <key>Replace</key>
                                <data>
                                AQIEABAHAAAQBwAABQMAAAIAAAAwAAAAAgUAAAAEAAAH
                                AAAAAwQAAAAEAAAJAAAABgIAABAAAAAJAAAA
                                </data>
                        </dict>
                </array>
        </dict>
        <key>PCI</key>
        <dict>
                <key>InjectClockID</key>
                <true/>
                <key>USBFixOwnership</key>
                <true/>
                <key>USBInjection</key>
                <true/>
        </dict>
        <key>SMBIOS</key>
        <dict>
                <key>Trust</key>
                <true/>
        </dict>
        <key>SystemParameters</key>
        <dict>
                <key>InjectSystemID</key>
                <true/>
                <key>boot-args</key>
                <string>slide=0</string>
                <key>prev-lang:kbd</key>
                <string>en:0</string>
        </dict>
</dict>
</plist>


#174
ag6952563

ag6952563

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts
Thansk tluck. Can you please post the 2 Vanilla kexts? I only have the patched ones, and I cannot find them in the 10.8.2 or 10.8.3 combo updates... I guess they have not changed.
Or, do you know where I can get them?

Update: I guess in the 10.8 install iso if they have not changed. Sorry, you can see how the mind of a amateur works... how I make important deductions with the passing of time... hehe

#175
Tetonne

Tetonne

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 260 posts
the 2 genuine kexts :
AppleRTC & AppleIntelCPUPowerManagement

#176
ag6952563

ag6952563

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts
Thanks a lot Tetonne!

#177
tluck

tluck

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 654 posts
  • Gender:Male
  • Location:NC, USA
here is my update du-jour!

getting rid of custom kexts in SLE...

replaced the AppleIntelSNBGraphicsFB.kext with vanilla - this replaces the 4th port with VGA via Clover! (just like in the old pack)



        <key>KernelAndKextPatches</key>
        <dict>
                <key>AppleRTC</key>
                <true/>
                <key>AsusAICPUPM</key>
                <true/>
                <key>Debug</key>
                <false/>
                <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>
                                AQIEABAHAAAQBwAABQMAAAIAAAAwAAAAAgUAAAAEAAAH
                                AAAAAwQAAAAEAAAJAAAABgIAABAAAAAJAAAA
                                </data>
                        </dict>
                </array>
        </dict>


#178
ag6952563

ag6952563

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts
Very nice tluck!

#179
Kogen Mantis

Kogen Mantis

    InsanelyMac Protégé

  • Donators
  • 98 posts
  • Gender:Male
@tluck - yes very nice indeed!
I saw you are using patched AppleIntelSNBGraphicsFB.kext and wanted to suggest you patching it via Clover but I see we have came up in a great understanding in the Clover subject. :)
Now that we have custom kexts patching going can I suggest patching AppleHDA.kext using clover and adding custom rc shoutdown script for replacing the:
- AppleHDAHardwareConfigDriver.kext/Contents/Info.plist
- layout12.xml.zlib
- Platforms.xml.zlib
I'm very busy lately with my job and familly. That is why I'm going to stay in the shadow for some time. Keep up the good work tluck - You'r on fire! :)

#180
tluck

tluck

    InsanelyMac Legend

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

Updated June 18-2013 - revised pack b1858 - see post #242

 

Updated June-03-2013:

  • revised DSDT (again),
  • updated Clover b1794, added darkwake=10 to bootargs in config.plist
  • updated VoodooPS2Controller v1.8.4 and FakeSMC v5.1.67 from Rehabman released may-26

@Kogen - no worries. Clover has been fun and educational! I think i will leave things as they are as far as custom kexts vs clover patched. the list of custom kexts is down to a manageable number now:

 

$ ls -1d *.kext

AppleACPIPlatform.kext (v.1.3.5 -- sleep/wake and battery)

AppleHDA.kext

AppleIntelE1000e.kext

FakeSMC.kext

IOAHCIBlockStorageInjector.kext (Note:this is for DVD injection as internal)

VoodooBattery.kext

VoodooPS2Controller.kext


I did rework my DSDT. i was frustrated with sleep/wake - so I let clover auto patch it. I then extracted it and retrofitted some of goodies manwe150 put in a while back. fanspeed control with Think button, temp monitor stuff, brightness keys (scrlck/pause buttons).

Anyway this lead me to revising the HPET section and futzing with IRQs. So long story short, i found that just specifying 1 IRQ in the HPET makes it sleep/wake better.

Update - went back to 4 IRQS - but selected 8,11,14,15 - these seem to work as good or better than using just irq 11 in dsdt.

now my eSATA will actually wake up versus disaspear. And also the USB ports seem to stay alive - USB mouse used to go away and need to be reset after 1 or 2 sleep/wake cycles. So i would say sleep is now working 99.9% now versus before it was hit or miss.

For consideration, attached is (see updated post) an updated Clover OEM folder with new DSDT (aml and dsl) - with DualLink removed so Low/High res LCD work as long you set in config.plist.

Note: occasionally I lose the trackpad after sleep - can either do ctrl-alt-delete (i installed the voodooPS2daemon) or attach usb mouse to recover.







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