Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
52de2a05
O
OpenCorePKG_MOD
项目概览
btwise
/
OpenCorePKG_MOD
通知
26
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OpenCorePKG_MOD
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
52de2a05
编写于
6月 12, 2019
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OpenCoreMisc: Implement hibernate detection
上级
d3888666
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
60 addition
and
2 deletion
+60
-2
Docs/Configuration.pdf
Docs/Configuration.pdf
+0
-0
Docs/Configuration.tex
Docs/Configuration.tex
+14
-0
Docs/Differences/Differences.pdf
Docs/Differences/Differences.pdf
+0
-0
Docs/Differences/Differences.tex
Docs/Differences/Differences.tex
+17
-2
Docs/Sample.plist
Docs/Sample.plist
+2
-0
Docs/SampleFull.plist
Docs/SampleFull.plist
+2
-0
OpenCorePkg.dsc
OpenCorePkg.dsc
+1
-0
Platform/OpenCore/OpenCoreMisc.c
Platform/OpenCore/OpenCoreMisc.c
+24
-0
未找到文件。
Docs/Configuration.pdf
浏览文件 @
52de2a05
无法预览此类型文件
Docs/Configuration.tex
浏览文件 @
52de2a05
...
...
@@ -1469,6 +1469,20 @@ behaviour that does not go to any other sections
\textbf
{
Description
}
: Set console control behaviour upon OpenCore user
interface load. Refer to
\texttt
{
ConsoleBehaviourOs
}
description for details.
\item
\texttt
{
HibernateMode
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
string
}
\\
\textbf
{
Default value
}
:
\texttt
{
None
}
\\
\textbf
{
Description
}
: Hibernation detection mode. The following modes are supported:
\begin{itemize}
\tightlist
\item
\texttt
{
None
}
--- Avoid hibernation for your own good.
\item
\texttt
{
Auto
}
--- Use RTC and NVRAM detection.
\item
\texttt
{
RTC
}
--- Use RTC detection.
\item
\texttt
{
NVRAM
}
--- Use NVRAM detection.
\end{itemize}
\item
\texttt
{
HideSelf
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
boolean
}
\\
...
...
Docs/Differences/Differences.pdf
浏览文件 @
52de2a05
无法预览此类型文件
Docs/Differences/Differences.tex
浏览文件 @
52de2a05
\documentclass
[]
{
article
}
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL PreviousConfiguration.tex Fri May 24 02:34:39 2019
%DIF ADD ../Configuration.tex
Tue Jun 11 09:12:02
2019
%DIF ADD ../Configuration.tex
Wed Jun 12 00:44:07
2019
\usepackage
{
lmodern
}
\usepackage
{
amssymb,amsmath
}
...
...
@@ -1621,7 +1621,22 @@ behaviour that does not go to any other sections
interface load. Refer to
\texttt
{
ConsoleBehaviourOs
}
description for details.
\item
\texttt
{
HideSelf
}
\\
\DIFaddbegin
\texttt
{
\DIFadd
{
HibernateMode
}}
\\
\textbf
{
\DIFadd
{
Type
}}
\DIFadd
{
:
}
\texttt
{
\DIFadd
{
plist
\
string
}}
\\
\textbf
{
\DIFadd
{
Default value
}}
\DIFadd
{
:
}
\texttt
{
\DIFadd
{
None
}}
\\
\textbf
{
\DIFadd
{
Description
}}
\DIFadd
{
: Hibernation detection mode. The following modes are supported:
}
\begin{itemize}
\tightlist
\item
\texttt
{
\DIFadd
{
None
}}
\DIFadd
{
--- Avoid hibernation for your own good.
}
\item
\texttt
{
\DIFadd
{
Auto
}}
\DIFadd
{
--- Use RTC and NVRAM detection.
}
\item
\texttt
{
\DIFadd
{
RTC
}}
\DIFadd
{
--- Use RTC detection.
}
\item
\texttt
{
\DIFadd
{
NVRAM
}}
\DIFadd
{
--- Use NVRAM detection.
}
\end{itemize}
\item
\DIFaddend
\texttt
{
HideSelf
}
\\
\textbf
{
Type
}
:
\texttt
{
plist
\
boolean
}
\\
\textbf
{
Default value
}
:
\texttt
{
false
}
\\
\textbf
{
Description
}
: Hides own boot entry from boot picker. This
...
...
Docs/Sample.plist
浏览文件 @
52de2a05
...
...
@@ -388,6 +388,8 @@
<string></string>
<key>
ConsoleMode
</key>
<string></string>
<key>
HibernateMode
</key>
<string>
None
</string>
<key>
HideSelf
</key>
<true/>
<key>
Resolution
</key>
...
...
Docs/SampleFull.plist
浏览文件 @
52de2a05
...
...
@@ -388,6 +388,8 @@
<string></string>
<key>
ConsoleMode
</key>
<string></string>
<key>
HibernateMode
</key>
<string>
None
</string>
<key>
HideSelf
</key>
<true/>
<key>
Resolution
</key>
...
...
OpenCorePkg.dsc
浏览文件 @
52de2a05
...
...
@@ -75,6 +75,7 @@
OcMachoLib|OcSupportPkg/Library/OcMachoLib/OcMachoLib.inf
OcMiscLib|OcSupportPkg/Library/OcMiscLib/OcMiscLib.inf
OcPngLib|OcSupportPkg/Library/OcPngLib/OcPngLib.inf
OcRtcLib|OcSupportPkg/Library/OcRtcLib/OcRtcLib.inf
OcSerializeLib|OcSupportPkg/Library/OcSerializeLib/OcSerializeLib.inf
OcSmbiosLib|OcSupportPkg/Library/OcSmbiosLib/OcSmbiosLib.inf
OcStorageLib|OcSupportPkg/Library/OcStorageLib/OcStorageLib.inf
...
...
Platform/OpenCore/OpenCoreMisc.c
浏览文件 @
52de2a05
...
...
@@ -219,10 +219,13 @@ OcMiscLateInit (
)
{
EFI_STATUS
Status
;
EFI_STATUS
HibernateStatus
;
UINT32
Width
;
UINT32
Height
;
UINT32
Bpp
;
BOOLEAN
SetMax
;
CONST
CHAR8
*
HibernateMode
;
UINT32
HibernateMask
;
if
((
Config
->
Misc
.
Security
.
ExposeSensitiveData
&
OCS_EXPOSE_BOOT_PATH
)
!=
0
)
{
OcStoreLoadPath
(
LoadPath
);
...
...
@@ -306,6 +309,27 @@ OcMiscLateInit (
));
}
HibernateMode
=
OC_BLOB_GET
(
&
Config
->
Misc
.
Boot
.
HibernateMode
);
if
(
AsciiStrCmp
(
HibernateMode
,
"None"
)
==
0
)
{
HibernateMask
=
HIBERNATE_MODE_NONE
;
}
else
if
(
AsciiStrCmp
(
HibernateMode
,
"Auto"
)
==
0
)
{
HibernateMask
=
HIBERNATE_MODE_RTC
|
HIBERNATE_MODE_NVRAM
;
}
else
if
(
AsciiStrCmp
(
HibernateMode
,
"RTC"
)
==
0
)
{
HibernateMask
=
HIBERNATE_MODE_RTC
;
}
else
if
(
AsciiStrCmp
(
HibernateMode
,
"NVRAM"
)
==
0
)
{
HibernateMask
=
HIBERNATE_MODE_NVRAM
;
}
else
{
DEBUG
((
DEBUG_INFO
,
"OC: Invalid HibernateMode: %a
\n
"
,
HibernateMode
));
HibernateMask
=
HIBERNATE_MODE_NONE
;
}
DEBUG
((
DEBUG_INFO
,
"OC: Translated HibernateMode %a to %u
\n
"
,
HibernateMode
,
HibernateMask
));
HibernateStatus
=
ActivateHibernateWake
(
HibernateMask
);
DEBUG
((
DEBUG_INFO
,
"OC: Hibernation detection status is %r
\n
"
,
HibernateStatus
));
(
VOID
)
HibernateStatus
;
return
Status
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录