mirror of
https://github.com/tylernguyen/x1c6-hackintosh.git
synced 2025-02-05 09:33:13 -06:00
44 lines
No EOL
1.2 KiB
Text
44 lines
No EOL
1.2 KiB
Text
/*
|
|
* Redirect ACPI's native ADGB()-helper to syslog for reading in macOS
|
|
*/
|
|
|
|
DefinitionBlock ("", "SSDT", 0, "X1C6", "_Debug", 0x00001000)
|
|
{
|
|
//
|
|
// Many OEM ACPI implementations have a ADBG method which is used for debug
|
|
// logging. In almost all cases, this function calls MDBG, which is
|
|
// supposed to be defined in a ACPI debug SSDT (but is usually missing).
|
|
// This should make ADBG functional.
|
|
//
|
|
// To enable ACPI debug logging in AppleACPIPlatform:
|
|
// Add boot args: acpi_layer=0x8 acpi_level=0x2 debug=0x100
|
|
// (https://pikeralpha.wordpress.com/2013/12/23/enabling-acpi-debugging/)
|
|
//
|
|
// To retrieve the ACPI debug output in macOS:
|
|
// log show --last boot --predicate 'process == "kernel" AND senderImagePath CONTAINS "AppleACPIPlatform"' --style compact | awk '/ACPI Debug/{getline; getline; print}'
|
|
//
|
|
Method (XDBG, 1, NotSerialized)
|
|
{
|
|
Debug = Arg0
|
|
}
|
|
|
|
// to see debug messages
|
|
Method (DBG1, 1, NotSerialized)
|
|
{
|
|
Debug = Arg0
|
|
}
|
|
|
|
Method (DBG2, 2, NotSerialized)
|
|
{
|
|
Debug = Arg0
|
|
Debug = Arg1
|
|
}
|
|
|
|
Method (DBG3, 3, NotSerialized)
|
|
{
|
|
Debug = Arg0
|
|
Debug = Arg1
|
|
Debug = Arg2
|
|
}
|
|
|
|
} |