| /* SPDX-License-Identifier: GPL-2.0-only */ |
| |
| Method (_Q0D) // Event: Lid Opened |
| { |
| \LIDS = LSTE |
| Notify (LID0, 0x80) |
| } |
| |
| Method (_Q0C) // Event: Lid Closed |
| { |
| \LIDS = LSTE |
| Notify (LID0, 0x80) |
| } |
| |
| Method (_Q0A) // Event: AC Power Connected |
| { |
| Notify (BAT0, 0x81) |
| Notify (ADP1, 0x80) |
| } |
| |
| Method (_Q0B, 0, NotSerialized) // Event: AC Power Disconnected |
| { |
| Notify (BAT0, 0x81) |
| Notify (BAT0, 0x80) |
| } |
| |
| Method (_Q05) // Event: Backlight Brightness Down |
| { |
| ^^^^HIDD.HPEM (20) |
| } |
| |
| Method (_Q06) // Event: Backlight Brightness Up |
| { |
| ^^^^HIDD.HPEM (19) |
| } |
| |
| Method (_Q87) // Event: Function Lock |
| { |
| FLKS = FLKA |
| } |
| |
| Method (_Q88) // Event: Trackpad Lock |
| { |
| TPLS = TPLA |
| } |
| Method (_Q11) // Event: Keyboard Backlight Brightness |
| { |
| KLBC = KLBE |
| KLSC = KLSE |
| } |
| |
| Method (_Q99) // Event: Airplane Mode |
| { |
| ^^^^HIDD.HPEM (8) |
| } |
| |
| Method (_QD5) // Event: 10 Second Power Button Pressed |
| { |
| Printf ("EC: 10 Second Power Button Pressed") |
| } |
| |
| Method (_QD6) // Event: 10 Second Power Button Released |
| { |
| Printf ("EC: 10 Second Power Button Release") |
| } |
| |
| Method (_Q22, 0, NotSerialized) // Event: CHARGER_T |
| { |
| Printf ("EC: CHARGER_T") |
| } |
| |
| Method (_Q40) // Event: AC_DC |
| { |
| SMB2 = 0xC6 |
| } |
| |
| Method (_Q41) // Event: DC_20_0 |
| { |
| SMB2 = 0xC7 |
| } |
| |
| Method (_Q42) // Event: DC_60_20 |
| { |
| SMB2 = 0xC9 |
| } |
| |
| Method (_Q43) // Event: DC_100_60 |
| { |
| SMB2 = 0xC9 |
| } |
| |
| Method (_Q44) // Event: AC_ONLY |
| { |
| SMB2 = 0xCA |
| } |
| |
| Method (_Q80, 0, NotSerialized) // Event: VOLUME_UP |
| { |
| Printf ("EC: VOLUME_UP") |
| } |
| |
| Method (_Q81, 0, NotSerialized) // Event: VOLUME_DOWN |
| { |
| Printf ("EC: VOLUME_DOWN") |
| } |
| |
| Method (_Q54, 0, NotSerialized) // Event: PWRBTN |
| { |
| Printf ("EC: PWRBTN") |
| } |
| |
| Method (_QF0) // Event: Temperature Report |
| { |
| Printf ("EC: Temperature Report") |
| } |
| |
| Method (_QF1) // Event: Temperature Trigger |
| { |
| // Notify (SEN3, 0x90) |
| } |
| |
| /* |
| * The below events are unique to this platform. |
| */ |
| |
| Method (_Q79, 0, NotSerialized) // Event: USB Type-C |
| { |
| Printf ("EC: USB Type-C") |
| UCEV() |
| } |
| |
| Method (_Q85, 0, NotSerialized) // Event: HOME |
| { |
| Printf ("EC: HOME") |
| } |
| |
| Method (_Q01) // Event: F1 Hot Key |
| { |
| Printf ("EC: F1") |
| } |
| |
| Method (_Q02) // Event: F2 Hot Key |
| { |
| Printf ("EC: F2") |
| } |
| |
| Method (_Q03) // Event: F3 Hot Key |
| { |
| Printf ("EC: F3") |
| } |
| |
| Method (_Q04) // Event: F4 Hot Key |
| { |
| Printf ("EC: F4") |
| } |
| |
| Method (_Q08) // Event: F5 Hot Key |
| { |
| Printf ("EC: F5") |
| } |
| |
| Method (_Q09) // Event: F6 Hot Key |
| { |
| Printf ("EC: F6") |
| } |
| |
| Method (_Q07) // Event: F7 Hot Key |
| { |
| Printf ("EC: F7") |
| } |
| |
| Method (_Q10) // Event: F10 Hot Key |
| { |
| Printf ("EC: F10") |
| } |
| |
| Method (_Q12) // Event: F12 Hot Key |
| { |
| Printf ("EC: F6") |
| } |
| |
| Method (_Q0E, 0, NotSerialized) // Event: SLEEP |
| { |
| Printf ("EC: SLEEP") |
| } |
| |
| Method (_Q13, 0, NotSerialized) // Event: BRIGHTNESS |
| { |
| Printf ("EC: BRIGHTNESS") |
| } |
| |
| Method (_Q20, 0, NotSerialized) // Event: CPU_T |
| { |
| Printf ("EC: CPU_T") |
| } |
| |
| Method (_Q21, 0, NotSerialized) // Event: SKIN_T |
| { |
| Printf ("EC: SKIN_T") |
| } |
| |
| Method (_Q30, 0, NotSerialized) // Event: THROT_OFF |
| { |
| Printf ("EC: THROT_OFF") |
| } |
| |
| Method (_Q31, 0, NotSerialized) // Event: THROT_LV1 |
| { |
| Printf ("EC: THROT_LV1") |
| } |
| |
| Method (_Q32, 0, NotSerialized) // Event: THROT_LV2 |
| { |
| Printf ("EC: THROT_LV2") |
| } |
| |
| Method (_Q33, 0, NotSerialized) // Event: THROT_LV3 |
| { |
| Printf ("EC: THROT_LV3") |
| } |
| |
| Method (_Q34, 0, NotSerialized) // Event: THROT_LV4 |
| { |
| Printf ("EC: THROT_LV4") |
| } |
| |
| Method (_Q35, 0, NotSerialized) // Event: THROT_LV5 |
| { |
| Printf ("EC: THROT_LV5") |
| } |
| |
| Method (_Q36, 0, NotSerialized) // Event: THROT_LV6 |
| { |
| Printf ("EC: THROT_LV6") |
| } |
| |
| Method (_Q37, 0, NotSerialized) // Event: THROT_LV7 |
| { |
| Printf ("EC: THROT_LV7") |
| } |
| |
| Method (_Q38, 0, NotSerialized) // Event: CPU_DN_SPEED |
| { |
| Printf ("EC: CPU_DN_SPEED") |
| } |
| |
| Method (_Q3C, 0, NotSerialized) // Event: CPU_UP_SPEED |
| { |
| Printf ("EC: CPU_UP_SPEED") |
| } |
| |
| Method (_Q3D, 0, NotSerialized) // Event: CPU_TURBO_OFF |
| { |
| Printf ("EC: CPU_TURBO_OFF") |
| } |
| |
| Method (_Q3E, 0, NotSerialized) // Event: CPU_TURBO_ON |
| { |
| Printf ("EC: CPU_TURBO_ON") |
| } |
| |
| Method (_Q3F, 0, NotSerialized) // Event: SHUTDOWN |
| { |
| Printf ("EC: SHUTDOWN") |
| } |
| |
| Method (_Q45) // Event: SENSOR_T76 |
| { |
| SMB2 = 0xCB |
| } |
| |
| Method (_Q48, 0, NotSerialized) // Event: Fan Turbo On |
| { |
| Printf ("EC: Fan Turbo On") |
| } |
| |
| Method (_Q49, 0, NotSerialized) // Event: Fan Turbo Off |
| { |
| Printf ("EC: Fan Turbo Off") |
| } |