-
Notifications
You must be signed in to change notification settings - Fork 17
/
SSDT-Q13.dsl
29 lines (27 loc) · 857 Bytes
/
SSDT-Q13.dsl
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
External(_SB.PCI0.LPCB.EC, DeviceObj)
Scope(_SB.PCI0.LPCB.EC)
{
// The native _Qxx methods in DSDT are renamed XQxx,
// so notifications from the EC driver will land here.
// _Q13 called on brightness/mirror display key
Method (_Q13, 0, Serialized) // _Qxx: EC Query
{
External(\HKNO, FieldUnitObj)
Store(HKNO, Local0)
If (LEqual(Local0,7))
{
// Brightness Down
Notify(\_SB.PCI0.LPCB.PS2K, 0x0405)
}
If (LEqual(Local0,8))
{
// Brightness Up
Notify(\_SB.PCI0.LPCB.PS2K, 0x0406)
}
If (LEqual(Local0,4))
{
// Mirror toggle
Notify(\_SB.PCI0.LPCB.PS2K, 0x046e)
}
}
}