From 730ba0a2f99102e4a03ce4fd5e46abf88d3d2575 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Thu, 27 Apr 2023 10:14:13 +0200 Subject: [PATCH] Matrix logging --- app/Fans.Designer.cs | 1 + app/GHelper.sln | 4 ++-- app/Keyboard.Designer.cs | 6 +++--- app/Settings.cs | 10 ++++++++++ 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/app/Fans.Designer.cs b/app/Fans.Designer.cs index 0a6e3cf1f..3fec40897 100644 --- a/app/Fans.Designer.cs +++ b/app/Fans.Designer.cs @@ -427,6 +427,7 @@ private void InitializeComponent() labelFansResult.Size = new Size(760, 32); labelFansResult.TabIndex = 41; labelFansResult.TextAlign = ContentAlignment.TopRight; + labelFansResult.Visible = false; // // Fans // diff --git a/app/GHelper.sln b/app/GHelper.sln index dde3e8b50..0b4abb975 100644 --- a/app/GHelper.sln +++ b/app/GHelper.sln @@ -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 diff --git a/app/Keyboard.Designer.cs b/app/Keyboard.Designer.cs index db4674d70..66da7efe2 100644 --- a/app/Keyboard.Designer.cs +++ b/app/Keyboard.Designer.cs @@ -189,11 +189,11 @@ private void InitializeComponent() 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 @@ private void InitializeComponent() // 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; diff --git a/app/Settings.cs b/app/Settings.cs index fd1d58f84..ec80cfd7e 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -417,11 +417,13 @@ void SetMatrixPicture(string fileName) } StartMatrixTimer(); + Logger.WriteLine("Matrix GIF " + fileName); } else { mat.GenerateFrame(image); mat.Present(); + Logger.WriteLine("Matrix " + fileName); } } @@ -499,6 +501,7 @@ public void SetMatrix() if (brightness == 0 || (auto && SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online)) { mat.SetDisplayState(false); + Logger.WriteLine("Matrix Off"); } else { @@ -513,9 +516,11 @@ public void SetMatrix() 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 @@ public void SetPower() customPower = limit_cpu; } + if (Program.wmi.DeviceGet(ASUSWmi.PPT_APUC2) >= 0) + { + Program.wmi.DeviceSet(ASUSWmi.PPT_APUC2, 87, "PowerLimit C2"); + } + Program.settingsForm.BeginInvoke(SetPerformanceLabel); }