Skip to content

Instantly share code, notes, and snippets.

@ryanaslett
Created November 23, 2019 17:13
Show Gist options
  • Save ryanaslett/455a5db30005a77f79f9c2a9a0534537 to your computer and use it in GitHub Desktop.
Save ryanaslett/455a5db30005a77f79f9c2a9a0534537 to your computer and use it in GitHub Desktop.
lines 6641-6748
Scope (\_TZ)
{
ThermalZone (PCT0)
{
Method (_INI, 0, NotSerialized) // _INI: Initialize
{
}
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (\_OSI ("Windows 2001"))
{
Local0 = 0x04
}
If (\_OSI ("Windows 2001.1"))
{
Local0 = 0x05
}
If (\_OSI ("FreeBSD"))
{
Local0 = 0x06
}
If (\_OSI ("HP-UX"))
{
Local0 = 0x07
}
If (\_OSI ("OpenVMS"))
{
Local0 = 0x08
}
If (\_OSI ("Windows 2001 SP1"))
{
Local0 = 0x09
}
If (\_OSI ("Windows 2001 SP2"))
{
Local0 = 0x0A
}
If (\_OSI ("Windows 2001 SP3"))
{
Local0 = 0x0B
}
If (\_OSI ("Windows 2006"))
{
Local0 = 0x0C
}
If (\_OSI ("Windows 2006 SP1"))
{
Local0 = 0x0D
}
If (\_OSI ("Windows 2009"))
{
Local0 = 0x0E
}
If (\_OSI ("Windows 2012"))
{
Local0 = 0x0F
}
If (\_OSI ("Windows 2013"))
{
Local0 = 0x10
}
If (\_OSI ("Windows 2015"))
{
Local0 = 0x11
}
If (\_OSI ("Windows 2016"))
{
Local0 = 0x12
}
If (\_OSI ("Windows 2017"))
{
Local0 = 0x13
}
If (\_OSI ("Windows 2017.2"))
{
Local0 = 0x14
}
If (\_OSI ("Windows 2018"))
{
Local0 = 0x15
}
If (\_OSI ("Windows 2018.2"))
{
Local0 = 0x16
}
If ((Local0 <= 0x0E)){}
Return (0x0B)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment