Contribute
Register

Dell Inspiron 7737 Battery Status

Status
Not open for further replies.
Code:
// For disabling the discrete GPU

#ifndef NO_DEFINITIONBLOCK
DefinitionBlock("", "SSDT", 2, "hack", "_DDGPU", 0)
{
#endif
    // Note: The _OFF path should be customized to correspond to your native ACPI
    // the two paths provided here should be considered examples only
    // it is best to edit the code such that only the single _OFF path that your ACPI
    // uses is included.
    External(_SB.PCI0.PEG0.PEGP._OFF, MethodObj)
    External(_SB.PCI0.PEGP.DGFX._OFF, MethodObj)

    Device(RMD1)
    {
        Name(_HID, "RMD10000")
        Method(_INI)
        {
            // disable discrete graphics (Nvidia/Radeon) if it is present
            If (CondRefOf(\_SB.PCI0.PEG0.PEGP._OFF)) { \_SB.PCI0.PEG0.PEGP._OFF() }
            If (CondRefOf(\_SB.PCI0.PEGP.DGFX._OFF)) { \_SB.PCI0.PEGP.DGFX._OFF() }
        }
    }
#ifndef NO_DEFINITIONBLOCK
}
#endif
//EOF

If I recall correctly, OREG showed my Nvidia adapter adapter is at SB.PCI0.RP05.PEGP. Do I just replace PEG0 with RP05 in the script?

and remove the lines with "External(_SB.PCI0.PEGP.DGFX._OFF, MethodObj)" as this would be for a Radeon/other card is that correct?

Appreciate the assistance.
 
Code:
// For disabling the discrete GPU

#ifndef NO_DEFINITIONBLOCK
DefinitionBlock("", "SSDT", 2, "hack", "_DDGPU", 0)
{
#endif
    // Note: The _OFF path should be customized to correspond to your native ACPI
    // the two paths provided here should be considered examples only
    // it is best to edit the code such that only the single _OFF path that your ACPI
    // uses is included.
    External(_SB.PCI0.PEG0.PEGP._OFF, MethodObj)
    External(_SB.PCI0.PEGP.DGFX._OFF, MethodObj)

    Device(RMD1)
    {
        Name(_HID, "RMD10000")
        Method(_INI)
        {
            // disable discrete graphics (Nvidia/Radeon) if it is present
            If (CondRefOf(\_SB.PCI0.PEG0.PEGP._OFF)) { \_SB.PCI0.PEG0.PEGP._OFF() }
            If (CondRefOf(\_SB.PCI0.PEGP.DGFX._OFF)) { \_SB.PCI0.PEGP.DGFX._OFF() }
        }
    }
#ifndef NO_DEFINITIONBLOCK
}
#endif
//EOF

If I recall correctly, OREG showed my Nvidia adapter adapter is at SB.PCI0.RP05.PEGP. Do I just replace PEG0 with RP05 in the script?

and remove the lines with "External(_SB.PCI0.PEGP.DGFX._OFF, MethodObj)" as this would be for a Radeon/other card is that correct?

Appreciate the assistance.
SB.PCI0.PEGP.DGFX is for AMD

yes, check your DSDT for your for RP05.PEGP etc, and add as accordingly

this is a lot of trial and error and more advanced than basic hotpatch but worth it in the end
 
Hi,

When I try to compile some of the DSL files I am getting errors around these lines "#ifndef NO_DEFINITIONBLOCK"

What does this mean? Can I safely remove these types of problematic lines?

EDIT:

I removed those ## lines and compiled the patch anyways to test...

Back to battery problems again soon as I enabled this patch to disable the Nvidia card. the gfx adapter appears to be disabled as when I check system properties I only see the intel card:

Code:
DefinitionBlock ("", "SSDT", 2, "hack", "_DDGPU", 0x00000000)
{
    External (_SB_.PCI0.RP05.PEGP._OFF, MethodObj)    // 0 Arguments (from opcode)

    Device (RMD1)
    {
        Name (_HID, "RMD10000")  // _HID: Hardware ID
        Method (_INI, 0, NotSerialized)  // _INI: Initialize
        {
            If (CondRefOf (\_SB.PCI0.RP05.PEGP._OFF))
            {
                \_SB.PCI0.RP05.PEGP._OFF ()
            }
        }
    }
}

