Override ACPI table on Flex

39 views
Skip to first unread message

Magnetic Spectator

unread,
Mar 26, 2024, 8:28:11 AMMar 26
to ChromiumOS Discussion
Xiaomi provides ACPI table tailored for Windows, but it has to be edited for Linux, and chromeOS is preventing me from loading a modified ACPI table in initrd:
[    0.010980] ACPI: DSDT ACPI table found in initrd [kernel/firmware/acpi/dsdt.aml][0x66bc]
[    0.011716] Lockdown: swapper: modifying ACPI tables is restricted; see man kernel_lockdown.7
[    0.011717] ACPI: kernel is locked down, ignoring table override

I'm booting crOS Flex through grub, and providing it a working ACPI table that I use on other Linux distributions and it fixes an S3 issue.

Without my table loaded, sleep crashes chromeOS and has to be restarted, even if sleep took a second.

Modifications in my ACPI:
@@ -18,7 +18,7 @@ * Compiler ID " " * Compiler Version 0x01000013 (16777235) */ -DefinitionBlock ("", "DSDT", 1, "XMCC ", "XMCC1953", 0x00000002) +DefinitionBlock ("", "DSDT", 1, "XMCC ", "XMCC1953", 0x00000003) { /* * iASL Warning: There were 9 external control methods found during @@ -769,19 +769,13 @@ DefinitionBlock ("", "DSDT", 1, "XMCC ", "XMCC1953", 0x00000002) Zero, Zero }) - If ((CNSB == Zero)) - { - If ((DAS3 == One)) - { - Name (_S3, Package (0x04) // _S3_: S3 System State - { - 0x03, - 0x03, - Zero, - Zero - }) - } - } + Name (_S3, Package (0x04) // _S3_: S3 System State + { + 0x03, + 0x03, + Zero, + Zero + }) Name (_S4, Package (0x04) // _S4_: S4 System State {
Reply all
Reply to author
Forward
0 new messages