Matrix logging

This commit is contained in:
Serge
2023-04-27 10:14:13 +02:00
parent 47deb669d1
commit 730ba0a2f9
4 changed files with 16 additions and 5 deletions

1
app/Fans.Designer.cs generated
View File

@@ -427,6 +427,7 @@ namespace GHelper
labelFansResult.Size = new Size(760, 32);
labelFansResult.TabIndex = 41;
labelFansResult.TextAlign = ContentAlignment.TopRight;
labelFansResult.Visible = false;
//
// Fans
//

View File

@@ -20,8 +20,8 @@ Global
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D6138BB1-8FDB-4835-87EF-2FE41A3DD604}.Debug|Any CPU.ActiveCfg = Debug|x64
{D6138BB1-8FDB-4835-87EF-2FE41A3DD604}.Debug|Any CPU.Build.0 = Debug|x64
{D6138BB1-8FDB-4835-87EF-2FE41A3DD604}.Debug|x64.ActiveCfg = Debug|x64
{D6138BB1-8FDB-4835-87EF-2FE41A3DD604}.Debug|x64.Build.0 = Debug|x64
{D6138BB1-8FDB-4835-87EF-2FE41A3DD604}.Debug|x64.ActiveCfg = Debug|Any CPU
{D6138BB1-8FDB-4835-87EF-2FE41A3DD604}.Debug|x64.Build.0 = Debug|Any CPU
{D6138BB1-8FDB-4835-87EF-2FE41A3DD604}.Release|Any CPU.ActiveCfg = Release|x64
{D6138BB1-8FDB-4835-87EF-2FE41A3DD604}.Release|Any CPU.Build.0 = Release|x64
{D6138BB1-8FDB-4835-87EF-2FE41A3DD604}.Release|x64.ActiveCfg = Release|x64

View File

@@ -189,11 +189,11 @@ namespace GHelper
groupLight.Dock = DockStyle.Top;
groupLight.Location = new Point(10, 252);
groupLight.Name = "groupLight";
groupLight.Size = new Size(840, 390);
groupLight.Size = new Size(840, 395);
groupLight.TabIndex = 1;
groupLight.TabStop = false;
groupLight.Text = Properties.Strings.KeyboardBacklight;
groupLight.AutoSize = true;
//groupLight.AutoSize = true;
//
// labelBrightness
//
@@ -207,7 +207,7 @@ namespace GHelper
//
trackBrightness.Location = new Point(228, 294);
trackBrightness.Name = "trackBrightness";
trackBrightness.Size = new Size(600, 70);
trackBrightness.Size = new Size(600, 30);
trackBrightness.TabIndex = 1;
trackBrightness.Minimum = 0;
trackBrightness.Maximum = 3;

View File

@@ -417,11 +417,13 @@ namespace GHelper
}
StartMatrixTimer();
Logger.WriteLine("Matrix GIF " + fileName);
}
else
{
mat.GenerateFrame(image);
mat.Present();
Logger.WriteLine("Matrix " + fileName);
}
}
@@ -499,6 +501,7 @@ namespace GHelper
if (brightness == 0 || (auto && SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online))
{
mat.SetDisplayState(false);
Logger.WriteLine("Matrix Off");
}
else
{
@@ -513,9 +516,11 @@ namespace GHelper
case 3:
mat.SetBuiltInAnimation(false);
StartMatrixTimer(1000);
Logger.WriteLine("Matrix Clock");
break;
default:
mat.SetBuiltInAnimation(true, animation);
Logger.WriteLine("Matrix builtin "+animation.AsByte);
break;
}
@@ -916,6 +921,11 @@ namespace GHelper
customPower = limit_cpu;
}
if (Program.wmi.DeviceGet(ASUSWmi.PPT_APUC2) >= 0)
{
Program.wmi.DeviceSet(ASUSWmi.PPT_APUC2, 87, "PowerLimit C2");
}
Program.settingsForm.BeginInvoke(SetPerformanceLabel);
}