Contribute
Register

HP Pavilion Dm4-1265Dx Battery reporting wrong state

Status
Not open for further replies.
You can use google to find the ACPI specification.
Hey the ACPIBatteryManager was reading info about BST/BIF from the log file, but it doesn't seem to call RMDT BST/BIF.
 

Attachments

  • Debug Files.zip
    3.7 MB · Views: 70
Hey the ACPIBatteryManager was reading info about BST/BIF from the log file, but it doesn't seem to call RMDT BST/BIF.

You have no RMDT calls in _BST or _BIF.
 
Hi, unfortunately I will hold this off for a long time, since I have upgraded my drive into a 1TB hard drive, and since this is a BIOS laptop, setting this up to multi-boot with Windows is not easy, since this is my full task:
- Setting up Windows
- Setting up Mac on VirtualBox (I am on this step as of this post)
- Make a USB bootloader of macOS.
- Hop into macOS bootloader and format my drive as GPT (Well, not really GPT, mac read my drive as GPT, but Windows read it as Hybrid MBR, this is good and bad at the same time, and I will explain this in a bit).
- Make a Windows installation.
- Boot into Windows.
- Install Windows 7 on 2 partitions (in which 1 partition will be upgraded to Windows 10)
- Redo step 2 + 3
- Reinstall macOS Sierra AND install OS X El Capitan on 2 different partitions (This makes my laptop to have 4 operating systems) (Note: This part is quite dangerous, because if I make a JHFS+ partition, there is a chance that Windows does not even wanting to boot, because on my Desktop, I formatted a partition on my Hard Drive, and I restarted my laptop after that, and the windows ended up not being able to boot with the message "No Operating System")
- Set up Clover to be installed on Hard Drive & put kexts into different folders.
- Patch DSDT and continue debugging battery.
As you can see, this is quite a lot to do, and I have to take my 1st semester's final tests next week, so I can't do this in just a few days.
I'm sorry for the postpone, but I will notify you when I can get back to re-patching :(.
 
Hi, recently I am back with El Capitan due to the fact that Backlight is not working in Sierra, and I have edited the DSDT to push it into /var/log/system.log as requested here.
You have no RMDT calls in _BST or _BIF.
Can you check the logs for me? I'm very appreciated your help.
 

Attachments

  • Debug Folder.zip
    3.4 MB · Views: 52
Hi, recently I am back with El Capitan due to the fact that Backlight is not working in Sierra, and I have edited the DSDT to push it into /var/log/system.log as requested here.

Can you check the logs for me? I'm very appreciated your help.

You have some calls there now, but they are not particularly useful.

For example, this code:
Code:
            Method (_BST, 0, NotSerialized)  // _BST: Battery Status
            {
                \RMDT.P1 ("BAT0 BTST _BST")
                Return (BTST (Zero))
            }

Will tell you only that _BST was called and nothing more.
A more useful ACPIDebug use would be to show entry/exit, and return value:
Code:
            Method (_BST, 0, NotSerialized)  // _BST: Battery Status
            {
                \RMDT.P1 ("BAT0._BST enter")
                Local0 = BTST (Zero)
                \RMDT.P2( "BAT0._BST return", Local0)
                \RMDT.P1 ("BAT0._BST exit")
                Return(Local0)
            }

Then you can see the actual package that is being returned from _BST.
Read the ACPI spec for more information on _BST, _BIF, etc.
 
Last edited:
You have some calls there now, but they are not particularly useful.

For example, this code:
Code:
            Method (_BST, 0, NotSerialized)  // _BST: Battery Status
            {
                \RMDT.P1 ("BAT0 BTST _BST")
                Return (BTST (Zero))
            }

Will tell you only that _BST was called and nothing more.
A more useful ACPIDebug use would be to show entry/exit, and return value:
Code:
            Method (_BST, 0, NotSerialized)  // _BST: Battery Status
            {
                \RMDT.P1 ("BAT0._BST enter")
                Local0 = BTST (Zero)
                \RMDT.P2( "BAT0._BST return", Local0)
                \RMDT.P1 ("BAT0._BST exit")
            }

Then you can see the actual package that is being returned from _BST.
Read the ACPI spec for more information on _BST, _BIF, etc.
The code that you gave gives the power the state to constantly switch on and off between "not charging" and "charging" state every second.
Here are the files that you need (removed, see next post).
 
Re-uploaded files because I forgot to unplug the power, therefore system.log only shows the _BIF and _BST state when it's plugged in.
 

Attachments

  • debug.zip
    3.3 MB · Views: 69
The code that you gave gives the power the state to constantly switch on and off between "not charging" and "charging" state every second.
Here are the files that you need (removed, see next post).

Obvious typo fixed.
 
Fixed and reattached files.

Why are you attaching files?
What is the question?
It is your responsibility to analyze any debug output and continue to add debug info until you find the problem.
 
Status
Not open for further replies.
Back
Top