Contribute
Register

[Guide] Lenovo Z50-70/Z40-70/G50-70/G40-70 using Clover UEFI

depends on what you want/or need to do

DSDT is not required and should not be used with opencore

Yes yes I know , but all the SSDTs which we're making are applying their job on the main DSDT right ??


This is what I also wanna do , for example :

In DSDT :

Scope (\_SB)
device (xxx)
Name (_hid, xxxxxx
Method (_STA, XXXXX
Name ( here is what I want to change )


For the beginning of the SSDT which I'm making I don't know how to write it what external I should use and what definition , etc...

So can I please send it to you and tell you exactly where I want to change so depending on that you are making the ssdt ?
 
depends on what you want/or need to do

DSDT is not required and should not be used with opencore

Sorry if I confused you , I'll be more specific ... well if you search in my below DSDT for ( PNP0C0D ) if will take you to the method and the name which I wanna make some tries on which is LID0

so can you please make an SSDT.dsl (sample) which whatever edits I'm changing on it it will apply on it I mean on this method in this please .. I hope I could explain it well


it's just as normal sample ssdt which are available on dortania guide like ssdt-pmc.dsl sample or ssdt-plug.dsl sample , jjust in my case I need to reach the LID0 .. if you can do it for me I would really appreciate it
 

Attachments

  • DSDT.dsl
    638.3 KB · Views: 49
Sorry if I confused you , I'll be more specific ... well if you search in my below DSDT for ( PNP0C0D ) if will take you to the method and the name which I wanna make some tries on which is LID0

so can you please make an SSDT.dsl (sample) which whatever edits I'm changing on it it will apply on it I mean on this method in this please .. I hope I could explain it well


it's just as normal sample ssdt which are available on dortania guide like ssdt-pmc.dsl sample or ssdt-plug.dsl sample , jjust in my case I need to reach the LID0 .. if you can do it for me I would really appreciate it
not sure what you are trying to do, but maybe have a read up on:
 
not sure what you are trying to do, but maybe have a read up on:

yes exactly I want to make a hotpatch for the device (LID0) can you make it for me please ? just when you search for (PNP0C0D) in my DSDT you'll find down of it exactly Device (LID0) just copy this method for example :


Device (LID0)
{
Name (_HID, EisaId ("PNP0C0D") /* Lid Device */) // _HID: Hardware ID
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (LEqual (ECON, One))
{
Return (0x0F)
}

Return (Zero)
}

Method (_LID, 0, NotSerialized) // _LID: Lid Status
{
Return (GL14) /* \GL14 */
}

Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
{
0x0E,
0x03
})
}



but only this is not enough to make hotpatch out of it , because in the beginning we need to write the external something like this :


DefinitionBlock ("", "SSDT", 2, "ACDT", "PMCR", 0x00001000)
{
External (_SB_.PCI0.LPCB, DeviceObj)

Scope (_SB.PCI0.LPCB)
{
Device (PMCR)
{
Name (_HID, EisaId ("APP9876")) // _HID: Hardware ID
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (_OSI ("Darwin"))
{
Return (0x0B)
}
Else
{
Return (Zero)
}
}
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
{
Memory32Fixed (ReadWrite,
0xFE000000, // Address Base
0x00010000, // Address Length
)
})
}
}
}




this is from ssdt-pmc sample , do you see it's almost same as what I want just I'm missing the beginning which :


DefinitionBlock ("", "SSDT", 2, "ACDT", "PMCR", 0x00001000)
{
External (_SB_.PCI0.LPCB, DeviceObj)


if you can just make this one I mean to write what (LID0) is connecting to which external so I can do the rest
 
not sure what you are trying to do, but maybe have a read up on:


Ok I guess I complicated it for you , sorry again , ok here's another solution

can you please tell me the <find> value of the :

Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
{
0x0E,
0x03
})
}


which is located in the Device (LID0) so I can just put the replace and put the patch in the config.plist ?

or how to find the value for that Name (_PRW, Package (0x02) which is located in the Row 4175 in my DSDT ?
 
Ok I guess I complicated it for you , sorry again , ok here's another solution

can you please tell me the <find> value of the :

Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
{
0x0E,
0x03
})
}


which is located in the Device (LID0) so I can just put the replace and put the patch in the config.plist ?

or how to find the value for that Name (_PRW, Package (0x02) which is located in the Row 4175 in my DSDT ?
you still haven't mentioned what you are trying to fix?

you may find a hotpatch already created from here:

along with that link is a config.plist with appropriate renames
 
you still haven't mentioned what you are trying to fix?

you may find a hotpatch already created from here:

along with that link is a config.plist with appropriate renames


no sir it's not available there , what I'm tryin to fix is the lid wake in my laptop because I fixed it before with rehabman but I did it directly to dsdt when i was using clover

now since I'm on OC I need hotpatch for that , so for example renaming this

Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
{
0x0E,
0x03
})
}

the one located in 4175 row because there are many _PRW , but I need to rename exactly this one from _PRW to XPRW , how can I get the find and replace value for this exact method or name or device I don't know I mean this _PRW which is related to LID0 , I just need the numbers for find and replace that's all
 
no sir it's not available there , what I'm tryin to fix is the lid wake in my laptop because I fixed it before with rehabman but I did it directly to dsdt when i was using clover

now since I'm on OC I need hotpatch for that , so for example renaming this

Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake
{
0x0E,
0x03
})
}

the one located in 4175 row because there are many _PRW , but I need to rename exactly this one from _PRW to XPRW , how can I get the find and replace value for this exact method or name or device I don't know I mean this _PRW which is related to LID0 , I just need the numbers for find and replace that's all
Code:
feartech@Asus ~ % echo -n _PRW|xxd
00000000: 5f50 5257                                _PRW
feartech@Asus ~ % echo -n XPRW|xxd
00000000: 5850 5257                                XPRW
 
Code:
feartech@Asus ~ % echo -n _PRW|xxd
00000000: 5f50 5257                                _PRW
feartech@Asus ~ % echo -n XPRW|xxd
00000000: 5850 5257                                XPRW

thank you very much ,, is that for _PRW to XPRW in general ?? or it's for changing this name (_PRW) specifically ?

I mean should I go to config and patches and put like that :

Comment : Name (_PRW, Package (0x02)
Find: 5f50 5257
Replace: 5850 5257

is it like this or I'm doing a mistake ?
 
thank you very much ,, is that for _PRW to XPRW in general ?? or it's for changing this name (_PRW) specifically ?

I mean should I go to config and patches and put like that :

Comment : Name (_PRW, Package (0x02)
Find: 5f50 5257
Replace: 5850 5257

is it like this or I'm doing a mistake ?
yes, that will change all _PRW to XPRW
 
Back
Top