mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Merge
This commit is contained in:
1
app/Extra.Designer.cs
generated
1
app/Extra.Designer.cs
generated
@@ -1033,7 +1033,6 @@ namespace GHelper
|
|||||||
checkAutoToggleClamshellMode.TabIndex = 58;
|
checkAutoToggleClamshellMode.TabIndex = 58;
|
||||||
checkAutoToggleClamshellMode.Text = "Auto Toggle Clamshell Mode";
|
checkAutoToggleClamshellMode.Text = "Auto Toggle Clamshell Mode";
|
||||||
checkAutoToggleClamshellMode.UseVisualStyleBackColor = true;
|
checkAutoToggleClamshellMode.UseVisualStyleBackColor = true;
|
||||||
checkAutoToggleClamshellMode.CheckedChanged += checkAutoToggleClamshellMode_CheckedChanged;
|
|
||||||
//
|
//
|
||||||
// checkAutoApplyWindowsPowerMode
|
// checkAutoApplyWindowsPowerMode
|
||||||
//
|
//
|
||||||
|
|||||||
15
app/Extra.cs
15
app/Extra.cs
@@ -229,6 +229,7 @@ namespace GHelper
|
|||||||
|
|
||||||
checkAutoToggleClamshellMode.Visible = clamshellControl.IsExternalDisplayConnected();
|
checkAutoToggleClamshellMode.Visible = clamshellControl.IsExternalDisplayConnected();
|
||||||
checkAutoToggleClamshellMode.Checked = AppConfig.Is("toggle_clamshell_mode");
|
checkAutoToggleClamshellMode.Checked = AppConfig.Is("toggle_clamshell_mode");
|
||||||
|
checkAutoToggleClamshellMode.CheckedChanged += checkAutoToggleClamshellMode_CheckedChanged;
|
||||||
|
|
||||||
checkTopmost.Checked = AppConfig.Is("topmost");
|
checkTopmost.Checked = AppConfig.Is("topmost");
|
||||||
checkTopmost.CheckedChanged += CheckTopmost_CheckedChanged; ;
|
checkTopmost.CheckedChanged += CheckTopmost_CheckedChanged; ;
|
||||||
@@ -487,10 +488,20 @@ namespace GHelper
|
|||||||
AppConfig.Set("auto_apply_power_plan", checkAutoApplyWindowsPowerMode.Checked ? 1 : 0);
|
AppConfig.Set("auto_apply_power_plan", checkAutoApplyWindowsPowerMode.Checked ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkAutoToggleClamshellMode_CheckedChanged(object sender, EventArgs e)
|
private void checkAutoToggleClamshellMode_CheckedChanged(object? sender, EventArgs e)
|
||||||
{
|
{
|
||||||
AppConfig.Set("toggle_clamshell_mode", checkAutoToggleClamshellMode.Checked ? 1 : 0);
|
AppConfig.Set("toggle_clamshell_mode", checkAutoToggleClamshellMode.Checked ? 1 : 0);
|
||||||
clamshellControl.ToggleLidAction();
|
|
||||||
|
if (checkAutoToggleClamshellMode.Checked)
|
||||||
|
{
|
||||||
|
ClamshellModeControl ctrl = new ClamshellModeControl();
|
||||||
|
ctrl.ToggleLidAction();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ClamshellModeControl.DisableClamshellMode();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,24 +39,38 @@ namespace GHelper.Helpers
|
|||||||
return SystemInformation.PowerStatus.PowerLineStatus == PowerLineStatus.Online;
|
return SystemInformation.PowerStatus.PowerLineStatus == PowerLineStatus.Online;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsInClamshellMode()
|
public bool IsClamshellReady()
|
||||||
{
|
{
|
||||||
return IsExternalDisplayConnected() && IsChargerConnected();
|
return IsExternalDisplayConnected() && IsChargerConnected();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ToggleLidAction()
|
public void ToggleLidAction()
|
||||||
{
|
{
|
||||||
if (IsInClamshellMode() && IsClamshellEnabled())
|
if (!IsClamshellEnabled())
|
||||||
{
|
{
|
||||||
PowerNative.SetLidAction(0, true);
|
return;
|
||||||
Logger.WriteLine("Engaging Clamshell Mode");
|
}
|
||||||
|
|
||||||
|
if (IsClamshellReady())
|
||||||
|
{
|
||||||
|
EnableClamshellMode();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PowerNative.SetLidAction(1, true);
|
DisableClamshellMode();
|
||||||
Logger.WriteLine("Disengaging Clamshell Mode");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static void DisableClamshellMode()
|
||||||
|
{
|
||||||
|
PowerNative.SetLidAction(1, true);
|
||||||
|
Logger.WriteLine("Disengaging Clamshell Mode");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void EnableClamshellMode()
|
||||||
|
{
|
||||||
|
PowerNative.SetLidAction(0, true);
|
||||||
|
Logger.WriteLine("Engaging Clamshell Mode");
|
||||||
|
}
|
||||||
|
|
||||||
public void UnregisterDisplayEvents()
|
public void UnregisterDisplayEvents()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -402,7 +402,7 @@
|
|||||||
<value>Nuevas actualizaciones</value>
|
<value>Nuevas actualizaciones</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="NoNewUpdates" xml:space="preserve">
|
<data name="NoNewUpdates" xml:space="preserve">
|
||||||
<value>No hay nuevas actualizaciones</value>
|
<value>No hay actualizaciones</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="OpenGHelper" xml:space="preserve">
|
<data name="OpenGHelper" xml:space="preserve">
|
||||||
<value>Abrir ventana G-Helper</value>
|
<value>Abrir ventana G-Helper</value>
|
||||||
|
|||||||
@@ -208,7 +208,7 @@
|
|||||||
<value>Limite Ricarica Batteria</value>
|
<value>Limite Ricarica Batteria</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BatteryHealth" xml:space="preserve">
|
<data name="BatteryHealth" xml:space="preserve">
|
||||||
<value>Battery Health</value>
|
<value>Salute Batteria</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BiosAndDriverUpdates" xml:space="preserve">
|
<data name="BiosAndDriverUpdates" xml:space="preserve">
|
||||||
<value>Aggiornamenti Driver e BIOS</value>
|
<value>Aggiornamenti Driver e BIOS</value>
|
||||||
@@ -232,7 +232,7 @@
|
|||||||
<value>Colore</value>
|
<value>Colore</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="CPUBoost" xml:space="preserve">
|
<data name="CPUBoost" xml:space="preserve">
|
||||||
<value>CPU Boost</value>
|
<value>Boost CPU</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Custom" xml:space="preserve">
|
<data name="Custom" xml:space="preserve">
|
||||||
<value>Personalizzato</value>
|
<value>Personalizzato</value>
|
||||||
|
|||||||
@@ -208,7 +208,7 @@
|
|||||||
<value>Limit ładowania baterii</value>
|
<value>Limit ładowania baterii</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BatteryHealth" xml:space="preserve">
|
<data name="BatteryHealth" xml:space="preserve">
|
||||||
<value>Battery Health</value>
|
<value>Stan baterii</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BiosAndDriverUpdates" xml:space="preserve">
|
<data name="BiosAndDriverUpdates" xml:space="preserve">
|
||||||
<value>Aktualizacje BIOS i sterowników</value>
|
<value>Aktualizacje BIOS i sterowników</value>
|
||||||
@@ -294,7 +294,7 @@ Nadal chcesz kontynuować?</value>
|
|||||||
<value>Wentylatory i moc</value>
|
<value>Wentylatory i moc</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="FanSpeed" xml:space="preserve">
|
<data name="FanSpeed" xml:space="preserve">
|
||||||
<value>Wentylator</value>
|
<value>Went</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="FansPower" xml:space="preserve">
|
<data name="FansPower" xml:space="preserve">
|
||||||
<value>Dostosuj</value>
|
<value>Dostosuj</value>
|
||||||
|
|||||||
@@ -208,7 +208,7 @@
|
|||||||
<value>Ліміт заряду батареї</value>
|
<value>Ліміт заряду батареї</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BatteryHealth" xml:space="preserve">
|
<data name="BatteryHealth" xml:space="preserve">
|
||||||
<value>Battery Health</value>
|
<value>Стан батареї</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BiosAndDriverUpdates" xml:space="preserve">
|
<data name="BiosAndDriverUpdates" xml:space="preserve">
|
||||||
<value>Оновлення BIOS та драйверів</value>
|
<value>Оновлення BIOS та драйверів</value>
|
||||||
|
|||||||
@@ -208,7 +208,7 @@
|
|||||||
<value>电池充电限制</value>
|
<value>电池充电限制</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BatteryHealth" xml:space="preserve">
|
<data name="BatteryHealth" xml:space="preserve">
|
||||||
<value>Battery Health</value>
|
<value>电池健康</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BiosAndDriverUpdates" xml:space="preserve">
|
<data name="BiosAndDriverUpdates" xml:space="preserve">
|
||||||
<value>BIOS 和驱动程序更新</value>
|
<value>BIOS 和驱动程序更新</value>
|
||||||
@@ -495,7 +495,7 @@
|
|||||||
<value>切换 Aura 模式</value>
|
<value>切换 Aura 模式</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ToggleClamshellMode" xml:space="preserve">
|
<data name="ToggleClamshellMode" xml:space="preserve">
|
||||||
<value>Auto Toggle Clamshell Mode</value>
|
<value>自动启用外接显示器模式</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ToggleFnLock" xml:space="preserve">
|
<data name="ToggleFnLock" xml:space="preserve">
|
||||||
<value>切换 Fn 锁定</value>
|
<value>切换 Fn 锁定</value>
|
||||||
|
|||||||
@@ -208,7 +208,7 @@
|
|||||||
<value>電池充電上限</value>
|
<value>電池充電上限</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BatteryHealth" xml:space="preserve">
|
<data name="BatteryHealth" xml:space="preserve">
|
||||||
<value>Battery Health</value>
|
<value>電池健康度</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BiosAndDriverUpdates" xml:space="preserve">
|
<data name="BiosAndDriverUpdates" xml:space="preserve">
|
||||||
<value>BIOS與驅動程式更新 Updates</value>
|
<value>BIOS與驅動程式更新 Updates</value>
|
||||||
|
|||||||
@@ -125,7 +125,11 @@ You can find them under ``%AppData%\GHelper`` folder. Please include them when p
|
|||||||
Open app, and uncheck and check again "run on startup". If it still doesn't help (by some reason), you can try to manually edit "GHelper" task in windows Task Scheduler, and add couple of seconds delay to start.
|
Open app, and uncheck and check again "run on startup". If it still doesn't help (by some reason), you can try to manually edit "GHelper" task in windows Task Scheduler, and add couple of seconds delay to start.
|
||||||
|
|
||||||
#### How do I uninstall G-helper?
|
#### How do I uninstall G-helper?
|
||||||
G-helper is a single exe, and it doesn't install anything in the system. To remove it - you can simply delete exe :) If you have applied any custom fan profiles or PPTs - before removing I would recommend selecting your favorite performance mode (for example balanced) and clicking "Factory defaults" under Fans + Power.
|
G-helper is a single exe, and it doesn't install anything in the system. To remove it - you can simply delete exe :) If you have applied any custom fan profiles or PPTs - before removing I would recommend selecting your
|
||||||
|
favorite performance mode (for example balanced) and clicking "Factory defaults" under Fans + Power.
|
||||||
|
|
||||||
|
#### Can I undervolt my CPU ?
|
||||||
|
Currently you can undervolt AMD CPUs. If your model supports that - you will see undervolting slider under ``Fans+Power -> Advanced``. If you don't see slider there, it means your CPU doesn't support undervolting. Full list of models that suppor that [can be found here](https://github.com/seerge/g-helper/discussions/736)
|
||||||
|
|
||||||
#### I have G14 2023 and my GPU refuses to disable/enable
|
#### I have G14 2023 and my GPU refuses to disable/enable
|
||||||
It seem to be an issue in older BIOS versions. As [users report](https://github.com/seerge/g-helper/issues/680) - latest BIOS 310 (installable via myasus / g-helper -> updates) resolves all issues :) So please update.
|
It seem to be an issue in older BIOS versions. As [users report](https://github.com/seerge/g-helper/issues/680) - latest BIOS 310 (installable via myasus / g-helper -> updates) resolves all issues :) So please update.
|
||||||
|
|||||||
Reference in New Issue
Block a user