Jump to content

Lenovo ThinkPad T420 with UEFI Only


K0gen
 Share

5,282 posts in this topic

Recommended Posts

there were some bugs introduced that are not fixed until r4063 or later. but the compiled version is lagging.

 

not sure why you guys are having issues with 4063... but we can look at that later.

 

I say that since as of now there are 180 downloads on the 4063  zip - i would expected some more reports of problems?

 

on Audio - make sure you have installed the kexts in /L/E - use the _kext-install script - which rebuilds the caches.

 

on Screen brightness - if your LCD is NOT one of these models -  0b05 3e21 3c31 e240 e202 - which are included in AppleBacklightInjector kext in the 4063 zip -

then use the latest Create AppleBacklight kext script to make your own custom kext and install that kext in /L/E

 

 

some times "black screen" means the LCD brightness is turned down - just using ScrLck and/or Pause will raise it up!

Link to comment
Share on other sites

on Screen brightness - if your LCD is NOT one of these models -  0b05 3e21 3c31 e240 e202 - which are included in AppleBacklightInjector kext in the 4063 zip -

then use the latest Create AppleBacklight kext script to make your own custom kext and install that kext in /L/E

I used the AppleBacklight.kext from the last zip you provided and placed it in /L/E that made it work again, despite the fact I already had one there that I created the script mention above.

 

Edit:

@jacx I used only the mentioned .efi files from that zip.

Link to comment
Share on other sites

ok... posted a new zip today. I think I understand why some were having problems with r4063. 

 

- if you have a high-res LCD and un-moddified BIOS, Clover was removing the DualLink=1 setting.

- This bug seems to fixed in this zip for my 2 T420 systems - 1 with modded bios and 1 without.

 

diffs between previous zip current zip:

$ diff -rq 10.12/T420-distribute T420-distribute|differ
diff 10.12/T420-distribute/EFI/BOOT/BOOTX64.efi T420-distribute/EFI/BOOT/BOOTX64.efi
diff 10.12/T420-distribute/EFI/CLOVER/CLOVERX64.efi T420-distribute/EFI/CLOVER/CLOVERX64.efi
diff 10.12/T420-distribute/EFI/CLOVER/drivers64UEFI/AppleImageCodec-64.efi T420-distribute/EFI/CLOVER/drivers64UEFI/AppleImageCodec-64.efi
diff 10.12/T420-distribute/EFI/CLOVER/drivers64UEFI/AppleUITheme-64.efi T420-distribute/EFI/CLOVER/drivers64UEFI/AppleUITheme-64.efi
diff 10.12/T420-distribute/EFI/CLOVER/drivers64UEFI/FirmwareVolume-64.efi T420-distribute/EFI/CLOVER/drivers64UEFI/FirmwareVolume-64.efi
diff 10.12/T420-distribute/EFI/CLOVER/drivers64UEFI/SMCHelper-64.efi T420-distribute/EFI/CLOVER/drivers64UEFI/SMCHelper-64.efi

diff 10.12/T420-distribute/EFI/CLOVER/kexts/Other/AppleBacklightInjector.kext/Contents/Info.plist T420-distribute/EFI/CLOVER/kexts/Other/AppleBacklightInjector.kext/Contents/Info.plist
diff 10.12/T420-distribute/EFI/CLOVER/kexts/Other/IntelMausiEthernet.kext/Contents/Info.plist T420-distribute/EFI/CLOVER/kexts/Other/IntelMausiEthernet.kext/Contents/Info.plist
diff 10.12/T420-distribute/EFI/CLOVER/kexts/Other/IntelMausiEthernet.kext/Contents/MacOS/IntelMausiEthernet T420-distribute/EFI/CLOVER/kexts/Other/IntelMausiEthernet.kext/Contents/MacOS/IntelMausiEthernet

diff 10.12/T420-distribute/EFI/CLOVER/kexts/_kext-install.command T420-distribute/EFI/CLOVER/kexts/_kext-install.command
diff 10.12/T420-distribute/EFI/CLOVER/kexts/_post-install-network-reset.command T420-distribute/EFI/CLOVER/kexts/_post-install-network-reset.command

