Compare commits

..

9 Commits

Author SHA1 Message Date
Serge
103c65a43d Custom fan curves fix for GA503.317 https://github.com/seerge/g-helper/issues/2049 2024-02-09 22:15:25 +01:00
Serge
d19ff265ab Version bump 2024-02-09 21:52:56 +01:00
Serge
5d71a40987 Merge branch 'main' of https://github.com/seerge/g-helper 2024-02-09 21:52:06 +01:00
Serge
9b33a43b49 Swapped fans workaround for GA503.317 2024-02-09 21:52:03 +01:00
Serge
df5bcbc376 New translations strings.resx (Spanish) (#2048) 2024-02-09 21:21:09 +01:00
Serge
71b74801ba New translations strings.resx (Spanish) (#2047) 2024-02-09 20:10:00 +01:00
Serge
6bab2fc9cb Anime Matrix hibernate wake-up tweaks 2024-02-09 15:49:09 +01:00
Serge
428b624ec6 Anime Matrix hibernate wake-up tweak 2024-02-09 15:48:24 +01:00
Serge
af001b056a UI Fixes 2024-02-07 21:22:12 +01:00
8 changed files with 46 additions and 23 deletions

View File

@@ -80,7 +80,7 @@ namespace GHelper.AnimeMatrix
return; return;
} }
if (wakeUp && AppConfig.ContainsModel("401")) device.WakeUp(); if (wakeUp) device.WakeUp();
if (brightness == 0 || (auto && SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online)) if (brightness == 0 || (auto && SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online))
{ {

View File

@@ -37,6 +37,9 @@ namespace GHelper.AnimeMatrix.Communication.Platform
HidDevice = DeviceList.Local HidDevice = DeviceList.Local
.GetHidDevices(vendorId, productId) .GetHidDevices(vendorId, productId)
.First(x => x.GetMaxFeatureReportLength() == maxFeatureReportLength); .First(x => x.GetMaxFeatureReportLength() == maxFeatureReportLength);
Logger.WriteLine("Matrix Device: " + HidDevice.DevicePath);
} }
catch catch
{ {

View File

@@ -465,6 +465,21 @@ public static class AppConfig
} }
} }
public static bool IsSwappedFans()
{
if (!ContainsModel("GA503R")) return false;
try
{
var (bios, model) = GetBiosAndModel();
return (Int32.Parse(bios) == 317);
}
catch
{
return false;
}
}
public static bool IsFanRequired() public static bool IsFanRequired()
{ {
return ContainsModel("GA402X") || ContainsModel("G513") || ContainsModel("G713R") || ContainsModel("G713P"); return ContainsModel("GA402X") || ContainsModel("G513") || ContainsModel("G713R") || ContainsModel("G713P");

View File

@@ -477,7 +477,11 @@ public class AsusACPI
if (fanScale != 100 && device == AsusFan.CPU) Logger.WriteLine("Custom fan scale: " + fanScale); if (fanScale != 100 && device == AsusFan.CPU) Logger.WriteLine("Custom fan scale: " + fanScale);
// it seems to be a bug, when some old model's bios can go nuts if fan is set to 100% if (AppConfig.IsSwappedFans())
{
device = (device == AsusFan.CPU) ? AsusFan.GPU : AsusFan.CPU;
Logger.WriteLine("Swapped fan fix");
}
for (int i = 8; i < curve.Length; i++) curve[i] = (byte)(Math.Max((byte)0, Math.Min((byte)100, curve[i])) * fanScale / 100); for (int i = 8; i < curve.Length; i++) curve[i] = (byte)(Math.Max((byte)0, Math.Min((byte)100, curve[i])) * fanScale / 100);

View File

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

View File

@@ -266,7 +266,7 @@ namespace GHelper
{ {
// If helper window is not on top, this just focuses on the app again // If helper window is not on top, this just focuses on the app again
// Pressing the ghelper button again will hide the app // Pressing the ghelper button again will hide the app
if (checkForFocus && !settingsForm.HasAnyFocus(trayClick)) if (checkForFocus && !settingsForm.HasAnyFocus(trayClick) && !AppConfig.Is("topmost"))
{ {
settingsForm.ShowAll(); settingsForm.ShowAll();
} }

View File

@@ -145,7 +145,7 @@
<value>¿Reiniciar ahora?</value> <value>¿Reiniciar ahora?</value>
</data> </data>
<data name="AllyController" xml:space="preserve"> <data name="AllyController" xml:space="preserve">
<value>Ally Controller</value> <value>Mando Ally</value>
</data> </data>
<data name="AnimationSpeed" xml:space="preserve"> <data name="AnimationSpeed" xml:space="preserve">
<value>Velocidad</value> <value>Velocidad</value>
@@ -274,13 +274,13 @@
<value>Cargar una vez al 100%</value> <value>Cargar una vez al 100%</value>
</data> </data>
<data name="Binding" xml:space="preserve"> <data name="Binding" xml:space="preserve">
<value>Binding</value> <value>Emparejado</value>
</data> </data>
<data name="BindingPrimary" xml:space="preserve"> <data name="BindingPrimary" xml:space="preserve">
<value>Primary</value> <value>Primario</value>
</data> </data>
<data name="BindingSecondary" xml:space="preserve"> <data name="BindingSecondary" xml:space="preserve">
<value>Secondary</value> <value>Secundario</value>
</data> </data>
<data name="BiosAndDriverUpdates" xml:space="preserve"> <data name="BiosAndDriverUpdates" xml:space="preserve">
<value>Actualizaciones de BIOS y Drivers</value> <value>Actualizaciones de BIOS y Drivers</value>
@@ -310,10 +310,10 @@
<value>Color</value> <value>Color</value>
</data> </data>
<data name="Contrast" xml:space="preserve"> <data name="Contrast" xml:space="preserve">
<value>Contrast</value> <value>Contraste</value>
</data> </data>
<data name="Controller" xml:space="preserve"> <data name="Controller" xml:space="preserve">
<value>Controller</value> <value>Mando</value>
</data> </data>
<data name="CPUBoost" xml:space="preserve"> <data name="CPUBoost" xml:space="preserve">
<value>CPU Boost</value> <value>CPU Boost</value>
@@ -328,7 +328,7 @@
<value>Por defecto</value> <value>Por defecto</value>
</data> </data>
<data name="DisableController" xml:space="preserve"> <data name="DisableController" xml:space="preserve">
<value>Disable Controller</value> <value>Deshabilitar mando</value>
</data> </data>
<data name="DisableOverdrive" xml:space="preserve"> <data name="DisableOverdrive" xml:space="preserve">
<value>Desactivar Overdrive</value> <value>Desactivar Overdrive</value>
@@ -349,7 +349,7 @@
<value>Eco</value> <value>Eco</value>
</data> </data>
<data name="EnableGPUOnShutdown" xml:space="preserve"> <data name="EnableGPUOnShutdown" xml:space="preserve">
<value>Enable GPU on shutdown (prevents issue with Eco mode)</value> <value>Habilitar GPU al apagar (evita problemas con el modo Eco)</value>
</data> </data>
<data name="EnableOptimusText" xml:space="preserve"> <data name="EnableOptimusText" xml:space="preserve">
<value>Deshabilitar la dGPU cambiando a modo Eco mientras el Modo de Pantalla en el Panel de Control de NVIDIA no está configurado en Optimus puede causar problemas con el control del brillo hasta después del próximo reinicio. <value>Deshabilitar la dGPU cambiando a modo Eco mientras el Modo de Pantalla en el Panel de Control de NVIDIA no está configurado en Optimus puede causar problemas con el control del brillo hasta después del próximo reinicio.
@@ -363,7 +363,7 @@
<value>Ajustes de energía</value> <value>Ajustes de energía</value>
</data> </data>
<data name="Export" xml:space="preserve"> <data name="Export" xml:space="preserve">
<value>Export Profile</value> <value>Exportar perfil</value>
</data> </data>
<data name="Extra" xml:space="preserve"> <data name="Extra" xml:space="preserve">
<value>Adicional</value> <value>Adicional</value>
@@ -438,10 +438,10 @@
<value>Alto</value> <value>Alto</value>
</data> </data>
<data name="ImageRotation" xml:space="preserve"> <data name="ImageRotation" xml:space="preserve">
<value>Image Rotation</value> <value>Rotación de imagen</value>
</data> </data>
<data name="Import" xml:space="preserve"> <data name="Import" xml:space="preserve">
<value>Import Profile</value> <value>Importar perfil</value>
</data> </data>
<data name="KeyBindings" xml:space="preserve"> <data name="KeyBindings" xml:space="preserve">
<value>Atajos de teclado</value> <value>Atajos de teclado</value>
@@ -477,10 +477,10 @@
<value>Bajo</value> <value>Bajo</value>
</data> </data>
<data name="LSDeadzones" xml:space="preserve"> <data name="LSDeadzones" xml:space="preserve">
<value>Left Stick Deadzones</value> <value>Punto muerto stick izquierdo</value>
</data> </data>
<data name="LTDeadzones" xml:space="preserve"> <data name="LTDeadzones" xml:space="preserve">
<value>Left Trigger Deadzones</value> <value>Punto muerto gatillo izquierdo</value>
</data> </data>
<data name="MatrixAudio" xml:space="preserve"> <data name="MatrixAudio" xml:space="preserve">
<value>Visualizador de audio</value> <value>Visualizador de audio</value>
@@ -531,7 +531,7 @@
<value>Respuesta del botón</value> <value>Respuesta del botón</value>
</data> </data>
<data name="MouseImportFailed" xml:space="preserve"> <data name="MouseImportFailed" xml:space="preserve">
<value>Import failed. Selected file is not a valid mouse profile or corrutpted.</value> <value>Importación fallida. El archivo seleccionado no es un perfil válido o está corrupto.</value>
</data> </data>
<data name="MouseLiftOffDistance" xml:space="preserve"> <data name="MouseLiftOffDistance" xml:space="preserve">
<value>Distancia de despegue (LOD)</value> <value>Distancia de despegue (LOD)</value>
@@ -618,7 +618,7 @@
<value>Quitar</value> <value>Quitar</value>
</data> </data>
<data name="Reset" xml:space="preserve"> <data name="Reset" xml:space="preserve">
<value>Reset</value> <value>Reiniciar</value>
</data> </data>
<data name="RestartGPU" xml:space="preserve"> <data name="RestartGPU" xml:space="preserve">
<value>Algo está usando la dGPU e impide el modo Eco. ¿Reiniciar dGPU en el administrador de dispositivos? (Proceda bajo su propio riesgo)</value> <value>Algo está usando la dGPU e impide el modo Eco. ¿Reiniciar dGPU en el administrador de dispositivos? (Proceda bajo su propio riesgo)</value>
@@ -627,16 +627,16 @@
<value>RPM</value> <value>RPM</value>
</data> </data>
<data name="RSDeadzones" xml:space="preserve"> <data name="RSDeadzones" xml:space="preserve">
<value>Right Stick Deadzones</value> <value>Punto muerto stick derecho</value>
</data> </data>
<data name="RTDeadzones" xml:space="preserve"> <data name="RTDeadzones" xml:space="preserve">
<value>Right Trigger Deadzones</value> <value>Punto muerto gatillo derecho</value>
</data> </data>
<data name="RunOnStartup" xml:space="preserve"> <data name="RunOnStartup" xml:space="preserve">
<value>Ejecutar al inicio</value> <value>Ejecutar al inicio</value>
</data> </data>
<data name="ScalingQuality" xml:space="preserve"> <data name="ScalingQuality" xml:space="preserve">
<value>Scaling Quality</value> <value>Calidad del escalado</value>
</data> </data>
<data name="ScreenPadDown" xml:space="preserve"> <data name="ScreenPadDown" xml:space="preserve">
<value>Bajar brillo ScreenPad</value> <value>Bajar brillo ScreenPad</value>
@@ -717,7 +717,7 @@
<value>Versión</value> <value>Versión</value>
</data> </data>
<data name="VibrationStrength" xml:space="preserve"> <data name="VibrationStrength" xml:space="preserve">
<value>Vibration Strength</value> <value>Intensidad de vibración</value>
</data> </data>
<data name="VolumeDown" xml:space="preserve"> <data name="VolumeDown" xml:space="preserve">
<value>Bajar volumen</value> <value>Bajar volumen</value>

View File

@@ -34,6 +34,7 @@ namespace GHelper.UI
{ {
var parms = base.CreateParams; var parms = base.CreateParams;
parms.Style &= ~0x02000000; // Turn off WS_CLIPCHILDREN parms.Style &= ~0x02000000; // Turn off WS_CLIPCHILDREN
parms.ClassStyle &= ~0x00020000;
return parms; return parms;
} }
} }