summaryrefslogtreecommitdiff
path: root/src/ec/starlabs/merlin/acpi/keyboard.asl
blob: 0078c4c4ffcefb17e21ad76e9cd8d17c552a406e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* SPDX-License-Identifier: GPL-2.0-only */

Method(_Q80)				// Volume up
{
	Store ("-----> _Q80", Debug)
	Notify (\_SB.HIDD, 0xC4)
	Notify (\_SB.HIDD, 0xC5)
	Store ("<----- _Q80", Debug)
}

Method(_Q81)				// Volume down
{
	Store ("-----> _Q81", Debug)
	Notify (\_SB.HIDD, 0xC6)
	Notify (\_SB.HIDD, 0xC7)
	Store ("<----- _Q81", Debug)
}

Method(_Q99)				// Wireless mode
{
	Store ("-----> _Q99", Debug)
	^^^^HIDD.HPEM (8)
	Store ("<----- _Q99", Debug)
}

Method(_Q06)				// Brightness decrease
{
	^^^^HIDD.HPEM (19)
}

Method(_Q05)				// Brightness increase
{
	^^^^HIDD.HPEM (20)
}

Method(_Q08)				// FN lock QEvent
{
	FNLC = FNST
}

Method(_Q54)				// Power Button Event
{
	Store ("-----> _Q54", Debug)
	Store ("<----- _Q54", Debug)
}

Method(_QD5)				// 10 second power button press
{
	Store ("-----> _QD5", Debug)
	\_SB.PWPR()
	Store ("<----- _QD5", Debug)
}

Method(_QD6)				// 10 second power button de-press
{
	Store ("-----> _QD6", Debug)
	\_SB.PWRR()
	Store ("<----- _QD6", Debug)
}