Contribute
Register

[Guide] How to patch DSDT for working battery status

ac adapter connecting

Looks normal.
Battery is charging, AC adapter connected. CurrentCapacity is 0xc2d, MaxCapacity is 0xc4e. Battery is 98% charged.
 
Looks normal.
Battery is charging, AC adapter connected. CurrentCapacity is 0xc2d, MaxCapacity is 0xc4e. Battery is 98% charged.
However, when the battery is fully charged, the adapter is connected and battery mode is entered even when the power adapter in connected
 
However, when the battery is fully charged, the adapter is connected and battery mode is entered even when the power adapter in connected

You will need to provide an ioreg that represents the problematic state.
 
Raise again

Please note that ACPI is not patched correctly.

Based on ACPI/origin, you should have in ACPI/patched:
DSDT.aml
SSDT.aml (ssdtPRgen.sh)
SSDT-0.aml
SSDT-1.aml
SSDT-2.aml
SSDT-3.aml
SSDT-4.aml
SSDT-5.aml
SSDT-6.aml

Also, your SystemMemory addresses in ACPI/patched/DSDT.aml do not match those in ACPI/origin/DSDT.aml (for example PPIM, PNVB).
Must re-extract/re-patch ACPI.
See guide: https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/
 

Attachments

  • Screen Shot 2016-12-07 at 1.10.41 AM.png
    Screen Shot 2016-12-07 at 1.10.41 AM.png
    144 KB · Views: 385
Please note that ACPI is not patched correctly.

Based on ACPI/origin, you should have in ACPI/patched:
DSDT.aml
SSDT.aml (ssdtPRgen.sh)
SSDT-0.aml
SSDT-1.aml
SSDT-2.aml
SSDT-3.aml
SSDT-4.aml
SSDT-5.aml
SSDT-6.aml

Also, your SystemMemory addresses in ACPI/patched/DSDT.aml do not match those in ACPI/origin/DSDT.aml (for example PPIM, PNVB).
Must re-extract/re-patch ACPI.
See guide: https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/

ACPI patch complete
 

Attachments

  • goldbat.zip
    2.8 MB · Views: 211
ACPI patch complete

ACPI is still not patched correctly.
Read post #3417. Carefully.

I listed the specific files you should have in ACPI/patched. There were nine of them.

Now you have this:
APIC.aml
BGRT.aml
DBG2.aml
DBGP.aml
DSDT.aml
FACP.aml
FACS.aml
FIDT.aml
FPDT.aml
HPET-1.aml
HPET.aml
LPIT.aml
MCFG.aml
RSDT.aml
SSDT-1.aml
SSDT-2.aml
SSDT-3.aml
SSDT-4.aml
SSDT-5.aml
SSDT-6.aml
SSDT-7.aml
SSDT-8.aml
SSDT-9.aml
SSDT-10.aml
SSDT-11.aml
SSDT-12.aml
SSDT-13.aml
SSDT-14.aml
SSDT-15.aml
SSDT-16.aml
SSDT-17.aml
SSDT-18.aml
SSDT-19.aml
SSDT-20.aml
SSDT-21.aml
SSDT-22.aml
SSDT-23.aml
SSDT-24.aml
SSDT-25.aml
SSDT-HDEF-HDAS-1.aml
SSDT.aml
TPM2.aml
UEFI.aml

WTF?

Note: The ioreg attached here shows the battery fully charged, discharging and disconnected from AC. Nothing unusual.
 
Hello RehabMan, thank you for your patient and excellent guides. I cannot imagine how you have the time for all this.

I have got the new Lenovo Yoga 710 15" laptop, with the Kaby Lake processor and HD 620 graphics (signature has the config). Before you say it, I know! You have said in many forums and threads that Kaby Lake is not yet supported because Apple does not have any laptops with them yet. But it did not stop me from trying, and I have Sierra running on this laptop. To make the installer boot, I had to add the following under "KernelAndKextPatches". The CPUID belongs to a Skylake CPU, as taken from the Skylake Wikipedia page.

<key>FakeCPUID</key>
<string>0x0506e3</string>
<key>KernelCpu</key>
<true/>​

I have created a set of patches following your guides to make the battery status work. I am attaching all relevant files here (Clover's ACPI/origin and ACPI/patched folders, config.plist and kexts folder). Please do have a look.

Before starting on the battery related DSDT edit, I applied the common patches, as suggested in your [Guide] Patching LAPTOP DSDT/SSDTs. These are:
  • "Fix _WAK Arg0 v2"
  • "HPET Fix"
  • "SMBUS Fix"
  • "IRQ Fix"
  • "RTC Fix"
  • "OS Check Fix"
  • "Fix Mutex with non-zero SyncLevel"
  • "Rename GFX0 to IGPU"

The last one ("Rename GFX0 to IGPU") was applied on the DSDT and all SSDTs.

For the battery related DSDT edit, I referred to the patch you already have for "Lenovo Y580". My patch is very similar to that. If you find my patch useful, maybe you can add it to the repo to help others.

On my laptop, understandably, I don't have graphics drivers working yet, because it is Kaby Lake HD 620. So, my brightness controls (with the brightness fix and IntelBacklight kext) are not working either. The config.plist I am using is based on your example for Skylake HD 520. I am ready to do some research and experimentation. Do you have any suggestions on where to start to get my graphics to work? Maybe the ig-platform-id needs to be changed? That would make my laptop fully functional. Maybe this question belongs in another thread. Please let me know, and I will post it in the relevant place.
 

Attachments

  • Yoga-710-EFI.zip
    1.8 MB · Views: 505
  • Yoga-710_Battery-DSDT-Patches.txt
    8.8 KB · Views: 279
Last edited:
Back
Top