Compare commits

...

11 Commits
0.2.1 ... 0.4.3

Author SHA1 Message Date
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
13 changed files with 405 additions and 129 deletions

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

@@ -0,0 +1,26 @@
name: Main
on:
push:
tags:
- "v*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
mkdir release
cp *.exe ./release
echo ${{ github.sha }} > ./release/Release.txt
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./release/*

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": []
}
]
}

View File

@@ -1,13 +1,26 @@
# 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 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 small windows system tray utility that allows you to switch between 3 main GPU modes (mirroring ones from ASUS Armory Crate). Uses ASUS WMI commands to do switching and doens't require Armory Crate to be isntalled at all. Requires Administrator priveledges on Windows to run.
![Screenshot](https://github.com/seerge/g14-helper/blob/main/g14-gpu.png)
![Screenshot](https://github.com/seerge/g14-helper/blob/main/g14-helper.png)
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
## UPDATE: February 12, 2023
1. Added switching of **Performance profiles (including default fan curves)** is also available! switching happens via same ASUS WMI low level commands. Profiles are same as in Armory Crate - Silent, Balanced and Turbo.
2. App now monitors (once every 3 seconds) fan speeds and shows them in the menu
3. App will save settings and write a basic log of it's actions to APPDATA\LOCAL directory
4. App will reapply Panel Overdrive and Performance mode on each start (based on last setting from config)
Extra: **autostart.ps1** script to schedule autostart of the app (with admin privileges) on every user logon for convenience. Later will be integrated into main app.
--------
![Ultimate Mode](https://github.com/seerge/g14-helper/blob/main/ultimate.png)

18
autostart.ps1 Normal file
View File

@@ -0,0 +1,18 @@
$taskName = "G14Helper"
$task = Get-ScheduledTask -TaskName $taskName -ErrorAction SilentlyContinue
if ($null -ne $task)
{
Unregister-ScheduledTask -TaskName $taskName -Confirm:$false
}
$scriptDir = Split-Path $PSCommandPath -Parent
# TODO: EDIT THIS STUFF AS NEEDED...
$action = New-ScheduledTaskAction -Execute "$scriptDir\g14-helper.exe"
$trigger = New-ScheduledTaskTrigger -AtLogon
$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries
$principal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -RunLevel Highest
$definition = New-ScheduledTask -Action $action -Principal $principal -Trigger $trigger -Settings $settings -Description "Run $($taskName) at Logon"
Register-ScheduledTask -TaskName $taskName -InputObject $definition

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

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

2
ghelper-compile.ps1 Normal file
View File

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

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

449
gpu.ps1

File diff suppressed because one or more lines are too long