Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] GPU Overclock Support #75

Closed
ZimM-LostPolygon opened this issue Mar 13, 2023 · 59 comments
Closed

[Feature Request] GPU Overclock Support #75

ZimM-LostPolygon opened this issue Mar 13, 2023 · 59 comments
Labels
on-hold would like to implement, but can't cause there is no info yet

Comments

@ZimM-LostPolygon
Copy link
Contributor

Pretty much the only major part of Armoury Crate that's missing is being to able overclock the GPU and VRAM when in Manual mode.

@seerge
Copy link
Owner

seerge commented Mar 13, 2023

On G14 2022 it's impossible to overclock GPU or VRAM.

@ZimM-LostPolygon
Copy link
Contributor Author

Oh, really? That sucks... Seems like 2022 model is the outlier here, since 2020, 2021, and 2023 have overclockable Nvidia GPUs

@seerge
Copy link
Owner

seerge commented Mar 13, 2023

Yeah, on 2022 you can only adjust Total PPT and CPU PPT. I have discovered and added endpoints to adjust that :) But I have no idea how armory overclocks GPU on 2021 tho (i.e. via driver or via bios)

@seerge
Copy link
Owner

seerge commented Mar 14, 2023

If you are feeling adventurous there is a separate topic #38 where I have explained how i discovered PPT endpoints in a first place, and how to test them. You can also try, mb you will find ones that actually adjust clocks?

@LJGJM
Copy link

LJGJM commented Mar 20, 2023

If you are feeling adventurous there is a separate topic #38 where I have explained how i discovered PPT endpoints in a first place, and how to test them. You can also try, mb you will find ones that actually adjust clocks?

Try this, https://github.com/JamesCJ60/Universal-x86-Tuning-Utility/releases (get latest stable version) i was able to udervolt my cpu and overclock my gpu (my gpu is nvidia)
image

@ramius86
Copy link

Think my problem is related
Just bought this notebook yesterday G513RW-HQ098W, runned a few bench after full update ( with all asus crapware and so on but still evaluating ) and got a pretty nice score in 3dmark.
Today I made a full clean install with very selective and lightweight driver install and so on and started using your tool ( really appreciated ) but noticed my score is lower even with turbo mode and ultimate mode turned on ( also put PTT to max )
After reviewing the scores a bit I noticed my gpu frequency was lower so I definitelly think there is something in the armory to overclock it a bit.

@seerge
Copy link
Owner

seerge commented Mar 22, 2023

@ramius86 on a side note (next to everything i proposed to do on reddit), can you check if you have latest ASUS System Control Interface https://www.asus.com/support/FAQ/1047338/ . I don't think it's related, but just to be sure.

@ramius86
Copy link

ramius86 commented Mar 22, 2023

@ramius86 on a side note (next to everything i proposed to do on reddit), can you check if you have latest ASUS System Control Interface https://www.asus.com/support/FAQ/1047338/ . I don't think it's related, but just to be sure.

hey, didn't notice you was replying to my thread 👍 just checked into the devices and my version is V3.1.12.0 and seems to be the latest https://imgur.com/a/Ue5z4Uk

@seerge
Copy link
Owner

seerge commented Mar 22, 2023

@ramius86 , ok clear. You have nvidia gpu, and i really don't know if asus stuff applies any "extra" tweaks to it or not. For AMD it doesn't. You can just try to install asus software (with creating a restore point before that to be able to roll back).

Does nvidia control panel allow to overclock gpu somehow?

Also, did you try a cmos reset (with holding power for 30 seconds?), it's generally not related to your case (but helps if wifi hanged for example). But again - who knows.

@ramius86
Copy link

ramius86 commented Mar 22, 2023

Yes, nvidia allow overclock and asus does with armoury
https://www.asus.com/us/support/FAQ/1042378
I've just tried your scan powershell but I've got some issue with copy/paste&format to make it readable, will post results soon in #38

@seerge
Copy link
Owner

seerge commented Mar 22, 2023

@ramius86 Also https://github.com/JamesCJ60/nvidia-overclock seem to do the thing too ? (i can't test it) . And I have answered you in powershell topic

@ramius86
Copy link

Well, I've created a restore point and installed the asus crapware, tried set all values to max levels in the gpu section, run again the scan but no differences at all https://imgur.com/a/cs2ZLAK
Probabily the GPU overclock is only temporary and is applied at every restart by the asus app ( like msi afterburner ) and those values are for something different?

