Sean Rhodes | 8956b1a | 2022-09-07 11:36:30 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | Method (_Q01, 0, NotSerialized) // Event: F1 Hot Key |
| 4 | { |
| 5 | Printf ("EC: F1") |
| 6 | } |
| 7 | |
| 8 | Method (_Q02, 0, NotSerialized) // Event: F2 Hot Key |
| 9 | { |
| 10 | Printf ("EC: F2") |
| 11 | } |
| 12 | |
| 13 | Method (_Q03, 0, NotSerialized) // Event: F3 Hot Key |
| 14 | { |
| 15 | Printf ("EC: F3") |
| 16 | } |
| 17 | |
| 18 | Method (_Q04, 0, NotSerialized) // Event: F4 Hot Key |
| 19 | { |
| 20 | Printf ("EC: F4") |
| 21 | } |
| 22 | |
| 23 | Method (_Q08, 0, NotSerialized) // Event: F5 Hot Key |
| 24 | { |
| 25 | Printf ("EC: F5") |
| 26 | } |
| 27 | |
| 28 | Method (_Q09, 0, NotSerialized) // Event: F6 Hot Key |
| 29 | { |
| 30 | Printf ("EC: F6") |
| 31 | } |
| 32 | |
| 33 | Method (_Q07, 0, NotSerialized) // Event: F7 Hot Key |
| 34 | { |
| 35 | Printf ("EC: F7") |
| 36 | } |
| 37 | |
| 38 | Method (_Q05, 0, NotSerialized) // Event: Backlight Brightness Down |
| 39 | { |
| 40 | ^^^^HIDD.HPEM (20) |
| 41 | } |
| 42 | |
| 43 | Method (_Q06, 0, NotSerialized) // Event: Backlight Brightness Up |
| 44 | { |
| 45 | ^^^^HIDD.HPEM (19) |
| 46 | } |
| 47 | |
| 48 | Method (_Q10, 0, NotSerialized) // Event: F10 Hot Key |
| 49 | { |
| 50 | Printf ("EC: F10") |
| 51 | } |
| 52 | |
| 53 | Method (_Q11, 0, NotSerialized) // Event: F11 Hot Key |
| 54 | { |
| 55 | Printf ("EC: F11") |
| 56 | } |
| 57 | |
| 58 | Method (_Q12, 0, NotSerialized) // Event: F12 Hot Key |
| 59 | { |
| 60 | Printf ("EC: F6") |
| 61 | } |
| 62 | |
| 63 | Method (_Q0A, 0, NotSerialized) // Event: AC Power Connected |
| 64 | { |
| 65 | Notify (BAT0, 0x81) |
| 66 | Notify (ADP1, 0x80) |
| 67 | } |
| 68 | |
| 69 | Method (_Q0B, 0, NotSerialized) // Event: AC Power Disconnected |
| 70 | { |
| 71 | Notify (BAT0, 0x81) |
| 72 | Notify (BAT0, 0x80) |
| 73 | } |
| 74 | |
| 75 | Method (_Q0C, 0, NotSerialized) // Event: Lid Closed |
| 76 | { |
| 77 | \LIDS = LSTE |
| 78 | Notify (LID0, 0x80) |
| 79 | } |
| 80 | |
| 81 | Method (_Q0D, 0, NotSerialized) // Event: Lid Opened |
| 82 | { |
| 83 | \LIDS = LSTE |
| 84 | Notify (LID0, 0x80) |
| 85 | } |
| 86 | |
| 87 | Method (_Q0E, 0, NotSerialized) // Event: SLEEP |
| 88 | { |
| 89 | Printf ("EC: SLEEP") |
| 90 | } |
| 91 | |
| 92 | Method (_Q13, 0, NotSerialized) // Event: BRIGHTNESS |
| 93 | { |
| 94 | Printf ("EC: BRIGHTNESS") |
| 95 | } |
| 96 | |
| 97 | Method (_Q20, 0, NotSerialized) // Event: CPU_T |
| 98 | { |
| 99 | Printf ("EC: CPU_T") |
| 100 | } |
| 101 | |
| 102 | Method (_Q21, 0, NotSerialized) // Event: SKIN_T |
| 103 | { |
| 104 | Printf ("EC: SKIN_T") |
| 105 | } |
| 106 | |
| 107 | Method (_Q22, 0, NotSerialized) // Event: CHARGER_T |
| 108 | { |
| 109 | Printf ("EC: CHARGER_T") |
| 110 | } |
| 111 | |
| 112 | Method (_Q30, 0, NotSerialized) // Event: THROT_OFF |
| 113 | { |
| 114 | Printf ("EC: THROT_OFF") |
| 115 | } |
| 116 | |
| 117 | Method (_Q31, 0, NotSerialized) // Event: THROT_LV1 |
| 118 | { |
| 119 | Printf ("EC: THROT_LV1") |
| 120 | } |
| 121 | |
| 122 | Method (_Q32, 0, NotSerialized) // Event: THROT_LV2 |
| 123 | { |
| 124 | Printf ("EC: THROT_LV2") |
| 125 | } |
| 126 | |
| 127 | Method (_Q33, 0, NotSerialized) // Event: THROT_LV3 |
| 128 | { |
| 129 | Printf ("EC: THROT_LV3") |
| 130 | } |
| 131 | |
| 132 | Method (_Q34, 0, NotSerialized) // Event: THROT_LV4 |
| 133 | { |
| 134 | Printf ("EC: THROT_LV4") |
| 135 | } |
| 136 | |
| 137 | Method (_Q35, 0, NotSerialized) // Event: THROT_LV5 |
| 138 | { |
| 139 | Printf ("EC: THROT_LV5") |
| 140 | } |
| 141 | |
| 142 | Method (_Q36, 0, NotSerialized) // Event: THROT_LV6 |
| 143 | { |
| 144 | Printf ("EC: THROT_LV6") |
| 145 | } |
| 146 | |
| 147 | Method (_Q37, 0, NotSerialized) // Event: THROT_LV7 |
| 148 | { |
| 149 | Printf ("EC: THROT_LV7") |
| 150 | } |
| 151 | |
| 152 | Method (_Q3B, 0, NotSerialized) // Event: CPU_DN_SPEED |
| 153 | { |
| 154 | Printf ("EC: CPU_DN_SPEED") |
| 155 | } |
| 156 | |
| 157 | Method (_Q3C, 0, NotSerialized) // Event: CPU_UP_SPEED |
| 158 | { |
| 159 | Printf ("EC: CPU_UP_SPEED") |
| 160 | } |
| 161 | |
| 162 | Method (_Q3D, 0, NotSerialized) // Event: CPU_TURBO_OFF |
| 163 | { |
| 164 | Printf ("EC: CPU_TURBO_OFF") |
| 165 | } |
| 166 | |
| 167 | Method (_Q3E, 0, NotSerialized) // Event: CPU_TURBO_ON |
| 168 | { |
| 169 | Printf ("EC: CPU_TURBO_ON") |
| 170 | } |
| 171 | |
| 172 | Method (_Q3F, 0, NotSerialized) // Event: SHUTDOWN |
| 173 | { |
| 174 | Printf ("EC: SHUTDOWN") |
| 175 | } |
| 176 | |
| 177 | Method (_Q40, 0, NotSerialized) // Event: AC and DC Power |
| 178 | { |
| 179 | SMB2 = 0xC6 |
| 180 | } |
| 181 | |
| 182 | Method (_Q41, 0, NotSerialized) // Event: Battery Charge between 0% and 20% |
| 183 | { |
| 184 | SMB2 = 0xC7 |
| 185 | } |
| 186 | |
| 187 | Method (_Q42, 0, NotSerialized) // Event: Battery Charge between 20% and 60% |
| 188 | { |
| 189 | SMB2 = 0xC8 |
| 190 | } |
| 191 | |
| 192 | Method (_Q43, 0, NotSerialized) // Event: Battery Charge between 60% and 100% |
| 193 | { |
| 194 | SMB2 = 0xC9 |
| 195 | } |
| 196 | |
| 197 | Method (_Q44, 0, NotSerialized) // Event: AC Power Only |
| 198 | { |
| 199 | SMB2 = 0xCA |
| 200 | } |
| 201 | |
| 202 | Method (_Q45, 0, NotSerialized) // Event: SENSOR_T76 |
| 203 | { |
| 204 | SMB2 = 0xCB |
| 205 | } |
| 206 | |
| 207 | Method (_Q48, 0, NotSerialized) // Event: Fan Turbo On |
| 208 | { |
| 209 | Printf ("EC: Fan Turbo On") |
| 210 | } |
| 211 | |
| 212 | Method (_Q49, 0, NotSerialized) // Event: Fan Turbo Off |
| 213 | { |
| 214 | Printf ("EC: Fan Turbo Off") |
| 215 | } |
| 216 | |
| 217 | Method (_Q54, 0, NotSerialized) // Event: Power Button Press |
| 218 | { |
| 219 | Printf ("EC: PWRBTN") |
| 220 | } |
| 221 | |
| 222 | Method (_Q79, 0, NotSerialized) // Event: USB Type-C |
| 223 | { |
| 224 | Printf ("EC: USB Type-C") |
Sean Rhodes | 8956b1a | 2022-09-07 11:36:30 +0100 | [diff] [blame] | 225 | } |
| 226 | |
| 227 | Method (_Q80, 0, NotSerialized) // Event: Volume Up |
| 228 | { |
| 229 | Printf ("EC: VOLUME_UP") |
| 230 | } |
| 231 | |
| 232 | Method (_Q81, 0, NotSerialized) // Event: Volume Down |
| 233 | { |
| 234 | Printf ("EC: VOLUME_DOWN") |
| 235 | } |
| 236 | |
| 237 | Method (_Q85, 0, NotSerialized) // Event: HOME |
| 238 | { |
| 239 | Printf ("EC: HOME") |
| 240 | } |
| 241 | |
| 242 | Method (_QD5, 0, NotSerialized) // Event: 10 Second Power Button Pressed |
| 243 | { |
| 244 | Notify (HIDD, 0xCE) |
| 245 | } |
| 246 | |
| 247 | Method (_QD6, 0, NotSerialized) // Event: 10 Second Power Button Released |
| 248 | { |
| 249 | Notify (HIDD, 0xCF) |
| 250 | } |
| 251 | |
| 252 | Method (_QF0, 0, NotSerialized) // Event: Temperature Report |
| 253 | { |
| 254 | Printf ("EC: Temperature Report") |
| 255 | } |
| 256 | |
| 257 | Method (_QF1, 0, NotSerialized) // Event: Temperature Trigger |
| 258 | { |
| 259 | Printf ("EC: Temperature Trigger") |
| 260 | } |
| 261 | |
| 262 | Method (_Q99, 0, NotSerialized) // Event: Airplane Mode |
| 263 | { |
| 264 | ^^^^HIDD.HPEM (8) |
| 265 | } |