Contribute
Register

[Guide] Lenovo ThinkPad T440P [OpenCore 0.5.9]

Status
Not open for further replies.
It matters: I just updated to OC 0.6.0 and there is no more kernel panic when sleep with my external HDMI monitor connected to dock. I'm using the August RELEASE versions of Lilu and Whatevergreen.

Some small changes to config.plist were required; you can't just reuse the one from 0.5.9.
I used OCConfigCompare to compare my config.plist with the sample.plist distributed with OC-0.6.0-RELEASE.

Differences in my config.plist from 0.5.9 distributed by Sniki:
  • Disabled Broadcom wifi kexts
  • Added and Enabled Intel wifi (itlwm) kext
  • Added and Enabled patch _PRW in IGBE to fix instant wake
  • Added and Enabled patch AppleAHCIPort kext to enable second HDD in Ultrabay
  • Added a few new keys from sample.plist to make 0.6.0 boot (all are set to FALSE).


Here's my EFI folder if you want to give 0.6.0 a spin.

UPDATE:
Damn! After more testing, it still panics sometimes when I put it to sleep while running external display through dock.
 

Attachments

  • EFI060.zip
    11.5 MB · Views: 119
Last edited:
Hello guys, Im having problem with audio through DP the sound is not working at all when connected.
 
Here's a patch for the annoying instant wake while docked problem:

Put this in the array under ACPI / PATCH section of config.plist

Code:
<dict>
                                <key>Comment</key>
                                <string>Instant Wake Fix ( IGBE _PRW 0x0D, 0x04 to 0)</string>
                                <key>Count</key>
                                <integer>0</integer>
                                <key>Enabled</key>
                                <true/>
                                <key>Find</key>
                                <data>
                                EgYCCg0KBA==
                                </data>
                                <key>Limit</key>
                                <integer>0</integer>
                                <key>Mask</key>
                                <data>
                                </data>
                                <key>OemTableId</key>
                                <data>
                                </data>
                                <key>Replace</key>
                                <data>
                                EgYCCg0KAA==
                                </data>
                                <key>ReplaceMask</key>
                                <data>
                                </data>
                                <key>Skip</key>
                                <integer>0</integer>
                                <key>TableLength</key>
                                <integer>0</integer>
                                <key>TableSignature</key>
                                <data>
                                </data>
                        </dict>

Or if you must muck about with plist edit pro:

Create a new entry under ACPI/PATCH in config.plist

Which has

FIND: 12 06 02 0A 0D 0A 04
REPLACE: 12 06 02 0A 0D 0A 00

You might notice this patch is very similar to "Instant Wake Fix" already present.

This does not fix the panic with dock screen connected; you still have to unplug external monitor to sleep.

