mirror of
https://github.com/AskDavis/Getting-Started-With-ACPI.git
synced 2026-01-01 05:05:57 -08:00
Test pass
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +0,0 @@
|
||||
[submodule "shared"]
|
||||
path = shared
|
||||
url = https://github.com/dortania/build-files.git
|
||||
14
.markdownlint.json
Normal file
14
.markdownlint.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"default": true,
|
||||
"line_length": false,
|
||||
"no-alt-text": false,
|
||||
"no-inline-html": false,
|
||||
"header-increment": false,
|
||||
"no-duplicate-header": false,
|
||||
"fenced-code-language": false,
|
||||
"no-emphasis-as-heading": false,
|
||||
"single-title": false,
|
||||
"ul-style": {
|
||||
"style": "asterisk"
|
||||
}
|
||||
}
|
||||
10
.markdownlintignore
Normal file
10
.markdownlintignore
Normal file
@@ -0,0 +1,10 @@
|
||||
/node_modules/
|
||||
/_book/
|
||||
*.json
|
||||
/extra-files/
|
||||
/.git/
|
||||
/icons/
|
||||
/images/
|
||||
/styles/
|
||||
/.github/
|
||||
/.vuepress/
|
||||
@@ -17,7 +17,7 @@ Here, we can see that VoodooGPIO is attached to GPI0 so no edits are needed for
|
||||
|
||||
If VoodooGPIO isn't attached, then you may need to modify the `_STA` method in the `GPI0` device. In that case, you will need to find the GPI0 device in ACPI.
|
||||
|
||||
First open your decompiled DSDT you got from [Dumping the DSDT](/Manual/dump.md) and [Decompiling and Compiling](/Manual/compile.md) with either maciASL(if in macOS) or any other text editor if in Windows or Linux (VSCode has an [ACPI extension](https://marketplace.visualstudio.com/items?itemName=Thog.vscode-asl) that can also help).
|
||||
First open your decompiled DSDT you got from [Dumping the DSDT](/Manual/dump.md) and [Decompiling and Compiling](/Manual/compile.md) with either MaciASL(if in macOS) or any other text editor if in Windows or Linux (VSCode has an [ACPI extension](https://marketplace.visualstudio.com/items?itemName=Thog.vscode-asl) that can also help).
|
||||
|
||||
Next search for `Device (GPI0)`. You should get a result similar to this:
|
||||
|
||||
@@ -82,6 +82,7 @@ If (_OSI ("Darwin"))
|
||||
```
|
||||
|
||||
For the second example, you'd want to remove GPEN and use the below:
|
||||
|
||||
```
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
@@ -134,7 +135,7 @@ Method (LSTA, 1, Serialized)
|
||||
|
||||
There are various checks for many different versions of Windows, but there is no check for `Darwin` (which Apple's ACPI usually checks for). We generally want to set `OSYS` to the value for the latest version of Windows in order to enable the most features. In this case, the latest version of Windows is "Windows 2015", or [Windows 10](https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi-osi#_osi-strings-for-windows-operating-systems). This means that we should set OSYS to `0x07DF`. Notice that this value is greater than the `OSYS < 0x07DC` value being checked for earlier, which means that the check in LSTA should return `0x0F` now.
|
||||
|
||||
The best way to patch these checks is to use _OSI to XOSI with SSDT-XOSI, or to set the OSYS value just within the scope of the I2CX device. Attempting to set OSYS directly generally fails as _INI sets a default value which will override whatever value you set.
|
||||
The best way to patch these checks is to use _OSI to XOSI with SSDT-XOSI, or to set the OSYS value just within the scope of the I2C device. Attempting to set OSYS directly generally fails as \_INI sets a default value which will override whatever value you set.
|
||||
|
||||
### _OSI to XOSI
|
||||
|
||||
@@ -144,7 +145,7 @@ Requires the below SSDT and patch
|
||||
* [SSDT-XOSI.aml](/extra-files/compiled/SSDT-XOSI.aml) - Precompiled
|
||||
* XOSI Rename(add this under config.plist -> ACPI -> Patch):
|
||||
|
||||
| Comment | String | Change _OSI to XOSI |
|
||||
| Comment | String | Change \_OSI to XOSI |
|
||||
| :------ | :------ | :------- |
|
||||
| Enabled | Boolean | YES |
|
||||
| Count | Number | 0 |
|
||||
@@ -154,15 +155,15 @@ Requires the below SSDT and patch
|
||||
|
||||
::: details Dell Machines
|
||||
You may need to add the below patch to allow the backlight keys to work. Credit to Rehabman for the below patch:
|
||||
Make sure that this patch appears **BEFORE** the previous _OSI to XOSI patch
|
||||
Make sure that this patch appears **BEFORE** the previous \_OSI to XOSI patch
|
||||
|
||||
| Comment | String | Change _OSID to XSID (to avoid match against _OSI patch)
|
||||
| Comment | String | Change \_OSID to XSID (to avoid match against _OSI patch)
|
||||
| :------ | :----- | :-------- |
|
||||
| Enabled | Boolean | YES |
|
||||
| Count | Number | 0 |
|
||||
| Limit | Number | 0 |
|
||||
| Find | Data | 4F534944 |
|
||||
| Replace | Data | 58534944 |
|
||||
| Replace | Data | 58534944 |
|
||||
:::
|
||||
|
||||
### Create OSYS Variable Under I2C Scope
|
||||
@@ -177,8 +178,9 @@ If (_OSI("Darwin")) {
|
||||
}
|
||||
```
|
||||
|
||||
### Note:
|
||||
Windows will also return true for checks of earlier versions of the OS. For example, Windows 7 would return true for "Windows 2000" through "Windows 2009", but not any version after. This is important as some features are only enabled in earlier Windows checks. For example, `WNTF = 0x01` allows DYTC thermal management to work on newer Thinkpads, though this only gets set in the check for "Windows 2001". You will need to check your own DSDT and see what values it sets and where they are used. At this point, you should [compiling the SSDT](/Manual/compile.md) and see if the trackpad works.
|
||||
### Note
|
||||
|
||||
Windows will also return true for checks of earlier versions of the OS. For example, Windows 7 would return true for "Windows 2000" through "Windows 2009", but not any version after. This is important as some features are only enabled in earlier Windows checks. For example, `WNTF = 0x01` allows DYTC thermal management to work on newer ThinkPads, though this only gets set in the check for "Windows 2001". You will need to check your own DSDT and see what values it sets and where they are used. At this point, you should [compiling the SSDT](/Manual/compile.md) and see if the trackpad works.
|
||||
|
||||
## Further Setup
|
||||
|
||||
|
||||
1198
dictionary/dictionary.txt
Normal file
1198
dictionary/dictionary.txt
Normal file
File diff suppressed because it is too large
Load Diff
202
dictionary/opencorekeys.txt
Normal file
202
dictionary/opencorekeys.txt
Normal file
@@ -0,0 +1,202 @@
|
||||
4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14
|
||||
4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102
|
||||
7C436110-AB2A-4BBB-A880-FE41995C9F82
|
||||
ACPI
|
||||
APFS
|
||||
ARTFrequency
|
||||
AdviseWindows
|
||||
AllowNvramReset
|
||||
AllowSetDefault
|
||||
AppleAudio
|
||||
AppleBootPolicy
|
||||
AppleCpuPmCfgLock
|
||||
AppleDebug
|
||||
AppleDebugLog
|
||||
AppleEvent
|
||||
AppleImageConversion
|
||||
AppleKeyMap
|
||||
ApplePanic
|
||||
AppleRtcRam
|
||||
AppleSmcIo
|
||||
AppleUserInterfaceTheme
|
||||
AppleXcpmCfgLock
|
||||
AppleXcpmExtraMsrs
|
||||
AppleXcpmForceBoost
|
||||
AudioCodec
|
||||
AudioDevice
|
||||
AudioOut
|
||||
AudioSupport
|
||||
AuthRestart
|
||||
AvoidRuntimeDefrag
|
||||
BID
|
||||
BIOSReleaseDate
|
||||
BIOSVendor
|
||||
BIOSVersion
|
||||
BlessOverride
|
||||
BoardAssetTag
|
||||
BoardLocationInChassis
|
||||
BoardManufacturer
|
||||
BoardProduct
|
||||
BoardRevision
|
||||
BoardSerialNumber
|
||||
BoardType
|
||||
BoardVersion
|
||||
Boot1f32
|
||||
BootProtect
|
||||
Booter
|
||||
BundlePath
|
||||
ChassisAssetTag
|
||||
ChassisManufacturer
|
||||
ChassisSerialNumber
|
||||
ChassisType
|
||||
ChassisVersion
|
||||
ClearScreenOnModeSwitch
|
||||
ConnectDrivers
|
||||
ConsoleAttributes
|
||||
ConsoleMode
|
||||
Cpuid1Data
|
||||
Cpuid1Mask
|
||||
CustomSMBIOSGuid
|
||||
DataHub
|
||||
DevicePathsSupported
|
||||
DeviceProperties
|
||||
DevirtualiseMmio
|
||||
DirectGopCacheMode
|
||||
DirectGopRendering
|
||||
DisableIoMapper
|
||||
DisableRtcChecksum
|
||||
DisableSingleUser
|
||||
DisableVariableWrite
|
||||
DisableWatchDog
|
||||
DiscardHibernateMap
|
||||
DisplayDelay
|
||||
DisplayLevel
|
||||
DummyPowerManagement
|
||||
EnableJumpstart
|
||||
EnableSafeModeSlide
|
||||
EnableWriteUnprotector
|
||||
ExecutablePath
|
||||
ExistBootServicesDelay
|
||||
ExposeSensitiveData
|
||||
ExternalDiskIcons
|
||||
FSBFrequency
|
||||
FadtEnableReset
|
||||
FindMask
|
||||
FirmwareFeatures
|
||||
FirmwareFeaturesMask
|
||||
FirmwareVolume
|
||||
ForceExitBootServices
|
||||
HaltLevel
|
||||
HashServices
|
||||
HibernateMode
|
||||
HideAuxiliary
|
||||
HideSelf
|
||||
HideVerbose
|
||||
IgnoreInvalidFlexRatio
|
||||
IgnoreTextInGraphics
|
||||
IncreasePciBarSize
|
||||
InitialTSC
|
||||
JumpstartHotPlug
|
||||
JumpstartHotplug
|
||||
KeyFiltering
|
||||
KeyForgetThreshold
|
||||
KeyMergeThreshold
|
||||
KeySupport
|
||||
KeySupportMode
|
||||
KeySwap
|
||||
LapicKernelPanic
|
||||
LegacyEnable
|
||||
LegacyOverwrite
|
||||
LegacySchema
|
||||
Lifewire
|
||||
MLB
|
||||
MaxKernel
|
||||
MemoryFormFactor
|
||||
MinDate
|
||||
MinKernel
|
||||
MinVersion
|
||||
MinimumVolume
|
||||
MmioWhitelist
|
||||
NormalizeHeaders
|
||||
OSInfo
|
||||
OemTableId
|
||||
PickerAttributes
|
||||
PickerAudioAssist
|
||||
PickerMode
|
||||
PlatformFeature
|
||||
PlatformInfo
|
||||
PlatformNVRAM
|
||||
PlatformName
|
||||
PlayChime
|
||||
PlistPath
|
||||
PointerSupport
|
||||
PointerSupportMode
|
||||
PollAppleHotKeys
|
||||
PowerTimeoutKernelPanic
|
||||
ProcessorType
|
||||
ProtectMemoryRegions
|
||||
ProtectSecureBoot
|
||||
ProtectUefiServices
|
||||
ProtocolOverrides
|
||||
ProvideConsoleGop
|
||||
ProvideCustomSlide
|
||||
Quirks
|
||||
ROM
|
||||
RebaseRegions
|
||||
RebuildAppleMemoryMap
|
||||
ReconnectOnResChange
|
||||
ReleaseUsbOwnership
|
||||
ReplaceMask
|
||||
ReplaceTabWithSpace
|
||||
RequestBootVarFallback
|
||||
RequestBootVarRouting
|
||||
ReservedMemory
|
||||
ResetHwSig
|
||||
ResetLogoStatus
|
||||
Resolution
|
||||
SMBIOS
|
||||
SanitiseClearScreen
|
||||
ScanPolicy
|
||||
SerialInit
|
||||
SetupVirtualMap
|
||||
ShowPicker
|
||||
SignalAppleOS
|
||||
SmcBranch
|
||||
SmcPlatform
|
||||
SmcRevision
|
||||
SmcVersion
|
||||
SpoofVendor
|
||||
StartupPowerEvents
|
||||
SyncRuntimePermissions
|
||||
SysReport
|
||||
SystemFamily
|
||||
SystemManufacturer
|
||||
SystemMemoryStatus
|
||||
SystemProductName
|
||||
SystemSKUNumber
|
||||
SystemSerialNumber
|
||||
SystemUUID
|
||||
SystemVersion
|
||||
TableLength
|
||||
TableSignature
|
||||
TakeoffDelay
|
||||
Target
|
||||
TextRenderer
|
||||
ThirdPartyDrives
|
||||
TimerResolution
|
||||
UEFI
|
||||
UIScale
|
||||
UnblockFsConnect
|
||||
UnicodeCollation
|
||||
UpdateDataHub
|
||||
UpdateNVRAM
|
||||
UpdateSMBIOS
|
||||
UpdateSMBIOSMode
|
||||
Vault
|
||||
VolumeAmplifier
|
||||
WriteFlash
|
||||
XhciPortLimit
|
||||
boot0
|
||||
bootia32
|
||||
bootx64
|
||||
snapshotted
|
||||
10
package-lock.json
generated
10
package-lock.json
generated
@@ -8,6 +8,7 @@
|
||||
"version": "0.0.1",
|
||||
"license": "CC-BY-NC-SA-4.0",
|
||||
"devDependencies": {
|
||||
<<<<<<< HEAD
|
||||
"@vuepress/plugin-back-to-top": "^1.8.2",
|
||||
"markdown-it-multimd-table": "^4.1.1",
|
||||
"markdown-link-check": "^3.8.7",
|
||||
@@ -15,6 +16,15 @@
|
||||
"run-script-os": "^1.1.6",
|
||||
"spellchecker-cli": "^4.8.0",
|
||||
"vuepress": "^1.8.2",
|
||||
=======
|
||||
"@vuepress/plugin-back-to-top": "^1.7.1",
|
||||
"markdown-it-multimd-table": "^4.0.3",
|
||||
"markdown-link-check": "^3.8.5",
|
||||
"markdownlint-cli": "^0.26.0",
|
||||
"run-script-os": "^1.1.5",
|
||||
"spellchecker-cli": "^4.4.0",
|
||||
"vuepress": "^1.7.1",
|
||||
>>>>>>> 0e617c6... Test pass
|
||||
"vuepress-plugin-medium-zoom": "^1.1.9",
|
||||
"vuepress-plugin-zooming": "^1.1.8",
|
||||
"vuepress-theme-book": "0.0.6",
|
||||
|
||||
28
package.json
28
package.json
@@ -15,24 +15,25 @@
|
||||
"dev": "vuepress dev",
|
||||
"build": "vuepress build",
|
||||
"fix-lint": "run-script-os",
|
||||
"fix-lint:default": "(echo Attempting to fix lint... && markdownlint -c shared/.markdownlint.json -p shared/.markdownlintignore '**/*.md' -f && echo Fixed successfully, please commit.) || (echo Fix failed! && exit 1)",
|
||||
"fix-lint:win32": "(echo Attempting to fix lint... && markdownlint -c shared/.markdownlint.json -p shared/.markdownlintignore **/*.md -f && echo Fixed successfully, please commit.) || (echo Fix failed! && exit 1)",
|
||||
"fix-lint:default": "(echo Attempting to fix lint... && markdownlint -c .markdownlint.json -p .markdownlintignore '**/*.md' -f && echo Fixed successfully, please commit.) || (echo Fix failed! && exit 1)",
|
||||
"fix-lint:win32": "(echo Attempting to fix lint... && markdownlint -c .markdownlint.json -p .markdownlintignore **/*.md -f && echo Fixed successfully, please commit.) || (echo Fix failed! && exit 1)",
|
||||
"lint": "run-script-os",
|
||||
"lint:default": "(echo Linting... && markdownlint -c shared/.markdownlint.json -p shared/.markdownlintignore '**/*.md' && echo Lint passed.) || (echo Lint failed! Please review and fix errors. && exit 1)",
|
||||
"lint:win32": "(echo Linting... && markdownlint -c shared/.markdownlint.json -p shared/.markdownlintignore **/*.md && echo Lint passed.) || (echo Lint failed! Please review and fix errors. && exit 1)",
|
||||
"lint:default": "(echo Linting... && markdownlint -c .markdownlint.json -p .markdownlintignore '**/*.md' && echo Lint passed.) || (echo Lint failed! Please review and fix errors. && exit 1)",
|
||||
"lint:win32": "(echo Linting... && markdownlint -c .markdownlint.json -p .markdownlintignore **/*.md && echo Lint passed.) || (echo Lint failed! Please review and fix errors. && exit 1)",
|
||||
"lint-ci": "run-script-os",
|
||||
"lint-ci:default": "(echo Linting... && markdownlint -c shared/.markdownlint.json -p shared/.markdownlintignore '**/*.md' && echo Lint passed.) || ((echo Lint failed, attempting fix... && markdownlint -c shared/.markdownlint.json -p shared/.markdownlintignore '**/*.md' -f && echo Fix generated successfully. Please apply the following diff using git apply && git diff) || echo Fix failed! && exit 1)",
|
||||
"lint-ci:win32": "(echo Linting... && markdownlint -c shared/.markdownlint.json -p shared/.markdownlintignore **/*.md && echo Lint passed.) || ((echo Lint failed, attempting fix... && markdownlint -c shared/.markdownlint.json -p shared/.markdownlintignore **/*.md -f && echo Fix generated successfully. Please apply the following diff using git apply && git diff) || echo Fix failed! && exit 1)",
|
||||
"sort-dict": "node ./shared/scripts/sortDict.js",
|
||||
"lint-ci:default": "(echo Linting... && markdownlint -c .markdownlint.json -p .markdownlintignore '**/*.md' && echo Lint passed.) || ((echo Lint failed, attempting fix... && markdownlint -c .markdownlint.json -p .markdownlintignore '**/*.md' -f && echo Fix generated successfully. Please apply the following diff using git apply && git diff) || echo Fix failed! && exit 1)",
|
||||
"lint-ci:win32": "(echo Linting... && markdownlint -c .markdownlint.json -p .markdownlintignore **/*.md && echo Lint passed.) || ((echo Lint failed, attempting fix... && markdownlint -c .markdownlint.json -p .markdownlintignore **/*.md -f && echo Fix generated successfully. Please apply the following diff using git apply && git diff) || echo Fix failed! && exit 1)",
|
||||
"sort-dict": "node ./scripts/sortDict.js",
|
||||
"spellcheck": "run-script-os",
|
||||
"spellcheck:default": "(spellchecker --plugins spell indefinite-article repeated-words syntax-urls --dictionaries shared/dictionary/dictionary.txt shared/dictionary/opencorekeys.txt --files '**/*.md' && echo Spellcheck passed.) || (echo Spellcheck failed! Please review and fix errors/add words to dictionary as needed. && exit 1)",
|
||||
"spellcheck:win32": "(spellchecker --plugins spell indefinite-article repeated-words syntax-urls --dictionaries shared/dictionary/dictionary.txt shared/dictionary/opencorekeys.txt --files **/*.md && echo Spellcheck passed.) || (echo Spellcheck failed! Please review and fix errors/add words to dictionary as needed. && exit 1)",
|
||||
"spellcheck:default": "(spellchecker --plugins spell indefinite-article repeated-words syntax-urls --dictionaries dictionary/dictionary.txt dictionary/opencorekeys.txt --files '**/*.md' && echo Spellcheck passed.) || (echo Spellcheck failed! Please review and fix errors/add words to dictionary as needed. && exit 1)",
|
||||
"spellcheck:win32": "(spellchecker --plugins spell indefinite-article repeated-words syntax-urls --dictionaries dictionary/dictionary.txt dictionary/opencorekeys.txt --files **/*.md && echo Spellcheck passed.) || (echo Spellcheck failed! Please review and fix errors/add words to dictionary as needed. && exit 1)",
|
||||
"test": "run-script-os",
|
||||
"test:default": "npm run lint --silent; npm run spellcheck --silent",
|
||||
"test:win32": "npm run lint --silent & npm run spellcheck --silent"
|
||||
},
|
||||
"license": "CC-BY-NC-SA-4.0",
|
||||
"devDependencies": {
|
||||
<<<<<<< HEAD
|
||||
"@vuepress/plugin-back-to-top": "^1.8.2",
|
||||
"markdown-it-multimd-table": "^4.1.1",
|
||||
"markdown-link-check": "^3.8.7",
|
||||
@@ -40,6 +41,15 @@
|
||||
"run-script-os": "^1.1.6",
|
||||
"spellchecker-cli": "^4.8.0",
|
||||
"vuepress": "^1.8.2",
|
||||
=======
|
||||
"@vuepress/plugin-back-to-top": "^1.7.1",
|
||||
"markdown-it-multimd-table": "^4.0.3",
|
||||
"markdown-link-check": "^3.8.5",
|
||||
"markdownlint-cli": "^0.26.0",
|
||||
"run-script-os": "^1.1.5",
|
||||
"spellchecker-cli": "^4.4.0",
|
||||
"vuepress": "^1.7.1",
|
||||
>>>>>>> 0e617c6... Test pass
|
||||
"vuepress-plugin-medium-zoom": "^1.1.9",
|
||||
"vuepress-plugin-zooming": "^1.1.8",
|
||||
"vuepress-theme-book": "0.0.6",
|
||||
|
||||
9
scripts/linkcheck.py
Normal file
9
scripts/linkcheck.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
|
||||
for i in [i for i in list(Path().resolve().glob("**/*.md")) if "node_modules" not in str(i.parent) and "_book" not in str(i.parent)]:
|
||||
#bert = subprocess.run(['npx', 'markdown-link-check', '"' + str(i) + '"', '-c', '.markdownlinkcheck.json'], capture_output=True, shell=True, cwd=Path().resolve())
|
||||
bert = subprocess.run('npx markdown-link-check "' + str(i) + '"', stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True, cwd=Path().resolve())
|
||||
outpot = bert.stdout.decode().replace("\r", "").split("\n")
|
||||
outpot = [i for i in outpot if ("FILE: " in i or " → Status: " in i) and " → Status: 429" not in i]
|
||||
[print(i) for i in outpot]
|
||||
26
scripts/sortDict.js
Normal file
26
scripts/sortDict.js
Normal file
@@ -0,0 +1,26 @@
|
||||
const fs = require("fs");
|
||||
|
||||
process.chdir(__dirname);
|
||||
|
||||
console.log("Reading dictionary.txt");
|
||||
let dictionary = fs.readFileSync("../dictionary/dictionary.txt", { encoding: "UTF8" })
|
||||
.replace("\r", "").split("\n");
|
||||
|
||||
let ocDictionary = fs.readFileSync("../dictionary/opencorekeys.txt", { encoding: "UTF8" })
|
||||
.replace("\r", "").split("\n");
|
||||
|
||||
dictionary = dictionary.filter(string => string != "");
|
||||
ocDictionary = ocDictionary.filter(string => string != "");
|
||||
|
||||
dictionary = dictionary.filter((string, index) => dictionary.indexOf(string) == index);
|
||||
ocDictionary = ocDictionary.filter((string, index) => ocDictionary.indexOf(string) == index);
|
||||
|
||||
dictionary = dictionary.filter(string => !ocDictionary.includes(string));
|
||||
|
||||
console.log("Sorting...");
|
||||
dictionary.sort();
|
||||
ocDictionary.sort();
|
||||
|
||||
console.log("Writing dictionary.txt");
|
||||
fs.writeFileSync("../dictionary/dictionary.txt", dictionary.join("\n"));
|
||||
fs.writeFileSync("../dictionary/opencorekeys.txt", ocDictionary.join("\n"));
|
||||
1
shared
1
shared
Submodule shared deleted from 9158b82160
Reference in New Issue
Block a user