@seerge
Copy link
Owner

seerge commented Mar 23, 2023

@ramius86 the scan will always return same values. Unfortunately this is how the bios responds (i.e. it doesn't even respond current correct performance mode).
But does GPU overclock (from armory) affect real performance numbers ? 3dmark, etc?

@ramius86
Copy link

@seerge yes, GPU overclock affected performance in 3dmark

@seerge
Copy link
Owner

seerge commented Mar 23, 2023

Ok. Strange that nvidia doesn't offer overclocking UI in their own app (nvidia control?) And seems like we need someone with nvidia gpu (and will to extend app) who can test / add overclocking into g-helper :)

@ramius86
Copy link

Yes, at least my "issue" is identified and I can overclock gpu if I want with others tools but I'm still learning the basics of programming ( at the age of 37 ), maybe in some years I will be able to help implement something. Will continue to use your app ( a must ) and try to help where I can. Keep up the good work

@seerge
Copy link
Owner

seerge commented Mar 24, 2023

I came over https://github.com/suppai/nvidia-overclock - that lets you set set GPU / VRAM overclocks (this is the the app that UXTU has under the hood as well btw)

Since I don't even have a laptop with nvidia, can someone try it and see if it works properly ? If so - I may try to "experimentally" incorporate it somewhere in g-helper as well.

@LJGJM
Copy link

LJGJM commented Mar 26, 2023

I came over https://github.com/suppai/nvidia-overclock - that lets you set set GPU / VRAM overclocks (this is the the app that UXTU has under the hood as well btw)

Since I don't even have a laptop with nvidia, can someone try it and see if it works properly ? If so - I may try to "experimentally" incorporate it somewhere in g-helper as well.

Doesnt seem to work, all logs show me this directory which i dont have, C:\Users\serge
but UXTU works fine

@seerge
Copy link
Owner

seerge commented Mar 26, 2023

@LJGJM ok, i have removed zip then. Does MSI afterburner work as overclocking tool for you guys btw ?

@ramius86
Copy link

ramius86 commented Mar 26, 2023

yes afterburner works for overclocking and undervolting too, like a normal desktop card

@LoreAPC
Copy link

LoreAPC commented Mar 28, 2023

Hi, I've got the 2021 rtx3060 model, I can do some tests if needed.

@zeroeightythree
Copy link

Does UXTU override GHelper CPU profiles?

@seerge
Copy link
Owner

seerge commented Mar 29, 2023

@zeroeightythree for CPU ? i think it does

@zeroeightythree
Copy link

@zeroeightythree for CPU ? i think it does

Got it. Looks like I have to stick with your app. Hopefully, GPU OC comes in future updates. Not an expert programmer but your app is just genius.

@seerge
Copy link
Owner

seerge commented Mar 29, 2023

@zeroeightythree just use msi afterburner to overclock nvidia gpu, i think it's almost industry standard :)

@zeroeightythree
Copy link

@zeroeightythree just use msi afterburner to overclock nvidia gpu, i think it's almost industry standard :)

Will do! Thanks for the tip. :)

@EvilKilla
Copy link

EvilKilla commented Mar 29, 2023

it's really embarrassing why you can't underclock or undervolt the GPU on the 2022 model. - or better- a Notebook GPU. Apart from that, I also find it questionable why you had the option of overclocking the cpu since february, even though the cpu is boiling without overclocking.

@seerge seerge added the on-hold would like to implement, but can't cause there is no info yet label Apr 4, 2023
@schm1dtxbox
Copy link

schm1dtxbox commented Apr 8, 2023

