Jump to content

[GUIDE] Lenovo T460/T470 macOS with Clover and OpenCore


tluck
 Share

1,289 posts in this topic

Recommended Posts

CPU nodes in ioRegistryEplorer ? 

 

I dumped IntelPlatformPluginInjector.kext from /L/E and replaced the SSDT-CPU.dsl ith the generic SSDT-XCPM.dsl from rehabmas repo. Seems like scaling and power management is working very well. I get basic GeekBench scores of 4036/7829, the Intel Power Gadget shows me idling @ 1GH (100 * 10) with PKG power of around 0.9. Everything looks and feels good. 

 

However in ioRegistryExplorer, I do not get any CPU nodes, i just see "--> cpus". All references I have seem in power management threads say I should be seeing a CPU0 node, that is expandable and shows me details? 

 

Any clues? 

 

Cheers,

Scott. 

Link to comment
Share on other sites

Duh, I figured it out. My T470's namespace is just different. Instead of CPUX, I have PR0X. 

 

So changing SSDT-XCPM.dsl to use PR00 instead of CPU0, allows the injection of X86PlatformPlugin automatically. 

 

This gives me PM as @tluckdescribes in different thread. The minimum freq is 1.3GHz. I can add in @tluck's X86PlatformPluginInjector to get the idle down to 800MHz (but the Geekbench suffers some -- 3800 verses 4000). 

 

Hopefully this helps someone else. 

 

Cheers,

Scott.

 

  • Like 1
Link to comment
Share on other sites

23 hours ago, Blaggah said:

@tluck Any chance on getting my X1 Carbon running like it should?  What do i need to provide in order to get the patched files i'd need?

so what is missing? you should be able to follow the same recipe/procedure outlined in the guide - for example kolodzieski and others have for say T470 etc. his repo and files are the most current.

Link to comment
Share on other sites

Well to start, my x1 carbon 4th gen runs with the same EFI folder from T460 but x1 carbon's performance lags especially when accessing Apps. I could clone my T460 SSD and run it on my x1 and apply the necessary patches there once I finish copying the partitions. 

Link to comment
Share on other sites

On 1/3/2019 at 7:52 PM, nijhawank said:

 

My backlight adjustment is working but not all brightness levels are present before the sleep (just between 70 - 100%). After the sleep cycle, all brightness levels are present.

 

From the WEG documentation...

  • igfxcflbklt=1 boot argument (and enable-cfl-backlight-fix property) to enable CFL backlight patch
  • applbkl=0 boot argument to disable AppleBacklight.kext patches for IGPU

Isn't the boot flag (igfxcflbklt and related property in config.plist) only for Coffylake? T460 is Skylake and I assume that applbkl=0 boot entry controls for everything other than coffylake and I assume that by default WEG applies the backlight patches and applblk=0 is only needed to disable backlight patches?

 

Is the understanding correct?

Hello,

I don't have any brightness controls under 10.13.6, do you know how to fix it ?

Link to comment
Share on other sites

1 hour ago, aleixsr said:

Hello,

I don't have any brightness controls under 10.13.6, do you know how to fix it ?

 

I never tried 10.13.6 (directly Mojave) but I guess that should not make any difference.

Assuming standard knowledge of doing things in hackintosh...

Use the latest Lilu, WhateverGreen (put in /Library/Extensions). Take SSDT-PNLF.aml (put in /EFI/CLOVER/ACPI/patched) from Rahabman's AppleBacklightFixup package.

Your DSDT must not have any brightness fix. 

If you have coffelake cpu, then use the config parameters in clover config.

 

Link to comment
Share on other sites

the more recent Whatevergreen replaces AppleBacklightInjector.

- you need to make sure the _UID in SSDT-PNLF.aml is set to 16 (0x10) vs 10 (0xA)

- remove AppleBacklightInjector.kext

- remove levels patch in config.plist  - so it wont change level range for 0-1000

Edited by tluck
Link to comment
Share on other sites

Well to start, my x1 carbon 4th gen runs with the same EFI folder from T460 but x1 carbon's performance lags especially when accessing Apps. I could clone my T460 SSD and run it on my x1 and apply the necessary patches there once I finish copying the partitions. -------------Edit.  

Forgot to add that my x1 carbon is running but with no audio. I used the same clover files from my T460. I recompiled the screen brightness kext and that's working fine. Where's the repo with the files you're talking about?

Link to comment
Share on other sites

@Blaggah this thread guide refers to this file repo: https://github.com/tluck/Lenovo-T460-Clover

 

