Jump to content

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


tluck
 Share

1,289 posts in this topic

Recommended Posts

5 hours ago, kolodzieski said:

 

Mainly because the developers of the crucial kexts that most of us use has moved on to OpenCore. 

 

I am not in a hurry, and do not switch technologies just to switch; howwever  my initial read right now is that OpenCore is gong to be the future Hackintosh booting. In my opinion it is something worth looking at in my spare time.  

 

I agree. OpenCore team is not committing or even testing the new releases of these kexts and drivers with Clover. The Clover users are essentially left on their own, things might work or may stop working at some point. For example, AptioMemoryFix is no more being developed and the new stuff is OpenCore exclusively, though some kind souls have back ported it for Clover. 

 

At some point, it would make sense to have the OpenCore option available if not completely switch sides. Clover is rock solid stable on my hack and everything works beautifully, but would be happy to explore OpenCore.

  • Like 2
Link to comment
Share on other sites

On 1/12/2020 at 2:43 AM, tluck said:

so what does this show: 


ioreg -l |grep ApplePanel 

 

In case of custom AppleBacklight profile is necessary (e.g. via AppleBacklightInjector.kext) the following must be performed to accomplish WhateverGreen compatibility:

  • Create your injector with a correct profile
  • Disable WhateverGreen backlight patches via applbkl=0 boot argument
  • Specify injector IOProbeScore (in injector Info.plist) equal to 5500

 

Here's the output of your command:

 

> ioreg -l | grep ApplePanel
    | | |   "ApplePanelRawBrightness" = 766
    | |       "ApplePanel" = {"F16Txxxx"=<0011000000180027003a00520071009600c400fc0140019301f6026e02fe03aa0478056c>}

I'm not sure how I can create a custom AppleBacklight injector or profile

Link to comment
Share on other sites

On 1/15/2020 at 1:32 AM, nijhawank said:

 

At some point, it would make sense to have the OpenCore option available if not completely switch sides. Clover is rock solid stable on my hack and everything works beautifully, but would be happy to explore OpenCore.

I think if eventual move to opencore need to happen, the first challenge we have to face is to convert all DSDT patches to SSDT hotpatch. because opencore treat all OS with same modification.

Link to comment
Share on other sites

On 12/13/2019 at 1:21 AM, yokarlos3 said:

Hello,

 

I recently installed High Sierra and Catalina in a T460s and with both OS I'm getting a slow boot because the 'spaceman_trim_free_blocks' task takes more than a minute to complete on every reboot. It looks like there are tons of blocks to trim (~53885255). This also happens with just turning on the computer and restarting. However, if I disable Trim in the clover config.plist, booting is fast.

 

I also noticed that erasing the disk or creating partitions with DiskUtil also takes several minutes when Trim is enabled, or just a couple of seconds if it's disabled.

 

The disk model is INTEL SSDSCKGF240A5L and BIOS N1CET78W (1.46). I'm also using the EFI folder from tluck's github.

 

Is anyone experiencing this issue?

 

Regards

bootSpaceman.jpg

 

Nobody else is experiencing this issue?

 

Link to comment
Share on other sites

On 1/17/2020 at 4:44 AM, Styxie said:

 

Here's the output of your command:

 


> ioreg -l | grep ApplePanel
    | | |   "ApplePanelRawBrightness" = 766
    | |       "ApplePanel" = {"F16Txxxx"=<0011000000180027003a00520071009600c400fc0140019301f6026e02fe03aa0478056c>}

I'm not sure how I can create a custom AppleBacklight injector or profile

you just create one using my script? then install/copy the injector kext in the ESP.

and then add this boot arg in the config.plist applbkl=0

Link to comment
Share on other sites

Looking for some help creating a bootable USB clone using the latest config. I used Carbon Copy Cloner to clone the main drive to the USB, then used Clover Configurator, Clover Cloner to Clone the main drive EFI partition onto the USB drive. As far as I can tell, everything is now the same between my main drive and the USB drive. However, when I try and boot through the USB, it makes it as far as the OS logo and then hangs. No progress bar nothing. When I tried to put it in verbose it never even showed me one line of text before hanging.

Unsure, if I'm missing a configuration step or something. To be clear, everything on the system works fine. I just wanted to make a bootable clone for backup and testing, but it doesn't seem to be working.

EDIT: I should add that I have tried this to an SSD in a USB caddy and a normal USB flash drive. Same results.

 

Edited by KaidenAlenko
Link to comment
Share on other sites

Всё работает, но при каждом запуске вылетает ошибка:

Spoiler

panic(cpu 0 caller 0xffffff7f85c7c69f): assertmsg@/Library/Caches/com.apple.xbs/Sources/GPUDriversIntel/GPUDriversIntel-14.0.69/IONDRV/SKL/AppleIntelFramebuffer/AppleIntelController.cpp:26976

Backtrace (CPU 0), Frame : Return Address

0xffffff9113a6ba20 : 0xffffff8001f3f98b mach_kernel : _handle_debugger_trap + 0x47b

