关机不断电修复DSDT代码

教程正文

打开你的DSDT.AML文件并查找 Method (_PTS, 1, NotSerialized)你看到以下代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Method (_PTS, 1, NotSerialized)
{
If (LEqual (Arg0, 0x03))
{
Store (0x53, P80H)
}

And (GIO0, 0xFFFFDFFF, GIO0)
If (LEqual (Arg0, 0x04))
{
Store (0x54, P80H)
CMSW (0x6E, 0x6E)
}

Or (GPL0, 0x01000000, GPL0)
Or (GPL1, 0x0100, GPL1)
Return (Zero)
}

在第一行

1
Method (_PTS, 1, NotSerialized)

下面添加

1
2
3
{
If (LEqual (Arg0, 0x05)) {}
Else

在收尾代码最后面加一个

1
}

修改完成后

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

Method (_PTS, 1, NotSerialized)
{
If (LEqual (Arg0, 0x05)) {}
Esle
{
If (LEqual (Arg0, 0x03))
{
Store (0x53, P80H)
}

And (GIO0, 0xFFFFDFFF, GIO0)
If (LEqual (Arg0, 0x04))
{
Store (0x54, P80H)
CMSW (0x6E, 0x6E)
}

Or (GPL0, 0x01000000, GPL0)
Or (GPL1, 0x0100, GPL1)
Return (Zero)
}
}

备注解释

添加的代码完整段是这样的

1
2
3
4
5
6
7
8
Method (_PTS, 1, NotSerialized)
{
If (LEqual (Arg0, 0x05)) {}
Else
{
... original codes...
}
}
-------------本文结束感谢您的阅读-------------