Contribute
Register

[Guide] How to patch DSDT for working battery status

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,867
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
100% charge, ac adapter disconnected

With AC adapter disconnected, you should expect the battery to be discharging.
And yes, the ioreg shows 100% charge (CurrentCapacity == MaxCapacity).
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,867
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
ac adapter connecting

Looks normal.
Battery is charging, AC adapter connected. CurrentCapacity is 0xc2d, MaxCapacity is 0xc4e. Battery is 98% charged.
 
Joined
Dec 6, 2016
Messages
14
Motherboard
Z97
CPU
i7
Graphics
hd520
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
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
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,867
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
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.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
188,867
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
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/
 
Joined
Dec 6, 2016
Messages
14
Motherboard
Z97
CPU
i7
Graphics
hd520
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS

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: 137
Top