0xffffff9113a6ba70 : 0xffffff8002076c15 mach_kernel : _kdp_i386_trap + 0x155

0xffffff9113a6bab0 : 0xffffff800206861e mach_kernel : _kernel_trap + 0x4ee

0xffffff9113a6bb00 : 0xffffff8001ee6a40 mach_kernel : _return_from_trap + 0xe0

0xffffff9113a6bb20 : 0xffffff8001f3f077 mach_kernel : _DebuggerTrapWithState + 0x17

0xffffff9113a6bc20 : 0xffffff8001f3f45b mach_kernel : _panic_trap_to_debugger + 0x21b

0xffffff9113a6bc70 : 0xffffff80026d2d89 mach_kernel : _panic + 0x61

0xffffff9113a6bce0 : 0xffffff7f85c7c69f com.apple.driver.AppleIntelSKLGraphicsFramebuffer : __ZN31AppleIntelFramebufferController11getWorkLoopEv.cold.1

0xffffff9113a6bcf0 : 0xffffff7f85c28af2 com.apple.driver.AppleIntelSKLGraphicsFramebuffer : __ZN31AppleIntelFramebufferController20getUnifiedMemorySizeEv

0xffffff9113a6bd50 : 0xffffff7f85c254a4 com.apple.driver.AppleIntelSKLGraphicsFramebuffer : __ZN31AppleIntelFramebufferController5startEP9IOService + 0xc9e

0xffffff9113a6bde0 : 0xffffff800261ba16 mach_kernel : __ZN9IOService14startCandidateEPS_ + 0xf6

0xffffff9113a6be40 : 0xffffff800261b5c1 mach_kernel : __ZN9IOService15probeCandidatesEP12OSOrderedSet + 0xb21

0xffffff9113a6bef0 : 0xffffff800261a90e mach_kernel : __ZN9IOService14doServiceMatchEj + 0x2ce

0xffffff9113a6bf50 : 0xffffff800261d0ad mach_kernel : __ZN15_IOConfigThread4mainEPvi + 0x15d

0xffffff9113a6bfa0 : 0xffffff8001ee613e mach_kernel : _call_continuation + 0x2e

      Kernel Extensions in backtrace:

         com.apple.driver.AppleIntelSKLGraphicsFramebuffer(14.0)[D8112474-3BAA-372D-AFE5-6F15AB2E6748]@0xffffff7f85bfc000->0xffffff7f85e20fff

            dependency: com.apple.iokit.IOPCIFamily(2.9)[E6E855AD-A5B2-3518-A997-1384B4360708]@0xffffff7f8290f000

            dependency: com.apple.iokit.IOACPIFamily(1.4)[9BA2613C-A129-3EDD-8DC1-2CFF6B62B832]@0xffffff7f82906000

            dependency: com.apple.iokit.IOAcceleratorFamily2(438.1.23)[95FE222A-D225-3208-87A9-C2691A025BE7]@0xffffff7f85b2f000

            dependency: com.apple.iokit.IOReportFamily(47)[0CAFCFA4-9263-3847-8ED0-1867D214CDD7]@0xffffff7f82849000

            dependency: com.apple.AppleGraphicsDeviceControl(4.1.46)[0266F94C-3545-376D-AF0F-802F6D340F1C]@0xffffff7f85bf2000

            dependency: com.apple.iokit.IOGraphicsFamily(558.3)[23A17FD4-B8DA-3D9D-8AC5-D05039DF41ED]@0xffffff7f85ade000

 

BSD process name corresponding to current thread: kernel_task

Boot args: kext-dev-mode=1 -v debug=0x100 keepsyms=1   root-dmg=file:///Install%20macOS%20Catalina.app/Contents/SharedSupport/BaseSystem.dmg

 

Mac OS version:

19A602

 

Kernel version:

Darwin Kernel Version 19.0.0: Wed Sep 25 20:18:50 PDT 2019; root:xnu-6153.11.26~2/RELEASE_X86_64

Kernel UUID: 70EDD61F-86EE-3E1B-873F-98D909B78160

Kernel slide:     0x0000000001c00000

Kernel text base: 0xffffff8001e00000

__HIB  text base: 0xffffff8001d00000

System model name: MacBookPro11,1 (Mac-189A3D4F975D5FFC)

System shutdown begun: NO

Panic diags file unavailable, panic occurred prior to initialization

 

System uptime in nanoseconds: 67966558780

last loaded kext at 67408517908: |IONDRVSupport 558.3 (addr 0xffffff7f85ea3000, size 57344)

last unloaded kext at 895662918: as.vit9696.!AALC 1.0.19 (addr 0xffffff7f85aa7000, size 798720)

loaded kexts:

 

 

 

 

Link to comment
Share on other sites

Hello Everyone,

I have made some progress on making some hotpatch SSDT of DSDT patch used on T460 tluck pack.

As OpenCore NDK fork is maturing enough to be a alternative to Clover with GUI boot picker. If anyone

interested to Experiment with OpenCore, I think this SSDT hotpatch approach will need to be perfected.

