DSDT修复橙色硬盘标识

教程正文

首先我们需要打开IORegistryExplorer(文章末尾有下载)查到我们硬盘的位置 在搜索栏 AHCI

上面我们搜的结果已经得到了我们想要的信息了,我的硬盘是@1F,2,那么我们打开Maciasl 查找SAT0或者0x001F0002

这就是我的DSDT里找到的硬盘DSDT信息

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
Device (SAT0)
{
Name (_ADR, 0x001F0002)
Name (FDEV, Zero)
Name (FDRP, Zero)
Device (PRT0)
{
Name (_ADR, 0xFFFF)
Method (_SDD, 1, NotSerialized)
{
CreateByteField (Arg0, 0x9D, BFDS)
ToInteger (BFDS, FDEV)
CreateByteField (Arg0, 0x9A, BFRP)
ToInteger (BFRP, FDRP)
}
Method (_GTF, 0, NotSerialized)
{
If (LAnd (LAnd (LEqual (DVS0, One), LEqual (And (FDEV, One
), One)), LEqual (And (FDRP, 0x80), 0x80)))
{
Name (PIB1, Buffer (0x07)
{
0x10, 0x09, 0x00, 0x00, 0x00, 0xB0, 0xEF
})
Return (PIB1)
}
Name (PIB2, Buffer (0x07)
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
Return (PIB2)
}
}

1
Name (_ADR, 0x001F0002)

后面添加

1
2
3
4
5
6
7
8
9
10
11
12
13
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x02)
{
"device-id",
Buffer (0x04)
{
0x81, 0x26, 0x00, 0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}

修改后完整代码

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
Device (SAT0)
{
Name (_ADR, 0x001F0002)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x02)
{
"device-id",
Buffer (0x04)
{
0x81, 0x26, 0x00, 0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
Name (FDEV, Zero)
Name (FDRP, Zero)
Device (PRT0)
{
Name (_ADR, 0xFFFF)
Method (_SDD, 1, NotSerialized)
{
CreateByteField (Arg0, 0x9D, BFDS)
ToInteger (BFDS, FDEV)
CreateByteField (Arg0, 0x9A, BFRP)
ToInteger (BFRP, FDRP)
}
Method (_GTF, 0, NotSerialized)
{
If (LAnd (LAnd (LEqual (DVS0, One), LEqual (And (FDEV, One
), One)), LEqual (And (FDRP, 0x80), 0x80)))
{
Name (PIB1, Buffer (0x07)
{
0x10, 0x09, 0x00, 0x00, 0x00, 0xB0, 0xEF
})
Return (PIB1)
}
Name (PIB2, Buffer (0x07)
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
})
Return (PIB2)
}
}

工具下载

IORegistryExplorer传送门:http://pan.baidu.com/s/1o61RHKA 密码: fhm6