黑苹果之华硕笔记本键盘灯和Fn快捷键

驱动华硕笔记本的键盘灯和快捷键需要两步

第一步:修改DSDT

Haswell机型

打开反编译好的DSDT,搜索“Device (ATKD)”,在其定义下加入以下代码(包含关系):

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
Name (BOFF, Zero)
Method (SKBL, 1, NotSerialized)
{
If (Or (LEqual (Arg0, 0xED), LEqual (Arg0, 0xFD)))
{
If (And (LEqual (Arg0, 0xED), LEqual (BOFF, 0xEA)))
{
Store (Zero, Local0)
Store (Arg0, BOFF)
}
Else
{
If (And (LEqual (Arg0, 0xFD), LEqual (BOFF, 0xFA)))
{
Store (Zero, Local0)
Store (Arg0, BOFF)
}
Else
{
Return (BOFF)
}
}
}
Else
{
If (Or (LEqual (Arg0, 0xEA), LEqual (Arg0, 0xFA)))
{
Store (KBLV, Local0)
Store (Arg0, BOFF)
}
Else
{
Store (Arg0, Local0)
Store (Arg0, KBLV)
}
}

Store (DerefOf (Index (PWKB, Local0)), Local1)
^^PCI0.LPCB.EC0.WRAM (0x04B1, Local1) // Haswell/Ivy
^^PCI0.LPCB.EC0.WRAM (0x044B, Local1) // Sandy/Ivy
Return (Local0)
}

Method (GKBL, 1, NotSerialized)
{
If (LEqual (Arg0, 0xFF))
{
Return (BOFF)
}

Return (KBLV)
}

Skylake机型

打开反编译好的DSDT,搜索“Method (SCDG, 1, NotSerialized)”,在这个method下方加入以下代码(注并列关系):

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
Name (BOFF, Zero)
Method (SKBL, 1, NotSerialized)
{
If (Or (LEqual (Arg0, 0xED), LEqual (Arg0, 0xFD)))
{
If (And (LEqual (Arg0, 0xED), LEqual (BOFF, 0xEA)))
{
Store (Zero, Local0)
Store (Arg0, BOFF)
}
Else
{
If (And (LEqual (Arg0, 0xFD), LEqual (BOFF, 0xFA)))
{
Store (Zero, Local0)
Store (Arg0, BOFF)
}
Else
{
Return (BOFF)
}
}
}
Else
{
If (Or (LEqual (Arg0, 0xEA), LEqual (Arg0, 0xFA)))
{
Store (KBLV, Local0)
Store (Arg0, BOFF)
}
Else
{
Store (Arg0, Local0)
Store (Arg0, KBLV)
}
}
Store (DerefOf (Index (KBPW, Local0)), Local1)
^^PCI0.LPCB.EC0.WRAM (0x04B1, Local1)
Return (Local0)
}
Name (KBPW, Buffer (0x10)
{
0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF
})
Method (GKBL, 1, NotSerialized)
{
If (LEqual (Arg0, 0xFF))
{
Return (BOFF)
}
Return (KBLV)
}

第二步 加载驱动
将AsusNBFnKeys.kext放到Clover/kexts/other内

重启即可

坚持原创技术分享,您的支持将鼓励我继续创作