Noktomezo

Disable GPU Dynamic P-States

Feb 1st, 2025 (edited)
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Winbatch 2.81 KB | Source Code | 0 0
  1. :: ─────────────────────────────────────────────────────────────────────────────
  2. :: 📊 DISABLE GPU DYNAMIC P-STATES
  3. :: ─────────────────────────────────────────────────────────────────────────────
  4. :: 📖 Forces the GPU to run at the highest available frequencies
  5. :: ─────────────────────────────────────────────────────────────────────────────
  6. :: ⚠️ For NVIDIA graphics card owners only
  7. :: ⚠️ RESTART IS REQUIRED
  8. :: ─────────────────────────────────────────────────────────────────────────────
  9. :: ©️ Copy & Paste it to your own .cmd/.bat file
  10. :: ─────────────────────────────────────────────────────────────────────────────
  11.  
  12.  
  13.  
  14. :: 📜 SCRIPT
  15. :: ─────────────────────────────────────────────────────────────────────────────
  16.  
  17. for /f %%i in ('reg query "HKLM\System\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}" /t REG_SZ /s /e /f "NVIDIA" ^| findstr "HKEY"') do (
  18.     reg add "%%i" /v "DisableDynamicPstate" /t REG_DWORD /d "1" /f
  19. )
  20.  
  21. :: ─────────────────────────────────────────────────────────────────────────────
  22.  
  23.  
  24.  
  25. :: 🔁 RESTORE DEFAULT VALUES
  26. :: ─────────────────────────────────────────────────────────────────────────────
  27.  
  28. for /f %%i in ('reg query "HKLM\System\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}" /t REG_SZ /s /e /f "NVIDIA" ^| findstr "HKEY"') do (
  29.     reg delete "%%i" /v "DisableDynamicPstate" /f
  30. )
  31.  
  32. :: ─────────────────────────────────────────────────────────────────────────────
Advertisement
Add Comment
Please, Sign In to add comment