Jump to content

Lenovo ThinkPad T420 with UEFI Only


K0gen
 Share

5,282 posts in this topic

Recommended Posts

Here are my result:

ioreg -l | grep ApplePanel

"ApplePanelRawBrightness" = 4882

"ApplePanel" = {"F10T313c"=<00110000008c00d80136018f01fe02a3034503e704c70535075a091c0b130d9b10591312>}

 

ioreg -l | grep yEDID

"IODisplayEDID" = <00ffffffffffff0006af3c310000000000140103801f11780a10b597585792261e505400000001010101010101010101010101010101121b5646500023302616360036ae10000018000000000000000000000000000000000000000000fe0031333636783736380a2020202000000000000000000000000000000000000000a6>

 

ioreg -l | grep linear-

MAX

"IODisplayParameters" = {"commit"={"reg"=0},"fade-time2"={"min"=0,"max"=10000,"value"=4000},"linear-brightness-probe"={"min"=0,"max"=4882,"value"=4882},"ggsc"={"min"=0,"max"=65536,"value"=65536},"gsc "={"min"=0,"max"=65536,"value"=65536},"vblm"={"min"=0,"max"=196608,"value"=65536},"dsyp"={"min"=0,"max"=2,"value"=2},"rgsc"={"min"=0,"max"=65536,"value"=65536},"fade-style"={"min"=0,"max"=10,"value"=0},"fade-time1"={"min"=0,"max"=10000,"value"=500},"bgsc"={"min"=0,"max"=65536,"value"=65536},"brightness-probe"={"min"=0,"max"=1024,"value"=1024},"fade-time3"={"min"=0,"max"=10000,"value"=500},"bklt"={"min"=0,"max"=4882,"value"=4882},"linear-brightness"={"min"=0,"max"=4882,"value"=4882},"brightness"={"max"=1024,"min"=0,"value"=1024},"brightness-fade"={"min"=0,"max"=1023,"value"=0},"usable-linear-brightness"={"min"=140,"max"=4882,"value"=4882}}

 

MEDIUM

"IODisplayParameters" = {"commit"={"reg"=0},"fade-time2"={"min"=0,"max"=10000,"value"=4000},"linear-brightness-probe"={"min"=0,"max"=4882,"value"=999},"ggsc"={"min"=0,"max"=65536,"value"=65536},"gsc "={"min"=0,"max"=65536,"value"=65536},"vblm"={"min"=0,"max"=196608,"value"=65536},"dsyp"={"min"=0,"max"=2,"value"=2},"rgsc"={"min"=0,"max"=65536,"value"=65536},"fade-style"={"min"=0,"max"=10,"value"=0},"fade-time1"={"min"=0,"max"=10000,"value"=500},"bgsc"={"min"=0,"max"=65536,"value"=65536},"brightness-probe"={"min"=0,"max"=1024,"value"=512},"fade-time3"={"min"=0,"max"=10000,"value"=500},"bklt"={"min"=0,"max"=4882,"value"=4882},"linear-brightness"={"min"=0,"max"=4882,"value"=999},"brightness"={"max"=1024,"min"=0,"value"=512},"brightness-fade"={"min"=0,"max"=1023,"value"=0},"usable-linear-brightness"={"min"=140,"max"=4882,"value"=999}}

 

 

MIN

"IODisplayParameters" = {"commit"={"reg"=0},"fade-time2"={"min"=0,"max"=10000,"value"=4000},"linear-brightness-probe"={"min"=0,"max"=4882,"value"=140},"ggsc"={"min"=0,"max"=65536,"value"=65536},"gsc "={"min"=0,"max"=65536,"value"=65536},"vblm"={"min"=0,"max"=196608,"value"=65536},"dsyp"={"min"=0,"max"=2,"value"=2},"rgsc"={"min"=0,"max"=65536,"value"=65536},"fade-style"={"min"=0,"max"=10,"value"=0},"fade-time1"={"min"=0,"max"=10000,"value"=500},"bgsc"={"min"=0,"max"=65536,"value"=65536},"brightness-probe"={"min"=0,"max"=1024,"value"=64},"fade-time3"={"min"=0,"max"=10000,"value"=500},"bklt"={"min"=0,"max"=4882,"value"=4882},"linear-brightness"={"min"=0,"max"=4882,"value"=140},"brightness"={"max"=1024,"min"=0,"value"=64},"brightness-fade"={"min"=0,"max"=1023,"value"=0},"usable-linear-brightness"={"min"=140,"max"=4882,"value"=140}}

