Contribute
Register

Battery Indicator on Lenovo T540p, 8GB RAM, i5-5210m, OC 0.65, Big Sur 11.0.1

Status
Not open for further replies.
Joined
Aug 30, 2019
Messages
60
Motherboard
HP Probook 450 G7-OpenCore
CPU
i5-10210U
Graphics
HD 620
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
I started from scratch using OC 0.65 with BigSur 11.0.1 and get it working with proper display settings. EFI is attached.
Working: Ethernet, Sound (ALC 292), iGPU with brightness, USB Ports
Not done: WiFi - need to buy Intel AC7260 (my laptop uses BIOS v2.38 with WiFi whitelist)
Not working: Battery Indicator

The only thing that I don't know how to solve is battery indicator. I tried applying T440p battery indicator patch with "Fix Mutex with non-zero SyncLevel" patch. I've got 16 errors (please see BatterFix_Errors.png). Attached is my original DSDT from my T540p (8GB, i5-4210m).

DSDT_Orig was created using windows before installing macos.

Errors:
Object does not exist (SBBM)
Object does not exist (SBFC)
Object does not exist (SBDV)
Object does not exist (SBSN)
Object does not exist (SBCH)
Object does not exist (SBMN)
Object does not exist (SBVO)
Object does not exist (SBRC)
Object does not exist (SBAC)
...

Could, anyone help me solving the battery issue? The rest is really good. I tried with RehabMan tutorial for battery patching. I simply couldn't make it.

Anyone?
 

Attachments

  • EFI.zip
    2 MB · Views: 66
  • BatteryFix_Errors.png
    BatteryFix_Errors.png
    187.6 KB · Views: 58
  • DSDT_Orig.aml
    63.7 KB · Views: 37
  • battery_Patch_Lenovo-T440p.txt
    5.3 KB · Views: 35
Last edited:
I started from scratch using OC 0.65 with BigSur 11.0.1 and get it working with proper display settings. EFI is attached.
Working: Ethernet, Sound (ALC 292), iGPU with brightness, USB Ports
Not done: WiFi - need to buy Intel AC7260 (my laptop uses BIOS v2.38 with WiFi whitelist)
Not working: Battery Indicator

The only thing that I don't know how to solve is battery indicator. I tried applying T440p battery indicator patch with "Fix Mutex with non-zero SyncLevel" patch. I've got 16 errors (please see BatterFix_Errors.png). Attached is my original DSDT from my T540p (8GB, i5-4210m).

DSDT_Orig was created using windows before installing macos.

Errors:
Object does not exist (SBBM)
Object does not exist (SBFC)
Object does not exist (SBDV)
Object does not exist (SBSN)
Object does not exist (SBCH)
Object does not exist (SBMN)
Object does not exist (SBVO)
Object does not exist (SBRC)
Object does not exist (SBAC)
...

Could, anyone help me solving the battery issue? The rest is really good. I tried with RehabMan tutorial for battery patching. I simply couldn't make it.

Anyone?
maybe the SSDT-T540p.aml from:
https://github.com/PCMRwill0956/T440-540-p-hackintosh-stuff

and config.plist and kexts may help, although it is clover, you may be able to get some info from it
 
Thank you very much!

I tried SSDT-T540p.aml from the link above. I doesn't work. I can boot but battery indicator doesn't work (0%).

