Compare commits

...

21 Commits
0.2.1 ... 0.4.2

Author SHA1 Message Date
seerge
5332f9943e Merge branch 'main' of https://github.com/seerge/g14-helper 2023-02-13 17:29:30 +01:00
seerge
72258dc979 - 2023-02-13 17:29:15 +01:00
seerge
ce878abd62 Update build.yml 2023-02-13 17:10:50 +01:00
seerge
34ab780a0f CI 2023-02-13 16:58:20 +01:00
seerge
b96a5cbf46 - 2023-02-13 16:48:24 +01:00
seerge
9ea536d30f Merge branch 'main' of https://github.com/seerge/g14-helper 2023-02-13 16:40:08 +01:00
seerge
21b73108a9 - 2023-02-13 16:39:03 +01:00
seerge
4d4667bfd6 Update build.yml 2023-02-13 16:33:13 +01:00
seerge
e1b1b6fd7a Update build.yml 2023-02-13 16:15:59 +01:00
seerge
13be474bb5 Update build.yml 2023-02-13 16:05:31 +01:00
seerge
a577c137d7 Update build.yml 2023-02-13 15:56:07 +01:00
seerge
acbeb6bac2 Update and rename blank.yml to build.yml 2023-02-13 15:47:25 +01:00
seerge
b0ea50dde0 Create blank.yml 2023-02-13 15:43:01 +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 417 additions and 129 deletions

37
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v3
- name: Build-artifact
uses: actions/upload-artifact@v2
with:
name: "G14-Helper"
path: g14-helper.exe
- name: Release
uses: softprops/action-gh-release@91409e712cf565ce9eff10c87a8d1b11b81757ae
if: startsWith(github.ref, 'refs/tags/')
with:
# Identify if this is a pre release by checking if the tag name contains -rc, -b, -a
prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-b') || contains(github.ref, '-a') }}
files: /*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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)

19
autostart.ps1 Normal file
View File

@@ -0,0 +1,19 @@
$taskName = "G14Helper"
$task = Get-ScheduledTask -TaskName $taskName -ErrorAction SilentlyContinue
if ($task -ne $null)
{
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