sysclk: fix hoag tdp and charge display
This commit is contained in:
@@ -280,25 +280,29 @@ void MiscGui::listUI()
|
|||||||
std::map<uint32_t, std::string> labels_pwr_l = {
|
std::map<uint32_t, std::string> labels_pwr_l = {
|
||||||
{6400, "Official Rating"}
|
{6400, "Official Rating"}
|
||||||
};
|
};
|
||||||
ValueThresholds tdpThresholds(8600, 9500);
|
|
||||||
addConfigButton(
|
|
||||||
HocClkConfigValue_HandheldTDPLimit,
|
|
||||||
"TDP Threshold",
|
|
||||||
ValueRange(5000, 10000, 100, "mW", 1),
|
|
||||||
"Power",
|
|
||||||
&tdpThresholds,
|
|
||||||
labels_pwr_r
|
|
||||||
);
|
|
||||||
|
|
||||||
ValueThresholds tdpThresholdsLite(6400, 7500);
|
if(IsHoag()) {
|
||||||
addConfigButton(
|
ValueThresholds tdpThresholdsLite(6400, 7500);
|
||||||
HocClkConfigValue_LiteTDPLimit,
|
addConfigButton(
|
||||||
"Lite TDP Threshold",
|
HocClkConfigValue_LiteTDPLimit,
|
||||||
ValueRange(4000, 8000, 100, "mW", 1),
|
"Lite TDP Threshold",
|
||||||
"Power",
|
ValueRange(4000, 8000, 100, "mW", 1),
|
||||||
&tdpThresholdsLite,
|
"Power",
|
||||||
labels_pwr_l
|
&tdpThresholdsLite,
|
||||||
);
|
labels_pwr_l
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
ValueThresholds tdpThresholds(8600, 9500);
|
||||||
|
addConfigButton(
|
||||||
|
HocClkConfigValue_HandheldTDPLimit,
|
||||||
|
"TDP Threshold",
|
||||||
|
ValueRange(5000, 10000, 100, "mW", 1),
|
||||||
|
"Power",
|
||||||
|
&tdpThresholds,
|
||||||
|
labels_pwr_r
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ValueThresholds throttleThresholds(70, 80);
|
ValueThresholds throttleThresholds(70, 80);
|
||||||
addConfigButton(
|
addConfigButton(
|
||||||
@@ -376,20 +380,59 @@ void MiscGui::listUI()
|
|||||||
NamedValue("2816mA", 2816),
|
NamedValue("2816mA", 2816),
|
||||||
NamedValue("3072mA", 3072),
|
NamedValue("3072mA", 3072),
|
||||||
};
|
};
|
||||||
|
if(!IsHoag()) {
|
||||||
|
std::vector<NamedValue> chargerCurrents = {
|
||||||
|
NamedValue("Disabled", 0),
|
||||||
|
NamedValue("1024mA", 1024),
|
||||||
|
NamedValue("1280mA", 1280),
|
||||||
|
NamedValue("1536mA", 1536),
|
||||||
|
NamedValue("1792mA", 1792),
|
||||||
|
NamedValue("2048mA", 2048),
|
||||||
|
NamedValue("2304mA", 2304),
|
||||||
|
NamedValue("2560mA", 2560),
|
||||||
|
NamedValue("2816mA", 2816),
|
||||||
|
NamedValue("3072mA", 3072),
|
||||||
|
};
|
||||||
|
|
||||||
ValueThresholds chargerThresholds(2048, 2560);
|
ValueThresholds chargerThresholds(2048, 2560);
|
||||||
|
|
||||||
addConfigButton(
|
addConfigButton(
|
||||||
HorizonOCConfigValue_BatteryChargeCurrent,
|
HorizonOCConfigValue_BatteryChargeCurrent,
|
||||||
"Charge Current Override",
|
"Charge Current Override",
|
||||||
ValueRange(0, 0, 1, "", 0),
|
ValueRange(0, 0, 1, "", 0),
|
||||||
"Charge Current Override",
|
"Charge Current Override",
|
||||||
&chargerThresholds,
|
&chargerThresholds,
|
||||||
{},
|
{},
|
||||||
chargerCurrents,
|
chargerCurrents,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
addConfigToggle(HorizonOCConfigValue_OverwriteRefreshRate, nullptr);
|
addConfigToggle(HorizonOCConfigValue_OverwriteRefreshRate, nullptr);
|
||||||
|
} else {
|
||||||
|
std::vector<NamedValue> chargerCurrents = {
|
||||||
|
NamedValue("Disabled", 0),
|
||||||
|
NamedValue("1024mA", 1024),
|
||||||
|
NamedValue("1280mA", 1280),
|
||||||
|
NamedValue("1536mA", 1536),
|
||||||
|
NamedValue("1792mA", 1792),
|
||||||
|
NamedValue("2048mA", 2048),
|
||||||
|
NamedValue("2304mA", 2304),
|
||||||
|
NamedValue("2560mA", 2560),
|
||||||
|
};
|
||||||
|
|
||||||
|
ValueThresholds chargerThresholds(1792, 2048);
|
||||||
|
|
||||||
|
addConfigButton(
|
||||||
|
HorizonOCConfigValue_BatteryChargeCurrent,
|
||||||
|
"Charge Current Override",
|
||||||
|
ValueRange(0, 0, 1, "", 0),
|
||||||
|
"Charge Current Override",
|
||||||
|
&chargerThresholds,
|
||||||
|
{},
|
||||||
|
chargerCurrents,
|
||||||
|
false
|
||||||
|
);
|
||||||
|
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -195,7 +195,8 @@ Result FileUtils::Initialize()
|
|||||||
{
|
{
|
||||||
FileUtils::RefreshFlags(true);
|
FileUtils::RefreshFlags(true);
|
||||||
g_has_initialized = true;
|
g_has_initialized = true;
|
||||||
FileUtils::LogLine("=== " TARGET " " TARGET_VERSION " ===");
|
FileUtils::LogLine("=== hoc-clk" TARGET_VERSION " ===");
|
||||||
|
FileUtils::LogLine("by m4xw, natinusala, p-sam, Souldbminer and Lightos_");
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
|||||||
Reference in New Issue
Block a user