Skip to content

Commit c059e85

Browse files
committed
修复解锁DB状态下,更新显卡驱动至不支持的版本后第一次启动OSH执行解锁导致功耗异常的问题。
1 parent 99a8c59 commit c059e85

4 files changed

Lines changed: 18 additions & 28 deletions

File tree

HelpForm.cs

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ private static string GetHelpHtml_ZH(Version version) {
151151
<p><strong>优化:</strong></p>
152152
<li>⚡ 安静模式与降温模式支持曲线UI调整,优化转速曲线说明</li>
153153
<p><strong>修复:</strong></p>
154+
<li>🐛 解锁DB时,更新显卡驱动至不支持的版本后第一次启动OSH执行解锁导致功耗异常的问题</li>
155+
<li>🐛 风扇转速表错误校验的问题</li>
154156
<li>🐛 启动时Omen键菜单未显示已选择的应用</li>
155157
</div>
156158
@@ -183,7 +185,7 @@ private static string GetHelpHtml_ZH(Version version) {
183185
<p>(11) 修改GPU频率限制能实现限制不同级别的功耗,注意该功能不是超频功能。</p>
184186
185187
<h2>四. “硬件监控”菜单说明</h2>
186-
<p>(1) 可选择开启或关闭对应的监控信息,注意如果使用混合模式应关闭GPU监控。</p>
188+
<p>(1) 可选择开启或关闭对应的监控信息,注意如果使用混合模式,在不使用GPU时应关闭GPU监控,否则可能会导致功耗增加。</p>
187189
188190
<h2>五. “浮窗显示”菜单说明</h2>
189191
<p>(1) 开启后,屏幕上方将覆盖硬件监控信息,1秒刷新一次。</p>
@@ -213,15 +215,13 @@ private static string GetHelpHtml_TW(Version version) {
213215
<h2>📦 OmenSuperHub v{Assembly.GetExecutingAssembly().GetName().Version} 更新說明</h2>
214216
<div class='update-list'>
215217
<p><strong>新增:</strong></p>
216-
<li>✨ 自訂風扇曲線設定介面 <a href='https://github.com/breadeding/OmenSuperHub/pull/65'>(#65, Magic-Xin)</a></li>
217-
<li>✨ Omen鍵開啟應用程式 <a href='https://github.com/breadeding/OmenSuperHub/pull/66'>(#66, shihuaidexianyu)</a></li>
218-
<li>✨ Omen鍵切換預設 <a href='https://github.com/breadeding/OmenSuperHub/pull/67'>(#67, Magic-Xin)</a></li>
219-
<li>✨ 本機資訊新增PawnIO狀態偵測</a></li>
218+
<li>✨ Omen鍵開啟UWP應用程式、綁定組合鍵 <a href='https://github.com/breadeding/OmenSuperHub/pull/68'>(#68, shihuaidexianyu)</a></li>
220219
<p><strong>優化:</strong></p>
221-
<li>⚡ 最佳化選單操作:點選後不自動收起選單</li>
222-
<li>⚡ 優化最大幀率選單及提示</li>
220+
<li>⚡ 安靜模式與降溫模式支援曲線UI調整,最佳化轉速曲線說明</li>
223221
<p><strong>修復:</strong></p>
224-
<li>🐛 切換預設時額外重新套用不相關設定的問題</li>
222+
<li>🐛 解鎖DB時,更新顯示卡驅動至不支援的版本後第一次啟動OSH執行解鎖導致功耗異常的問題</li>
223+
<li>🐛 風扇轉速表錯誤校驗的問題</li>
224+
<li>🐛 啟動時Omen鍵選單未顯示已選擇的應用程式</li>
225225
</div>
226226
227227
<p>本專案已開源至 Github:<a href='https://github.com/breadeding/OmenSuperHub'>https://github.com/breadeding/OmenSuperHub</a></p>
@@ -253,7 +253,7 @@ private static string GetHelpHtml_TW(Version version) {
253253
<p>(11) 修改GPU頻率限制能限制不同級別的功耗,注意該功能不是超頻功能。</p>
254254
255255
<h2>四. 「硬體監控」選單說明</h2>
256-
<p>(1) 可選擇開啟或關閉對應的監控資訊,使用混合模式應關閉GPU監控。</p>
256+
<p>(1) 可選擇開啟或關閉對應的監控訊息,注意如果使用混合模式,在不使用GPU時應關閉GPU監控,否則可能會導致功耗增加。</p>
257257
258258
<h2>五. 「浮窗顯示」選單說明</h2>
259259
<p>(1) 開啟後,螢幕上方將覆蓋硬體監控資訊,1秒更新一次。</p>
@@ -283,15 +283,13 @@ private static string GetHelpHtml_EN(Version version) {
283283
<h2>📦 OmenSuperHub v{Assembly.GetExecutingAssembly().GetName().Version} Changelog</h2>
284284
<div class='update-list'>
285285
<p><strong>New Features:</strong></p>
286-
<li>✨ Custom fan curve settings interface <a href='https://github.com/breadeding/OmenSuperHub/pull/65'>(#65, Magic-Xin)</a></li>
287-
<li>✨ Launch app using the Omen key <a href='https://github.com/breadeding/OmenSuperHub/pull/66'>(#66, shihuaidexianyu)</a></li>
288-
<li>✨ Switch presets using the Omen key <a href='https://github.com/breadeding/OmenSuperHub/pull/67'>(#67, Magic-Xin)</a></li>
289-
<li>✨ Added PawnIO status detection to local device information</a></li>
286+
<li>✨ Omen key support for launching UWP apps and binding key combinations <a href='https://github.com/breadeding/OmenSuperHub/pull/68'>(#68, shihuaidexianyu)</a></li>
290287
<p><strong>Improvements:</strong></p>
291-
<li>⚡ Menu interaction: Menu no longer closes automatically after clicking</li>
292-
<li>⚡ Optimized max frame rate menu and tooltips</li>
288+
<li>⚡ Added curve UI adjustments for Quiet and Cool modes; improved descriptions for fan speed curves</li>
293289
<p><strong>Fixes:</strong></p>
294-
<li>🐛 Fixed the issue of extra reapplication of unrelated settings when switching presets</li>
290+
<li>🐛 Fixed an issue where unlocking caused abnormal power consumption when launching OSH for the first time after updating the GPU driver to an unsupported version</li>
291+
<li>🐛 Issue with fan speed reading errors</li>
292+
<li>🐛 Fixed an issue where the Omen key menu failed to display the selected app upon startup</li>
295293
</div>
296294
297295
<p>This project is open-source on Github: <a href='https://github.com/breadeding/OmenSuperHub'>https://github.com/breadeding/OmenSuperHub</a></p>
@@ -323,7 +321,7 @@ private static string GetHelpHtml_EN(Version version) {
323321
<p>(11) GPU clock limit reduces max GPU frequency (not overclocking).</p>
324322
325323
<h2>4. HW Monitor menu</h2>
326-
<p>(1) Toggle individual monitors. If using Hybrid mode, disable GPU monitoring to avoid high CPU usage from frequent GPU wake/sleep.</p>
324+
<p>(1) You can choose to enable or disable the corresponding monitoring information. Note that if you are using hybrid mode, you should disable GPU monitoring when the GPU is not in use; otherwise, power consumption may increase.</p>
327325
328326
<h2>5. Overlay menu</h2>
329327
<p>(1) Shows hardware info at the top of the screen, refreshed every second.</p>

Program.Config.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.IO;
55
using System.Linq;
66
using System.Threading;
7+
using System.Windows.Forms;
78
using System.Windows.Input;
89
using HP.Omen.Core.Common.NVidiaApi;
910
using Microsoft.Win32;
@@ -1098,7 +1099,7 @@ static void RestoreConfig() {
10981099
DBVersion = (int)key.GetValue("DBVersion", 2);
10991100
switch (DBVersion) {
11001101
case 1:
1101-
if (IsAbove50Series()) {
1102+
if (IsAbove50Series() || !powerOnline || !CheckDBVersion(1)) {
11021103
DBVersion = 2;
11031104
ExecuteCommand($"pnputil /enable-device \"ACPI\\NVDA0820\\NPCF\"");
11041105
UpdateCheckedState("DBGroup", Strings.DbNormal);

Program.Menu.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -823,15 +823,6 @@ void attachRename(ToolStripMenuItem item, string presetKey) {
823823
DBMenu.DropDownItems.Add(new ToolStripSeparator());
824824
}
825825
DBMenu.DropDownItems.Add(CreateMenuItem(Strings.DbUnlocked, "DBGroup", (s, e) => {
826-
if (IsAbove50Series()) {
827-
MessageBox.Show(Application.OpenForms.OfType<HelpForm>().FirstOrDefault(), Strings.DbNo50Series, Strings.Hint, MessageBoxButtons.OK, MessageBoxIcon.Warning);
828-
DBVersion = 2;
829-
countDB = 0;
830-
DBMenu.Enabled = true;
831-
SaveConfig("DBVersion");
832-
UpdateCheckedState("DBGroup", Strings.DbNormal);
833-
return;
834-
}
835826
if (MessageBox.Show(Application.OpenForms.OfType<HelpForm>().FirstOrDefault(), Strings.PerfDbUnlockWarning, Strings.DbUnlockTitle, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) {
836827
SetGpuPowerState(true, true);
837828
if (isCPUPowerControlSupported)

Properties/AssemblyVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
using System.Reflection;
22

3-
[assembly: AssemblyVersion("2026.6.10.0")]
3+
[assembly: AssemblyVersion("2026.6.10.1")]
44
[assembly: AssemblyInformationalVersion("2026.6.10")]

0 commit comments

Comments
 (0)