Compare commits

..

3 Commits

Author SHA1 Message Date
Serge
2c2eed4fe2 Temp limit and update checker 2023-06-18 14:59:37 +02:00
Serge
8d6b277fda Merge branch 'main' of https://github.com/seerge/g-helper 2023-06-17 13:24:16 +02:00
Serge
8e6f54e833 Update README.md 2023-06-17 10:39:06 +02:00
9 changed files with 261 additions and 95 deletions

223
app/Fans.Designer.cs generated
View File

@@ -31,14 +31,14 @@ namespace GHelper
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
ChartArea chartArea1 = new ChartArea(); ChartArea chartArea5 = new ChartArea();
Title title1 = new Title(); Title title5 = new Title();
ChartArea chartArea2 = new ChartArea(); ChartArea chartArea6 = new ChartArea();
Title title2 = new Title(); Title title6 = new Title();
ChartArea chartArea3 = new ChartArea(); ChartArea chartArea7 = new ChartArea();
Title title3 = new Title(); Title title7 = new Title();
ChartArea chartArea4 = new ChartArea(); ChartArea chartArea8 = new ChartArea();
Title title4 = new Title(); Title title8 = new Title();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Fans)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Fans));
panelFans = new Panel(); panelFans = new Panel();
labelTip = new Label(); labelTip = new Label();
@@ -61,6 +61,13 @@ namespace GHelper
comboBoost = new RComboBox(); comboBoost = new RComboBox();
panelSliders = new Panel(); panelSliders = new Panel();
panelAdvanced = new Panel(); panelAdvanced = new Panel();
panelTemperature = new Panel();
labelTemp = new Label();
labelLeftTemp = new Label();
trackTemp = new TrackBar();
panelTitleTemp = new Panel();
pictureTemp = new PictureBox();
labelTempLimit = new Label();
panelAdvancedApply = new Panel(); panelAdvancedApply = new Panel();
checkApplyUV = new RCheckBox(); checkApplyUV = new RCheckBox();
buttonApplyAdvanced = new RButton(); buttonApplyAdvanced = new RButton();
@@ -74,8 +81,8 @@ namespace GHelper
labelLeftUV = new Label(); labelLeftUV = new Label();
trackUV = new TrackBar(); trackUV = new TrackBar();
panelTitleAdvanced = new Panel(); panelTitleAdvanced = new Panel();
pictureAdvanced = new PictureBox(); pictureUV = new PictureBox();
labelAdvanced = new Label(); labelTitleUV = new Label();
panelPower = new Panel(); panelPower = new Panel();
panelApplyPower = new Panel(); panelApplyPower = new Panel();
checkApplyPower = new RCheckBox(); checkApplyPower = new RCheckBox();
@@ -134,13 +141,17 @@ namespace GHelper
panelApplyFans.SuspendLayout(); panelApplyFans.SuspendLayout();
panelSliders.SuspendLayout(); panelSliders.SuspendLayout();
panelAdvanced.SuspendLayout(); panelAdvanced.SuspendLayout();
panelTemperature.SuspendLayout();
((System.ComponentModel.ISupportInitialize)trackTemp).BeginInit();
panelTitleTemp.SuspendLayout();
((System.ComponentModel.ISupportInitialize)pictureTemp).BeginInit();
panelAdvancedApply.SuspendLayout(); panelAdvancedApply.SuspendLayout();
panelUViGPU.SuspendLayout(); panelUViGPU.SuspendLayout();
((System.ComponentModel.ISupportInitialize)trackUViGPU).BeginInit(); ((System.ComponentModel.ISupportInitialize)trackUViGPU).BeginInit();
panelUV.SuspendLayout(); panelUV.SuspendLayout();
((System.ComponentModel.ISupportInitialize)trackUV).BeginInit(); ((System.ComponentModel.ISupportInitialize)trackUV).BeginInit();
panelTitleAdvanced.SuspendLayout(); panelTitleAdvanced.SuspendLayout();
((System.ComponentModel.ISupportInitialize)pictureAdvanced).BeginInit(); ((System.ComponentModel.ISupportInitialize)pictureUV).BeginInit();
panelPower.SuspendLayout(); panelPower.SuspendLayout();
panelApplyPower.SuspendLayout(); panelApplyPower.SuspendLayout();
panelB0.SuspendLayout(); panelB0.SuspendLayout();
@@ -223,8 +234,8 @@ namespace GHelper
// //
// chartGPU // chartGPU
// //
chartArea1.Name = "ChartArea1"; chartArea5.Name = "ChartArea1";
chartGPU.ChartAreas.Add(chartArea1); chartGPU.ChartAreas.Add(chartArea5);
chartGPU.Dock = DockStyle.Fill; chartGPU.Dock = DockStyle.Fill;
chartGPU.Location = new Point(12, 467); chartGPU.Location = new Point(12, 467);
chartGPU.Margin = new Padding(2, 10, 2, 10); chartGPU.Margin = new Padding(2, 10, 2, 10);
@@ -232,13 +243,13 @@ namespace GHelper
chartGPU.Size = new Size(782, 437); chartGPU.Size = new Size(782, 437);
chartGPU.TabIndex = 17; chartGPU.TabIndex = 17;
chartGPU.Text = "chartGPU"; chartGPU.Text = "chartGPU";
title1.Name = "Title1"; title5.Name = "Title1";
chartGPU.Titles.Add(title1); chartGPU.Titles.Add(title5);
// //
// chartCPU // chartCPU
// //
chartArea2.Name = "ChartArea1"; chartArea6.Name = "ChartArea1";
chartCPU.ChartAreas.Add(chartArea2); chartCPU.ChartAreas.Add(chartArea6);
chartCPU.Dock = DockStyle.Fill; chartCPU.Dock = DockStyle.Fill;
chartCPU.Location = new Point(12, 10); chartCPU.Location = new Point(12, 10);
chartCPU.Margin = new Padding(2, 10, 2, 10); chartCPU.Margin = new Padding(2, 10, 2, 10);
@@ -246,13 +257,13 @@ namespace GHelper
chartCPU.Size = new Size(782, 437); chartCPU.Size = new Size(782, 437);
chartCPU.TabIndex = 14; chartCPU.TabIndex = 14;
chartCPU.Text = "chartCPU"; chartCPU.Text = "chartCPU";
title2.Name = "Title1"; title6.Name = "Title1";
chartCPU.Titles.Add(title2); chartCPU.Titles.Add(title6);
// //
// chartXGM // chartXGM
// //
chartArea3.Name = "ChartAreaXGM"; chartArea7.Name = "ChartAreaXGM";
chartXGM.ChartAreas.Add(chartArea3); chartXGM.ChartAreas.Add(chartArea7);
chartXGM.Dock = DockStyle.Fill; chartXGM.Dock = DockStyle.Fill;
chartXGM.Location = new Point(12, 1381); chartXGM.Location = new Point(12, 1381);
chartXGM.Margin = new Padding(2, 10, 2, 10); chartXGM.Margin = new Padding(2, 10, 2, 10);
@@ -260,14 +271,14 @@ namespace GHelper
chartXGM.Size = new Size(782, 440); chartXGM.Size = new Size(782, 440);
chartXGM.TabIndex = 14; chartXGM.TabIndex = 14;
chartXGM.Text = "chartXGM"; chartXGM.Text = "chartXGM";
title3.Name = "Title4"; title7.Name = "Title4";
chartXGM.Titles.Add(title3); chartXGM.Titles.Add(title7);
chartXGM.Visible = false; chartXGM.Visible = false;
// //
// chartMid // chartMid
// //
chartArea4.Name = "ChartArea3"; chartArea8.Name = "ChartArea3";
chartMid.ChartAreas.Add(chartArea4); chartMid.ChartAreas.Add(chartArea8);
chartMid.Dock = DockStyle.Fill; chartMid.Dock = DockStyle.Fill;
chartMid.Location = new Point(12, 924); chartMid.Location = new Point(12, 924);
chartMid.Margin = new Padding(2, 10, 2, 10); chartMid.Margin = new Padding(2, 10, 2, 10);
@@ -275,8 +286,8 @@ namespace GHelper
chartMid.Size = new Size(782, 437); chartMid.Size = new Size(782, 437);
chartMid.TabIndex = 14; chartMid.TabIndex = 14;
chartMid.Text = "chartMid"; chartMid.Text = "chartMid";
title4.Name = "Title3"; title8.Name = "Title3";
chartMid.Titles.Add(title4); chartMid.Titles.Add(title8);
chartMid.Visible = false; chartMid.Visible = false;
// //
// panelTitleFans // panelTitleFans
@@ -474,19 +485,102 @@ namespace GHelper
panelAdvanced.Controls.Add(panelUViGPU); panelAdvanced.Controls.Add(panelUViGPU);
panelAdvanced.Controls.Add(panelUV); panelAdvanced.Controls.Add(panelUV);
panelAdvanced.Controls.Add(panelTitleAdvanced); panelAdvanced.Controls.Add(panelTitleAdvanced);
panelAdvanced.Controls.Add(panelTemperature);
panelAdvanced.Controls.Add(panelTitleTemp);
panelAdvanced.Dock = DockStyle.Top; panelAdvanced.Dock = DockStyle.Top;
panelAdvanced.Location = new Point(10, 1284); panelAdvanced.Location = new Point(10, 1284);
panelAdvanced.Name = "panelAdvanced"; panelAdvanced.Name = "panelAdvanced";
panelAdvanced.Size = new Size(520, 588); panelAdvanced.Size = new Size(520, 778);
panelAdvanced.TabIndex = 14; panelAdvanced.TabIndex = 14;
panelAdvanced.Visible = false; panelAdvanced.Visible = false;
// //
// panelTemperature
//
panelTemperature.AutoSize = true;
panelTemperature.AutoSizeMode = AutoSizeMode.GrowAndShrink;
panelTemperature.Controls.Add(labelTemp);
panelTemperature.Controls.Add(labelLeftTemp);
panelTemperature.Controls.Add(trackTemp);
panelTemperature.Dock = DockStyle.Top;
panelTemperature.Location = new Point(0, 66);
panelTemperature.Margin = new Padding(4);
panelTemperature.MaximumSize = new Size(0, 124);
panelTemperature.Name = "panelTemperature";
panelTemperature.Size = new Size(520, 124);
panelTemperature.TabIndex = 51;
//
// labelTemp
//
labelTemp.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelTemp.Location = new Point(347, 13);
labelTemp.Margin = new Padding(4, 0, 4, 0);
labelTemp.Name = "labelTemp";
labelTemp.Size = new Size(148, 32);
labelTemp.TabIndex = 13;
labelTemp.Text = "T";
labelTemp.TextAlign = ContentAlignment.TopRight;
//
// labelLeftTemp
//
labelLeftTemp.AutoSize = true;
labelLeftTemp.Location = new Point(10, 10);
labelLeftTemp.Margin = new Padding(4, 0, 4, 0);
labelLeftTemp.Name = "labelLeftTemp";
labelLeftTemp.Size = new Size(183, 32);
labelLeftTemp.TabIndex = 12;
labelLeftTemp.Text = "CPU Temp Limit";
//
// trackTemp
//
trackTemp.Location = new Point(6, 48);
trackTemp.Margin = new Padding(4, 2, 4, 2);
trackTemp.Maximum = 0;
trackTemp.Minimum = -40;
trackTemp.Name = "trackTemp";
trackTemp.Size = new Size(508, 90);
trackTemp.TabIndex = 11;
trackTemp.TickFrequency = 5;
trackTemp.TickStyle = TickStyle.TopLeft;
//
// panelTitleTemp
//
panelTitleTemp.Controls.Add(pictureTemp);
panelTitleTemp.Controls.Add(labelTempLimit);
panelTitleTemp.Dock = DockStyle.Top;
panelTitleTemp.Location = new Point(0, 0);
panelTitleTemp.Name = "panelTitleTemp";
panelTitleTemp.Size = new Size(520, 66);
panelTitleTemp.TabIndex = 50;
//
// pictureTemp
//
pictureTemp.BackgroundImage = Properties.Resources.icons8_temperature_48;
pictureTemp.BackgroundImageLayout = ImageLayout.Zoom;
pictureTemp.InitialImage = null;
pictureTemp.Location = new Point(10, 18);
pictureTemp.Margin = new Padding(4, 2, 4, 10);
pictureTemp.Name = "pictureTemp";
pictureTemp.Size = new Size(36, 38);
pictureTemp.TabIndex = 48;
pictureTemp.TabStop = false;
//
// labelTempLimit
//
labelTempLimit.AutoSize = true;
labelTempLimit.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelTempLimit.Location = new Point(51, 20);
labelTempLimit.Margin = new Padding(4, 0, 4, 0);
labelTempLimit.Name = "labelTempLimit";
labelTempLimit.Size = new Size(140, 32);
labelTempLimit.TabIndex = 47;
labelTempLimit.Text = "Temp Limit";
//
// panelAdvancedApply // panelAdvancedApply
// //
panelAdvancedApply.Controls.Add(checkApplyUV); panelAdvancedApply.Controls.Add(checkApplyUV);
panelAdvancedApply.Controls.Add(buttonApplyAdvanced); panelAdvancedApply.Controls.Add(buttonApplyAdvanced);
panelAdvancedApply.Dock = DockStyle.Top; panelAdvancedApply.Dock = DockStyle.Top;
panelAdvancedApply.Location = new Point(0, 512); panelAdvancedApply.Location = new Point(0, 702);
panelAdvancedApply.Name = "panelAdvancedApply"; panelAdvancedApply.Name = "panelAdvancedApply";
panelAdvancedApply.Size = new Size(520, 76); panelAdvancedApply.Size = new Size(520, 76);
panelAdvancedApply.TabIndex = 47; panelAdvancedApply.TabIndex = 47;
@@ -525,7 +619,7 @@ namespace GHelper
// labelRisky // labelRisky
// //
labelRisky.Dock = DockStyle.Top; labelRisky.Dock = DockStyle.Top;
labelRisky.Location = new Point(0, 314); labelRisky.Location = new Point(0, 504);
labelRisky.Name = "labelRisky"; labelRisky.Name = "labelRisky";
labelRisky.Padding = new Padding(10, 10, 10, 5); labelRisky.Padding = new Padding(10, 10, 10, 5);
labelRisky.Size = new Size(520, 198); labelRisky.Size = new Size(520, 198);
@@ -540,7 +634,7 @@ namespace GHelper
panelUViGPU.Controls.Add(labelLeftUViGPU); panelUViGPU.Controls.Add(labelLeftUViGPU);
panelUViGPU.Controls.Add(trackUViGPU); panelUViGPU.Controls.Add(trackUViGPU);
panelUViGPU.Dock = DockStyle.Top; panelUViGPU.Dock = DockStyle.Top;
panelUViGPU.Location = new Point(0, 190); panelUViGPU.Location = new Point(0, 380);
panelUViGPU.Margin = new Padding(4); panelUViGPU.Margin = new Padding(4);
panelUViGPU.MaximumSize = new Size(0, 124); panelUViGPU.MaximumSize = new Size(0, 124);
panelUViGPU.Name = "panelUViGPU"; panelUViGPU.Name = "panelUViGPU";
@@ -588,7 +682,7 @@ namespace GHelper
panelUV.Controls.Add(labelLeftUV); panelUV.Controls.Add(labelLeftUV);
panelUV.Controls.Add(trackUV); panelUV.Controls.Add(trackUV);
panelUV.Dock = DockStyle.Top; panelUV.Dock = DockStyle.Top;
panelUV.Location = new Point(0, 66); panelUV.Location = new Point(0, 256);
panelUV.Margin = new Padding(4); panelUV.Margin = new Padding(4);
panelUV.MaximumSize = new Size(0, 124); panelUV.MaximumSize = new Size(0, 124);
panelUV.Name = "panelUV"; panelUV.Name = "panelUV";
@@ -630,36 +724,36 @@ namespace GHelper
// //
// panelTitleAdvanced // panelTitleAdvanced
// //
panelTitleAdvanced.Controls.Add(pictureAdvanced); panelTitleAdvanced.Controls.Add(pictureUV);
panelTitleAdvanced.Controls.Add(labelAdvanced); panelTitleAdvanced.Controls.Add(labelTitleUV);
panelTitleAdvanced.Dock = DockStyle.Top; panelTitleAdvanced.Dock = DockStyle.Top;
panelTitleAdvanced.Location = new Point(0, 0); panelTitleAdvanced.Location = new Point(0, 190);
panelTitleAdvanced.Name = "panelTitleAdvanced"; panelTitleAdvanced.Name = "panelTitleAdvanced";
panelTitleAdvanced.Size = new Size(520, 66); panelTitleAdvanced.Size = new Size(520, 66);
panelTitleAdvanced.TabIndex = 48; panelTitleAdvanced.TabIndex = 48;
// //
// pictureAdvanced // pictureUV
// //
pictureAdvanced.BackgroundImage = Properties.Resources.icons8_voltage_60; pictureUV.BackgroundImage = Properties.Resources.icons8_voltage_60;
pictureAdvanced.BackgroundImageLayout = ImageLayout.Zoom; pictureUV.BackgroundImageLayout = ImageLayout.Zoom;
pictureAdvanced.InitialImage = null; pictureUV.InitialImage = null;
pictureAdvanced.Location = new Point(10, 18); pictureUV.Location = new Point(10, 18);
pictureAdvanced.Margin = new Padding(4, 2, 4, 10); pictureUV.Margin = new Padding(4, 2, 4, 10);
pictureAdvanced.Name = "pictureAdvanced"; pictureUV.Name = "pictureUV";
pictureAdvanced.Size = new Size(36, 38); pictureUV.Size = new Size(36, 38);
pictureAdvanced.TabIndex = 48; pictureUV.TabIndex = 48;
pictureAdvanced.TabStop = false; pictureUV.TabStop = false;
// //
// labelAdvanced // labelTitleUV
// //
labelAdvanced.AutoSize = true; labelTitleUV.AutoSize = true;
labelAdvanced.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point); labelTitleUV.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
labelAdvanced.Location = new Point(51, 20); labelTitleUV.Location = new Point(51, 20);
labelAdvanced.Margin = new Padding(4, 0, 4, 0); labelTitleUV.Margin = new Padding(4, 0, 4, 0);
labelAdvanced.Name = "labelAdvanced"; labelTitleUV.Name = "labelTitleUV";
labelAdvanced.Size = new Size(166, 32); labelTitleUV.Size = new Size(166, 32);
labelAdvanced.TabIndex = 47; labelTitleUV.TabIndex = 47;
labelAdvanced.Text = "Undervolting"; labelTitleUV.Text = "Undervolting";
// //
// panelPower // panelPower
// //
@@ -695,7 +789,7 @@ namespace GHelper
checkApplyPower.Margin = new Padding(0); checkApplyPower.Margin = new Padding(0);
checkApplyPower.Name = "checkApplyPower"; checkApplyPower.Name = "checkApplyPower";
checkApplyPower.Padding = new Padding(16, 6, 16, 6); checkApplyPower.Padding = new Padding(16, 6, 16, 6);
checkApplyPower.Size = new Size(329, 46); checkApplyPower.Size = new Size(489, 46);
checkApplyPower.TabIndex = 45; checkApplyPower.TabIndex = 45;
checkApplyPower.Text = "Apply Power Limits"; checkApplyPower.Text = "Apply Power Limits";
checkApplyPower.UseVisualStyleBackColor = false; checkApplyPower.UseVisualStyleBackColor = false;
@@ -1299,6 +1393,12 @@ namespace GHelper
panelSliders.PerformLayout(); panelSliders.PerformLayout();
panelAdvanced.ResumeLayout(false); panelAdvanced.ResumeLayout(false);
panelAdvanced.PerformLayout(); panelAdvanced.PerformLayout();
panelTemperature.ResumeLayout(false);
panelTemperature.PerformLayout();
((System.ComponentModel.ISupportInitialize)trackTemp).EndInit();
panelTitleTemp.ResumeLayout(false);
panelTitleTemp.PerformLayout();
((System.ComponentModel.ISupportInitialize)pictureTemp).EndInit();
panelAdvancedApply.ResumeLayout(false); panelAdvancedApply.ResumeLayout(false);
panelUViGPU.ResumeLayout(false); panelUViGPU.ResumeLayout(false);
panelUViGPU.PerformLayout(); panelUViGPU.PerformLayout();
@@ -1308,7 +1408,7 @@ namespace GHelper
((System.ComponentModel.ISupportInitialize)trackUV).EndInit(); ((System.ComponentModel.ISupportInitialize)trackUV).EndInit();
panelTitleAdvanced.ResumeLayout(false); panelTitleAdvanced.ResumeLayout(false);
panelTitleAdvanced.PerformLayout(); panelTitleAdvanced.PerformLayout();
((System.ComponentModel.ISupportInitialize)pictureAdvanced).EndInit(); ((System.ComponentModel.ISupportInitialize)pictureUV).EndInit();
panelPower.ResumeLayout(false); panelPower.ResumeLayout(false);
panelPower.PerformLayout(); panelPower.PerformLayout();
panelApplyPower.ResumeLayout(false); panelApplyPower.ResumeLayout(false);
@@ -1416,8 +1516,8 @@ namespace GHelper
private Label labelUV; private Label labelUV;
private Label labelLeftUV; private Label labelLeftUV;
private TrackBar trackUV; private TrackBar trackUV;
private PictureBox pictureAdvanced; private PictureBox pictureUV;
private Label labelAdvanced; private Label labelTitleUV;
private RButton buttonApplyAdvanced; private RButton buttonApplyAdvanced;
private Panel panelApplyPower; private Panel panelApplyPower;
private Panel panelAdvanced; private Panel panelAdvanced;
@@ -1436,5 +1536,12 @@ namespace GHelper
private PictureBox pictureBoost; private PictureBox pictureBoost;
private Label labelBoostTitle; private Label labelBoostTitle;
private Label labelRisky; private Label labelRisky;
private Panel panelTitleTemp;
private PictureBox pictureTemp;
private Label labelTempLimit;
private Panel panelTemperature;
private Label labelTemp;
private Label labelLeftTemp;
private TrackBar trackTemp;
} }
} }

