Contribute
Register

[Guide] How to patch DSDT for working battery status

Sorry Rehabman.
I've just extracted right files. :)
Thanks again.

Your ACPI/patched/DSDT.aml is out-of-sync with respect to ACPI/origin/DSDT.aml.
Re-patch based on current native DSDT.aml.
 
Your ACPI/patched/DSDT.aml is out-of-sync with respect to ACPI/origin/DSDT.aml.
Re-patch based on current native DSDT.aml.
Dear Rehabman.
Here is original dsdt.aml and patched dsdt.aml.
Other files are same when I uploaded before.
 

Attachments

  • DSDT_orig.aml
    80.1 KB · Views: 132
  • DSDT_patch.aml
    81.5 KB · Views: 104
Dear Rehabman.
Here is original dsdt.aml and patched dsdt.aml.
Other files are same when I uploaded before.

If you have a problem, provide files as per "Problem Reporting".

But I still see inappropriate changes here, which implies you did not patch based on the origin files...
For example, you changed from:
Code:
            Name (BIXP, Package (0x14)
            {
                Zero, 
                One, 
                0xFFFFFFFF, 
                0xFFFFFFFF, 
                One, 
                0xFFFFFFFF, 
                0x03, 
                0x0A, 
                Zero, 
                0x00017318, 
                0x88B8, 
                0x61A8, 
                0x88B8, 
                0x61A8, 
                One, 
                One, 
                "SR Real Battery", 
                "123456789", 
                "LION", 
                "S

To:
Code:
            Name (BIXP, Package (0x14)
            {
                Zero, 
                One, 
                0xFFFFFFFF, 
                0xFFFFFFFF, 
                One, 
                0xFFFFFFFF, 
                0x03, 
                0x0A, 
                Zero, 
                0x00017318, 
                0xFFFFFFFF, //diff!
                0xFFFFFFFF, //diff!
                0x88B8, 
                0x61A8, 
                One, 
                One, 
                "SR Real Battery", 
                "123456789", 
                "LION", 
                "SAMSUNG Electronics"
            })
 
If you have a problem, provide files as per "Problem Reporting".

But I still see inappropriate changes here, which implies you did not patch based on the origin files...
For example, you changed from:
Code:
            Name (BIXP, Package (0x14)
            {
                Zero,
                One,
                0xFFFFFFFF,
                0xFFFFFFFF,
                One,
                0xFFFFFFFF,
                0x03,
                0x0A,
                Zero,
                0x00017318,
                0x88B8,
                0x61A8,
                0x88B8,
                0x61A8,
                One,
                One,
                "SR Real Battery",
                "123456789",
                "LION",
                "S

To:
Code:
            Name (BIXP, Package (0x14)
            {
                Zero,
                One,
                0xFFFFFFFF,
                0xFFFFFFFF,
                One,
                0xFFFFFFFF,
                0x03,
                0x0A,
                Zero,
                0x00017318,
                0xFFFFFFFF, //diff!
                0xFFFFFFFF, //diff!
                0x88B8,
                0x61A8,
                One,
                One,
                "SR Real Battery",
                "123456789",
                "LION",
                "SAMSUNG Electronics"
            })

Hi Rehabman..
Thank you your advice.
I'll try once again.
 
Hi RehabMan, I´m trying to follow your guide to patch the DSDT of my HP Envy 13-d102ng for working battery. I managed the 16bit field, but now I´m hanging on the greater then 32bit fields. I can´t get the point in your guide on how to calculate the off-sets values for the individual Fields :
Quote:
" Next we need to determine the offsets within the EC that these fields are placed. Keep in mind the sizes are in bits, but the offsets are in bytes. The offsets I have in the comments below are in hex. See if you can come up with the same numbers.

Code (Text):

Field (ECF2, ByteAcc, Lock, Preserve)
{
Offset (0x10),
BDN0, 56, //!!0x10
Offset (0x18),
BME0, 8,
Offset (0x20),
BMN0, 32, //0x20
BMN2, 8, //0x24
BMN4, 88, //0x25
BCT0, 128, //!! 0x30
BDN1, 56, //!! 0x40
Offset (0x48),
BME1, 8,
Offset (0x50),
BMN1, 32, //0x50
BMN3, 8, //0x54
BMN5, 88, //0x55
BCT1, 128, //!!0x60
Unquote.
Could you please just develop one calculation, so that I can get it right on my own?
Thank you for your help!
 
Hi RehabMan, I´m trying to follow your guide to patch the DSDT of my HP Envy 13-d102ng for working battery. I managed the 16bit field, but now I´m hanging on the greater then 32bit fields. I can´t get the point in your guide on how to calculate the off-sets values for the individual Fields :
Quote:
" Next we need to determine the offsets within the EC that these fields are placed. Keep in mind the sizes are in bits, but the offsets are in bytes. The offsets I have in the comments below are in hex. See if you can come up with the same numbers.

Code (Text):

Field (ECF2, ByteAcc, Lock, Preserve)
{
Offset (0x10),
BDN0, 56, //!!0x10
Offset (0x18),
BME0, 8,
Offset (0x20),
BMN0, 32, //0x20
BMN2, 8, //0x24
BMN4, 88, //0x25
BCT0, 128, //!! 0x30
BDN1, 56, //!! 0x40
Offset (0x48),
BME1, 8,
Offset (0x50),
BMN1, 32, //0x50
BMN3, 8, //0x54
BMN5, 88, //0x55
BCT1, 128, //!!0x60
Unquote.
Could you please just develop one calculation, so that I can get it right on my own?
Thank you for your help!

You did not attach your DSDT.
 
You did not attach your DSDT.
HI , patched DSDT attached!
In my request I was just referring to your guide, in order to follow it with your example DSDT..., but if you can directly help me out with my original DSDT, it would be even nicer :) !
 

Attachments

  • 1DSDT all +LPC patch +GFX0 rename+ osx win7+16bit patch.zip
    57.9 KB · Views: 118
HI , patched DSDT attached!
In my request I was just referring to your guide, in order to follow it with your example DSDT..., but if you can directly help me out with my original DSDT, it would be even nicer :) !

SMD0 offset:
Code:
                Offset (0x5D), 
                ENIB,   16, //5d
                ENDD,   8, //5f
                SMPR,   8, //60
                SMST,   8, //61
                SMAD,   8, //62
                SMCM,   8, //63
                SMD0,   256, //64
 
Back
Top