aboutsummaryrefslogtreecommitdiff
path: root/src/ec/google/wilco/acpi/event.asl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/google/wilco/acpi/event.asl')
-rw-r--r--src/ec/google/wilco/acpi/event.asl20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ec/google/wilco/acpi/event.asl b/src/ec/google/wilco/acpi/event.asl
index d818d22ca2..24cf268636 100644
--- a/src/ec/google/wilco/acpi/event.asl
+++ b/src/ec/google/wilco/acpi/event.asl
@@ -81,6 +81,16 @@ Method (ECQ2, 1, Serialized)
Printf ("QS EVENT")
Notify (^WEVT, 0x90)
}
+
+ If (EBIT (E2OR, Arg0)) {
+ If (R (OTBL)) {
+ Printf ("EC event indicates tablet mode")
+ Notify (^VBTN, ^VTBL)
+ } Else {
+ Printf ("EC event indicates laptop mode")
+ Notify (^VBTN, ^VLAP)
+ }
+ }
}
/* Handle events in PmEv3 */
@@ -88,6 +98,16 @@ Method (ECQ3, 1, Serialized)
{
Printf ("EVT3: %o", Arg0)
+ If (EBIT (E3CP, Arg0)) {
+ If (R (P2PB)) {
+ Printf ("Power button pressed")
+ Notify (^VBTN, ^VPPB)
+ } Else {
+ Printf ("Power button released")
+ Notify (^VBTN, ^VRPB)
+ }
+ }
+
#ifdef EC_ENABLE_DPTF
/* Theraml Events */
If (EBIT (E3TH, Arg0)) {