However I noticed that device names in SSDT-T540p.aml and in my DSDT are not equal.
For instance,
A) in SSDT-T540p.aml:
...
Scope (_SB.PCI0.LPC.EC)
{
OperationRegion (ECR1, EmbeddedControl, Zero, 0x0100)
Field (ECR1, ByteAcc, NoLock, Preserve)
...
Device Label: \_SB.PCI0.LPC.EC
...

B) in my DSDT taken from my hackintosh (using MaciASL - file - SystemDSDT_FromMacOS.aml ):
...
OperationRegion (ECOR, EmbeddedControl, Zero, 0x0100)
Field (ECOR, ByteAcc, NoLock, Preserve)
{
...
Device Label is not EC. It's EC0: \_SB.PCI0.LPC.EC0
...
and
C) in my DSDT taken from windows (file - DSDT_Orig_Win.aml ):
---
OperationRegion (ECOR, EmbeddedControl, Zero, 0x0100)
Field (ECOR, ByteAcc, NoLock, Preserve)
{
HDBM,
...
Device Label is EC: \_SB.PCI0.LPC.EC
...

Could somebody explain me what to do?

There is change EC->EC0 from windows to mac. SSDT-T540p uses EC and instead of ECOR refers to ECR1.

Attached are all three aml files. I just need the battery indicator. Everything else is fine with my config.
 

Attachments

  • SSDT-T540p.aml
    8.2 KB · Views: 31
  • SystemDSDT_fromMacOS.aml
    63.7 KB · Views: 29
  • DSDT_Orig_Win.aml
    63.9 KB · Views: 28
Thank you very much!

I tried SSDT-T540p.aml from the link above. I doesn't work. I can boot but battery indicator doesn't work (0%).

However I noticed that device names in SSDT-T540p.aml and in my DSDT are not equal.
For instance,
A) in SSDT-T540p.aml:
...
Scope (_SB.PCI0.LPC.EC)
{
OperationRegion (ECR1, EmbeddedControl, Zero, 0x0100)
Field (ECR1, ByteAcc, NoLock, Preserve)
...
Device Label: \_SB.PCI0.LPC.EC
...

B) in my DSDT taken from my hackintosh (using MaciASL - file - SystemDSDT_FromMacOS.aml ):
...
OperationRegion (ECOR, EmbeddedControl, Zero, 0x0100)
Field (ECOR, ByteAcc, NoLock, Preserve)
{
...
Device Label is not EC. It's EC0: \_SB.PCI0.LPC.EC0
...
and
C) in my DSDT taken from windows (file - DSDT_Orig_Win.aml ):
---
OperationRegion (ECOR, EmbeddedControl, Zero, 0x0100)
Field (ECOR, ByteAcc, NoLock, Preserve)
{
HDBM,
...
Device Label is EC: \_SB.PCI0.LPC.EC
...

Could somebody explain me what to do?

There is change EC->EC0 from windows to mac. SSDT-T540p uses EC and instead of ECOR refers to ECR1.

Attached are all three aml files. I just need the battery indicator. Everything else is fine with my config.
you should be editing the dsl file and not the aml file

also maybe that patch doesn't work for your system
 
you should be editing the dsl file and not the aml file

also maybe that patch doesn't work for your system
I am editing dsl. Anything else which could be helpful?
 
I am editing dsl. Anything else which could be helpful?
a proper battery patch designed for your system

or check over:

and:
 
Thank you very much!

I tried SSDT-T540p.aml from the link above. I doesn't work. I can boot but battery indicator doesn't work (0%).

However I noticed that device names in SSDT-T540p.aml and in my DSDT are not equal.
For instance,
A) in SSDT-T540p.aml:
...
Scope (_SB.PCI0.LPC.EC)
{
OperationRegion (ECR1, EmbeddedControl, Zero, 0x0100)
Field (ECR1, ByteAcc, NoLock, Preserve)
...
Device Label: \_SB.PCI0.LPC.EC
...

B) in my DSDT taken from my hackintosh (using MaciASL - file - SystemDSDT_FromMacOS.aml ):
...
OperationRegion (ECOR, EmbeddedControl, Zero, 0x0100)
Field (ECOR, ByteAcc, NoLock, Preserve)
{
...
Device Label is not EC. It's EC0: \_SB.PCI0.LPC.EC0
...
and
C) in my DSDT taken from windows (file - DSDT_Orig_Win.aml ):
---
OperationRegion (ECOR, EmbeddedControl, Zero, 0x0100)
Field (ECOR, ByteAcc, NoLock, Preserve)
{
HDBM,
...
Device Label is EC: \_SB.PCI0.LPC.EC
...

Could somebody explain me what to do?

There is change EC->EC0 from windows to mac. SSDT-T540p uses EC and instead of ECOR refers to ECR1.

Attached are all three aml files. I just need the battery indicator. Everything else is fine with my config.
Question: I would like to make battery hotpatch. Should I use dsdt from windows with EC or DSDT from mac with EC0?
 
Question: I would like to make battery hotpatch. Should I use dsdt from windows with EC or DSDT from mac with EC0?
i was lucky on my laptop, I just needed to use VirtualSMC.kext and SMCBatteryManager.kext and the battery just appeared

or this may help:
 
i was lucky on my laptop, I just needed to use VirtualSMC.kext and SMCBatteryManager.kext and the battery just appeared

or this may help:
Could you please post your EFI?
I am also using VirtualSMC and SMCBatteryManager. Just to check what I’m doing wrong.
 
Could you please post your EFI?
I am also using VirtualSMC and SMCBatteryManager. Just to check what I’m doing wrong.
again, it depends on if your DSDT has something like 8bits (can't remember now the correct terminology now)

if so, then no need for DSDT patch, also my Asus is completely different to your machine and would serve you no purpose, but feel free to take a look
 

Attachments

  • EFI.zip
    6 MB · Views: 68
Status
Not open for further replies.
Back
Top