forked from RehabMan/HP-ProBook-4x30s-DSDT-Patch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
05_OScheck.txt
34 lines (28 loc) · 1.1 KB
/
05_OScheck.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
#Maintained by: RehabMan for: HP Probook 4x30s/4x40s
# 05_OScheck.txt
# patch _INI method in Scope(_SB)
into method label _INI replace_content
begin
// always store 0x07D6 for "Darwin"\n
Store (0x07D6, OSYS)\n
//\_TZ.BOTT ()\n
//\_TZ.RETD ()\n
Store (One, PFLV)\n
end;
into method label WCOS replace_content
begin
// assume "Windows 2006" values\n
Store (0x06, WOSI)\n
Store (WOSI, WHOS)\n
Return (WOSI)\n
end;
# patch OS checks
#into_all all code_regex If\s\(_OSI\s\(\"Windows\s2006\"\)\) replaceall_matched
#begin If (LOr (_OSI ("Darwin"), _OSI ("Windows 2006"))) end;
#into_all all code_regex If\s\(\\_OSI\s\(\"Windows\s2006\"\)\) replaceall_matched
#begin If (LOr (_OSI ("Darwin"), _OSI ("Windows 2006"))) end;
# Remove icons on menu bar for SD card
into method label _RMV parent_label SMHC replace_content begin Return (Zero) end;
into method label _RMV parent_label MSHC replace_content begin Return (Zero) end;
into method label _RMV parent_label XDCC replace_content begin Return (Zero) end;
into method label _RMV parent_label I1C replace_content begin Return (Zero) end;