Contribute
Register

[Guide] Lenovo ThinkPad L440

Status
Not open for further replies.
Hi Sniki, sorry for my mistake, see new attach text
 

Attachments

  • kext caches and kexstat.zip
    1.8 KB · Views: 90
@RehabMan Here are the problem Reporting files from @mnmmnm
Attached from post#29 & post#31
 

Attachments

  • Archive.zip
    2.1 MB · Views: 128
@RehabMan Here are the problem Reporting files from @mnmmnm
Attached from post#29 & post#31

Is there two batteries in the laptop?
I ask because both BAT0 and BAT1 are returning 0x1f for _STA.
Looks like something failing in BATC._BIF. Use ACPIDebug to debug it.
 
Is there two batteries in the laptop?
I ask because both BAT0 and BAT1 are returning 0x1f for _STA.
Yes thats what he said, laptop has two batteries
 
Yes thats what he said, laptop has two batteries

Need to use ACPIDebug to debug the code in BATC._BIF (and indirectly, the code in BAT0/BAT1._BIF).
Certainly a double check of all battery related code is in order, but ACPIDebug will help find the failure point (and mistake).
Maybe there are still multi-byte EC access (in the second battery object) not accounted for.
 
Need to use ACPIDebug to debug the code in BATC._BIF (and indirectly, the code in BAT0/BAT1._BIF).
Certainly a double check of all battery related code is in order, but ACPIDebug will help find the failure point (and mistake).
Will make a SSDT with Debug Code for ACPIDebug.kext and upload to @mnmmnm for testing and grabbing logs.
Maybe there are still multi-byte EC access (in the second battery object) not accounted for.
That might actually be the issue itself, since on static patch i see that Double Batteries where not supported therefore second battery code does get removed which might lead to the point where EC Fields from second battery haven't been fixed.
Will check that tomorrow first to find out before debugging. i checked that x220 static patch was listing x240 too so i wen't ahead and only tried to convert into hotpatch.
 
@RehabMan when i static patched DSDT.dsl i forgot to remove the:
- Remove this line if your laptop has second battery.
So i patched DSDT.dsl static patch - correctly (with removed code if i have dual batteries)
and now diffmerge shows me two new 128byte (SBMN & SBDN) offsets:

NewDiffmerge.png


so how was the way to patch/separate 128 byte offsets.
Attached is the SSDT-BAT.dsl
 

Attachments

  • SSDT-BAT.dsl
    20.1 KB · Views: 95
That might actually be the issue itself, since on static patch i see that Double Batteries where not supported therefore second battery code does get removed which might lead to the point where EC Fields from second battery haven't been fixed.
Will check that tomorrow first to find out before debugging. i checked that x220 static patch was listing x240 too so i wen't ahead and only tried to convert into hotpatch.

If the second battery code (_BIF, _BST) is not patched, it will cause the related methods in BATC to fail.
Seems like you need to review the code for unpatched multi-byte EC access (in both battery objects).
 
Hi!

After being for a while offline I would like to try my next attempt to get macOS fully working on my Thinkpad L450. I unlocked my BIOS with a programmer, changed DVMT, ordered a new WIFI card and removed the whitelist. A big step forward...

Now I installed macOS but I am stuck at getting audio running. As soon as I get my L450 running I will try to write a guide for other people with this laptop (some are around..).

I have seen that the L440 has the same audio card (alc3232 / alc 292) but you are already hot patching the .aml files. Can you tell me the layout-id of your kext? I have added the appleHDA kext from https://github.com/insanelydeepak/Patched-AppleHDA-for-Mac-OS-Sierra-10.12/tree/master/Laptop's and applied IRQ fix combined with the changed layout-id to 13. Unfortunately there is still no sound. Can you help me somehow? Can you see a mistake that I have done so far?

- macOS 10.12.5

IORegistryExplorer
Code:
Bojans-MacBook-Pro:RehabMan bojanjukic$ kextstat|grep -y acpiplat
   13    2 0xffffff7f829cd000 0x66000    0x66000    com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>
Bojans-MacBook-Pro:RehabMan bojanjukic$ kextstat|grep -y appleintelcpu
Bojans-MacBook-Pro:RehabMan bojanjukic$ kextstat|grep -y applelpc
   96    0 0xffffff7f82432000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <88 12 5 4 3>
Bojans-MacBook-Pro:RehabMan bojanjukic$ kextstat|grep -y applehda
   87    1 0xffffff7f828f0000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (276.26) D0953002-6091-376F-8E0F-33B65F42CEF9 <86 85 70 12 7 6 5 4 3 1>
  111    0 0xffffff7f82c59000 0xb4000    0xb4000    com.apple.driver.AppleHDA (999.1.1fc1) 7611D43E-12FE-3228-A6D3-9C99A5D030CC <110 92 87 86 85 70 6 5 4 3 1>
 

Attachments

  • CLOVER.zip
    1.6 MB · Views: 104
  • RehabMan.zip
    38.3 KB · Views: 102
Hi!

After being for a while offline I would like to try my next attempt to get macOS fully working on my Thinkpad L450. I unlocked my BIOS with a programmer, changed DVMT, ordered a new WIFI card and removed the whitelist. A big step forward...

Now I installed macOS but I am stuck at getting audio running. As soon as I get my L450 running I will try to write a guide for other people with this laptop (some are around..).

I have seen that the L440 has the same audio card (alc3232 / alc 292) but you are already hot patching the .aml files. Can you tell me the layout-id of your kext? I have added the appleHDA kext from https://github.com/insanelydeepak/Patched-AppleHDA-for-Mac-OS-Sierra-10.12/tree/master/Laptop's and applied IRQ fix combined with the changed layout-id to 13. Unfortunately there is still no sound. Can you help me somehow? Can you see a mistake that I have done so far?

- macOS 10.12.5

IORegistryExplorer
Code:
Bojans-MacBook-Pro:RehabMan bojanjukic$ kextstat|grep -y acpiplat
   13    2 0xffffff7f829cd000 0x66000    0x66000    com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>
Bojans-MacBook-Pro:RehabMan bojanjukic$ kextstat|grep -y appleintelcpu
Bojans-MacBook-Pro:RehabMan bojanjukic$ kextstat|grep -y applelpc
   96    0 0xffffff7f82432000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <88 12 5 4 3>
Bojans-MacBook-Pro:RehabMan bojanjukic$ kextstat|grep -y applehda
   87    1 0xffffff7f828f0000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (276.26) D0953002-6091-376F-8E0F-33B65F42CEF9 <86 85 70 12 7 6 5 4 3 1>
  111    0 0xffffff7f82c59000 0xb4000    0xb4000    com.apple.driver.AppleHDA (999.1.1fc1) 7611D43E-12FE-3228-A6D3-9C99A5D030CC <110 92 87 86 85 70 6 5 4 3 1>
I will check the files when i get back home from work and let you know what is wrong.
 
Status
Not open for further replies.
Back
Top