I'm still using OC 0.5.9 and I have the latest unpatched BIOS 2.55 from Lenovo. Don't know if it matters. (If in doubt, get iasl from rehabman's bittbucket and check your own DSDT for _PRW in device IGBE.)
thank you. I think it works on my T440p on OC 0.5.9
 
Today when I am watching YouTube video on my T440P (it is running on the battery. The computer immediately restarted without any sign.
After the restart, here is the panic report.

Would someone here help me to analyze it; what caused the kernel panic? Thank you in advance.

---------------
Panic(CPU 4, time 14032821826254): NMIPI for unresponsive processor: TLB flush timeout, TLB state:0x0
RAX: 0x000070000587eb80, RBX: 0xffffff802f7fdb58, RCX: 0x000000000000005e, RDX: 0x0000225200000000
RSP: 0xffffff81ef78be68, RBP: 0xffffff81ef78bea8, RSI: 0xffffff80257aea40, RDI: 0xffffff802f7fdb58
R8: 0x0000000000000000, R9: 0x0000000000989680, R10: 0xffffff8001ff5280, R11: 0x0000000000000d00
R12: 0xffffff80257aea40, R13: 0x0000000000000000, R14: 0x000022527a319bef, R15: 0x000070000587eb80
RFL: 0x0000000000000083, RIP: 0xffffff800154c265, CS: 0x0000000000000008, SS: 0x0000000000000000
Backtrace (CPU 4), Frame : Return Address
0xffffff81e0278f80 : 0xffffff800166474b
0xffffff81e0278fd0 : 0xffffff80014e2bed
0xffffff81ef78bea8 : 0xffffff800154c404
0xffffff81ef78bed8 : 0xffffff800158abb2
0xffffff81ef78bef8 : 0xffffff8001588fbb
0xffffff81ef78bf18 : 0xffffff8001a391aa
0xffffff81ef78bf60 : 0xffffff8001a38b25
0xffffff81ef78bfa0 : 0xffffff80014e213e

BSD process name corresponding to current thread: WindowServer

Mac OS version:
19D76

Kernel version:
Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64
Kernel UUID: A8DDE75C-CD97-3C37-B35D-1070CC50D2CE
Kernel slide: 0x0000000001200000
Kernel text base: 0xffffff8001400000
__HIB text base: 0xffffff8001300000
System model name: MacBookPro11,2 (Mac-3CBD00234E554E41)
System shutdown begun: NO
Panic diags file available: YES (0x0)

System uptime in nanoseconds: 14032821857451
mp_kdp_enter() timed-out on cpu 0, NMI-ing
Panic(CPU 1, time 14033321862569): NMIPI for unresponsive processor: TLB flush timeout, TLB state:0x0
RAX: 0x000070000cfd4b80, RBX: 0xffffff802bf2b4a0, RCX: 0x0000000000000280, RDX: 0x0000225200000000
RSP: 0xffffff81bfc7be68, RBP: 0xffffff81bfc7bea8, RSI: 0xffffff802cdd4000, RDI: 0xffffff802bf2b4a0
R8: 0x0000000000000000, R9: 0x0000000000989680, R10: 0xffffff8001ff5280, R11: 0x0000000000000000
R12: 0xffffff802cdd4000, R13: 0x0000000000000000, R14: 0x0000225320f917b2, R15: 0x000070000cfd4b80
RFL: 0x0000000000000093, RIP: 0xffffff800154c262, CS: 0x0000000000000008, SS: 0x0000000000000000
Backtrace (CPU 1), Frame : Return Address
0xffffff81dfe1cf80 : 0xffffff800166474b
0xffffff81dfe1cfd0 : 0xffffff80014e2bed
0xffffff81bfc7bea8 : 0xffffff800154c404
0xffffff81bfc7bed8 : 0xffffff800158abb2
0xffffff81bfc7bef8 : 0xffffff8001588fbb
0xffffff81bfc7bf18 : 0xffffff8001a391aa
0xffffff81bfc7bf60 : 0xffffff8001a38b25
0xffffff81bfc7bfa0 : 0xffffff80014e213e

BSD process name corresponding to current thread: Google Chrome
Panic(CPU 2, time 14033321862832): NMIPI for unresponsive processor: TLB flush timeout, TLB state:0x0
RAX: 0x0000700004526b80, RBX: 0xffffff8024027d60, RCX: 0x000000000000001c, RDX: 0x0000225200000000
RSP: 0xffffff81ef6d3e68, RBP: 0xffffff81ef6d3ea8, RSI: 0xffffff8025f78a40, RDI: 0xffffff8024027d60
R8: 0x0000000000000000, R9: 0x0000000000989680, R10: 0xffffff8001ff5280, R11: 0x0000000000000680
R12: 0xffffff8025f78a40, R13: 0x0000000000000000, R14: 0x0000225320ea6009, R15: 0x0000700004526b80
RFL: 0x0000000000000083, RIP: 0xffffff800154c260, CS: 0x0000000000000008, SS: 0x0000000000000000
Backtrace (CPU 2), Frame : Return Address
0xffffff81e0270f80 : 0xffffff800166474b
0xffffff81e0270fd0 : 0xffffff80014e2bed
0xffffff81ef6d3ea8 : 0xffffff800154c404
0xffffff81ef6d3ed8 : 0xffffff800158abb2
0xffffff81ef6d3ef8 : 0xffffff8001588fbb
0xffffff81ef6d3f18 : 0xffffff8001a391aa
0xffffff81ef6d3f60 : 0xffffff8001a38b25
0xffffff81ef6d3fa0 : 0xffffff80014e213e

BSD process name corresponding to current thread: hidd
panic(cpu 0 caller 0xffffff8001640991): "IPI timeout, unresponsive CPU bitmap: 0x10, NMIPI acks: 0x0, now: 0x1, deadline: 14032821823568, pre-NMIPI time: 0xcc3455c2a9f, current: 0xcc3455cb0e9, global: 0"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-6153.81.5/osfmk/x86_64/pmap.c:2909
Backtrace (CPU 0), Frame : Return Address
0xffffff91f47538a0 : 0xffffff800153bb2b
0xffffff91f47538f0 : 0xffffff80016734d5
0xffffff91f4753930 : 0xffffff8001664f4e
0xffffff91f4753980 : 0xffffff80014e2a40
0xffffff91f47539a0 : 0xffffff800153b217
0xffffff91f4753aa0 : 0xffffff800153b5fb
0xffffff91f4753af0 : 0xffffff8001cd2aa9
0xffffff91f4753b60 : 0xffffff8001640991
0xffffff91f4753c10 : 0xffffff80016465fa
0xffffff91f4753cf0 : 0xffffff80016472a6
0xffffff91f4753d50 : 0xffffff80015d3b1b
0xffffff91f4753ea0 : 0xffffff80015db49e
0xffffff91f4753ed0 : 0xffffff800152d1ce
0xffffff91f4753f00 : 0xffffff800164b575
0xffffff91f4753fa0 : 0xffffff80014e3226

BSD process name corresponding to current thread: WindowServer
 
I just update to your latest EFI, and the BrcmPatchRAM3.kext give me kernel panic, I have to place it under BrcmFirmwareData.kext to fix it (previously it is above BrcmFirmwareData.kex).

EDIT: Finally I can update to 10.15.6, previously I can not update using your previous EFI, it turn out there is an option that blocking update in opencore. Thanks for the works.
 
Last edited:
hello @romanaOne where do you put your fix "Added and Enabled patch _PRW in IGBE to fix instant wake"? in kernel patch or where?

EDIT: Nevermind, found it, need to read more. your patch works. thank you.
 
Last edited:
it turn out that what cause my bluetooth earphone stutter and laggy was my wifi connection. switch to 5ghz wifi connection and now my TWS earphone works without no lag. my card is dw1820a. just found out after reading this https://openintelwireless.github.io/itlwm/FAQ.html
 
Managed to update Opencore to 6.1. Can post the efi if anyone is interested.
 
Status
Not open for further replies.
Back
Top