mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5332f9943e | ||
|
|
72258dc979 | ||
|
|
ce878abd62 | ||
|
|
34ab780a0f | ||
|
|
b96a5cbf46 | ||
|
|
9ea536d30f | ||
|
|
21b73108a9 | ||
|
|
4d4667bfd6 | ||
|
|
e1b1b6fd7a | ||
|
|
13be474bb5 | ||
|
|
a577c137d7 | ||
|
|
acbeb6bac2 | ||
|
|
b0ea50dde0 | ||
|
|
f48c7c388a | ||
|
|
2c79abc976 | ||
|
|
57e3cc418a | ||
|
|
8dfd9fb6fc | ||
|
|
d21c4f8719 | ||
|
|
ef7a3d4431 | ||
|
|
3f4b98d8d5 | ||
|
|
04a7d845af |
37
.github/workflows/build.yml
vendored
Normal file
37
.github/workflows/build.yml
vendored
Normal 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
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
log.txt
|
||||
15
.vscode/launch.json
vendored
Normal file
15
.vscode/launch.json
vendored
Normal 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": []
|
||||
}
|
||||
]
|
||||
}
|
||||
21
README.md
21
README.md
@@ -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.
|
||||
|
||||

|
||||

|
||||
|
||||
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.
|
||||
|
||||
--------
|
||||

|
||||
|
||||
19
autostart.ps1
Normal file
19
autostart.ps1
Normal 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
|
||||
|
||||
BIN
g14-gpu.exe
BIN
g14-gpu.exe
Binary file not shown.
BIN
g14-gpu.png
BIN
g14-gpu.png
Binary file not shown.
|
Before Width: | Height: | Size: 134 KiB |
BIN
g14-helper.exe
Normal file
BIN
g14-helper.exe
Normal file
Binary file not shown.
BIN
g14-helper.png
Normal file
BIN
g14-helper.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 316 KiB |
2
ghelper-compile.ps1
Normal file
2
ghelper-compile.ps1
Normal 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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user