NGnius / PowerTools

Moved to
https://git.ngni.us/NG-SD-Plugins/PowerTools
GNU General Public License v3.0
414 stars 29 forks source link

Deck iGPU stuck at low frequency upon waking from sleep when using pt_oc.json custom profile #79

Closed torporsche closed 1 year ago

torporsche commented 1 year ago

Please confirm

Expected Behaviour

The Deck should operate within the frequency range specified by PowerTools for the GPU/CPU when waking the device from sleep mode.

Actual Behaviour

The Deck's GPU/CPU get stuck at 200Mhz/400MHz respectively when resuming from sleep mode. This only occurs when using a custom profile via the pt_oc.json file. The only way to reset the frequencies is to exit the game currently being played or reset the device.

Steps To Reproduce

  1. Create pt_oc.json with custom frequency ranges ( I set the GPU to 2000Mhz Max and the CPU to 3900Mhz Max)
  2. Enable Performance Overlay to view APU frequencies
  3. Start playing a game
  4. Press the power button to put the Deck in sleep mode
  5. Press the power button to wake the Deck

Anything else?

I am using PowerTools v1.20

20230314_093530

powertools.log

Version

Not listed

Platform

Steam Deck

OS

SteamOS 3 (Stable)

NGnius commented 1 year ago

The kernel will reject any values that aren't within defined bounds. If you set values outside of that, they can't be applied. You need to edit the correct clock entry in the bios so that the OC is correctly reported to the kernel. At best it's a kernel bug; not something PowerTools can fix.

Hence the note:

NOTE: since some kernel interfaces only accept the default Steam Deck ranges, changing certain ranges is only a placebo in the UI. The log is your friend to find out when this is happening.