Skip to content

Instantly share code, notes, and snippets.

@zurohki
Created August 2, 2020 07:47
Show Gist options
  • Save zurohki/4b859668c901e6ba13e8187a0d5d734c to your computer and use it in GitHub Desktop.
Save zurohki/4b859668c901e6ba13e8187a0d5d734c to your computer and use it in GitHub Desktop.
DSDT patch for S3 suspend-to-RAM
--- a/dsdt.dsl 2020-08-01 17:44:50.799557442 +1000
+++ b/dsdt.dsl 2020-08-01 18:06:34.305329465 +1000
@@ -18,7 +18,7 @@
* Compiler ID " "
* Compiler Version 0x01000013 (16777235)
*/
-DefinitionBlock ("", "DSDT", 1, "LENOVO", "CB-01 ", 0x00000001)
+DefinitionBlock ("", "DSDT", 1, "LENOVO", "CB-01 ", 0x00000002)
{
External (_PR_.C000, UnknownObj)
External (_PR_.C000._PPC, IntObj)
@@ -790,20 +790,13 @@
Zero,
Zero
})
- If ((CNSB == Zero))
+ Name (_S3, Package (0x04) // _S3_: S3 System State
{
- If ((DAS3 == One))
- {
- Name (_S3, Package (0x04) // _S3_: S3 System State
- {
- 0x03,
- 0x03,
- Zero,
- Zero
- })
- }
- }
-
+ 0x03,
+ 0x03,
+ Zero,
+ Zero
+ })
Name (_S4, Package (0x04) // _S4_: S4 System State
{
0x04,
@@ -10464,11 +10457,6 @@
Local0 |= One
}
- Case (Zero)
- {
- Local0 |= Zero
- Local0 |= 0x02
- }
Default
{
Local0 |= Zero
@czerwinski1977
Copy link

Hello,
I found this patch to get Lenovo IdeaPad 14ARE05 into S3 mode. Does it also apply to IdeaPad 14ALC05? I have the same symptoms but dmesg won't show me that ACPI S3 is supported.
Can you help or advice?
Thanks a lot in advance!

@zurohki
Copy link
Author

zurohki commented Jun 15, 2021

You can try following the steps over on https://old.reddit.com/r/linuxhardware/comments/i28nm5/ideapad_14are05_s3_sleep_fix/. I expect the patch won't apply exactly as is, but you never know.

It's a pretty simple patch, just removing the if statements that were around the S3 entry and bumping the version number. And removing an extra Case (Zero) entry that stopped it from compiling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment