@RehabMan, asking it here coz it didn't seem right to create a thread for this simple query.
I am creating a single dynamic hot patching SSDT (for ASUS machines) that can be configured according to a user's like. It's still in WIP.
Suppose, I have a Name (CPDV, 8) field.
How can I change it's value dynamically? Like,
Code:
Method (SOME, 0)
{
Local0 = Package()
{
"String1", 2
}
CreateDWordField(DerefOf(Local0[1]), 0, Local1) // I want to change it's value to that of Name (CPDV) in Device (MYDV). Is this the right way do to it? Sorry, I'm still learning ACPI.
Local1 = \MYDV.CPDV
Return (Local0)
}
Secondly, Can I return a package alongside a name, like, quoting an example for setting ACPI Battery manager's RMCF.
Code:
Device (SMB0)
{
Name (RMCF, Package()
{
"FirstPollDelay", 4000
})
Suppose I have a package store in Local1, How do it return it in a name field?
Code:
Name (RMCF, Local1) // I know it is wrong, what is the right way to do it?
Thirdly (sorry),
Can we return your RMCF values from a method? I mean, will your kext read it or it has to be in scope's root?
Like, can we use,
Code:
Scope (SMB0)
{
Method (_INI, 0)
{
Name (RMCF, Package(){...})
}
Instead of,
Code:
Scope (SMB0)
{
Name (RMCF, Package(){...})
}
Also, for my debug script, in your version of the clover, is it possible to have some file in CLOVER dir and have clover detect it.
Like, we could create a file named .extract_origin in CLOVER's root dir. When booting up, if clover detects this file it would dump the origin files automatically and then delete that .dump_origin file? It is not a good idea to include a setting for this in config.plist as it makes no sense.
The example above was just to make you understand what I am trying to say. There may be better ways to do it (barring the config.plist).
If there turns out to be a way, then, we can implement the same for Dumping preboot log.
Please tell me your views on this.
Regards.