mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
Added ALS0 ACPI sample
This commit is contained in:
parent
eb7a5c41f5
commit
06ecfe49ef
37
Docs/AcpiSamples/SSDT-ALS0.dsl
Normal file
37
Docs/AcpiSamples/SSDT-ALS0.dsl
Normal file
@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Starting with macOS 10.15 Ambient Light Sensor presence is required for backlight functioning.
|
||||
* Here we create an Ambient Light Sensor ACPI Device, which can be used by SMCBacklightSensor kext
|
||||
* to report either dummy (when no device is present) or valid values through SMC interface.
|
||||
*/
|
||||
DefinitionBlock ("", "SSDT", 2, "ACDT", "ALS0", 0x00000000)
|
||||
{
|
||||
Scope (_SB)
|
||||
{
|
||||
Device (ALS0)
|
||||
{
|
||||
Name (_HID, "ACPI0008" /* Ambient Light Sensor Device */) // _HID: Hardware ID
|
||||
Name (_CID, "smc-als") // _CID: Compatible ID
|
||||
Name (_ALI, 0x012C) // _ALI: Ambient Light Illuminance
|
||||
Name (_ALR, Package (0x01) // _ALR: Ambient Light Response
|
||||
{
|
||||
Package (0x02)
|
||||
{
|
||||
0x64,
|
||||
0x012C
|
||||
}
|
||||
})
|
||||
Method (_STA, 0, NotSerialized) // _STA: Status
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (0x0F)
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (Zero)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user