Link to comment
Share on other sites

21-Apr-2017 Update posted zip bundle

  • Updated to Clover r4063
  • revised config.plist for new plist EDID format
  • Added RehabMan's AppleBacklightInjector method for LCD Backlight for 10.12.4
  • Removed IntelBackLight.kext (now an optional kext) - doesn't work after 10.12.3

1600x900 users - pay attention here - need to modify your Graphics section of config.plist. Clover was modified to use a new plist format for EDID injection.

  • Like 3
Link to comment
Share on other sites

21-Apr-2017 Update posted zip bundle

  • Updated to Clover r4063
  • revised config.plist for new plist EDID format
  • Added RehabMan's AppleBacklightInjector method for LCD Backlight for 10.12.4
  • Removed IntelBackLight.kext (now an optional kext) - doesn't work after 10.12.3

1600x900 users - pay attention here - need to modify your Graphics section of config.plist. Clover was modified to use a new plist format for EDID injection.

 

I have a 1377xsomething model, and installed the AppleBacklightInjector kext but can't change my brightness, the slider appears but nothing happens.

 

Do I have to do anything else?

Link to comment
Share on other sites

@theslashy - did you just install as is - or did you run the "create script" to update the kext with your LCD info before installing it?

 

if you send the EDID LCD info like Tettone did, then i can add your LCD to the kext for on-going support

 

i have these models in there now: 02e2, 213e, 313c

  • Like 1
Link to comment
Share on other sites

@theslashy - did you just install as is - or did you run the "create script" to update the kext with your LCD info before installing it?

yeah I just wanted to update my post.

I just installed it, now I ran the script and everything works perfect, thank you very much!

 

//edit, but now sound is gone....

 

//edit2: ok, after another reboot it works now!

Link to comment
Share on other sites

@theslashy - did you just install as is - or did you run the "create script" to update the kext with your LCD info before installing it?

 

if you send the EDID LCD info like Tettone did, then i can add your LCD to the kext for on-going support

 

i have these models in there now: 02e2, 213e, 313c

@tluck

This is my X220 LCD EDID 1366x768.

X2201122:~ jyhuang$ ioreg -l | grep ApplePanel

    | | |   "ApplePanelRawBrightness" = 340

    | |       "ApplePanel" = {"F10T40e2"=<00110000008c00d80136018f01fe02a3034503e704c70535075a091c0b130d9b10591312>}

X2201122:~ jyhuang$ ioreg -l | grep yEDID

    | |   | | |       "IODisplayEDID" = <00ffffffffffff0030aee2400000000000140103801c1078ead4e59559578b2820505400000001010101010101010101010101010101251d56d45000163030202500159c1000001b221d560652001a3030202500159c1000001b0000000f008c09328c09281e0a0030e4d802000000fe004c503132355748322d534c42330093>

  • Like 1
Link to comment
Share on other sites

My result with EDID injection in config <key>InjectEDID</key> <true/>

 

ioreg -l | grep yEDID

    | |   | | |       "IODisplayEDID" = <00ffffffffffff0006af3c310000000000140103801f11780a10b597585792261e505400000001010101010101010101010101010101121b5646500023302616360035ad100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343058573033205631200a0029>

 

ioreg -l | grep ApplePanel

    | |       "ApplePanels" = {"F10T02e2"=<00110000008c00d80136018f01fe02a3034503e704c70535075a091c0b130d9b10591312>,"F10T050b"=<00110000001c002c003f00510068008a00ab00cc00fa0135018101dd024402c9035903e8>}

 
previous result where with a calculate custom EDID i was using for a long time.
sorry for confusion
 
what do you think a bout that ?
1. Intel® HD Graphics 3000

 

Apple started supporting the Intel® HD Graphics 3000 IGPU with the release of OS X Lion. I did not like OS X Lion. Anyways, this IGPU works best on OS X Yosemite or later.

 