The battery was showing fine, and I enabled most of the patches.... soon as I enabled and rebooted after this one to disable discrete graphics (RP05), battery disappeared completely and is showing 0% in the energy settings panel and I'm unable to activate in the taskbar.

What could possibly be going wrong here? It seems soon as I disable discrete gfx the battery goes haywire.
 
Last edited:
Hi,

When I try to compile some of the DSL files I am getting errors around these lines "#ifndef NO_DEFINITIONBLOCK"

What does this mean? Can I safely remove these types of problematic lines?

EDIT:

I removed those ## lines and compiled the patch anyways to test...

Back to battery problems again soon as I enabled this patch to disable the Nvidia card. the gfx adapter appears to be disabled as when I check system properties I only see the intel card:

Code:
DefinitionBlock ("", "SSDT", 2, "hack", "_DDGPU", 0x00000000)
{
    External (_SB_.PCI0.RP05.PEGP._OFF, MethodObj)    // 0 Arguments (from opcode)

    Device (RMD1)
    {
        Name (_HID, "RMD10000")  // _HID: Hardware ID
        Method (_INI, 0, NotSerialized)  // _INI: Initialize
        {
            If (CondRefOf (\_SB.PCI0.RP05.PEGP._OFF))
            {
                \_SB.PCI0.RP05.PEGP._OFF ()
            }
        }
    }
}

The battery was showing fine, and I enabled most of the patches.... soon as I enabled and rebooted after this one to disable discrete graphics (RP05), battery disappeared completely and is showing 0% in the energy settings panel and I'm unable to activate in the taskbar.

What could possibly be going wrong here? It seems soon as I disable discrete gfx the battery goes haywire.
Use this tool and upload your problem reporting files:
 
Attached

