Code Monkey home page Code Monkey logo

Comments (6)

5T33Z0 avatar 5T33Z0 commented on June 11, 2024 1

https://github.com/5T33Z0/OC-Little-Translated/blob/main/04_Fixing_Sleep_and_Wake_Issues/060D_Instant_Wake_Fix/i_Common_060D_Patch/SSDT-XPRW.dsl

""" If (_OSI ("Darwin")){ """

it must stand after the Method in this case.

Use standard GPRW or UPRW SSDT.

SSDT-GPRW.dsl.zip

SSDT-UPRW.dsl.zip

Do you mean, like this:

DefinitionBlock("", "SSDT", 2, "5T33Z0", "XPRW", 0)
{
    External (XPRW, MethodObj)

Method (GPRW, 2)
    {
        If (_OSI ("Darwin"))
        {
            If (0x6d == Arg0) { Return (Package() { 0x6d, 0, }) }
            If (0x0d == Arg0) { Return (Package() { 0x0d, 0, }) }
            Return (XPRW (Arg0, Arg1))
        }

Method (UPRW, 2)
    {
        If (_OSI ("Darwin"))
        {
            If (0x6d == Arg0) { Return (Package() { 0x6d, 0, }) }
            If (0x0d == Arg0) { Return (Package() { 0x0d, 0, }) }
            Return (XPRW (Arg0, Arg1))
        }
    }
  }
}

from oc-little-translated.

Baio1977 avatar Baio1977 commented on June 11, 2024

https://github.com/5T33Z0/OC-Little-Translated/blob/main/04_Fixing_Sleep_and_Wake_Issues/060D_Instant_Wake_Fix/i_Common_060D_Patch/SSDT-PRW0.dsl.

SSDT-PRW0 correction

Screenshot 2022-10-02 alle 09 20 25

Added

"" "
Scope ( \ )
"" "

from oc-little-translated.

5T33Z0 avatar 5T33Z0 commented on June 11, 2024

Thanks, I'll add the scope. It has been working fine without it on my Laptop for months now, though.

from oc-little-translated.

Baio1977 avatar Baio1977 commented on June 11, 2024

Thanks, I'll add the scope. It has been working fine without it on my Laptop for months now, though.

That you say is correct, see example SSDT-XOSI does not have Scope, so it is automatically inserted under ( \ ), which is the primary Scope.

from oc-little-translated.

5T33Z0 avatar 5T33Z0 commented on June 11, 2024

So I have changed it for no reason now…

After the changes in SSDT-XPRW I get a warning now: "Not all Control paths return a value":

Bildschirmfoto 2022-10-02 um 10 07 46

Is that a problem?

from oc-little-translated.

Baio1977 avatar Baio1977 commented on June 11, 2024

Use this file , do not change this is already okay, the 2 SSDTs are independent it is right to make them available individually
SSDT-GPRW.dsl.zip
SSDT-UPRW.dsl.zip

from oc-little-translated.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.