forked from RehabMan/HP-ProBook-4x30s-DSDT-Patch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path11a_Radeon_OFF_SSDT.txt
39 lines (29 loc) · 2.28 KB
/
11a_Radeon_OFF_SSDT.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#Maintained by: RehabMan for: HP Probook 4x30s/4x40s
# 11a_Radeon_OFF_SSDT.txt
# To disable the Radeon chipset
# Apply these patches to SSDT containing the secondary graphics routines
# "SgTabl" (SSDT-5)
# Include patched version as SSDT-1.aml
# Known issue: Restarting your computer may cause shutdown instead.
# syntax fixes
into scope label \_SB.PCI0.GFX0 code_regex (OperationRegion.*)VRMB\s+\(VRMS\s+\(\)\), replace_matched begin %1VRMB(),VRMS())\n end;
into scope label \_SB.PCI0.GFX0 code_regex (Field\s+\(REVD,[^\}]*\})\) replace_matched begin %1 end;
into scope label \_SB.PCI0.PEGP code_regex (OperationRegion.*)\\XBAS\s+\((.*)\), replace_matched begin %1\\XBAS,%2)\n end;
into scope label \_SB.PCI0.PEGP code_regex (Field\s+\(RPCX,[^\}]*\})\) replace_matched begin %1 end;
into scope label \_SB.PCI0.PEGP.DGFX code_regex (OperationRegion.*)\\GBAS\s+\((.*)\), replace_matched begin %1\\GBAS,%2)\n end;
into scope label \_SB.PCI0.PEGP.DGFX code_regex (Field\s+\(GPIO,[^\}]*\})\) replace_matched begin %1 end;
into scope label \_SB.PCI0.PEGP.DGFX code_regex (OperationRegion.*)\\EECP\s+\((.*)\), replace_matched begin %1\\EECP,%2)\n end;
into scope label \_SB.PCI0.PEGP.DGFX code_regex (Field\s+\(PCAP,[^\}]*\})\) replace_matched begin %1 end;
into definitionblock code_regex External\s+\((.*_SB_\.PCI0\.GFX0\.DD02\._BCM),\s+IntObj\) replace_matched begin External(%1, MethodObj) end;
into method label _BCM parent_label DD02 code_regex Return\s+\(([^\)]*)\)\n.*Arg0 replace_matched begin Return(%1(Arg0)) end;
# rename GFX0
into_all all code_regex \.GFX0 replaceall_matched begin .IGPU end;
into_all all label \_SB.PCI0.GFX0 set_label begin \_SB.PCI0.IGPU end;
# remove wait for LNKS (while loop) (not necessary, commented out for now)
#into method label _OFF parent_label \_SB.PCI0.PEGP.DGFX code_regex While\s+\([^\}]*\} remove_matched;
# call _OFF from _SB.PCI0.DGFX._INI
into method label _INI parent_label \_SB.PCI0.PEGP.DGFX code_regex . insert begin _OFF()\n end;
# some patches specific to 4530s w/ Radeon
into method label _DSM parent_label \_SB.PCI0.IGPU remove_entry;
into scope label \_SB.PCI0.PEGP code_regex (Field\s+\(RPCX,[^\}]*\})\) replace_matched begin %1 end;
into definitionblock code_regex External\s+\((_SB_\.PCI0\.GFX0\.DD02\._BCM),\s+IntObj\) replace_matched begin External(%1, MethodObj)