Contribute
Register

[solved] no battery icon after new ACPI patch

Status
Not open for further replies.
Joined
Nov 11, 2015
Messages
243
Motherboard
GIGABYTE Z390 DESIGNARE.
CPU
i7 7700K
Graphics
RTX 3080 TI
Mac
  1. iMac
  2. MacBook
  3. MacBook Pro
  4. Mac mini
Mobile Phone
  1. Android
  2. iOS
Screen Shot 2015-12-08 at 11.26.08 AM.png
hi there i have applied Dell-Inspiron-15-7xxx battery patch and following guide
[Guide] Patching LAPTOP DSDT/SSDTs

[Guide] How to patch DSDT for working battery status

but above battery patching guide seems to be complicated for person like me :(
but if i boot with this
Code:
# Force BAT0 device
into method label _STA parent_label BAT0 replace_content begin Return (0x1F) end;
i have battery working !!!
any ideas !!!

and also i noticed without applying above #Force BAT0 device, i get battery indicatings after wake from sleep !!! strange !!!
 

Attachments

  • DSDT.zip
    33.9 KB · Views: 73
  • no_batt.ioreg.zip
    467.6 KB · Views: 66
  • after wake from sleep.ioreg.zip
    503.6 KB · Views: 59
no battery icon after new ACPI patch

View attachment 166012
hi there i have applied Dell-Inspiron-15-7xxx battery patch and following guide
[Guide] Patching LAPTOP DSDT/SSDTs

[Guide] How to patch DSDT for working battery status

but above battery patching guide seems to be complicated for person like me :(
but if i boot with this
Code:
# Force BAT0 device
into method label _STA parent_label BAT0 replace_content begin Return (0x1F) end;
i have battery working !!!
any ideas !!!

and also i noticed without applying above #Force BAT0 device, i get battery indicatings after wake from sleep !!! strange !!!

Make sure you used one of the "OS Check Fix" patches.
 
no battery icon after new ACPI patch

Make sure you used one of the "OS Check Fix" patches.
i have tried both windwos 7/8 same results :(
 
no battery icon after new ACPI patch

i have tried both windwos 7/8 same results :(

Download patchmatic: https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/RehabMan-patchmatic-2015-0107.zip
Extract the 'patchmatic' binary from the ZIP. Copy it to /usr/bin, such that you have the binary at /usr/bin/patchmatic.

In terminal,
Code:
if [ -d ~/Downloads/RehabMan ]; then rm -R ~/Downloads/RehabMan; fi
mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract

Note: It is easier if you use copy/paste instead of typing the commands manually.

Post contents of Downloads/RehabMan directory (as ZIP).

Also, post ioreg: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.

And output from:
Code:
kextstat|grep -y acpiplat
kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc

Also, post EFI/Clover folder (press F4 at main Clover screen before collecting).

Also post output of:
Code:
sudo touch /System/Library/Extensions && sudo kextcache -u /
 
no battery icon after new ACPI patch

Download patchmatic: https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/RehabMan-patchmatic-2015-0107.zip
Extract the 'patchmatic' binary from the ZIP. Copy it to /usr/bin, such that you have the binary at /usr/bin/patchmatic.

In terminal,
Code:
if [ -d ~/Downloads/RehabMan ]; then rm -R ~/Downloads/RehabMan; fi
mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract

Note: It is easier if you use copy/paste instead of typing the commands manually.

Post contents of Downloads/RehabMan directory (as ZIP).

Also, post ioreg: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.

And output from:
Code:
kextstat|grep -y acpiplat
kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc

Also, post EFI/Clover folder (press F4 at main Clover screen before collecting).

Also post output of:
Code:
sudo touch /System/Library/Extensions && sudo kextcache -u /

here are they ,sorry for late my internet went down
but for this DSDT with patchmatiic out i have used "force BAT0"
 

Attachments

  • Archive.zip
    570.3 KB · Views: 71
no battery icon after new ACPI patch

here are they ,sorry for late my internet went down
but for this DSDT with patchmatiic out i have used "force BAT0"

This DSDT has been patched to force 0x1f from BAT0._STA.

Need files without that patch.
 
no battery icon after new ACPI patch

This DSDT has been patched to force 0x1f from BAT0._STA.

Need files without that patch.

without that specific patch "BAT0"
 

Attachments

  • Archive.zip
    536.6 KB · Views: 64
no battery icon after new ACPI patch

without that specific patch "BAT0"

It is looking at MIS0. It is set in SOST:
Code:
    Method (SOST, 0, NotSerialized)
    {
        Store (One, Local0)
        If (_OSI (WIN7))
        {
            Store (0x80, Local0)
            Store (_REV, Local1)
            If (LEqual (Local1, 0x05))
            {
                Store (0x40, Local0)
            }
        }

        If (_OSI (WIN8))
        {
            Store (0x81, Local0)
        }

        If (_OSI (LNX))
        {
            Store (_REV, Local1)
            If (LEqual (Local1, 0x05))
            {
                Store (0x40, Local0)
            }
        }

        If (LEqual (Local0, 0x40))
        {
            Store (SMI (0x98, Zero), MIS0)
            And (MIS0, 0x13, MIS0)
        }

        Store (Local0, AS00)
        SX10 ()
        \_SB.PCI0.LPCB.EC.PCA1 (0x90, Local0)
        Store (\_SB.PCI0.LPCB.EC.ECRB (0x02), Local0)
        SX12 ()
    }

Note that you have not patched this method for _OSI("Darwin").
 
no battery icon after new ACPI patch

It is looking at MIS0. It is set in SOST:
Code:
    Method (SOST, 0, NotSerialized)
    {
        Store (One, Local0)
        If (_OSI (WIN7))
        {
            Store (0x80, Local0)
            Store (_REV, Local1)
            If (LEqual (Local1, 0x05))
            {
                Store (0x40, Local0)
            }
        }

        If (_OSI (WIN8))
        {
            Store (0x81, Local0)
        }

        If (_OSI (LNX))
        {
            Store (_REV, Local1)
            If (LEqual (Local1, 0x05))
            {
                Store (0x40, Local0)
            }
        }

        If (LEqual (Local0, 0x40))
        {
            Store (SMI (0x98, Zero), MIS0)
            And (MIS0, 0x13, MIS0)
        }

        Store (Local0, AS00)
        SX10 ()
        \_SB.PCI0.LPCB.EC.PCA1 (0x90, Local0)
        Store (\_SB.PCI0.LPCB.EC.ECRB (0x02), Local0)
        SX12 ()
    }

may i ask what does this code do? because when i try to apply it "Apply" button grayed out
Screen Shot 2015-12-12 at 9.22.00 AM.png

Note that you have not patched this method for _OSI("Darwin").
i applied windows 8 version from _OSI patches
 
no battery icon after new ACPI patch

may i ask what does this code do? because when i try to apply it "Apply" button grayed out
View attachment 166950

The code I showed is part of your DSDT, not a MaciASL patch.

i applied windows 8 version from _OSI patches

You will need to edit the code manually so it accomodates _OSI("Darwin") as if it was Windows.

eg.
Code:
    Method (SOST, 0, NotSerialized)
    {
        Store (One, Local0)
[B]        If (LOr(_OSI (WIN7),_OSI("Darwin")))[/B]
        {
            Store (0x80, Local0)
            Store (_REV, Local1)
            If (LEqual (Local1, 0x05))
            {
                Store (0x40, Local0)
            }
        }

        If (_OSI (WIN8))
        {
            Store (0x81, Local0)
        }

        If (_OSI (LNX))
        {
            Store (_REV, Local1)
            If (LEqual (Local1, 0x05))
            {
                Store (0x40, Local0)
            }
        }

        If (LEqual (Local0, 0x40))
        {
            Store (SMI (0x98, Zero), MIS0)
            And (MIS0, 0x13, MIS0)
        }

        Store (Local0, AS00)
        SX10 ()
        \_SB.PCI0.LPCB.EC.PCA1 (0x90, Local0)
        Store (\_SB.PCI0.LPCB.EC.ECRB (0x02), Local0)
        SX12 ()
    }
 
Status
Not open for further replies.
Back
Top