Contribute
Register

[Guide] How to patch DSDT for working battery status

trs96

Moderator
Joined
Jul 31, 2012
Messages
14,061
Motherboard
GA-Z97X-UD3H-BK
CPU
i5-4690K
Graphics
HD4600 / RX 570
Mac
iMac, Mac mini
Mobile Phone
Android
Joined
May 5, 2010
Messages
86
Motherboard
DELL Inspiron 5370
CPU
i5-8250U
Graphics
UHD 620
Mobile Phone
iOS
Oh ok! Thanks for informing that! :)
But any idea when we can expect him back here on the forum?
 

trs96

Moderator
Joined
Jul 31, 2012
Messages
14,061
Motherboard
GA-Z97X-UD3H-BK
CPU
i5-4690K
Graphics
HD4600 / RX 570
Mac
iMac, Mac mini
Mobile Phone
Android
Joined
Apr 22, 2019
Messages
6
Hello everyone, iv'e been trying to make a patch for my HP envy 13-ab022nf for the past week but I can't get it to work . I have reinstalled Mac OS 3 times because I messed up. if someone could make my patch, that would be so awesome!!

Here is my DSDT.aml file

Thank you sooo much!!
 

Attachments

Joined
Jan 22, 2011
Messages
1
Thanks a lot for the great guide.
I'm trying to patch for my DSDT as your guide, but my DSDT is much different from your guide; these is no 'EmbeddedControl' section.

And only by using the latest ACPIBatteryManager.kext, I could showing battery status.
But AC adaptor status will not be changed when connecting/disconnecting it.

I examined some places and found as below;
- ACPIACAdaptor was mapped to ADP1 device
- ADP1._PSR will be notified through GPE

When I tried v1.18.4 of ACPIBatteryManager.kext, I could see correct AC adaptor status but it was slow to apply the status.

Please help me how to fix my issue.
 

Attachments

Joined
Apr 5, 2019
Messages
19
Motherboard
ASUSTeK K501UW v1-Clover
CPU
i7-6500U
Graphics
GTX 960M/ HD 520 1920x1080
Mobile Phone
iOS
I have some fields over 8 bytes (16 bytes) that are in an IndexField. What do I do with those?
 
Joined
Apr 19, 2019
Messages
6
Motherboard
Acer Spin 5
CPU
i7-8550U
Graphics
UHD 620+GTX 1050
Mobile Phone
Android
The BatteryManager Kext Works for me. But when I put my laptop to sleep and re-wake it, my cpu idles around 3.00 GHZ when it is supposed to idle around 1.80. The only way to fix it is to restart the Laptop. If I remove this kext. This problem does not happen anymore.

Any Help is appreciated, Thanks
 
Joined
Dec 29, 2015
Messages
21
Motherboard
AsRock Z270M Extreme 4
CPU
i7-7700K
Graphics
Gigabyte GTX960 Mini
Mac
MacBook Pro
Mobile Phone
iOS
Hi! Even though battery has been patched and I got battery status in the menu bar, I'm concerned with a series of errors in the boot log. I would appreciate some help to make it right. Thanks!