Only T420-distribute/Utilities/Create_AppleBacklightInjector_kext

  • Like 3
Link to comment
Share on other sites

Hi tluck!

 

I've just refreshed to your latest package and this part of the guide is not correct:

 

 

  1. Create a custom AppleBackLightInjector kext, if on 10.12.4 or later

    This is not needed on the USB installer. However, this method replaces the IntelBacklight.kext (which is still included) - so manually remove that kext if present. To create a customer Backlight Injector that matches your LCD Panel, run this script:
    cd ~/Downloads/T420-distribute/Utilities/create_AppleBacklightInjector_T420_T460
    sudo
    ./createAppleBacklightInjector.bash T420

 

The script's extension is not .bash but .command and the path to the T420-distribute package is also different.

Thanks.

Link to comment
Share on other sites

Hey tluck,

 

thank you for continuing support for this project and updating.

Unfortunately, with the newest zip (Clover 4070), I still get the black screen/ graphics issues. By the way, I do have a patched BIOS.

 

 

 

Anyone here by chance who has got the AW-CE123H Wifi card to work in the T420?

Link to comment
Share on other sites

@jacx - what is in your config.plist graphics section? what is your LCD size? i wonder if you are still having a dual link issue?

 

@somez - thanks for pointing that issue out. i updated the guide, can you review the instructions now? thanks

Link to comment
Share on other sites

@tluck I'm using the default config.1600x900.plist from the zip file. I've overwritten the config file with the newer one from the zip when I switched to 4070.
My LCD is also 1600x900, it works just fine here with r4053

Link to comment
Share on other sites

well. if you can dump the clover log on 4070

perhaps you can start up single user so you can reboot after you capture the log

bdmesg

- this is key section:

 

 

5:327  0:000  === [ RestSetup macOS ] ===================================
5:327  0:000  EdidDiscovered size=128
5:327  0:000  ------- EDID Table
5:327  0:000  000  |  00  FF  FF  FF  FF  FF  FF  00  30  E4
5:327  0:000  010  |  0B  05  00  00  00  00  00  19  01  04
5:327  0:000  020  |  95  1F  11  78  EA  0E  E5  95  5B  55
5:327  0:000  030  |  90  27  1C  50  54  00  00  00  01  01
5:327  0:000  040  |  01  01  01  01  01  01  01  01  01  01
5:327  0:000  050  |  01  01  01  01  29  36  80  A0  70  38
5:327  0:000  060  |  1F  40  30  20  35  00  35  AE  10  00
5:327  0:000  070  |  00  1A  00  00  00  00  00  00  00  00
5:327  0:000  080  |  00  00  00  00  00  00  00  00  00  00
5:327  0:000  090  |  00  00  00  FE  00  4C  47  20  44  69
5:327  0:000  100  |  73  70  6C  61  79  0A  20  20  00  00
5:327  0:000  110  |  00  FE  00  4C  50  31  34  30  57  46
5:327  0:000  120  |  35  2D  53  50  42  32  00  B0
5:327  0:000  Intel HD Graphics 520 [8086:1916] :: PciRoot(0x0)\Pci(0x2,0x0)
5:327  0:000    Found Full HD Display - 16:9 :: Width=1920 Height=1080
5:327  0:000    AAPL00,DualLink = 1
5:327  0:000    FakeID Intel GFX: not set
5:327  0:000    ig-platform-id: not set
5:327  0:000    Beginning Intel GFX auto-detection with ACPI injection
5:327  0:000    Found FakeID Intel GFX = 0x19168086
5:327  0:000    Found ig-platform-id = 0x19160000
5:327  0:000  Intel GFX revision  = 0x7
5:327  0:000   RCBA disabled; cannot use it
5:327  0:000   setting specified layout-id=28 (0x1C)
5:327  0:000  stringlength = 1948
5:327  0:000  CurrentMode: Width=1920 Height=1080
5:327  0:000  Beginning FSInjection

  • Like 1
Link to comment
Share on other sites