View File

@@ -132,6 +132,17 @@ namespace GHelper
//labelInfo.MaximumSize = new Size(280, 0); //labelInfo.MaximumSize = new Size(280, 0);
labelFansResult.Visible = false; labelFansResult.Visible = false;
trackUV.Minimum = -30;
trackUV.Maximum = 0;
trackUViGPU.Minimum = -20;
trackUViGPU.Maximum = 0;
trackTemp.Minimum = 75;
trackTemp.Maximum = 97;
FillModes(); FillModes();
InitAll(); InitAll();
@@ -147,14 +158,10 @@ namespace GHelper
buttonRemove.Click += ButtonRemove_Click; buttonRemove.Click += ButtonRemove_Click;
buttonRename.Click += ButtonRename_Click; buttonRename.Click += ButtonRename_Click;
trackUV.Minimum = -30;
trackUV.Maximum = 0;
trackUViGPU.Minimum = -20;
trackUViGPU.Maximum = 0;
trackUV.Scroll += TrackUV_Scroll; trackUV.Scroll += TrackUV_Scroll;
trackUViGPU.Scroll += TrackUV_Scroll; trackUViGPU.Scroll += TrackUV_Scroll;
trackTemp.Scroll += TrackUV_Scroll;
buttonApplyAdvanced.Click += ButtonApplyAdvanced_Click; buttonApplyAdvanced.Click += ButtonApplyAdvanced_Click;
@@ -248,6 +255,7 @@ namespace GHelper
int cpuUV = Math.Max(trackUV.Minimum, Math.Min(trackUV.Maximum, AppConfig.GetMode("cpu_uv", 0))); int cpuUV = Math.Max(trackUV.Minimum, Math.Min(trackUV.Maximum, AppConfig.GetMode("cpu_uv", 0)));
int igpuUV = Math.Max(trackUViGPU.Minimum, Math.Min(trackUViGPU.Maximum, AppConfig.GetMode("igpu_uv", 0))); int igpuUV = Math.Max(trackUViGPU.Minimum, Math.Min(trackUViGPU.Maximum, AppConfig.GetMode("igpu_uv", 0)));
int temp = Math.Max(trackTemp.Minimum, Math.Min(trackTemp.Maximum, AppConfig.GetMode("cpu_temp", 96)));
checkApplyUV.Enabled = checkApplyUV.Checked = AppConfig.IsMode("auto_uv"); checkApplyUV.Enabled = checkApplyUV.Checked = AppConfig.IsMode("auto_uv");
@@ -257,6 +265,10 @@ namespace GHelper
trackUViGPU.Value = igpuUV; trackUViGPU.Value = igpuUV;
labelUViGPU.Text = trackUViGPU.Value.ToString(); labelUViGPU.Text = trackUViGPU.Value.ToString();
trackTemp.Value = temp;
labelTemp.Text = trackTemp.Value.ToString() + "°C";
buttonAdvanced.Visible = Undervolter.IsAMD(); buttonAdvanced.Visible = Undervolter.IsAMD();
} }
@@ -269,7 +281,9 @@ namespace GHelper
labelUV.Text = trackUV.Value.ToString(); labelUV.Text = trackUV.Value.ToString();
labelUViGPU.Text = trackUViGPU.Value.ToString(); labelUViGPU.Text = trackUViGPU.Value.ToString();
labelTemp.Text = trackTemp.Value.ToString() + "°C";
AppConfig.SetMode("cpu_temp", trackTemp.Value);
AppConfig.SetMode("cpu_uv", trackUV.Value); AppConfig.SetMode("cpu_uv", trackUV.Value);
AppConfig.SetMode("igpu_uv", trackUViGPU.Value); AppConfig.SetMode("igpu_uv", trackUViGPU.Value);