Code:
2019-05-14 13:25:23.223836-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No handler for Region [ECF4] (ffffff8059936be0) [EmbeddedControl]
2019-05-14 13:25:23.223837-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No handler for Region [ECF4] (ffffff8059936be0) [EmbeddedControl]
2019-05-14 13:25:23.224096-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/evregion-252)
2019-05-14 13:25:23.224096-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/evregion-252)
2019-05-14 13:25:23.224354-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2019-05-14 13:25:23.224354-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2019-05-14 13:25:23.224615-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Region EmbeddedControl (ID=3) has no handler
2019-05-14 13:25:23.224616-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Region EmbeddedControl (ID=3) has no handler
2019-05-14 13:25:23.230997-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/exfldio-392)
2019-05-14 13:25:23.230998-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/exfldio-392)
2019-05-14 13:25:23.232038-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [_LID] @00001 #002D:
2019-05-14 13:25:23.232039-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [_LID] @00001 #002D:
2019-05-14 13:25:23.232293-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) L
2019-05-14 13:25:23.232294-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) L
2019-05-14 13:25:23.232556-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) I
2019-05-14 13:25:23.232557-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) I
2019-05-14 13:25:23.232815-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) D
2019-05-14 13:25:23.232815-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) D
2019-05-14 13:25:23.233076-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2019-05-14 13:25:23.233076-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2019-05-14 13:25:23.233337-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Local Variables are initialized for method [_LID]
2019-05-14 13:25:23.233338-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Local Variables are initialized for method [_LID]
2019-05-14 13:25:23.237302-0500 0xc6       Default     0x0                  0      0    kernel: (IOHIDFamily) HID: Legacy shim 2
2019-05-14 13:25:23.240685-0500 0xae       Default     0x0                  0      0    kernel: (IOPCIFamily) pci (build 20:56:41 Dec 20 2018), flags 0x20e3080
2019-05-14 13:25:23.240685-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2019-05-14 13:25:23.240686-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2019-05-14 13:25:23.240946-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Arguments are initialized for method [_LID]
2019-05-14 13:25:23.240947-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Arguments are initialized for method [_LID]
2019-05-14 13:25:23.241210-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2019-05-14 13:25:23.241210-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2019-05-14 13:25:23.241998-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2019-05-14 13:25:23.241999-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2019-05-14 13:25:23.242521-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method parse/execution failed
2019-05-14 13:25:23.242522-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method parse/execution failed
2019-05-14 13:25:23.245670-0500 0xb1       Default     0x0                  0      0    kernel: (AppleACPIEC) ACPI: no ECDT
2019-05-14 13:25:23.252843-0500 0xc2       Default     0x0                  0      0    kernel: (kernel) VoodooGPIOSunrisePointLP::Loading GPIO Data for SunrisePoint-LP
2019-05-14 13:25:23.252951-0500 0xd0       Default     0x0                  0      0    kernel: (kernel) FakeSMC v6.26-357-gceb835ea.1800 Copyright 2017 netkas, slice, usr-sse2, kozlek, navi, THe KiNG, RehabMan. All rights reserved.
2019-05-14 13:25:23.253129-0500 0xae       Default     0x0                  0      0    kernel: (IOPCIFamily) [ PCI configuration begin ]
2019-05-14 13:25:23.257622-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.H_EC.LID0._LID] (Node ffffff805a6eecc0)
2019-05-14 13:25:23.257623-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.H_EC.LID0._LID] (Node ffffff805a6eecc0)
2019-05-14 13:25:23.257717-0500 0xd0       Default     0x0                  0      0    kernel: (kernel) FakeSMCKeyStore: [Warning] blocked while trying to set protected key "FNum".
2019-05-14 13:25:23.257722-0500 0xc2       Default     0x0                  0      0    kernel: (kernel) VoodooGPIOSunrisePointLP::VoodooGPIO Init!
2019-05-14 13:25:23.257887-0500 0xc2       Default     0x0                  0      0    kernel: (kernel) VoodooGPIOSunrisePointLP::VoodooGPIO Initializing Community 0
2019-05-14 13:25:23.257887-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) , AE_NOT_EXIST
2019-05-14 13:25:23.257887-0500 0xb3       Default     0x0                  0      0    kernel: (AppleACPIPlatform) , AE_NOT_EXIST
 

Attachments

Joined
Jun 9, 2018
Messages
3
Motherboard
HP Omen X 17-ap001ur/CM238-Clover
CPU
i7-7820HK
Graphics
GTX 1080, 1920x1080
Mobile Phone
Android
Got battery status working (along with trackpad sysprefs) on HP Omen X 17-ap001ur laptop thanks to this guide.
 

Attachments

Top