I followed this guide a few weeks ago and it worked great on my standard display 1366 x 768. My problem is that I recently upgraded my display to a 1920 x 1080 and I get lines. I searched this thread, and other threads and they mentioned I just need to modify the file in the efi, but when I do this with the editor I still can't get it to work. I have also tried turning dual link = 0 and still nothing. Any suggestions? Here is a picture of my display http://ihttp://imgur.com/5t3ybc3mgur.com/5t3ybc3​

Link to comment
Share on other sites

I followed this guide a few weeks ago and it worked great on my standard display 1366 x 768. My problem is that I recently upgraded my display to a 1920 x 1080 and I get lines. I searched this thread, and other threads and they mentioned I just need to modify the file in the efi, but when I do this with the editor I still can't get it to work. I have also tried turning dual link = 0 and still nothing. Any suggestions? Here is a picture of my display http://ihttp://imgur.com/5t3ybc3mgur.com/5t3ybc3​

You maybe need change EDID for you config.plist.

 

00FFFFFFFFFFFF0030AEA340000000000C190104951F1178EA87E5A456509E260D5054000000010101010101010101010101010101012E3680A070381F403020350035AF1000001E1E2D80A070381F403020350035AF1000001E0000000F00D1093BD1093B1E0A0006AF3D12000000FE004231343048414E30312E32200A

Link to comment
Share on other sites

Hello, I’m having a similar problem with a full-hd display mod in a x220.

(see also here: http://www.insanelymac.com/forum/topic/307414-intel-hd3000-x220-strange-display-question/)

 

My display EDID is: 00FFFFFFFFFFFF0030E48A040000000000170104951C1078024BB59B5B548E251E505400000001010101010101010101010101010101143780C270381F403C2E3500149C1000001B00000000000000000000000000000000000000000000000000000000000000000000000000000002000C33FF0F3C961C0F2496000000002A
Macos recognizes the EDID correctly, but shows these weird colors.
Here is a picture: http://imgur.com/a/jsads

 

In Bios, Clover and Windows it works perfect, the colors show up when the loading bar is finished.
When I change device ID from 0x0000 to 0x12345678 it works also.
Injectiing jenyunhunangs EDID did not help, black screen.

 

Reading trough this thread, I wonder if it could be some retiming Problem?
How was the retimed EDID for the 1600x1200 displays calculated?

Link to comment
Share on other sites

--- So i wanted to recreate the black screen on 4070 etc.

 

to avoid black screen

if you have updated your LCD to a 1920x1080 screen you will likely need to

  1. inject the custom EDID for 1920x1080 LCD (or the one specific to your screen) see the 1600x900 config.plist for reference on format
  2. and make sure DualLink=1

OR and set DualLink and EDID in the DSDT:

  1. put the custom EDID in your DSDT -- edit dsdt.edid.dsl as a template example as i put the 1600x1200 EDID in there.
  2. Turn off set Intel injection false

 

In the recent versions of Clover, it is  trying to be clever to figure out if you need DualLink or not - generally seems to be right.

 

For 1366x768 screen DualLink=0

for the rest DualLink=1 seems to be required.

 

to be sure, one can override Clover - add this to your Devices section - to set DualLink=1

<key>AddProperties</key>
  <array>
   <dict>
    <key>Device</key>
    <string>IntelGFX</string>
    <key>Key</key>
    <string>AAPL00,DualLink</string>
    <key>Value</key>
    <data>
    AQ==
    </data>
   </dict>
  </array>

$ ioreg -l | grep DualLink
    | |   | |   "AAPL00,DualLink" = <01>

Edited by tluck
  • Like 1
Link to comment
Share on other sites

It did not help for me. Is the DualLink setting only of importance for the internal display?

The fhd display is recognized as a external Display. (on the dock display port 1)

I had to to deactivate the "Replace 4th port with VGA" patch to get some image.

Link to comment
Share on other sites

@theatregoer

 

yes DualLink is for the internal/built-in LCD - otherwise it looks like only half of the screen (stretched out) 

external displays on the DP or Dock use AppleIntelFramebuffer@[1,2,3] (unless you use VGA for the 4th port.) 

 

the odd colors? when you log in can you change the color profile? i changed my EDID to be RGB only vs YUV.

the screen seems to be at the right proportion (login is in the center) - and if it works in Windows that's all good signs.

Link to comment
Share on other sites

Hi @tluck

I am working on making a new guide for the Lenovo Thinkpad L420 for MacOS Sierra as an update to the guide I wrote for El Capitan and I would like to know if I could quote your guide in some points.

I ask your permission to do so since you wrote this excellent guide :)

  • Like 2
