解决安装10.13时会卡在Service only ran for 0 seconds. Pushing respawn out by 10 second。我的独立显卡AMD Radeon R5 M330或者其他独立显卡 用 现成hotpatch SSDT-Disable_DGPU 屏蔽独显不成功,所以自己摸索着尝试修改(参考:http://bbs.pcbeta.com/viewthread-1760215-1-1.html)
简单的说就是:现成hotpatch SSDT-Disable_DGPU.aml文件里面不包含此电脑关闭显卡的方法,自己提取 ACPI 表单,找到关闭显卡的代码,添加到SSDT-Disable_DGPU.aml文件里面就搞定了。
下面开始分享我的经验,提供各位参考.
提取自己的 ACPI 表单 找到关闭显卡的代码,提取ACPI文件,并反编译它们,再给它们打补丁。参考网址:https://www.cnblogs.com/eaglexmw/p/4908877.html,例如我的在 SSTD-19里(机器不懂代码所在位置也不同)。
首先,对于提取好的文件(你可以下载贴子提供的例子进行练习)。用iasl同时反编译所有文件。iasl -da -dl *.aml 接下来,开始对dsl文件打补丁。
接着找到关闭独显的方法,关闭代码的主目录 \_SB.PCI0.RP01.PXSX或\_SB.PCI0.RP05.PEGP这段文字代码(很重要)怎么找出包含了_OFF方法的SSDT呢?我们可以用grep命令做到:grep -l _OFF *.dsl
对于我们给的文件,会显示如下结果:
SSDT-5.dsl
下面打开SSDT-Disable_DGPU把这段文字加入SSDT-Disable_DGPU 代码中,如下:注意代码对齐.之后点击 Compile 看看 有没有错误.没有错误就可以用了。
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20161210-64(RM)
* Copyright (c) 2000 - 2016 Intel Corporation
*
* Disassembling to non-symbolic legacy ASL operators
*
* Disassembly of iASL5Do6wV.aml, Fri Feb 2 22:04:42 2018
*
* Original Table Header:
* Signature "SSDT"
* Length 0x00000583 (1411)
* Revision 0x02
* Checksum 0xDE
* OEM ID "hack"
* OEM Table ID "NDGP"
* OEM Revision 0x00000000 (0)
* Compiler ID "INTL"
* Compiler Version 0x20161210 (538317328)
*/
DefinitionBlock ("", "SSDT", 2, "hack", "NDGP", 0x00000000)
{
External (_SB_.PCI0.PEG0.PEGP._OFF, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.PEG0.PEGP._ON_, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.PEG2.PEGP._OFF, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.PEG2.PEGP._ON_, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.PEG_.VID_._PS0, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.PEG_.VID_._PS3, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.PEG_.VID_.XDSM, MethodObj) // 4 Arguments (from opcode)
External (_SB_.PCI0.PEGP.DGFX._OFF, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.PEGP.DGFX._ON_, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.RP01.PEGP._OFF, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.RP01.PEGP._ON_, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.RP01.PXSX._OFF, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.RP01.PXSX._ON_, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.RP05.PEGP._OFF, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.RP05.PEGP._ON_, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.RP05.PXSX._OFF, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.RP05.PXSX._ON_, MethodObj) // 0 Arguments (from opcode)
Device (DGPU)
{
Name (_HID, "DGPU1000") // _HID: Hardware ID
Name (RMEN, One)
Method (_INI, 0, NotSerialized) // _INI: Initialize
{
_OFF ()
}
Method (_ON, 0, NotSerialized) // _ON_: Power On
{
If (CondRefOf (\_SB.PCI0.PEG2.PEGP._ON))
{
\_SB.PCI0.PEG2.PEGP._ON ()
}
If (CondRefOf (\_SB.PCI0.PEG0.PEGP._ON))
{
\_SB.PCI0.PEG0.PEGP._ON ()
}
If (CondRefOf (\_SB.PCI0.PEGP.DGFX._ON))
{
\_SB.PCI0.PEGP.DGFX._ON ()
}
If (CondRefOf (\_SB.PCI0.RP05.PXSX._ON))
{
\_SB.PCI0.RP05.PXSX._ON ()
}
If (CondRefOf (\_SB.PCI0.PEG.VID._PS0))
{
\_SB.PCI0.PEG.VID._PS0 ()
}
If (CondRefOf (\_SB.PCI0.RP01.PXSX._ON))
{
\_SB.PCI0.RP01.PXSX._ON ()
}
If (CondRefOf (\_SB.PCI0.RP01.PEGP._ON))
{
\_SB.PCI0.RP01.PEGP._ON ()
}
If (CondRefOf (\_SB.PCI0.RP05.PEGP._ON))
{
\_SB.PCI0.RP05.PEGP._ON ()
}
}
Method (_OFF, 0, NotSerialized) // _OFF: Power Off
{
If (CondRefOf (\_SB.PCI0.PEG2.PEGP._OFF))
{
\_SB.PCI0.PEG2.PEGP._OFF ()
}
If (CondRefOf (\_SB.PCI0.PEG0.PEGP._OFF))
{
\_SB.PCI0.PEG0.PEGP._OFF ()
}
If (CondRefOf (\_SB.PCI0.PEGP.DGFX._OFF))
{
\_SB.PCI0.PEGP.DGFX._OFF ()
}
If (CondRefOf (\_SB.PCI0.RP05.PXSX._OFF))
{
\_SB.PCI0.RP05.PXSX._OFF ()
}
If (CondRefOf (\_SB.PCI0.PEG.VID._PS3))
{
\_SB.PCI0.PEG.VID.XDSM (ToUUID ("a486d8f8-0bda-471b-a72b-6042a6b5bee0"), 0x0100, 0x1A, Buffer (0x04)
{
0x01, 0x00, 0x00, 0x03
})
\_SB.PCI0.PEG.VID._PS3 ()
}
If (CondRefOf (\_SB.PCI0.RP01.PXSX._OFF))
{
\_SB.PCI0.RP01.PXSX._OFF ()
}
If (CondRefOf (\_SB.PCI0.RP01.PEGP._OFF))
{
\_SB.PCI0.RP01.PEGP._OFF ()
}
If (CondRefOf (\_SB.PCI0.RP05.PEGP._OFF))
{
\_SB.PCI0.RP05.PEGP._OFF ()
}
}
}
}
网友评论