Jump to content

Lenovo ThinkPad T420 with UEFI Only

* * * * * 45 votes UEFI ThinkPad T420 Lenovo Clover

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

Lenovo T420 Clover Guide  19-May-2017 Update

Various Releases and Tweaks over Last 6 months

Spoiler

Overview

Spoiler

New Installation Steps and Details

Spoiler

Part 1 - OS Installation

Spoiler

Part 2 - Post OS Installation and Setup on HD

Spoiler

Known Issues and Random Tips:

Spoiler

Notes on Custom Kexts

Spoiler

General Notes, Fixes, and Features

Spoiler

Optional: Create a custom SSDT

Spoiler

Go to the full post


  • Please log in to reply
3572 replies to this topic

#521
Sheep_Reaper

Sheep_Reaper

    InsanelyMac Protégé

  • Members
  • PipPip
  • 56 posts
  • Gender:Male
  • Location:Palmerton, PA, USA

I have the HD4000 on my 430. On both 10.8 and 10.8.4 I did not experience the brightness issue you describe. However, I did have the sleep issue in 10.8 but then disappeared when I upgraded to 10.8.4. Haven't tried 10.8.5 or 10.9 yet. I have USB3 built in and have had no problems with it other than the USB post-sleep resume issue, but it affects both my USB3 and USB2 ports.



#522
verleihnix

verleihnix

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 215 posts
  • Gender:Male

One challenge, i still can't figure out is why my LCD is brighter after sleep/wake? if the screen sleeps,  then upon wakeup it is just a little brighter. the brightness/backlight settings do not change. its just brighter! I did a little research and it showed others with HD3000 have seen this but i could not find a good fix. anyone have any ideas?

 

I use sleepwatcher to set brightness after sleep. It starts a script that runs the binary.

http://www.bernhard-baehr.de

 

or maybe this helps to store a value with dsdt fix

http://www.insanelym...ss#entry1953410

Attached Files



#523
TimeWalker75a

TimeWalker75a

    InsanelyMac Legend

  • Gurus
  • 1,249 posts
  • Gender:Male

 anyone have any ideas?

MacBookPro8,1 (snb-platform-id 0x00, 0x01):
Name: AppleIntelSNBGraphicsFB

Find: 
01020400 //FBIndex / Pipes/ Ports = 4
10070000 10070000 // Maximum brightness 0x710
05030000 02000000 30000000 // @0 LVDS
02050000 00040000 07000000 // @1 DP
03040000 00040000 09000000 // @2 DP 
04060000 00040000 09000000 // @3 DP

Replace:
01020300 //FBIndex / Pipes / Ports =3
12130000 12130000 // Maximum brigthenss 0x1312
05030000 02000000 30000000 // @0 LVDS
06020000 02000000 30000000 // @1 VGA
02050000 00080000 07000000 // @2 HDMI
00000000 00000000 00000000 // @3 absent

You know the deal .. Clover kext patcher is your best friend here.



#524
zhangqq

zhangqq

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts

I'm using a W520 and I found I had to use the following tags for shutdown to work.

 

        <key>ResetAddress</key>
        <string>0x64</string>
        <key>ResetValue</key>
        <string>0xFE</string>



#525
tluck

tluck

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,806 posts
  • Gender:Male
  • Location:NC, USA

@timewalker75a - wow that was easy. fantastic. just curious how do you/we know 1312 is the right max?!

 

@zhangqq - interesting. does this make  shutdown work (period) - meaning it did not work at all - or that is makes shutdown work better (ie not hang)?



#526
zhangqq

zhangqq

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts

Without those tags it just hung when shutting down(I already added SLPE ).



#527
TimeWalker75a

TimeWalker75a

    InsanelyMac Legend

  • Gurus
  • 1,249 posts
  • Gender:Male

@timewalker75a - wow that was easy. fantastic. just curious how do you/we know 1312 is the right max?!

 

@zhangqq - interesting. does this make  shutdown work (period) - meaning it did not work at all - or that is makes shutdown work better (ie not hang)?

