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;
}
if (wakeUp && AppConfig.ContainsModel("401")) device.WakeUp();
if (wakeUp) device.WakeUp();
if (brightness == 0 || (auto && SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online))
{

View File

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

View File

@@ -15,7 +15,7 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<AssemblyVersion>0.152</AssemblyVersion>
<AssemblyVersion>0.153</AssemblyVersion>
</PropertyGroup>
<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
// Pressing the ghelper button again will hide the app
if (checkForFocus && !settingsForm.HasAnyFocus(trayClick))
if (checkForFocus && !settingsForm.HasAnyFocus(trayClick) && !AppConfig.Is("topmost"))
{
settingsForm.ShowAll();
}

View File

@@ -145,7 +145,7 @@
<value>¿Reiniciar ahora?</value>
</data>
<data name="AllyController" xml:space="preserve">
<value>Ally Controller</value>
<value>Mando Ally</value>
</data>
<data name="AnimationSpeed" xml:space="preserve">
<value>Velocidad</value>
@@ -274,13 +274,13 @@
<value>Cargar una vez al 100%</value>
</data>
<data name="Binding" xml:space="preserve">
<value>Binding</value>
<value>Emparejado</value>
</data>
<data name="BindingPrimary" xml:space="preserve">
<value>Primary</value>
<value>Primario</value>
</data>
<data name="BindingSecondary" xml:space="preserve">
<value>Secondary</value>
<value>Secundario</value>
</data>
<data name="BiosAndDriverUpdates" xml:space="preserve">
<value>Actualizaciones de BIOS y Drivers</value>
@@ -310,10 +310,10 @@
<value>Color</value>
</data>
<data name="Contrast" xml:space="preserve">
<value>Contrast</value>
<value>Contraste</value>
</data>
<data name="Controller" xml:space="preserve">
<value>Controller</value>
<value>Mando</value>
</data>
<data name="CPUBoost" xml:space="preserve">
<value>CPU Boost</value>
@@ -328,7 +328,7 @@
<value>Por defecto</value>
</data>
<data name="DisableController" xml:space="preserve">
<value>Disable Controller</value>
<value>Deshabilitar mando</value>
</data>
<data name="DisableOverdrive" xml:space="preserve">
<value>Desactivar Overdrive</value>
@@ -349,7 +349,7 @@
<value>Eco</value>
</data>
<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 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.
@@ -363,7 +363,7 @@
<value>Ajustes de energía</value>
</data>
<data name="Export" xml:space="preserve">
<value>Export Profile</value>
<value>Exportar perfil</value>
</data>
<data name="Extra" xml:space="preserve">
<value>Adicional</value>
@@ -438,10 +438,10 @@
<value>Alto</value>
</data>
<data name="ImageRotation" xml:space="preserve">
<value>Image Rotation</value>
<value>Rotación de imagen</value>
</data>
<data name="Import" xml:space="preserve">
<value>Import Profile</value>
<value>Importar perfil</value>
</data>
<data name="KeyBindings" xml:space="preserve">
<value>Atajos de teclado</value>
@@ -477,10 +477,10 @@
<value>Bajo</value>
</data>
<data name="LSDeadzones" xml:space="preserve">
<value>Left Stick Deadzones</value>
<value>Punto muerto stick izquierdo</value>
</data>
<data name="LTDeadzones" xml:space="preserve">
<value>Left Trigger Deadzones</value>
<value>Punto muerto gatillo izquierdo</value>
</data>
<data name="MatrixAudio" xml:space="preserve">
<value>Visualizador de audio</value>
@@ -531,7 +531,7 @@
<value>Respuesta del botón</value>
</data>
<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 name="MouseLiftOffDistance" xml:space="preserve">
<value>Distancia de despegue (LOD)</value>
@@ -618,7 +618,7 @@
<value>Quitar</value>
</data>
<data name="Reset" xml:space="preserve">
<value>Reset</value>
<value>Reiniciar</value>
</data>
<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>
@@ -627,16 +627,16 @@
<value>RPM</value>
</data>
<data name="RSDeadzones" xml:space="preserve">
<value>Right Stick Deadzones</value>
<value>Punto muerto stick derecho</value>
</data>
<data name="RTDeadzones" xml:space="preserve">
<value>Right Trigger Deadzones</value>
<value>Punto muerto gatillo derecho</value>
</data>
<data name="RunOnStartup" xml:space="preserve">
<value>Ejecutar al inicio</value>
</data>
<data name="ScalingQuality" xml:space="preserve">
<value>Scaling Quality</value>
<value>Calidad del escalado</value>
</data>
<data name="ScreenPadDown" xml:space="preserve">
<value>Bajar brillo ScreenPad</value>
@@ -717,7 +717,7 @@
<value>Versión</value>
</data>
<data name="VibrationStrength" xml:space="preserve">
<value>Vibration Strength</value>
<value>Intensidad de vibración</value>
</data>
<data name="VolumeDown" xml:space="preserve">
<value>Bajar volumen</value>

View File

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