I can confirm that using the oc.exe utility included with UXTU works for applying fixed overclocks to my dGPU, which I believe is a compiled version of this utility: https://github.com/JamesCJ60/nvidia-overclock , so maybe that could be used in G-Helper for this feature.
It can also query the current overclock state for the GPU, which I used in conjunction with Armoury Crate to confirm what overclocks it would apply for each performance profile.
On my laptop (the ROG Strix G15 G513QE with an RTX 3050Ti), it would only apply an overclock by default on the Turbo performance profile it includes, where it would apply a 100Mhz core clock increase and a 120Mhz memory/VRAM clock increase.
I assume other ASUS laptops with Nvidia GPUs may behave similarly, but the best way of confirming would be for other users to apply each performance mode available in AC, then check as to what OC is currently applied to the dGPU using the above tool (located in UXTU's bin folder). I suppose if enough data were gathered, in theory that could be used to add similar functionality to G-Helper but IDK how feasible that would even be.

@seerge
Copy link
Owner

seerge commented May 6, 2023

@schm1dtxbox oke, i have added a bit more logging, can you try again?

GHelper.zip

@schm1dtxbox
Copy link

schm1dtxbox commented May 6, 2023

log.txt
Here's the new log, there seems to be an error there about the GPU not being powered on which is curious (for reference, I'm using Nvidia Optimus and don't have a MUX switch, and am not using the Optimized dGPU mode either but the default Standard mode).
To add onto that, forcing G-Helper to run on the dGPU does fix the issue, although that solution wouldn't be 100% optimal given that doing so requires manually adding a Settings entry, and that it can lead to battery drain as a consequence of always keeping the dGPU powered on.

@seerge
Copy link
Owner

seerge commented May 6, 2023

@schm1dtxbox ok, thanks. Strange. One more attempt :
GHelper.zip

Does MSI Afterburner show adjustable clocks for your GPU ?

@schm1dtxbox
Copy link

schm1dtxbox commented May 6, 2023

log.txt
Now the sliders show up consistently without needing to have G-Helper forcibly set to use the dGPU, but trying to actually set clocks using the slider doesn't work, as it keeps resetting the offsets to 0Mhz (or whatever was previously set by other tools) whenever I try changing them, and doesn't seem to set the desired clocks (as seen with the below screenshot where I query OC state using that exe I linked a few posts back). Added a new log above for that, seems to still spit out the same GPU not powered error which is odd.
image

Afterburner did also work as far as setting clocks for my dGPU went btw regarding the latter question.

@seerge
Copy link
Owner

seerge commented May 6, 2023

GHelper.zip
Ok, can you try this build ?

@schm1dtxbox
Copy link

No luck with that build either I'm afraid, same issue as prior.

@seerge
Copy link
Owner

seerge commented May 6, 2023

@schm1dtxbox can you send log from this build ? i have added even more details

GHelper.zip

@schm1dtxbox
Copy link

schm1dtxbox commented May 6, 2023

log.txt
Similar behaviour to before when the app is run as admin to begin with, HOWEVER, when run without admin privileges, attempting to change clocks triggers the admin prompt, and after granting it administrative access, the clock change attempt that triggered the prompt does seem to work, but not subsequent attempts to change clocks.

@seerge
Copy link
Owner

seerge commented May 6, 2023

@schm1dtxbox ok, last attempt for today :
GHelper.zip

@schm1dtxbox
Copy link

Well what can I say, it works perfectly now! Thanks for continuing to work on fixing this up, all that seems to be left now I think would be to apply the OC set in the config on launch of the app (if it's run as admin) and maybe having the startup task run as admin to facilitate this, but those aren't essential or anything.

@seerge
Copy link
Owner

seerge commented May 6, 2023

@schm1dtxbox yeah, the only risk is that overclocking can hang your laptop (i managed to hang my 4070 device by setting memory + 350), and therefore i'm not sure if this is a very good idea to set clock on launch ...

Does Boost / temp limit sliders work for you btw ? (i'm not sure if your device is even supported) ...

@schm1dtxbox
Copy link

schm1dtxbox commented May 6, 2023

Armoury Crate never actually showed the options for Dynamic Boost and Temp Limit for me iirc so I would have no idea if they worked or not, presumably my Strix G15's 3050 Ti would reject/ignore changes to those values (as a reference, it's dynamic boost capability only maxes out at 15W versus other laptop parts that can go up to 25W).
As far as auto-setting OC goes, probably a liability that lies with the user I guess, given that AC would do the same thing and also offer rather foolish options for maximum clock increments (e.g. 300mhz that'd guarantee device lost errors half the time). Could always instead add safe defaults to the performance modes (e.g. 100mhz core OC and 120 memory for Turbo, since that's what AC defaulted to on my system) instead of auto-setting manual OC values.

@seerge
Copy link
Owner

seerge commented May 7, 2023

All changes are now live under https://github.com/seerge/g-helper/releases/tag/v0.58

I decided to wait with auto-apply feature for overclocking for now, as I want to see if it works for people in general or not

@schm1dtxbox
Copy link

No worries, I can say the Task Scheduler task does work as expected and runs G-Helper with the appropriate privileges for setting clocks though which is neat. The boost/temp slider hiding feature added in the latest commits does also seem to work for me which is good to see.

@seerge
Copy link
Owner

seerge commented May 7, 2023

@schm1dtxbox yeah, those sliders will behave same as PPT sliders: app checks if endpoint exists, and only then shows slider.

@marcelomijas
Copy link
Contributor

I have the G14 2020 model which can do clocks offsets (core / memory) on AC. I updated GHelper to v0.58 that adds support for clock offsets on NVIDIA GPUs, but I cannot see the options on my model.

imagen

@seerge
Copy link
Owner

seerge commented May 7, 2023

@marcelomijas can you post log.txt here ?

@marcelomijas
Copy link
Contributor

Here it is :)

07/05/2023 13:18:18: ------------
07/05/2023 13:18:18: App launched: ROG Zephyrus G14 GA401IV_GA401IV :0.58.0.0N
07/05/2023 13:18:19: AutoSetting for Online
07/05/2023 13:18:19: BatteryLimit = 100 : OK
07/05/2023 13:18:19: BatteryLimit = 100 : OK
07/05/2023 13:18:19: PerformanceMode = 0 : OK
07/05/2023 13:18:19: FanCPU = 14-22-3F-44-47-48-50-64-00-00-15-1A-22-2A-33-39 : OK
07/05/2023 13:18:19: FanGPU = 14-23-36-3F-46-4A-4D-64-01-01-0D-17-1E-26-38-3D : OK
07/05/2023 13:18:19: Boost 0
07/05/2023 13:18:19: Eco flag : -65536
07/05/2023 13:18:19: Mux flag : -65536
07/05/2023 13:18:19: Screen = 120Hz : OK
07/05/2023 13:18:19: ScreenOverdrive = 0 : 0
07/05/2023 13:18:19: Monitor Power On
07/05/2023 13:18:21: NVIDIA GeForce RTX 2060 with Max-Q Design
07/05/2023 13:18:21: [TU106-A REVA1] Cores: 1920
07/05/2023 13:18:21: GET GPU Clock offsets : 0, 0

@LoreAPC
Copy link

LoreAPC commented May 7, 2023 via email

@seerge
Copy link
Owner

seerge commented May 7, 2023

GHelper.zip

Try this one

@marcelomijas
Copy link
Contributor

marcelomijas commented May 7, 2023

Now they appear and it is working (both, core and memory clock), I have tested and monitored! Only problem is that I cannot manage to put the slider back to 0, the closest I am to 0 is 1 or -1 (on both sliders).

Maybe right click on the slider could be used for setting the value to 0?

@LoreAPC
Copy link

LoreAPC commented May 7, 2023 via email

@seerge
Copy link
Owner

seerge commented May 7, 2023

@LoreAPC , @marcelomijas
This build should

  1. Allow setting 0 Mhz as value (it was a bug in native win component, i had to round values to 5)
  2. Show sliders after you enable dGPU without restarting app (but you still need to re-open fans + power form of course)

GHelper.zip

P.S. Factory reset is not supposed to reset clocks on this stage :)

