- Joined
- Dec 16, 2018
- Messages
- 22
- Motherboard
- surface pro 2017
- CPU
- i7-7660u
- Graphics
- iris plus 640
I am wondering does order of these two commands matter?How to patch DSDT for working battery status
Firstly, TD31 is already 8-bits. No need to patch it.
Let's use TD38 as an example instead.
First of all, don't convert TD38 to TD38 and TD39. Always change the name, such that the compiler can find all places the old name was used. That way you won't inadvertently miss anything.
I would translate TD38,16 to TX38,8,TX39,8.
Assuming you had a Store(Arg1,TD38) somewhere, translation would be:
Store(ShiftRight(Arg1,8), TX39)
One thing I have just noticed is that when the laptop wakes from sleep, it says that the battery is low and the battery status is showing in the menu bar (the laptop is plugged in and the battery is fully charged). I assume this is because the DSDT is not patched, but the ACPIBatteryManager.kext has been installed.Greetings - I am attempting to patch my DSDT to get the battery status working. I have followed the guide in the first post and have created a text file of the patch. I am anything but a coder, so it is probably wrong in many ways, so if someone could take a look, I would appreciate it. I can tell you for sure that the offsets are totally wrong - I have changed the text color for those to RED. I have no idea how to calculate the offsets.
Also, I am not sure how to apply the patch in MaciASL. Once I get the DSDT patched, should it be placed in /EFI/EFI/CLOVER/ACPI/patched?
I have attached the patch as well as all the problem reporting files.
Thanks!
Your kextcache output proves kexts are not installed correctly.Hi,
I have successfully patched the DSDT of my notebook, and the battery is showing up in the toolbar, but it just stays at 0%. I would very much appreciate if someone could take a look at it and help me.
Every file mentioned in the troubleshooting part is attached.
Thanks.
I am wondering does order of these two commands matter?
Store(ShiftRight(Arg1,8), TX39)
Store(Arg1,TX38)
Can we translate to
Store(Arg1,TX38)
Store(ShiftRight(Arg1,8), TX39)
?
The "HP G6 2221ss" matched my DSDT. I have applied it, I also changed to Windows 10 for OS Check Fix. But I'm still having incorrect percentage readings for my battery. After draining the battery, and then charging, it shows correct readings. But once I unplug my power adapter or reboot, it gets stuck on the last reading and never moves again. I have the debug version of the battery kext installed. Here are my troubleshooting files. Thanks
Hi
@RehabMan I'm having a few issues after patching my DSDT on my new laptop.
1. The battery percentage appears to be reporting accurately, however I get this:
View attachment 380250
2. Also there is no detection of the AC adapter being present at any time (it was plugged in when the above screenshot was taken, for example).
3. Finally, with ACPIBatteryManager loaded the laptop's fans are running a lot more frequently and a lot faster than otherwise. Even under 12% CPU load they are extremely loud.
Any help or advice would be appreciated! Thank you in advance!
AC Power adapter presence is now correctly detected after dropping SSDTs. Fan noise is still unaffected (it's REALLY bad).
Updated error reporting files attached.
Additional: Out of interest, I installed the FakeSMC monitoring kexts and HWMonitor -- on AC power the CPU is running x34 multipliers pretty much all the time (it does step down occasionally) and x32 on battery. I wonder if there is a way of changing this?
Have opened a new thread for my problem. (Click here)