DSDT Sleep Fix For Lenovo X1 Yoga 3rd Gen (20LD) Bios 1.27
# Lenovo X1 Yoga 3rd Gen (20LD) DSDT Sleep Patch | |
# For Use with Bios 1.27 | |
# Patch by Litewarp based on Linux X1Y3 Sleep Patch | |
# https://gist.github.com/litewarp/1a91726219402ab878d68647ba1be53b | |
# Credit to RehabMan and rickybrent | |
# External Fixes | |
# Regex matches to complete path with use of ',' | |
# For example (_PCI0.RP01.PXSX, does not match on child objects | |
into definitionblock code_regex External\s\(_GPE.TBNF,.* removeall_matched; | |
into definitionblock code_regex External\s\(_PR_.PR00,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.GGIV,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.GGOV,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.GFX0,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.ISP0,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.PEG0,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.PEG0.PEGP,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.PEG1,.* removeall_mached; | |
into definitionblock code_regex External\s\(_SB_.PCI0.PEG2,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP01.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP01.PXSX.WGST,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP01.PXSX.WIST,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP02.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP03.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP04.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP05.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP06.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP07.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP08.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP09.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP10.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP11.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP12.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP13.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP14.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP15.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP16.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP17.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP18.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP19.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.PCI0.RP20.PXSX,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.SGOV,.* removeall_matched; | |
into definitionblock code_regex External\s\(_SB_.TBFP,.* removeall_matched; | |
into definitionblock code_regex External\s\(ADBG,.* removeall_matched; | |
into definitionblock code_regex External\s\(BNUM,.* removeall_matched; | |
into definitionblock code_regex External\s\(MMRP,.* removeall_matched; | |
into definitionblock code_regex External\s\(MMTB,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODV0,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODV1,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODV2,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODV3,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODV4,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODV5,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODV6,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODV7,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODV8,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODV9,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODVA,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODVB,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODVC,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODVD,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODVE,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODVF,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODVG,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODVH,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODVI,.* removeall_matched; | |
into definitionblock code_regex External\s\(ODVJ,.* removeall_matched; | |
into definitionblock code_regex External\s\(STDV,.* removeall_matched; | |
into definitionblock code_regex External\s\(TBTD,.* removeall_matched; | |
into definitionblock code_regex External\s\(TBTF,.* removeall_matched; | |
# Add S3 State Definition | |
into definitionblock code_regex . insert | |
begin | |
Name (\_S3, Package (0x04) // _S3_: S3 System State\n | |
{\n | |
0x05,\n | |
0x05,\n | |
0x00,\n | |
0x00\n | |
}) | |
end; |
This comment has been minimized.
This comment has been minimized.
Comment it out with // line comments. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Hi! I have Thinkpad x1 yoga (i7-8550u , without SD card reader)

When I patch my DSDT with your code , ended up having error below
How to I solve this problems?
Thanks
efi : https://drive.google.com/file/d/0B1uiMWvThaXnLXpBRE5MRmlOZVdtU3NxNFpaMWdobmVPcFVn/view?usp=sharing
IOreg : https://drive.google.com/file/d/1oMyAui6l5Gt9ZHTNug-7gjo42fw6az-H/view?usp=sharing