@LJGJM
Copy link

LJGJM commented May 7, 2023

Great overclocking support, now only thing thats left is to undervolt the cpu and round values to 5, you coulc use UXTU to help with this

@seerge
Copy link
Owner

seerge commented May 7, 2023

@ramius86 you might be interested in checking latest updates btw, as you have newer model that suffered from not being overclocked. + in your case boost / temp sliders should definetely be supported ;)

@LoreAPC
Copy link

LoreAPC commented May 7, 2023

I confirm now everything works, sliders visible on standard mode and not visible in eco mode without relaunching the program.
Thank you very much for your work! Another thing I noticed is the offsets are not tied to the performance mode, but I suppose at this stage it's premature to talk about that...

@seerge
Copy link
Owner

seerge commented May 7, 2023

@LoreAPC sliders show actual (even set by other app like ac or afterburner) clock offsets, therefore they are not tied to modes

@LoreAPC
Copy link

LoreAPC commented May 7, 2023 via email

@seerge
Copy link
Owner

seerge commented May 7, 2023

@LoreAPC i need to decide on what to do with admin rights then. As by default app still doesn't need them and applying clocks with each mode will require permanent admin rights. It can change in following releases :)

I'm closing this as completed for now (finally). Feel free to create a new tickets if some specific issues will arise.

@seerge seerge closed this as completed May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on-hold would like to implement, but can't cause there is no info yet
Projects
None yet
Development

No branches or pull requests

9 participants