Skip to content

Instantly share code, notes, and snippets.

@okitavera
Created September 13, 2018 13:53
Show Gist options
  • Save okitavera/3273e0f2a8130d3f20e26a5098de191b to your computer and use it in GitHub Desktop.
Save okitavera/3273e0f2a8130d3f20e26a5098de191b to your computer and use it in GitHub Desktop.
Modify Temperature Limit via PowerPlay Table for X550IU
@echo off
NET SESSION >nul 2>&1
IF %ERRORLEVEL% EQU 0 GOTO install_mod
echo Run As Administrator to make this script works.
pause
goto:eof
:install_mod
echo :: Finding the right registry key
reg query HKLM\SYSTEM\CurrentControlSet\Control\Class /F "AMD Radeon (TM) RX 460 Graphics" /s | Find "HKEY" | Findstr /vi "Settings" > %TEMP%\RX460REGKEY.TXT
set /p REGKEY= < %TEMP%\RX460REGKEY.TXT
echo :: Found : %REGKEY%
echo :: Kill Radeon Settings.exe
taskkill /f /im RadeonSettings.exe >nul 2>&1
setlocal enabledelayedexpansion
set "hex=0123456789ABCDEF"
set /p INPUT=Enter a temperature limit in celcius (0-100):
set /a XINPUT=%INPUT% + 1
set /a high=%XINPUT% / 16
set /a low=%XINPUT% %% 16
set PPHEX=!hex:~%high%,1!!hex:~%low%,1!
set PPHEAD=19030701004d0012060000162500001a000000020000029c570200c47a0200000023004d00000097020000c10147018b000501dd01e5020000a002d502ff0200000000000000000000000000000103000000000000000008000000000000000000000007000100000000000500004000000000000000000100010000000000010000000000000000000000000fee02000000000000200300000000000052030000000000008403000000000000b603000000000000e8030000000000001a040000000000004c0400000000000002ff00000000000003ff00000000000004ff00000000000005ff00000000000006ff00000000000007ff00000000000008ff0000000000000008840300000000000002ff00000000000003ff00000000000004ff00000000000005ff00000000000006ff00000000000007ff00000000000008ff000000000000010800000098530000000000800000000008e6ff48d50000000000800000000009e6ff4852010000000000000000000ae6ff3498010000000000000000000be6ff84ac010000000000000000000ce6ff88bc010000000000000000000de6ffdcc7010000000000000000000ecdfff0cc0100000000000000000000020020030000e80330750000000000e8030000e80348e801000000000800000008cf000070110100a8de00000000000050c3000001b4ff90e20000f824010018f6000000000000a8de0000029bff18f6000080380100880d01000000000000fa00000382ffa0090100084c0100f824010000000000701101000469ff281d0100a85b0100683c010000000000e02801000537ffc82c010060670100f04f010000000000683c01000605ff80380100187301007863010000000000084c010007000038440100d07e01000077010000000000c05701000117000080000000000432000000370032003200000000003200
set PPFOOT=00000000005e0002006900500050000000000050000000900090009032000500000000010148d5000048e8010000000000e8030106000001010001010100020101000201010002010100020101010300080000fc0a000000080000f465000002080000f4650000
set PPTable=%PPHEAD%%PPHEX%%PPFOOT%
echo :: Adding patched PowerPlay Tables to the registry
reg add "%REGKEY%" /v PP_PhmSoftPowerPlayTable /t REG_BINARY /d %PPTable%
reg add "%REGKEY%" /v KMD_EnableCrossGpuDisplaySupport /t REG_DWORD /d 1
echo :: Now you can Restart the computer.
) ELSE (
ECHO Run As Administrator to make this script works.
)
pause
goto:eof
@VishnuMaru
Copy link

Mba terimakasih atas tips yg mba berikan.
Skrng sy bs pakai full speed dg temp maksimal 85°c tanpa penurunan clock speed.
Mudah mudahan tips ini bermanfaat bagi orang lain yg mengalami kesulitan seperti sy.

Terimakasih,Semoga sukses selalu.

@Proppern
Copy link

cara dibalikin jd default caranya gimana?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment