-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to use native keyboard backlight EC methods (#38)
* Refactor native methods for keyboard backlight * Refactor ALS handling with ALSD SSDT * Address stylistic inconsistencies
- Loading branch information
Showing
8 changed files
with
92 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Ambient Light Sensor device for AsusSMC | ||
*/ | ||
DefinitionBlock ("", "SSDT", 2, "UX481", "ALSD", 0x00000000) | ||
{ | ||
External (_SB_.ATKD, DeviceObj) | ||
External (_SB_.ALSD, DeviceObj) | ||
External (_SB_.ALSD._ALI, MethodObj) | ||
External (ALSE, IntObj) | ||
|
||
If (_OSI ("Darwin")) | ||
{ | ||
// Enables ambient light sensor device. | ||
// Reference: (ALSD) | ||
ALSE = 0x02 | ||
|
||
Scope (\_SB.ATKD) | ||
{ | ||
Method (ALSS, 0, NotSerialized) | ||
{ | ||
Return (^^ALSD._ALI ()) | ||
} | ||
|
||
Method (ALSC, 1, NotSerialized) | ||
{ | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters