mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Merge branch 'main' of https://github.com/seerge/g-helper
This commit is contained in:
@@ -147,11 +147,6 @@ namespace GHelper.Input
|
||||
|
||||
}
|
||||
|
||||
static bool IsManualBrightness()
|
||||
{
|
||||
return AppConfig.ContainsModel("505") || AppConfig.ContainsModel("705");
|
||||
}
|
||||
|
||||
public static bool NoMKeys()
|
||||
{
|
||||
return AppConfig.ContainsModel("Z13") ||
|
||||
@@ -162,18 +157,23 @@ namespace GHelper.Input
|
||||
AppConfig.ContainsModel("FX505");
|
||||
}
|
||||
|
||||
static void BrightnessUp()
|
||||
static bool SwappedBrightness()
|
||||
{
|
||||
if (IsManualBrightness()) Program.toast.RunToast(ScreenBrightness.Adjust(+10) + "%", ToastIcon.BrightnessUp);
|
||||
if (AppConfig.ContainsModel("FX506LU")) HandleOptimizationEvent(16);
|
||||
else HandleOptimizationEvent(32);
|
||||
return (AppConfig.ContainsModel("FA506IH") || AppConfig.ContainsModel("FX506LU"));
|
||||
}
|
||||
|
||||
static void BrightnessDown()
|
||||
static void SetBrightness(int delta)
|
||||
{
|
||||
if (IsManualBrightness()) Program.toast.RunToast(ScreenBrightness.Adjust(-10) + "%", ToastIcon.BrightnessDown);
|
||||
if (AppConfig.ContainsModel("FX506LU")) HandleOptimizationEvent(32);
|
||||
var brightness = ScreenBrightness.Get();
|
||||
|
||||
if (delta > 0 || SwappedBrightness()) HandleOptimizationEvent(32);
|
||||
else HandleOptimizationEvent(16);
|
||||
|
||||
if (!AppConfig.ContainsModel("TUF")) return;
|
||||
|
||||
Thread.Sleep(100);
|
||||
if (brightness == ScreenBrightness.Get())
|
||||
Program.toast.RunToast(ScreenBrightness.Adjust(delta) + "%", (delta < 0 ) ? ToastIcon.BrightnessDown : ToastIcon.BrightnessUp);
|
||||
}
|
||||
|
||||
public void KeyPressed(object sender, KeyPressedEventArgs e)
|
||||
@@ -247,10 +247,10 @@ namespace GHelper.Input
|
||||
KeyboardHook.KeyPress(Keys.Snapshot);
|
||||
break;
|
||||
case Keys.F7:
|
||||
BrightnessDown();
|
||||
SetBrightness(-10);
|
||||
break;
|
||||
case Keys.F8:
|
||||
BrightnessUp();
|
||||
SetBrightness(+10);
|
||||
break;
|
||||
case Keys.F9:
|
||||
KeyboardHook.KeyWinPress(Keys.P);
|
||||
@@ -287,11 +287,11 @@ namespace GHelper.Input
|
||||
{
|
||||
case Keys.VolumeDown:
|
||||
// Screen brightness down on CTRL+VolDown
|
||||
BrightnessDown();
|
||||
SetBrightness(-10);
|
||||
break;
|
||||
case Keys.VolumeUp:
|
||||
// Screen brightness up on CTRL+VolUp
|
||||
BrightnessUp();
|
||||
SetBrightness(+10);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -371,10 +371,10 @@ namespace GHelper.Input
|
||||
Program.toast.RunToast(muteStatus ? "Muted" : "Unmuted", muteStatus ? ToastIcon.MicrophoneMute : ToastIcon.Microphone);
|
||||
break;
|
||||
case "brightness_up":
|
||||
BrightnessUp();
|
||||
SetBrightness(+10);
|
||||
break;
|
||||
case "brightness_down":
|
||||
BrightnessDown();
|
||||
SetBrightness(-10);
|
||||
break;
|
||||
case "screenpad_up":
|
||||
SetScreenpad(10);
|
||||
|
||||
@@ -20,10 +20,11 @@ Lightweight Armoury Crate alternative for Asus laptops. A small utility that all
|
||||
|
||||
# [:floppy_disk: Download G-Helper App](https://github.com/seerge/g-helper/releases/latest/download/GHelper.zip)
|
||||
|
||||
If you like this app, please [star :star: it on Github](https://github.com/seerge/g-helper) and spread a word about it!
|
||||
- Don't forget to read [:question: FAQ ](#question-faq)
|
||||
- If you like this app, please [star :star: it on Github](https://github.com/seerge/g-helper) and spread a word about it!
|
||||
|
||||
#### Support project in [:euro: EUR](https://www.paypal.com/donate/?hosted_button_id=4HMSHS4EBQWTA) | [💵 USD](https://www.paypal.com/donate/?hosted_button_id=SRM6QUX6ACXDY) | [:credit_card: Stripe](https://buy.stripe.com/00gaFJ9Lf79v7WobII)
|
||||
|
||||
_If you post about the app - please include a link. Thanks._
|
||||
|
||||

|
||||
|
||||
@@ -45,10 +46,10 @@ _If you post about the app - please include a link. Thanks._
|
||||

|
||||
|
||||
### :gear: Automatic switching when on battery or plugged in
|
||||
- Performance modes (app remembers last mode used on battery or when plugged)
|
||||
- App remembers last Mode used on battery or when plugged
|
||||
- Optimized GPU mode - disables dGPU on battery and enables when plugged
|
||||
- Auto Screen refresh rate (60hz on battery, 120+ hz when plugged)
|
||||
- Keyboard backlight can be turned off on battery
|
||||
- Auto Screen refresh rate (60hz on battery, max hz when plugged)
|
||||
- Keyboard backlight timeout on battery or when plugged
|
||||
|
||||
To keep auto switching and hotkeys working the app needs to stay running in the tray. It doesn't consume any resources.
|
||||
|
||||
@@ -56,20 +57,20 @@ To keep auto switching and hotkeys working the app needs to stay running in the
|
||||
|
||||
Modes are **same** as in Armoury Crate as they are stored in bios including default fan curves
|
||||
|
||||
1. Silent (minimal or no fans, 70W PPT total, up to 45W PPT to CPU) + Best power efficiency setting in windows
|
||||
2. Balanced (balanced fans, 100W PPT total, up to 45W PPT to CPU) + Balanced setting in windows
|
||||
3. Turbo (intense fans, 125W PPT total, up to 80W PPT to CPU) + Best performance setting in windows
|
||||
1. **Silent** (minimal or no fans, 70W PPT total, up to 45W PPT to CPU) + Best power efficiency setting in windows
|
||||
2. **Balanced** (balanced fans, 100W PPT total, up to 45W PPT to CPU) + Balanced setting in windows
|
||||
3. **Turbo** (intense fans, 125W PPT total, up to 80W PPT to CPU) + Best performance setting in windows
|
||||
|
||||
_PPTs are shown for G14 2022, for other models PPTs will be different as they are set in bios._
|
||||
|
||||
### :video_game: GPU Modes
|
||||
|
||||
1. Eco mode : only low power integrated GPU enabled, iGPU drives built in display
|
||||
2. Standard mode (MS Hybrid) : iGPU and dGPU enabled, iGPU drives built in display
|
||||
3. Ultimate mode: iGPU and dGPU enabled, but dGPU drives built in display (supported only on G14 2022 model)
|
||||
4. Optimized: disables dGPU on battery (Eco) and enables when plugged (Standard)
|
||||
1. **Eco** : only low power integrated GPU enabled, iGPU drives built in display
|
||||
2. **Standard** (MS Hybrid) : iGPU and dGPU enabled, iGPU drives built in display
|
||||
3. **Ultimate**: iGPU and dGPU enabled, but dGPU drives built in display (supported on 2022+ models)
|
||||
4. **Optimized**: disables dGPU on battery (Eco) and enables when plugged (Standard)
|
||||
|
||||

|
||||

|
||||
|
||||
## :question: FAQ
|
||||
|
||||
|
||||
Reference in New Issue
Block a user