Contribute
Register

[Guide] How to patch DSDT for working battery status

SystemMemory addresses are different in ACPI/patched vs. ACPI/origin.
You likely changed hardware, updated BIOS, or changed a BIOS option after patching.
After any such change, you must re-extract, re-patch.
Also, expect only DSDT.aml and relevant SSDTs related to disabling Nvidia in ACPI/patched.

It is in the guide:
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/

@RehabMan
Is there a method to extract the complete patch from my current DSDT patch to apply it to the new DSDT extraction automatically?
It's about not doing all the work again ...
I remember that before with Chameleon app it could be done.
 
@RehabMan
Is there a method to extract the complete patch from my current DSDT patch to apply it to the new DSDT extraction automatically?
It's about not doing all the work again ...

Two options really:
- preferred: do ACPI hotpatch (guide is linked from main guide) such that you're not patching statically
- alternate: build some scripts using patchmatic to patch extracted files automatically
 
@RehabMan How I calculate the offset pon 128 bits registers?
 
@RehabMan How I calculate the offset pon 128 bits registers?

Unless specified by an Offset directive, the offset of any register is the offset of the previous register + previous register size.

Look at the examples in post #1... it is simple addition.
 
@RehabMan I get to patch my DSDT but the battery is always on 0% and charging.

First of all, thanks for help.
 

Attachments

  • problem battery ACPI patch.zip
    3 MB · Views: 59
@RehabMan I get to patch my DSDT but the battery is always on 0% and charging.

First of all, thanks for help.

Your DSDT is not patched correctly.
For example, you have mutex objects with non-zero SyncLevel.
Must use config.plist/ACPI/DSDT/Fixes/FixMutex or "Fix Mutex with non-zero SyncLevel".
Also, your ioreg shows two battery objects active, which macOS does not support.
Must disable the inactive one or use SSDT-BATC.aml to combine them.
 
hi RehabMan sir I have a battery issue it is saying
fMaxCapacity > fDesignCapacity. adjusted fMaxCapacity from 4162, to 4028
Default 0x0 0 0 kernel: (ACPIBatteryManager) ACPIBatteryManager: WARNING! fCurrentCapacity > fMaxCapacity. adjusted fCurrentCapacity from 4152, to 4028 it hang 10 second during boot
how to fix it
 
hi RehabMan sir I have a battery issue it is saying
fMaxCapacity > fDesignCapacity. adjusted fMaxCapacity from 4162, to 4028
Default 0x0 0 0 kernel: (ACPIBatteryManager) ACPIBatteryManager: WARNING! fCurrentCapacity > fMaxCapacity. adjusted fCurrentCapacity from 4152, to 4028

Normal.... it happens due to different calculations from watts to amps.

it hang 10 second during boot
how to fix it

No "Problem Reporting" files attached.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.
 
problem reporting file attached second sleep issue after wake laptop down slow keyboard wifi ssd and graphics card
 

Attachments

  • debug_102.zip
    11.6 MB · Views: 56
Back
Top