View File

@@ -16,7 +16,7 @@
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly> <ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<AssemblyVersion>0.87</AssemblyVersion> <AssemblyVersion>0.88</AssemblyVersion>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

View File

@@ -480,6 +480,16 @@ namespace GHelper.Properties {
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap icons8_temperature_48 {
get {
object obj = ResourceManager.GetObject("icons8-temperature-48", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>

View File

@@ -118,6 +118,9 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="icons8-video-card-48" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-video-card-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="brightness_up" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="brightness_up" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\brightness-up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\brightness-up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
@@ -157,9 +160,6 @@
<data name="icons8-processor-96" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8-processor-96" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-processor-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-processor-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8-fan-48" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-fan-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icons8_add_64" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8_add_64" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-add-64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-add-64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
@@ -169,9 +169,6 @@
<data name="icons8-spa-flower-96" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8-spa-flower-96" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-spa-flower-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-spa-flower-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8_edit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-edit-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icons8_share_32" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8_share_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-share-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-share-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
@@ -190,9 +187,6 @@
<data name="brightness_down" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="brightness_down" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\brightness-down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\brightness-down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8-save-32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-save-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icons8-fan-speed-48" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8-fan-speed-48" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-fan-speed-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-fan-speed-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
@@ -214,14 +208,17 @@
<data name="icons8-charging-battery-48" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8-charging-battery-48" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-charging-battery-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-charging-battery-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8_edit_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-edit-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="backlight_up" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="backlight_up" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\backlight-up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\backlight-up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8-spa-flower-48" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8-spa-flower-48" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-spa-flower-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-spa-flower-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8-speed-96" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8-save-32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-speed-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-save-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8_function" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8_function" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-function-mac-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-function-mac-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -229,8 +226,8 @@
<data name="icons8-balance-symbol-96" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8-balance-symbol-96" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-balance-symbol-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-balance-symbol-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8-organic-food-961" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8-fan-48" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-organic-food-961.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-fan-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8-matrix-desktop-48" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8-matrix-desktop-48" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-matrix-desktop-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-matrix-desktop-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -238,15 +235,18 @@
<data name="icons8_remove_64" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8_remove_64" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-remove-64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-remove-64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8-speed-96" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-speed-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icons8-xbox-controller-96" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8-xbox-controller-96" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-xbox-controller-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-xbox-controller-96.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8-organic-food-961" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-organic-food-961.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icons8-project-management-48" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8-project-management-48" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-project-management-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-project-management-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8-video-card-48" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-video-card-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icons8-leaf-48" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8-leaf-48" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-leaf-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-leaf-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
@@ -256,13 +256,16 @@
<data name="backlight_down" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="backlight_down" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\backlight-down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\backlight-down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8-boost-30" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-boost-30.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="icons8-speed-48" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8-speed-48" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-speed-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-speed-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8_video_48" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8_video_48" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-video-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-video-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="icons8-boost-30" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="icons8-temperature-48" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons8-boost-30.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\icons8-temperature-48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
</root> </root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 645 B

View File

@@ -195,15 +195,17 @@ namespace Ryzen
uint[] Args = new uint[6]; uint[] Args = new uint[6];
Args[0] = value; Args[0] = value;
Smu.Status? result = null;
switch (FAMID) switch (FAMID)
{ {
case -1: case -1:
RyzenAccess.SendPsmu(0x68, ref Args); result = RyzenAccess.SendPsmu(0x68, ref Args);
break; break;
case 0: case 0:
case 1: case 1:
case 2: case 2:
RyzenAccess.SendMp1(0x1f, ref Args); result = RyzenAccess.SendMp1(0x1f, ref Args);
break; break;
case 3: case 3:
case 5: case 5:
@@ -211,19 +213,22 @@ namespace Ryzen
case 8: case 8:
case 9: case 9:
case 11: case 11:
RyzenAccess.SendMp1(0x19, ref Args); result = RyzenAccess.SendMp1(0x19, ref Args);
break; break;
case 4: case 4:
case 6: case 6:
RyzenAccess.SendMp1(0x23, ref Args); RyzenAccess.SendMp1(0x23, ref Args);
RyzenAccess.SendPsmu(0x56, ref Args); result = RyzenAccess.SendPsmu(0x56, ref Args);
break; break;
case 10: case 10:
RyzenAccess.SendPsmu(0x59, ref Args); result = RyzenAccess.SendPsmu(0x59, ref Args);
break; break;
default: default:
break; break;
} }
Logger.WriteLine($"CPU Temp: {value} {result}");
RyzenAccess.Deinitialize(); RyzenAccess.Deinitialize();
} }
@@ -262,21 +267,26 @@ namespace Ryzen
uint[] Args = new uint[6]; uint[] Args = new uint[6];
Args[0] = value; Args[0] = value;
Smu.Status? result = null;
switch (FAMID) switch (FAMID)
{ {
case 5: case 5:
case 8: case 8:
case 9: case 9:
case 11: case 11:
RyzenAccess.SendMp1(0x33, ref Args); result = RyzenAccess.SendMp1(0x33, ref Args);
break; break;
case 3: case 3:
case 7: case 7:
RyzenAccess.SendMp1(0x38, ref Args); result = RyzenAccess.SendMp1(0x38, ref Args);
break; break;
default: default:
break; break;
} }
Logger.WriteLine($"APU Temp: {value} {result}");
RyzenAccess.Deinitialize(); RyzenAccess.Deinitialize();
} }