Since we are using Clover Bootloader, the team behind Clover did not implement a direct way to enable the Intel® HD Graphics 3000 IGPU. Problem?   :unsure:

 

No problem.   ^_^

 

Let's open up Clover Configurator. We are interested in the Devices section.

EazDrjw.png

In order fix this problem, we are going to add some properties. We need this information first to get started:

 

1) Device

2) Key

3) Value

4) Value Type

 

Click on the "+" button at the bottom of the Add Properties box. Follow the instructions below.

 

1) Device

 

In the Device box, type in:

IntelGFX

2) Key

 

In the Key box, type in:

AAPL,snb-platform-id

3) Value

 

In the Value box, type in:

10000300

4) Value Type

 

In the Value Type box, select "data".

 

Now, we will need to fake the ID of the Intel® HD Graphics 3000 IGPU. In the same Devices section, there is a Fake ID area. We are only interested in the IntelGFX box.

 

In the IntelGFX box, type:

0x01268086

In the end, you should have something like this:

 

TKQnFgq.png

 

We are almost done. All that's left is to go to the Graphics section and enable "Inject Intel".

  • Like 1
Link to comment
Share on other sites

@tetonne

 

Yes - the latest version of Clover 4063 - which is in the guide - does have a new implementation for Graphics. With a focus on Intel HD graphics. I tested it on these devices HD3000 , HD4000, HD4600, and HD520. So yes the graphics section of the config.plist is very simple now - and the DSDT or SSDT devices are not really necessary.

 

I will post a new zip with a revised AppleBackLightInjector kext for Panel Brightness as soon as i collect a few more models. 

<key>Graphics</key>
<dict>
  <key>Inject</key>
  <dict>
   <key>Intel</key>
   <true/>
  </dict>
</dict>

for the 1600x900 version - we have to inject a patched EDID to change some timings. 

  • Like 3
Link to comment
Share on other sites

Hi, i have an issue, with a lenovo T420 with i5-2540M and Intel HD 3000 the issue is:

 

I can create a boot usb following all the steps mounting it and copying the needed folders to the EFI partition, when i boot the USB i go to install macOS Sierra then the apple logo shows and takes a while to fill the whole bar, after the bar is filled it just hangs in a black screen i already tried to press PAUSE or FN + HOME but no luck.

 

Thanks.

 

Edit.

Hello, first of all many thanks for the great and comprehensive guide.I have exactly the same problem, also on a t420 with HD3000. In verbose mode, these are the last log entries:logdysxr.png Thank you for your ideas! Edit: I'm using the latest MacOS Installer (downloaded yesterday), as well as the latest zipfile from the post.

I confirm I have the same verbose output before the black screen and also I'm using the latest Sierra installer downloaded yesterday.

Link to comment
Share on other sites

Hi, i have an issue, with a lenovo T420 with i5-2540M and Intel HD 3000 the issue is:

 

I can create a boot usb following all the steps mounting it and copying the needed folders to the EFI partition, when i boot the USB i go to install macOS Sierra then the apple logo shows and takes a while to fill the whole bar, after the bar is filled it just hangs in a black screen i already tried to press PAUSE or FN + HOME but no luck.

 

Thanks.

 

Hello, first of all many thanks for the great and comprehensive guide.

 

I have exactly the same problem, also on a t420 with HD3000. In verbose mode, these are the last log entries:

 

logdysxr.png

 

Thank you for your ideas!

 

Edit: I'm using the latest MacOS Installer (downloaded yesterday), as well as the latest zipfile from the post.

  • Like 1
Link to comment
Share on other sites

i am traveling this week and will not have access to my T420 to test the installer.  

 

one thing you could do to get the installer past any graphics issues is to inject a bogus id.

 

boot up the clover -  but go to the Options menu (hit arrow)

then in the graphics section, change device ID from 0x0000 to 0x12345678

 

this will boot in non HD3000 mode..

  • Like 1
Link to comment
Share on other sites

Thanks a lot @tluck.

 

I did the whole install now, worked well except i had to hard reset the installation process 3 times to boot with modified DeviceID :D

 

Everything is setup now and works. However, I still have to use the 12345678 ID to get an Image on the screen after booting :/

 

So I have a working System without specific HD3000 drivers so far, and with 1024x768 Resolution..

