Compare commits

...

31 Commits

Author SHA1 Message Date
seerge
52c6615ebc Merge branch 'main' of https://github.com/seerge/g14-helper 2023-02-14 23:03:08 +01:00
seerge
23405632ad Separate package with ps1 script only 2023-02-14 23:03:02 +01:00
seerge
52e2b8b31c Update README.md 2023-02-14 12:46:46 +01:00
seerge
b25eb63116 Update README.md 2023-02-14 12:21:34 +01:00
seerge
4bfbdd04cb Update README.md 2023-02-14 12:17:41 +01:00
seerge
efe887fbc3 Update README.md 2023-02-14 12:11:15 +01:00
seerge
5919bfd71e Update README.md 2023-02-14 12:07:29 +01:00
seerge
c9e25b6358 Minor tweaks and cleanup 2023-02-14 11:47:17 +01:00
seerge
fb4a0cf3db - 2023-02-14 00:02:17 +01:00
seerge
b534becbf5 = 2023-02-14 00:02:06 +01:00
seerge
99316da55e Added battery charge limit control 2023-02-13 23:30:03 +01:00
seerge
cf92e04501 2023-02-13 19:33:50 +01:00
seerge
39514d89f6 - 2023-02-13 19:31:18 +01:00
seerge
293ab6f35d Workflow adjustments 2023-02-13 19:27:39 +01:00
seerge
f2967fcc79 - 2023-02-13 19:23:29 +01:00
seerge
e060feaf09 Workflow adjustments 2023-02-13 19:19:45 +01:00
seerge
178f61a98d Workflow adjustments 2023-02-13 19:16:20 +01:00
seerge
79b8d6fa14 - 2023-02-13 19:11:49 +01:00
seerge
007f6ef1a3 Minor fixes 2023-02-13 19:07:07 +01:00
seerge
1637f36d1d Minor fixes 2023-02-13 19:05:48 +01:00
seerge
0f3f54c50a Merge branch 'main' of https://github.com/seerge/g14-helper 2023-02-13 19:02:17 +01:00
seerge
aff667345d Minor fixes 2023-02-13 19:02:10 +01:00
seerge
b14ee181f9 Create main.yml 2023-02-13 19:01:31 +01:00
seerge
f48c7c388a Added Run on Startup option 2023-02-13 13:09:53 +01:00
seerge
2c79abc976 Merge branch 'main' of https://github.com/seerge/g14-helper 2023-02-12 21:52:12 +01:00
seerge
57e3cc418a Last minute fix 2023-02-12 21:52:08 +01:00
seerge
8dfd9fb6fc Update README.md 2023-02-12 21:36:20 +01:00
seerge
d21c4f8719 Update README.md 2023-02-12 21:31:29 +01:00
Serge
ef7a3d4431 Readme update 2023-02-12 21:25:23 +01:00
Serge
3f4b98d8d5 Updated screenshot and readme 2023-02-12 21:18:36 +01:00
Serge
04a7d845af Performance mode switching 2023-02-12 21:12:02 +01:00
19 changed files with 538 additions and 154 deletions

33
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Main
on:
push:
tags:
- "v*.*"
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
mkdir release
cp *.cmd ./release
cp *.lnk ./release
cp ghelper.ps1 ./release
zip -r g14-helper-script.zip ./release
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
g14-helper-script.zip
g14-helper.exe

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
log.txt

15
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "PowerShell: Launch Script",
"type": "PowerShell",
"request": "launch",
"script": "powershell \"${workspaceFolder}/ghelper-compile.ps1\"",
"args": []
}
]
}

BIN
G14-Helper.lnk Normal file

Binary file not shown.

View File