- cloning your macOS HD is a great approach. i just did that very thing for my 2 systems to get them in sync.

each system has is own folder for their specific config files, ACPI, kexts - CLOVER/OEM/<board_id>/... 

 

- so everything works on the X1 but the audio? what is the audio codec? AppleALC supports so many codecs now but the config.plist file may be setting an invalid layout.

  • Like 1
Link to comment
Share on other sites

23 hours ago, tluck said:

the more recent Whatevergreen replaces AppleBacklightInjector.   Ok, I updated Whatevergreen v1.2.6 and Lilu v1.3.1

- you need to make sure the _UID in SSDT-PNLF.aml is set to 16 (0x10) vs 10 (0xA) .  I used your zip file that is OK, nothing changed

- remove AppleBacklightInjector.kext . Done in /Library/Extensions and in /EFI/CLOVER/kexts/Other

- remove levels patch in config.plist  - so it wont change level range for 0-1000 I don't know how to do it

 

Hi, I marked in bold what I did to make brightness control work, thank you very much.

 

Now my issue is that when I try to sleep computer it reboots, do you know what can I check?

 

Thank you.

Edited by aleixsr
Link to comment
Share on other sites

sorry. i just updated the zip (now) to have the latest files. so maybe you should pull it down again. 

 

@blaggah - is your audio CX11852 - (lhttps://www.cnet.com/products/thinkpad-x1-carbon-4th-generation/)

not sure AppleALC support this codec, but you can use the general VoodooHDA to get audio.

 

Edited by tluck
Link to comment
Share on other sites

7 hours ago, tluck said:

@Blaggah this thread guide refers to this file repo: https://github.com/tluck/Lenovo-T460-Clover

 

- cloning your macOS HD is a great approach. i just did that very thing for my 2 systems to get them in sync.

each system has is own folder for their specific config files, ACPI, kexts - CLOVER/OEM/<board_id>/... 

 

- so everything works on the X1 but the audio? what is the audio codec? AppleALC supports so many codecs now but the config.plist file may be setting an invalid layout.

Thanks tluck, i took your advice and i managed to run patched the dsdt on my x1 and i deleted all the other ssdt in patched folder. I don't know what codec it is, but im assuming it's the same for the T470. Because it uses the same layout id as my x1 carbon 4th gen. Now the lappy doesn't seem to lag.. Now my audio is working but screen brightness doesn't seem to be working anymore. I only have DSDT.aml in patched folder now.. Do i need the PLNF ssdt in there as well?  Because it was working prior to removing the files and patched dsdt.

Link to comment
Share on other sites

@tluck I did just that and now i have screen brightness working again and my X1 Carbon doesn't feel sluggish at all.  I'm so glad i got this thing working.  Thank you for all the help m8.. One quick question though, the x1 has a password where it needs to be typed on cold boot, i tried disabling it but it doesn't work. 

----------Edited.. I downloaded the latest kext from Rehabman and it's working properly now.  I must say that my X1 Carbon is now a success.. Thanks guys..

Edited by Blaggah
Link to comment
Share on other sites

10 hours ago, aleixsr said:

Hello,

using High Sierra I got a reboot when I try to enter sleep mode, what can I check?

 

Thank you.

 

Huge thanks for the guide first of all. It allowed me to have a fully working install of Sierra on my T460s. 

I upgraded to High Sierra then Mojave which both mostly worked. Right now I'm dealing with the same issues as quoted - sleep and shutdown just reboot the machine. I also have an issue with the trackpad - if I track my finger slowly across the trackpad it works ok. But quicker movements aren't recognized. So, swiping quickly across the trackpad to get from one side of the screen to the other only move the cursor a small bit.

Also for some reason bluetooth isn't recognized. Wifi is.  

 

All the above issues weren't issues in Sierra. Just in High Sierra and Mojave

 

*EDIT*

Tried Clover 4844 and 4849, tried with release 01.17.2019 and 10.12.2018, tried 4 different USB drives, used ACPI files from my laptop/BIOS and the ones included in the releases

 

 

Edited by osmac
Link to comment
Share on other sites

1 hour ago, osmac said:

 

Huge thanks for the guide first of all. It allowed me to have a fully working install of Sierra on my T460s. 

I upgraded to High Sierra then Mojave which both mostly worked. Right now I'm dealing with the same issues as quoted - sleep and shutdown just reboot the machine. I also have an issue with the trackpad - if I track my finger slowly across the trackpad it works ok. But quicker movements aren't recognized. So, swiping quickly across the trackpad to get from one side of the screen to the other only move the cursor a small bit.

Also for some reason bluetooth isn't recognized. Wifi is.  

 

All the above issues weren't issues in Sierra. Just in High Sierra and Mojave

 

*EDIT*

Tried Clover 4844 and 4849, tried with release 01.17.2019 and 10.12.2018, tried 4 different USB drives, used ACPI files from my laptop/BIOS and the ones included in the releases

 

 

 

Hello, 

bluetooth is working ok for me (i'm using High Sierra), you can't see your bluetooth device?

Did you upgraded High Sierra to Mojave using App Store and using same EFI folder? 

On 1/18/2019 at 2:33 PM, Blaggah said:

@tluck I did just that and now i have screen brightness working again and my X1 Carbon doesn't feel sluggish at all.  I'm so glad i got this thing working.  Thank you for all the help m8.. One quick question though, the x1 has a password where it needs to be typed on cold boot, i tried disabling it but it doesn't work. 

----------Edited.. I downloaded the latest kext from Rehabman and it's working properly now.  I must say that my X1 Carbon is now a success.. Thanks guys..

 

@Blaggah can you please share your EFI folder? I've a friend with X1 Carbon also. Thank you.

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

17 minutes ago, aleixsr said:

 

Hello, 

bluetooth is working ok for me (i'm using High Sierra), you can't see your bluetooth device?

Did you upgraded High Sierra to Mojave using App Store and using same EFI folder? 

 

 

Tried with same EFI folder that I used with Sierra, and using the folder from a fresh install. There's no bluetooth option in System Preferences or in Network. It's strange since it worked fine in Sierra. If I use Time Machine to go back to Sierra everything is perfect. Honestly I only upgraded so I could get the latest version of Xcode. I'm not a dev but I'd like to be one day

 

I could attach whatever files anyone would need that might help me narrow down the issues

Link to comment
Share on other sites

sorry i can't be of more help on T460 upgrades.

 

reboot on sleep could a problem with USB? but looking in the system log may help understand what is not right?

 

i cant recall if there is a need to patch to allow more than 15 usb ports or not. 

if so, they are not in the config for High Sierra or Mojave - same for any BRCM patches. 

 

Maybe if someone has a working T460 on HS or Mojave they can share their EFI and I will retrofit the patches to the repo.

 

@osmac - what is your BT device? meaning do you have a replacement Broadcom for example?

 

Link to comment
Share on other sites

On 1/23/2019 at 3:39 AM, aleixsr said:
 
@Blaggah can you please share your EFI folder? I've a friend with X1 Carbon also. Thank you.


I'll send you the EFI folder sometime this weekend. I'm out of town and don't have my X1 Carbon with me. It's 99% stable, just have issues with battery indication not syncing properly sometimes. Other than that, it's rock solid.
@aleixsr here's the clover from my x1 carbon.. I only have the DSDT and plnf.ssdt inside patched folder as they are the only ones i need for my machine. if you friend's x1 is the same as mine, he could use the same dsdt or else i'd recommend patching one himself for his machine..

 



Sent from my iPhone using Tapatalk

X1 Carbon 4thGen CLOVER.zip

Edited by Blaggah
Link to comment
Share on other sites

On 1/23/2019 at 8:26 PM, tluck said:

sorry i can't be of more help on T460 upgrades.

 

reboot on sleep could a problem with USB? but looking in the system log may help understand what is not right?

 

i cant recall if there is a need to patch to allow more than 15 usb ports or not. 

if so, they are not in the config for High Sierra or Mojave - same for any BRCM patches. 

 

Maybe if someone has a working T460 on HS or Mojave they can share their EFI and I will retrofit the patches to the repo.

 

@osmac - what is your BT device? meaning do you have a replacement Broadcom for example?

 

Hello here it is:

- EFI folder

- backtrace.log kernel panic when trying to sleep

 

Thank you!

EFI.zip

backtrace.log

Link to comment
Share on other sites

@aleixsr

 

darn. thought i did this already - but i just cleaned up the clean/wake scripts to remove the kextunload - this is not needed.

 

in fact you can decide if you need to totally remove the /etc/rc.sleep /etc/rc.wake scripts.

 

but for now just remove the kextunload/kextload lines in these files: /etc/rc.sleep /etc/rc.wake

Link to comment
Share on other sites

 Share

×
×
  • Create New...