Link to comment
Share on other sites

@jacx and @enghell

 

i am wondering why you 2 do not have full gfx.

the Clover version in the zip should be 4063 which is pretty much the latest version. 

can you post your Clover boot.log?

 

the attached bdmesg will dump the log.

bdmesg.zip

Link to comment
Share on other sites

well i am loss to understand why your system wont come up properly without the FakeID for Graphics - I have the same deviceID 0126

what happens if you don't provide the fakeiD?

Link to comment
Share on other sites

what happens if you don't provide the fakeiD?

 

 

I took my time to understand how logs where generated.

There we go: https://pastebin.com/mQZpE6cw

 

Edit:

  1. 7:320  0:001  Failed to load extra kext (executable not found): EFI\CLOVER\kexts\Other\AppleBacklightInjector.kext
  2. 7:321  0:001    Extra kext: EFI\CLOVER\kexts\Other\AppleHDA_20672.kext
  3. 7:324  0:002  Thinning fails
  4. 7:325  0:001  Thinning failed: EFI\CLOVER\kexts\Other\AppleHDA_20672.kext
 
Check this line:

  1. 7:320  0:001  Failed to load extra kext (executable not found): EFI\CLOVER\kexts\Other\AppleBacklightInjector.kext
 
I've made sure that this kext is there, but still I get this error.
Link to comment
Share on other sites

A second thing I noticed:

Right at the beginning, Clover tries to set the resolution to 1600x900 and fails.. I don't know whether that is normal or tells us something:

0:879  0:498  === [ InitScreen ] ========================================
0:916  0:036  SetScreenResolution: 1600x900 - not found!
0:918  0:001  SetMaxResolution: found best mode 2: 1024x768
1:036  0:118  Video mode change to mode #2: Success

It would be helpful if someone with a working t420 install could post his/her log for comparison

Link to comment
Share on other sites

guys. hmm until i get back home later this week to take a look at 4063 etc ... here is the previous version. perhaps this will work for you.

 

@enghell - you seem to have installed the pre-compiled 4061 package - 4061 is broken for sure. so please use 4063 CLOVERX64.efi/BOOTX64.efi files or try the 4052 package.

 

since you have installed all the kexts in HD in /Library/Extensions thats where the system cacheing kexts from. the kexts in ESP are a good standby for the Installer and  Recovery HD.

 

so

injector question from Clover log - that note is OK its just a property injector - there is no binary.

1600x900 in Clover - if you have not installed a modded bios then then the standard T420 bios does not support 1600x900 during boot

T420_UEFI-Clover-b4052_10.11_10.12-2017-04-03.zip

  • Like 1
Link to comment
Share on other sites

Success!

Beautiful, sharp graphics using all the files out of the current zip, but with the CLOVERX64.efi/BOOTX64.efi and BOOT/BOOTX64.efi from version 4052 (the zip attached above).

While writing this I now realised that I have no sound, and display brightness control also doesn't work.

However, now we know for sure that it is a problem with the specific Clover version.

 

Edit: 4061 seems to be the latest version on the Clover website?

Link to comment
Share on other sites

i am traveling this week and will not have access to my T420 to test the installer.

 

one thing you could do to get the installer past any graphics issues is to inject a bogus id.

 

boot up the clover - but go to the Options menu (hit arrow)

then in the graphics section, change device ID from 0x0000 to 0x12345678

 

this will boot in non HD3000 mode..

tluck, this is not related to the t420 but would this bogus id work for a HD 4000?

 

Thanks

 

Sent from my EVA-L09 using Tapatalk

Link to comment
Share on other sites

I can confirm using that zip folder worked for me, But I do have audio.

 

 

Related to the brightness controls do not work for me also, but the thinklight does work also trying with pause and ScrLck didn't work, so this must be related to this specific kext, will try to log and get info from it.

 

 

 

tluck, this is not related to the t420 but would this bogus id work for a HD 4000?

Thanks

Sent from my EVA-L09 using Tapatalk

 

You better try and see if it works. This can be a problem with the latest clover and HD 3000/4000/5000, then try just to copy the CLOVERX64.efi/BOOTX64.efi files and see if you can boot without black screen.

  • Like 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...