View File

@@ -31,6 +31,7 @@ namespace GHelper
public Extra keyb; public Extra keyb;
public Updates updates; public Updates updates;
static long lastUpdate;
static long lastRefresh; static long lastRefresh;
private bool customFans = false; private bool customFans = false;
@@ -182,11 +183,6 @@ namespace GHelper
SetContextMenu(); SetContextMenu();
Task.Run(async () =>
{
await Task.Delay(TimeSpan.FromSeconds(1));
CheckForUpdatesAsync();
});
} }
@@ -197,6 +193,17 @@ namespace GHelper
{ {
InitScreen(); InitScreen();
InitXGM(); InitXGM();
// Run update once per 12 hours
if (Math.Abs(DateTimeOffset.Now.ToUnixTimeSeconds() - lastUpdate) < 43200) return;
lastUpdate = DateTimeOffset.Now.ToUnixTimeSeconds();
Task.Run(async () =>
{
await Task.Delay(TimeSpan.FromSeconds(1));
CheckForUpdatesAsync();
});
} }
} }
@@ -1145,6 +1152,7 @@ namespace GHelper
int cpuUV = AppConfig.GetMode("cpu_uv", 0); int cpuUV = AppConfig.GetMode("cpu_uv", 0);
int igpuUV = AppConfig.GetMode("igpu_uv", 0); int igpuUV = AppConfig.GetMode("igpu_uv", 0);
int cpuTemp = AppConfig.GetMode("cpu_temp");
try try
{ {
@@ -1157,7 +1165,15 @@ namespace GHelper
{ {
SendCommand.set_cogfx(igpuUV); SendCommand.set_cogfx(igpuUV);
} }
} catch (Exception ex)
if (cpuTemp >= 70 && cpuTemp <= 97)
{
SendCommand.set_tctl_temp((uint)cpuTemp);
SendCommand.set_apu_skin_temp_limit((uint)cpuTemp);
}
}
catch (Exception ex)
{ {
Logger.WriteLine("UV Error: " + ex.ToString()); Logger.WriteLine("UV Error: " + ex.ToString());
} }

View File

@@ -222,6 +222,12 @@ Ctrl + Shift + F12
------------ ------------
**Libraries / projects used**
- [Linux Kernel](https://github.com/torvalds/linux/blob/master/drivers/platform/x86/asus-wmi.c) for some basic endpoints in ASUS ACPI/WMI interface
- [NvAPIWrapper](https://github.com/falahati/NvAPIWrapper) for accessing Nvidia API
- [Starlight](https://github.com/vddCore/Starlight) for anime matrix communication protocol
- [UXTU](https://github.com/JamesCJ60/Universal-x86-Tuning-Utility) for undervolting using Ryzen System Management Unit
**Disclaimers** **Disclaimers**
"ROG", "TUF", and "Armoury Crate" are trademarked by and belong to AsusTek Computer, Inc. I make no claims to these or any assets belonging to AsusTek Computer and use them purely for informational purposes only. "ROG", "TUF", and "Armoury Crate" are trademarked by and belong to AsusTek Computer, Inc. I make no claims to these or any assets belonging to AsusTek Computer and use them purely for informational purposes only.