So far I have equivalant DSDT patch to SSDTs are (See attachment for dsl source file)

  1.  1_led_blink.txt ==> SSDT-PTWK.dsl
  2. 1_system_PNOT.txt ==> This patch suppresses PNOT, PPNT, PNTF method call, if found are commonly called from EC/AC adapter related code and often access identifiers that are present in SSDTs generally dropped (CPU SSDTs). I only found one PNTF call on the DSDT and because we don't have to drop any cpu related SSDT, I think we are good to go without it. If anyone have trouble without this patch, it would be great to try to make a hotpatch or binary patch if needed.
  3. 2_IGBE_PRW.txt ==> this is achived with config binary patch.
  4. 2_system_H8DR.txt ==> SSDT-H8DR.dsl, I have made two alternative verstion of SSDT for this patch, though I am not sure if any one of it work. And this patch might not be required at all because on DSDT I found this code on \_SB._INI  method.
     If ((\_REV >= 0x02))
    {
    	\H8DR = 0x01
    }

    and DSDT disassambly Original Table Header:
     *     Signature        "DSDT"
     *     Length           0x000127DF (75743)
     *     Revision         0x02     // This says revision is 0x02 so H8DR might automatically be One on newer bios version

  5. 2_system_nvst.txt ==> This patch is about enabling lid sleep but I didn't face any problem without it. 

  6. 3_Fn_Keys.txt ==> SSDT-KBD.dsl

  7. 4_battery_fan.txt ==> SSDT-BATT.dsl

  8. 5_syscl_PPMCnPMCR.txt ==> This also can be achived with SSDT.

As of now for two days I am running my system with these SSDTs and with native unmodified DSDT without any recognizable functional and performace difference, but the acpi log shows tons of errors with these SSDTs. It would be great help if you guys could give a hand to track down these errors and solving them.

 

This work is done by taking as a base and modifying jsassu20's T450s repo. Because these two machines are similar they share lots of things in common and jsassu20 did a fine job making T450 fully hotpatch base. Anyone want to experiment look at his repos for direction.

Regards,

Junaed

 

SSDT-HOTPATCH.zip

Edited by junaed.rx
  • Like 3
Link to comment
Share on other sites

On 1/8/2020 at 11:49 AM, tluck said:

i originally had a touch screen. WEG and the backlight injector may be in conflict. what seemed to work (based on a long memory) was to make sure the min/max values was ranged 0 to 1000.

look at

 


ioreg -l |grep ApplePanel 

the values are in hex 

for example: 

0011 0000 001C 002C 003F 0051 0068 008A 00AB 00CC 00FA 0135 0181 01DD 0244 02C9 0359 03E8

 

0011 = 17 

so 17 values from

0000

to

03E8 = 1000

 

 

So here is what my output is

 

 | | |   "ApplePanelRawBrightness" = 1388

    | |       "ApplePanel" = {"F16Txxxx"=<0011000000180027003a00520071009600c400fc0140019301f6026e02fe03aa0478056c>}

 

Based on what you were saying where would I edit that

Link to comment
Share on other sites

On 2/13/2020 at 5:07 PM, Jobe said:

 

So here is what my output is

 

 | | |   "ApplePanelRawBrightness" = 1388

    | |       "ApplePanel" = {"F16Txxxx"=<0011000000180027003a00520071009600c400fc0140019301f6026e02fe03aa0478056c>}

 

Based on what you were saying where would I edit that

 

I already explained. you should use the applebacklight injector (kext) in the zip or create one using my script. 

then install/copy the injector kext into the ESP.

and then add this boot arg in the config.plist applbkl=0

which means that WEG will not create the property - 

 

Link to comment
Share on other sites

On 1/5/2020 at 5:26 PM, poison44rus said:

Hello !! help me please!! I don’t speak English, so write simpler.

Снимок экрана 2020-01-05 в 13.20.46.png

Please help. I also have the same situation. Also when I type the command "/usr/local/bin/espmount.bash 0", I get an error:
"zsh: permission denied: /usr/local/bin/espmount.bash"

Link to comment
Share on other sites

3 hours ago, duythanh91 said:

Please help. I also have the same situation. Also when I type the command "/usr/local/bin/espmount.bash 0", I get an error:
"zsh: permission denied: /usr/local/bin/espmount.bash"

maybe you need add execution for this tool?

so run:

     sudo chmod 755 /usr/local/bin/espmount.bash

Link to comment
Share on other sites

On 2/22/2020 at 7:06 PM, pure.wisdom said:

Missing a VoodooInput, it combines with voodoops2 from version 2.1.0

sorry - cant test this but ... I added VoodooInput.kext 1.0.3 and bumped VoodooPS2 to latest in github

Link to comment
Share on other sites

Sorry if I ask stupid. But can you support Thinkpad X280? I used your script on X260 (with version of T460). And everything is great. I just switched to x280 yesterday and the first thing I did was hackintosh. But unfortunately, I'm a noob, so I don't know how to make everything perfect without your script. I'm willing to donate you to be motivated to help. Thank you

Link to comment
Share on other sites

 Share

×
×
  • Create New...