Link to comment
Share on other sites

@tluck I'm using the default config.1600x900.plist from the zip file. I've overwritten the config file with the newer one from the zip when I switched to 4070.

My LCD is also 1600x900, it works just fine here with r4053

In r4070,

If you get black screen, first use ig-platformid 0x12345678 in Clover GUI.

 

Then boot. Maybe you will lost qe/ci.

Get clover log and attach file here.

Until you attach file, cant help you

 

나의 LG-F410S 의 Tapatalk에서 보냄

I followed this guide a few weeks ago and it worked great on my standard display 1366 x 768. My problem is that I recently upgraded my display to a 1920 x 1080 and I get lines. I searched this thread, and other threads and they mentioned I just need to modify the file in the efi, but when I do this with the editor I still can't get it to work. I have also tried turning dual link = 0 and still nothing. Any suggestions? Here is a picture of my display http://ihttp://imgur.com/5t3ybc3mgur.com/5t3ybc3​

Same. Try 0x12345678

Get clover log.

 

나의 LG-F410S 의 Tapatalk에서 보냄

  • Like 1
Link to comment
Share on other sites

@sherlocks - thanks for weighing in here. i was able to sort of re-create the black screen problem. Black screen happened when i turn off Inject Intel in Graphics section AND there is no EDID or DualLink set in the DSDT.  so if turn off clover gfx injection, and boot with a different DSDT with EDID and DualLink=1 then gfx works. 

  • Like 2
Link to comment
Share on other sites

@sherlocks - thanks for weighing in here. i was able to sort of re-create the black screen problem. Black screen happened when i turn off Inject Intel in Graphics section AND there is no EDID or DualLink set in the DSDT. so if turn off clover gfx injection, and boot with a different DSDT with EDID and DualLink=1 then gfx works.

Hello.@tluck. I didnt expect these case.

It is very rare case. Mod bios and replaced display and etc. Normally other machine are no problem...

 

Need to check to clear issue.

R4053

1.builtin LCD resolution, with original lcd if you replace LCD, hardware support resolution

2.clover boot log

3.ioreg

 

R4070

1.built LCD resolution, with original LCD iF you replace LCD, haredware support resolutio

2.get clover boot log. If you get black screen or glitch screen, use fakeid 0x0000 or ig-platform-id 0x12345678

 

Please attach file and reply like this template if you have issue.

 

 

 

나의 LG-F410S 의 Tapatalk에서 보냄

  • Like 1
Link to comment
Share on other sites

Hello,

 

First off thank you very much for providing this guide for the T420. I really appreciate all your hard work.

 

I have it installed and working on 10.12. However, I have tried installing the Ktexts from the guide and from the newest T420 clover files.

I also tried using the Ktext utility but did not change anything.

 

I am using my stock bios at the moment until my programmer comes in.

 

The only issue I am having now is getting the sounds to work. output shows none.

 

I am fairly new to the OSX on PC'S. Maybe I am missing something?

 

Any help is much appreciated.

Link to comment
Share on other sites

@XentriX0110

 

welcome to the group!

 

not clear whether you were able to install the Kexts with _kext-install.command utility or not?  

this tool will copy the kexts from the zip file - in particular AppleHDA_20672.kext - into the HD /Library/Extensions folder and fix up common issues.

Sound will not work unless this kext is copied to the OS partition versus just with the ESP under clover

what version of 10.12?

Link to comment
Share on other sites

 Share

×
×
  • Create New...