1312 is the maximum PNLF (Apple's Display Panel) can handle. And this is the value it defaults to after sleep, as in.. the brightness cap increases after sleep from 0710 to 1312.

 

Re: reset address and values - this fix was originally discovered by fassl and was needed for older hardware where FACP table didn't contain this data, so restart was not functional. Bootloaders are now altering this table and increasing it's length for platforms where FACP doesn't include this data. If you dump your native ACPI tables from clover by pressing F4 in GUI and then open up your FACP table from /EFI/CLOVER/ACPI/origin you'll see that this data is already in there .. and it only affects restart, which is done through PS/2 controller, which is a part of Embedded controller... so shutdown was fixed by SLPE, not this... this doesn't even need to be there.  

[000h 0000   4]                    Signature : "FACP"    [Fixed ACPI Description Table (FADT)]
[004h 0004   4]                 Table Length : 000000F4
[008h 0008   1]                     Revision : 03
[009h 0009   1]                     Checksum : E6
[00Ah 0010   6]                       Oem ID : "DELL  "
[010h 0016   8]                 Oem Table ID : "QA09   "
[018h 0024   4]                 Oem Revision : 00000002
[01Ch 0028   4]              Asl Compiler ID : "PTL "
[020h 0032   4]        Asl Compiler Revision : 00000002
....

[074h 0116  12]               Reset Register : [Generic Address Structure]
[074h 0116   1]                     Space ID : 01 [SystemIO]
[075h 0117   1]                    Bit Width : 08
[076h 0118   1]                   Bit Offset : 00
[077h 0119   1]         Encoded Access Width : 00 [Undefined/Legacy]
[078h 0120   8]                      Address : 0000000000000064

[080h 0128   1]         Value to cause reset : FE


#528
ag6952563

ag6952563

    InsanelyMac Protégé

  • Members
  • PipPip
  • 88 posts

Hi guys-

This is not important of course, but aiming to a perfect laptop running OS X...

The wifi light is not on, even if the wifi is enabled. Any easy fix that could correct this?

 

Thanks,

AJ



#529
tluck

tluck

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,806 posts
  • Gender:Male
  • Location:NC, USA

TimeWalker - thanks that is great information.

 

well the FACP table shows this info - which according to the WIKI,Clover will read and use. in this case the PCI bus. agree with that for the T420 - the reset values do not need to specified in the config.plist

 

 

 

[074h 0116  12]               Reset Register : [Generic Address Structure]
[074h 0116   1]                     Space ID : 01 [SystemIO]
[075h 0117   1]                    Bit Width : 08
[076h 0118   1]                   Bit Offset : 00
[077h 0119   1]         Encoded Access Width : 00 [Undefined/Legacy]
[078h 0120   8]                      Address : 0000000000000CF9
 
[080h 0128   1]         Value to cause reset : 06
[081h 0129   3]                     Reserved : 000000
[084h 0132   8]                 FACS Address : 00000000DAF2D000
[08Ch 0140   8]                 DSDT Address : 00000000DAFEB000
 
@AJ - will look at this later to see if i can figure out which LED lights that up. there is a DSDt function called SI that i used to reset the power and sleep LEDs. may be manual since OSX may not have this?


#530
okcakep

okcakep

    InsanelyMac Protégé

  • Members
  • Pip
  • 26 posts

 

@okcakep (get blank monitor if you're using custom EDID in config.plist)

then make this change in red (delete or change)

InjectEDID to false is enought if your EDID is not the good one it would become the good one in newer system

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

 

good edid can be found this thisattachicon.gifgenEDID_3c.zip

 

unzip drag & drop genEDID.sh on Terminal.app window, key name of screen for example LCD

 

tetonne$ /Users/tetonne/Desktop/genEDID.sh LCD press enter
 
result  in terminal
Collecting some data...
Detected Vendor ID: 0x6af (hex) 1711 (dec)
Detected Product ID: 0x313c (hex) 12604 (dec)
Flipbyted Vendor ID: 0xaf06 (hex) 44806 (dec)
Detected EDID: 00ffffffffffff0006af3c310000000000140103801f11780a10b597585792261e505400000001010101010101010101010101010101121b5646500023302616360035ad100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343058573033205631200a0029
Encoded EDID: AP///////wAGrzwxAAAAAAAUAQOAHxF4ChC1l1hXkiYeUFQAAAABAQEBAQEBAQEB
AQEBAQEBEhtWRlAAIzAmFjYANa0QAAAYAAAADwAAAAAAAAAAAAAAAAAgAAAA/gBB
VU8KICAgICAgICAgAAAA/gBCMTQwWFcwMyBWMSAKACk=
Job done!
 
report that green number in OEMConfig
Graphic CustomEDID data (in XML part)
00ffffffffffff0006af3c310000000000140103801f11780a10b597585792261e505400000001010101010101010101010101010101121b5646500023302616360035ad100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343058573033205631200a0029
 
you'll seen Encoded EDID: AP///////wAGrzwxAAAAAAAUAQOAHxF4ChC1l1hXkiYeUFQAAAABAQEBAQEBAQEB
AQEBAQEBEhtWRlAAIzAmFjYANa0QAAAYAAAADwAAAAAAAAAAAAAAAAAgAAAA/gBB
VU8KICAgICAgICAgAAAA/gBCMTQwWFcwMyBWMSAKACk=
there

set InjectEDID to true

 
result on destop :
put the created folder DisplayVendorID-6af (example) in S/L/Display/Overrides
repair permissons

 

Tetonne....amazing...work....!!!

Thank you....



#531
Tetonne

Tetonne

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 428 posts
  • Gender:Male

@okcakep : you're welcome :)

@all could you please add your signature ;)

 

feed back about  T420_UEFI_Clover-b2236_10.8.5_10.9.0_16-Oct-2013

As usual great work :) brightness is equal as before sleep