Note: I reverted back to original DSDT/Patched SSDTs + FakeSMC as the battery is behaving the same using VirtualSMC and Hotpatching. When disabling RP05 (Nvidia)
your 3rd party kexts should only be in /Library/Extensions:
Code:
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddaae330 [0x7fff9669a8f0]> { URL = "BrcmPatchRAM2.kext/ -- file:///Library/Extensions/", ID = "com.no-one.BrcmPatchRAM2" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddaa8300 [0x7fff9669a8f0]> { URL = "BrcmFirmwareRepo.kext/ -- file:///Library/Extensions/", ID = "com.no-one.BrcmFirmwareStore" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddaa60c0 [0x7fff9669a8f0]> { URL = "ApplePS2Controller.kext/ -- file:///Library/Extensions/ApplePS2SmartTouchPad.kext/Contents/PlugIns/", ID = "org.emlydinesh.driver.ApplePS2Controller" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddaa8820 [0x7fff9669a8f0]> { URL = "ApplePS2Keyboard.kext/ -- file:///Library/Extensions/ApplePS2SmartTouchPad.kext/Contents/PlugIns/", ID = "org.emlydinesh.driver.ApplePS2Keyboard" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbde00dbc0 [0x7fff9669a8f0]> { URL = "ApplePS2SmartTouchPad.kext/ -- file:///Library/Extensions/", ID = "org.emlydinesh.driver.ApplePS2SmartTouchPad" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddffbac0 [0x7fff9669a8f0]> { URL = "LiluFriend.kext/ -- file:///Library/Extensions/", ID = "com.apple.security.LiluFriend" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddfef850 [0x7fff9669a8f0]> { URL = "AppleBacklightFixup.kext/ -- file:///Library/Extensions/", ID = "com.hieplpvip.AppleBacklightFixup" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbdb414040 [0x7fff9669a8f0]> { URL = "Lilu.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.Lilu" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddcced40 [0x7fff9669a8f0]> { URL = "AirportBrcmFixup.kext/ -- file:///Library/Extensions/", ID = "as.lvs1974.AirportBrcmFixup" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddccfc80 [0x7fff9669a8f0]> { URL = "AppleALC.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.AppleALC" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddf563d0 [0x7fff9669a8f0]> { URL = "WhateverGreen.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.WhateverGreen" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddfa9860 [0x7fff9669a8f0]> { URL = "BT4LEContiunityFixup.kext/ -- file:///Library/Extensions/", ID = "as.lvs1974.BT4LEContiunityFixup" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddfaa360 [0x7fff9669a8f0]> { URL = "USBInjectAll.kext/ -- file:///Library/Extensions/", ID = "com.rehabman.driver.USBInjectAll" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddfa57c0 [0x7fff9669a8f0]> { URL = "RealtekRTL8111.kext/ -- file:///Library/Extensions/", ID = "com.insanelymac.RealtekRTL8111" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddf350b0 [0x7fff9669a8f0]> { URL = "CodecCommander.kext/ -- file:///Library/Extensions/", ID = "org.tw.CodecCommander" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddd29b90 [0x7fff9669a8f0]> { URL = "ACPIBatteryManager.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.AppleSmartBatteryManager" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbddba83e0 [0x7fff9669a8f0]> { URL = "FakePCIID.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.driver.FakePCIID" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbdda7c430 [0x7fff9669a8f0]> { URL = "FakePCIID_Broadcom_WiFi.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Broadcom-WiFi" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbdd80b4b0 [0x7fff9669a8f0]> { URL = "FakePCIID_Intel_HDMI_Audio.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Intel-HDMI-Audio" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7ffbdb41ae00 [0x7fff9669a8f0]> { URL = "FakePCIID_Intel_HD_Graphics.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Intel-HD-Graphics" }
KernelCache ID: C92F2EBC39432E4E6A4E64A19ED8D591
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83dbc18ec0 [0x7fff9669a8f0]> { URL = "FakePCIID_Intel_HD_Graphics.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Intel-HD-Graphics" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83dbd18480 [0x7fff9669a8f0]> { URL = "FakePCIID_Intel_HDMI_Audio.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Intel-HDMI-Audio" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de5055a0 [0x7fff9669a8f0]> { URL = "FakePCIID.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.driver.FakePCIID" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de50d150 [0x7fff9669a8f0]> { URL = "FakePCIID_Broadcom_WiFi.kext/ -- file:///System/Library/Extensions/", ID = "org.rehabman.injector.FakePCIID-Broadcom-WiFi" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83dbc16050 [0x7fff9669a8f0]> { URL = "ACPIBatteryManager.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.driver.AppleSmartBatteryManager" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83dbc118b0 [0x7fff9669a8f0]> { URL = "Lilu.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.Lilu" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de714140 [0x7fff9669a8f0]> { URL = "AirportBrcmFixup.kext/ -- file:///Library/Extensions/", ID = "as.lvs1974.AirportBrcmFixup" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de7166e0 [0x7fff9669a8f0]> { URL = "AppleALC.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.AppleALC" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de753ad0 [0x7fff9669a8f0]> { URL = "CodecCommander.kext/ -- file:///Library/Extensions/", ID = "org.tw.CodecCommander" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de79ad30 [0x7fff9669a8f0]> { URL = "WhateverGreen.kext/ -- file:///Library/Extensions/", ID = "as.vit9696.WhateverGreen" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de7ea1a0 [0x7fff9669a8f0]> { URL = "RealtekRTL8111.kext/ -- file:///Library/Extensions/", ID = "com.insanelymac.RealtekRTL8111" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de7eb4b0 [0x7fff9669a8f0]> { URL = "BrcmNonPatchRAM2.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.BrcmNonPatchRAM2" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de7ee3f0 [0x7fff9669a8f0]> { URL = "BT4LEContiunityFixup.kext/ -- file:///Library/Extensions/", ID = "as.lvs1974.BT4LEContiunityFixup" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de7eed50 [0x7fff9669a8f0]> { URL = "USBInjectAll.kext/ -- file:///Library/Extensions/", ID = "com.rehabman.driver.USBInjectAll" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de838150 [0x7fff9669a8f0]> { URL = "AppleBacklightFixup.kext/ -- file:///Library/Extensions/", ID = "com.hieplpvip.AppleBacklightFixup" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de8443c0 [0x7fff9669a8f0]> { URL = "LiluFriend.kext/ -- file:///Library/Extensions/", ID = "com.apple.security.LiluFriend" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de874c50 [0x7fff9669a8f0]> { URL = "ApplePS2SmartTouchPad.kext/ -- file:///Library/Extensions/", ID = "org.emlydinesh.driver.ApplePS2SmartTouchPad" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de8811f0 [0x7fff9669a8f0]> { URL = "ApplePS2Keyboard.kext/ -- file:///Library/Extensions/ApplePS2SmartTouchPad.kext/Contents/PlugIns/", ID = "org.emlydinesh.driver.ApplePS2Keyboard" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de885780 [0x7fff9669a8f0]> { URL = "ApplePS2Controller.kext/ -- file:///Library/Extensions/ApplePS2SmartTouchPad.kext/Contents/PlugIns/", ID = "org.emlydinesh.driver.ApplePS2Controller" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de87a370 [0x7fff9669a8f0]> { URL = "BrcmFirmwareRepo.kext/ -- file:///Library/Extensions/", ID = "com.no-one.BrcmFirmwareStore" }
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f83de88afe0 [0x7fff9669a8f0]> { URL = "BrcmPatchRAM2.kext/ -- file:///Library/Extensions/", ID = "com.no-one.BrcmPatchRAM2" }

you probably don't need:
FakePCIID_Intel_HD_Graphics.kext

run:
it will check for kext updates and let you know if any kexts can be removed due to update of other kexts

why have you added those SSDT's in there? what have you patched in them?

you seem to have added a lot of extra Fixes in your config.plist which are unnecessary

you have renames in your config.plist which have no bearings now you removed your hotpatch files

also with your renames, you may want to enable:
change _DSM to XDSM
when you have your hotpatch files in place
 
Ok.

Let me update those renames and clean it up. Are there any renames needed to stay?

I will move those 3rd party kexts from sle

In those SSDTs all I have done is run the basic patches. There’s nothing special about them other than about 4 patches I was directed to run on them (gfx0 and _pss and something else and error fix), from a guide. I tried to run with only DSDT and SSDT5 with the gfx disable but had the same result with the battery.

The only SSDT that actually has changed is #5 related to disabling DGFX.

Should I remove all Other SSDT?
 
Ok.

Let me update those renames and clean it up. Are there any renames needed to stay?

I will move those 3rd party kexts from sle

In those SSDTs all I have done is run the basic patches. There’s nothing special about them other than about 4 patches I was directed to run on them (gfx0 and _pss and something else and error fix), from a guide. I tried to run with only DSDT and SSDT5 with the gfx disable but had the same result with the battery.

The only SSDT that actually has changed is #5 related to disabling DGFX.

Should I remove all Other SSDT?
remove them all and go back to using hotpatch
 
Hi,

OK, I have reverted back to the SSDT hot patch approach, I left the renames in there and only loaded the SSDT-DDGPU, soon as I load this battery shows 0% and will not show in status bar, when I remove this SSDT and leave patched folder empty, battery goes back to normal behaviour.

Kext moved from SLE and Remoed Itel HD kext as you mentioned.

New debug attached. With the DDGPU SSDT loaded.

I haven't had a chance to run the kext updater yet.
 
Last edited:
Hi,

OK, I have reverted back to the SSDT hot patch approach, I left the renames in there and only loaded the SSDT-DDGPU, soon as I load this battery shows 0% and will not show in status bar, when I remove this SSDT and leave patched folder empty, battery goes back to normal behaviour.

Kext moved from SLE and Remoed Itel HD kext as you mentioned.

New debug attached. With the DDGPU SSDT loaded.

I haven't had a chance to run the kext updater yet.
replace FakeSMC with VirtualSMC kext (don't forget to install it to /L/E
install SMCBatteryManager.kext to /L/E

replace SMCHelper-64.efi with virtualsmc.efi in drivers64UEFI folder

then don't forget to update your lilufriend.kext afterwards as the above kexts are lilu based

rehabman has a nice tool to create lilufriend:
https://github.com/RehabMan/hack-tools

config.plist:
InjectKexts should be set to Detect, not sure why you changed that for
 
Status
Not open for further replies.
Back
Top