@@ -16,7 +16,8 @@ control method rather than override the entire DSDT, because kernel
16
16
rebuild/reboot is not needed and test result can be got in minutes.
17
17
18
18
Note: Only ACPI METHOD can be overridden, any other object types like
19
- "Device", "OperationRegion", are not recognized.
19
+ "Device", "OperationRegion", are not recognized. Methods
20
+ declared inside scope operators are also not supported.
20
21
Note: The same ACPI control method can be overridden for many times,
21
22
and it's always the latest one that used by Linux/kernel.
22
23
Note: To get the ACPI debug object output (Store (AAAA, Debug)),
@@ -32,8 +33,6 @@ Note: To get the ACPI debug object output (Store (AAAA, Debug)),
32
33
33
34
DefinitionBlock ("", "SSDT", 1, "", "", 0x20080715)
34
35
{
35
- External (ACON)
36
-
37
36
Method (\_SB_.AC._PSR, 0, NotSerialized)
38
37
{
39
38
Store ("In AC _PSR", Debug)
@@ -42,9 +41,10 @@ Note: To get the ACPI debug object output (Store (AAAA, Debug)),
42
41
}
43
42
Note that the full pathname of the method in ACPI namespace
44
43
should be used.
45
- And remember to use "External" to declare external objects.
46
44
e) assemble the file to generate the AML code of the method.
47
- e.g. "iasl psr.asl" (psr.aml is generated as a result)
45
+ e.g. "iasl -vw 6084 psr.asl" (psr.aml is generated as a result)
46
+ If parameter "-vw 6084" is not supported by your iASL compiler,
47
+ please try a newer version.
48
48
f) mount debugfs by "mount -t debugfs none /sys/kernel/debug"
49
49
g) override the old method via the debugfs by running
50
50
"cat /tmp/psr.aml > /sys/kernel/debug/acpi/custom_method"
0 commit comments