@@ -1,13 +1,54 @@
# G14-helper
# G14-Helper
Designed for Asus Zephyrus G14 2022 (with AMD Radeon iGPU and dGPU). But could potentially work for G14 of 2021 and 2020.
Designed for Asus Zephyrus G14 2022 (with AMD Radeon iGPU and dGPU). But could and should potentially work for G14 of 2021 and 2020, G15, X FLOW, and other ROG models.
A small windows system tray utility that allows you to switch between 3 main GPU modes (mirroring ones from ASUS Armory Crate). Uses proprietary ASUS WMI commands to do switching. Therefore requires Administrator priveledges on Windows to run.
A tiny system tray utility that allows you set performance and GPU profiles for your laptop. Same as ASUS Armory Crate does but without it completely!.
![Screenshot](https://github.com/seerge/g14-helper/blob/main/g14-gpu.png)
## Performance Profile switching
Profiles are **same** as in Armory Crate, including default fan curves
1. Silent (minimal or no fans, 45W PPT to CPU)
2. Balanced (balanced fans, up to 45W PPT to CPU)
3. Turbo (intense fans, 125W PPT total, up to 80W PPT to CPU)
## GPU Mode switching
1. Eco mode : only low power iGPU (Radeon 680u) enabled, iGPU drives built in display
2. Standard mode (Windows Hybrid) : iGPU and dGPU (Radeon 6700s/6800s) enabled, iGPU drives built in display
3. Ultimate mode: iGPU and dGPU enabled, but dGPU drives built in display
## Extras
1. **Maximum battery charge rate** limit (60% / 80% / 100%) to preserve your battery
2. CPU and GPU relative fan speed monitoring
3. Laptop screen refresh adjustments for power saving (60hz) and gaming (120hz)
4. Laptop screen panel overdrive switch
5. Start with windows (optional)
## How to install
1. Download latest release from https://github.com/seerge/g14-helper/releases
2. Unzip to a folder of your choice
3. Run **g14-helper.exe**
_App is written in Powershell and wrapped into executable with https://github.com/MScholtes/PS2EXE .
If you don't trust exe - you can always run ghelper.ps1 script by yourself directly._
Note: Uses low level ASUS WMI commands to do switching and doens't require Armory Crate to be isntalled at all.
Therefore requires Administrator priveledges on Windows to run.
![Screenshot](https://github.com/seerge/g14-helper/blob/main/g14-helper.png)
Settings and basic log are located in APPDATA\LOCAL
P.S.: It's not recommended to use app in combination with Armory Crate, cause they adjust same settings.
Please keep in mind, that if you also run MyASUS app periodically it will also try to adjust same battery charge settings
--------
![Ultimate Mode](https://github.com/seerge/g14-helper/blob/main/ultimate.png)

13
events.ps1 Normal file
View File

@@ -0,0 +1,13 @@
Get-EventSubscriber | Unregister-Event
$ProcessAsusWmiEvent = {
$event_id = $Event.SourceEventArgs.NewEvent.EventID
Write-Host $event_id
}
Register-CimIndicationEvent -Namespace root\wmi -query "Select * From AsusAtkWmiEvent" ` -sourceIdentifier "GHAsus" ` -action $ProcessAsusWmiEvent
while (1) {
}

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

1
g14-helper.cmd Normal file
View File

@@ -0,0 +1 @@
powershell -WindowStyle hidden -file ghelper.ps1

BIN
g14-helper.exe Normal file

Binary file not shown.

BIN
g14-helper.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

1
ghelper-compile.ps1 Normal file
View File

@@ -0,0 +1 @@
ps2exe .\ghelper.ps1 g14-helper.exe -title 'G14 Helper' -DPIAware -winFormsDPIAware -requireAdmin -iconFile 'standard.ico' -noConsole -copyright 'G14 Helper Tool' -noOutput

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
ps2exe .\gpu.ps1 g14-gpu.exe -title 'G14 GPU Mode' -DPIAware -winFormsDPIAware -requireAdmin -iconFile 'standard.ico' -noConsole -copyright 'G14 GPU Mode'
.\g14-gpu.exe

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 885 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 B