Contribute
Register

Dell 5570, drain battery, bluetooth does not get up after a long sleep, sometimes the screen flicker

Status
Not open for further replies.
Joined
Jun 8, 2014
Messages
46
Motherboard
Dell Inspiron 5570
CPU
i5-8250u
Graphics
UHD 620 + Amd Radeon 530
Hi, I have a problem with my laptop, after a long sleep bluetooth is not waking up and the battery is dropping very much. I attach debug before and after sleep, sometimes the screen flickers.

Before sleep: 5427
After sleep: 13830

Regards
 

Attachments

  • debug_5427.zip
    7.2 MB · Views: 90
  • debug_13830.zip
    7.3 MB · Views: 58
Hi, I have a problem with my laptop, after a long sleep bluetooth is not waking up and the battery is dropping very much. I attach debug before and after sleep, sometimes the screen flickers.

Before sleep: 5427
After sleep: 13830

Regards

It is possible your Radeon is turned back on after sleep.
Refer to solutions in the guide:
https://www.tonymacx86.com/threads/guide-disabling-discrete-graphics-in-dual-gpu-laptops.163772/

Also, you have duplicate symbols somewhere in your patched ACPI setup.
You can tell if you attempt disassembly of your patchmatic output: iasl -da -dl *.aml

If you disassemble ACPI/origin, no duplicate symbols: iasl -da -dl DSDT.aml SSDT*.aml

But with patchmatic there are duplicates, which indicates an incorrect hotpatch setup.
 
Can you help me with the total exclusion of Radeon?

I used SSDT-DDGPU and SSDT-PTSWAK files

Method _OFF
Code:
Scope (\_SB.PCI0.RP01.PEGP)
    {
        Method (_ON, 0, Serialized)  // _ON_: Power On
        {
            \_SB.PCI0.HGON (One)
            Notify (\_SB.PCI0.RP01, Zero)
        }

        Method (_OFF, 0, Serialized)  // _OFF: Power Off
        {
            \_SB.PCI0.HGOF (One)
            Notify (\_SB.PCI0.RP01, Zero)
        }
    }

Metod _INI
Code:
Scope (\_SB.PCI0.RP01.PEGP)
    {
        Method (_INI, 0, NotSerialized)  // _INI: Initialize
        {
            Store (Zero, \_SB.PCI0.RP01.PEGP._ADR)
        }
    }

Method _REG
Code:
Method (_REG, 2, NotSerialized)  // _REG: Region Availability
            {
                If (LEqual (LEqual (Arg1, One), LEqual (Arg0, 0x03)))
                {
                    Store (One, ECRD)
                    ECIN ()
                }

                If (LAnd (LEqual (Arg1, Zero), LEqual (Arg0, 0x03)))
                {
                    Store (Zero, ECRD)
                }
            }
 

Attachments

  • SSDT-DDGPU.aml
    146 bytes · Views: 74
  • SSDT-PTSWAK.aml
    626 bytes · Views: 61
Can you help me with the total exclusion of Radeon?

I used SSDT-DDGPU and SSDT-PTSWAK files

Method _OFF
Code:
Scope (\_SB.PCI0.RP01.PEGP)
    {
        Method (_ON, 0, Serialized)  // _ON_: Power On
        {
            \_SB.PCI0.HGON (One)
            Notify (\_SB.PCI0.RP01, Zero)
        }

        Method (_OFF, 0, Serialized)  // _OFF: Power Off
        {
            \_SB.PCI0.HGOF (One)
            Notify (\_SB.PCI0.RP01, Zero)
        }
    }

Metod _INI
Code:
Scope (\_SB.PCI0.RP01.PEGP)
    {
        Method (_INI, 0, NotSerialized)  // _INI: Initialize
        {
            Store (Zero, \_SB.PCI0.RP01.PEGP._ADR)
        }
    }

Method _REG
Code:
Method (_REG, 2, NotSerialized)  // _REG: Region Availability
            {
                If (LEqual (LEqual (Arg1, One), LEqual (Arg0, 0x03)))
                {
                    Store (One, ECRD)
                    ECIN ()
                }

                If (LAnd (LEqual (Arg1, Zero), LEqual (Arg0, 0x03)))
                {
                    Store (Zero, ECRD)
                }
            }

You can use the _WAK/_PTS overrides in SSDT-PTSWAK if you have the required ACPI patches for _PTS->ZPTS, _WAK->ZWAK. Refer to the config.plist in the hotpatch repo (and the hotpatch guide).

Then you need to set DPTS=1 in SSDT-RMCF. You should probably read the comments there too.
 
And should I use the SSDT-DDGPU file with SSDT-PTSWAK? And should I modify the _OFF _INI and _REG methods?

SSDT-DDGPU
Code:
DefinitionBlock ("", "SSDT", 2, "hack", "_DDGPU", 0x00000000)
{
    External (_SB_.PCI0.RP01.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.RP01.PEGP._OFF))
            {
                \_SB.PCI0.RP01.PEGP._OFF ()
            }
        }
    }
}
 
And should I use the SSDT-DDGPU file with SSDT-PTSWAK? And should I modify the _OFF _INI and _REG methods?

SSDT-DDGPU
Code:
DefinitionBlock ("", "SSDT", 2, "hack", "_DDGPU", 0x00000000)
{
    External (_SB_.PCI0.RP01.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.RP01.PEGP._OFF))
            {
                \_SB.PCI0.RP01.PEGP._OFF ()
            }
        }
    }
}

SSDT-DGPU is for disabling upon boot.
SSDT-PTSWAK handles sleep/wake transitions.
 
And what about the _OFF _INI and _REG methods? Should I modify them with a guide? How do I check in IORegistryExplorer if Radeon is turned off? Just search for AMD
 
And what about the _OFF _INI and _REG methods? Should I modify them with a guide? How do I check in IORegistryExplorer if Radeon is turned off? Just search for AMD

You only need to patch _OFF if it contains EC related code or calls other methods that contain EC related code.
It is covered quite clearly in the various ACPI guides.

The difference in Radeon disabled vs. not disabled can be seen from ioreg (look in relevant nodes under PCI0) and System Information->Graphics.
 
Hi, I have a problem with my laptop, after a long sleep bluetooth is not waking up and the battery is dropping very much. I attach debug before and after sleep, sometimes the screen flickers.

Hi minolone,

I am using the same laptop as yours, but I got lots of troubles with installing High Sierra. Can you provide me a guide or attach your working CLOVER folder with pre and post installation? Thank a lot
 
Hi minolone,

I am using the same laptop as yours, but I got lots of troubles with installing High Sierra. Can you provide me a guide or attach your working CLOVER folder with pre and post installation? Thank a lot

Follow the Clover guide linked from the FAQ.
http://www.tonymacx86.com/el-capita...faq-read-first-laptop-frequent-questions.html

Although you should read the FAQ for an overview of issues, the Clover guide is linked from the first question: "Q. Where do I start?", just after the bold face "Clover Guide".
Here is a direct link, just to be clear:
https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/

Also, your profile must be filled out with complete details as requested in the FAQ, again under "Q. Where do I start?". All seven details requested are equally important.

And if you have an issue (after following the guide), or on any other problem, you must provide a detailed description of the problem including information that helps us understand what you're doing. Always attach "Problem Reporting" files as per FAQ.
http://www.tonymacx86.com/el-capita...faq-read-first-laptop-frequent-questions.html
The required files and data are fully detailed in the last question in the FAQ:
"Q. What are typical "Problem Reporting" files?"
 
Status
Not open for further replies.
Back
Top