I add tluck's pack url in my signature (a way say :thanks_speechbubble: )

 

@timewalker75a : thanks for your contribution too

@tluck : thanks for the great pack you provide each time 



#532
pokenguyen

pokenguyen

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 614 posts
  • Gender:Male
I want to install OS X Mavericks on Thinkpad T420s, how can I patch my own dsdt based on your patched files?

I also want to use ultrabay to replace my dvd drive by a hdd, I saw some posts long ago said that the system can only boot to internal drive Clover without it, is it fixed yet?

#533
TimeWalker75a

TimeWalker75a

    InsanelyMac Legend

  • Gurus
  • 1,249 posts
  • Gender:Male

I also want to use ultrabay to replace my dvd drive by a hdd, I saw some posts long ago said that the system can only boot to internal drive Clover without it, is it fixed yet?

Use shell from within Clover (new revision preferably) and add bcfg boot entry pointing to your optibay (utrabay?) drive. The entry will then appear under F12 boot menu..



#534
tluck

tluck

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,806 posts
  • Gender:Male
  • Location:NC, USA

@pokenguyen - there is dsdt.aml and dsdt.dsl (source with change comments) for any T420 - ready for use in the zip bundle. otherwise i don't understand your question. 



#535
pokenguyen

pokenguyen

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 614 posts
  • Gender:Male

@pokenguyen - there is dsdt.aml and dsdt.dsl (source with change comments) for any T420 - ready for use in the zip bundle. otherwise i don't understand your question.

T420s model can't use the same dsdt, but I think it will be very similar. I want to know which patches you applied to your dsdt so I can patch it myself.

#536
pokenguyen

pokenguyen

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 614 posts
  • Gender:Male

@pokenguyen - there is dsdt.aml and dsdt.dsl (source with change comments) for any T420 - ready for use in the zip bundle. otherwise i don't understand your question.

T420s model can't use the same dsdt, but I think it will be very similar. I want to know which patches you applied to your dsdt so I can patch it myself.

#537
Sheep_Reaper

Sheep_Reaper

    InsanelyMac Protégé

  • Members
  • PipPip
  • 56 posts
  • Gender:Male
  • Location:Palmerton, PA, USA
I don't have a 420 to confirm, but gendalo and I have different t430's and it turns out that the dsdt's are identical. Likely it is true of 420's as well.

#538
pokenguyen

pokenguyen

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 614 posts
  • Gender:Male

I don't have a 420 to confirm, but gendalo and I have different t430's and it turns out that the dsdt's are identical. Likely it is true of 420's as well.

I will give it a try, thank you for confirm.



#539
okcakep

okcakep

    InsanelyMac Protégé

  • Members
  • Pip
  • 26 posts

@Tluck now im using 10.8.5 with your package. work !!!. i must be reconfigure Athereos WiFi to pci168c,2b

Sound work perfect...thanks...!!!

@Tetone your EDID work...but i still get glich sometime :)

 

Update...

Suddenly no sound in internal speaker,

Headphone ok



#540
zhangqq

zhangqq

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts

            If (LEqual (Arg0, 0x05))

            {

                TRAP ()

                AWON (0x05)

                Store (Zero, SLPE)

                Sleep (0x10)

           

 

I guess store(zero,SLPE) should be store(one, SLPE). (I won't use the tags for shutdown now.)

I also add Store (One, SLPE) and Sleep (0x10) to arg0 = 0x01 0x03 0x04.

Then I add Store (Zero, SLPE) and Sleep (0x10) ad the beginning of _WAK and _INI.

 

The shutdown and sleep work fine till now.







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

  Topic Stats Last Post Info

5 user(s) are reading this topic

0 members, 5 guests, 0 anonymous users

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