SHARE
TWEET

GPD Win 2 XTU Batch File Created By Ciphray

a guest Aug 11th, 2018 7,821 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. NET START XTU3SERVICE
  3. set rxtucli="C:\Program Files (x86)\Intel\Intel(R) Extreme Tuning Utility\Client\xtucli.exe"
  4. @echo off - Change cuv to your desired CPU undervolt and guv for GPU undervolt!
  5. set cuv=-50
  6. set guv=-50
  7. :menu
  8. cls
  9. echo    TPD MENU
  10. echo    ==========
  11. echo.
  12. echo    1 - Default (07.00 - 15.00) Watts
  13. echo    2 - Manual Input
  14. echo    3 - 08.00 Watts - 08.00 Watts
  15. echo    4 - 08.25 Watts - 08.25 Watts
  16. echo    5 - 09.00 Watts - 09.00 Watts
  17. echo    6 - 10.00 Watts - 10.00 Watts
  18. echo    7 - 11.00 Watts - 11.00 Watts
  19. echo    8 - 12.00 Watts - 12.00 Watts
  20. echo    9 - NEXT
  21. echo.
  22. echo    Q - Quit
  23. choice /c:123456789Q>nul
  24.  
  25. if errorlevel 9 goto 9w1
  26. if errorlevel 8 goto 8w1
  27. if errorlevel 7 goto 7w1
  28. if errorlevel 6 goto 6w1
  29. if errorlevel 5 goto 5w1
  30. if errorlevel 4 goto 4w1
  31. if errorlevel 3 goto 3w1
  32. if errorlevel 2 goto setmanual
  33. if errorlevel 1 goto 1w1
  34. echo CHOICE missing
  35. goto done
  36.  
  37. :1w1
  38. %rxtucli% -t -id 48 -v 7
  39. %rxtucli% -t -id 47 -v 15
  40.  
  41. goto done
  42.  
  43. :2w1
  44. %rxtucli% -t -id 48 -v 8
  45. %rxtucli% -t -id 47 -v 8
  46. goto done
  47.  
  48. :3w1
  49. %rxtucli% -t -id 48 -v 8.00
  50. %rxtucli% -t -id 47 -v 8.00
  51. goto done
  52.  
  53. :4w1
  54. %rxtucli% -t -id 48 -v 8.25
  55. %rxtucli% -t -id 47 -v 8.25
  56. goto done
  57.  
  58. :5w1
  59. %rxtucli% -t -id 48 -v 9
  60. %rxtucli% -t -id 47 -v 9
  61. goto done
  62.  
  63. :6w1
  64. %rxtucli% -t -id 48 -v 10
  65. %rxtucli% -t -id 47 -v 10
  66. goto done
  67.  
  68. :7w1
  69. %rxtucli% -t -id 48 -v 11
  70. %rxtucli% -t -id 47 -v 11
  71. goto done
  72.  
  73. :8w1
  74. %rxtucli% -t -id 48 -v 12
  75. %rxtucli% -t -id 47 -v 12
  76. goto done
  77.  
  78. :9w1
  79. goto tdpmenu2
  80.  
  81. :tdpmenu2
  82. cls
  83. echo    TPD MENU CONTINUED
  84. echo    ==========
  85. echo.
  86. echo    1 - 02.00 Watts - 02.00
  87. echo    2 - 05.00 Watts - 05.00 Watts
  88. echo    3 - 05.00 Watts - 07.00 Watts
  89. echo    4 - 07.00 Watts - 08.50 Watts
  90. echo    5 - 08.00 Watts - 10.00 Watts
  91. echo    6 - 08.25 Watts - 09.50 Watts
  92. echo    7 - 09.00 Watts - 10.00 Watts
  93. echo    8 - 10.00 Watts - 12.00 Watts
  94. echo    9 - Display Current
  95. echo.
  96. echo    Q - Quit
  97. choice /c:123456789Q>nul
  98.  
  99. if errorlevel 9 goto 9w2
  100. if errorlevel 8 goto 8w2
  101. if errorlevel 7 goto 7w2
  102. if errorlevel 6 goto 6w2
  103. if errorlevel 5 goto 5w2
  104. if errorlevel 4 goto 4w2
  105. if errorlevel 3 goto 3w2
  106. if errorlevel 2 goto 2w2
  107. if errorlevel 1 goto 1w2
  108. echo CHOICE missing
  109. goto tdpmenu2
  110.  
  111. :1w2
  112. %rxtucli% -t -id 48 -v 2
  113. %rxtucli% -t -id 47 -v 2
  114. goto done
  115.  
  116. :2w2
  117. %rxtucli% -t -id 48 -v 5
  118. %rxtucli% -t -id 47 -v 5
  119. goto done
  120.  
  121. :3w2
  122. %rxtucli% -t -id 48 -v 5
  123. %rxtucli% -t -id 47 -v 7
  124. goto done
  125.  
  126. :4w2
  127. %rxtucli% -t -id 48 -v 7
  128. %rxtucli% -t -id 47 -v 8.5
  129. goto done
  130.  
  131. :5w2
  132. %rxtucli% -t -id 48 -v 8
  133. %rxtucli% -t -id 47 -v 10
  134. goto done
  135.  
  136. :6w2
  137. %rxtucli% -t -id 48 -v 8.25
  138. %rxtucli% -t -id 47 -v 9.5
  139. goto done
  140.  
  141. :7w2
  142. %rxtucli% -t -id 48 -v 9
  143. %rxtucli% -t -id 47 -v 10
  144. goto done
  145.  
  146. :8w2
  147. %rxtucli% -t -id 48 -v 10
  148. %rxtucli% -t -id 47 -v 12
  149. goto done
  150.  
  151. :9w2
  152. %rxtucli% -t -id 34
  153. %rxtucli% -t -id 100
  154. %rxtucli% -t -id 48
  155. %rxtucli% -t -id 47
  156. goto choice2
  157.  
  158.  
  159.  
  160. :done
  161. @echo Enable or change undervolt now?
  162. @echo  (1) - Yes
  163. @echo  (2) - No
  164. @echo  (3) - Reset undervolt to 0
  165. choice /c:123>nul
  166. if errorlevel 3 goto uv3
  167. if errorlevel 2 goto uv4
  168. if errorlevel 1 goto uv1
  169. :uv1
  170. @ECHO CPU will be undervolted by %cuv%
  171. @ECHO CPU will be undervolted by %guv%
  172. %rxtucli% -t -id 34 -v %cuv%
  173. %rxtucli% -t -id 100 -v %guv%
  174. goto uv4
  175. :uv2
  176.  
  177. :uv3
  178. @ECHO CPU and GPU undervolt will be set to 0.
  179. %rxtucli% -t -id 34 -v 0
  180. %rxtucli% -t -id 100 -v 0
  181.  
  182. :uv4
  183. @echo Reapply undervolt now (if it didn't show it applied correctly)?
  184. @echo  (1) - Yes
  185. @echo  (2) - No
  186. choice /c:12>nul
  187. if errorlevel 2 goto uv5
  188. if errorlevel 1 goto uv1
  189. :uv5
  190. NET STOP XTU3SERVICE
  191. goto end1
  192. :setmanual
  193.  
  194. cls
  195. @ECHO Enter Package TDP Value example 7.25 (Default is 7)
  196. echo.
  197. @ECHO OFF
  198. SET /P cputdp= TDP:
  199. @ECHO Setting TDP to %cputdp% Watts
  200. %rxtucli% -t -id 48 -v %cputdp%
  201. echo.
  202. echo.
  203. @ECHO OFF
  204. @ECHO Enter Short Package TDP Value example 10.5 (Default is 15)
  205. echo.
  206. @ECHO OFF
  207. SET /P cputdps= Short TDP:
  208. echo.
  209. @ECHO Setting TDP to %cputdps% Watts
  210. %rxtucli% -t -id 47 -v %cputdps%
  211. ECHO.
  212. ECHO.
  213. @ECHO OFF
  214.  
  215. :choice
  216. set /P c=Do you want to set undervolt settings[Y/N]?
  217. if /I "%c%" EQU "Y" goto :sundervolt
  218. if /I "%c%" EQU "N" goto :stopxtu
  219. goto :choice
  220.  
  221.  
  222. :sundervolt
  223. @ECHO OFF
  224. @ECHO Enter your CPU undervolt in millivolts such as 50
  225. echo.
  226. @ECHO OFF
  227. SET /P cuv= CPU Undervolt:
  228. echo.
  229. @ECHO Setting CPU Undervolt to %cuv% MV
  230. %rxtucli% -t -id 34 -v -%cuv%
  231.  
  232. @ECHO OFF
  233. echo.
  234. @ECHO Enter your GPU undervolt in millivolts such as 50
  235. echo.
  236. @ECHO OFF
  237. SET /P guv= GPU Undervolt:
  238. echo.
  239. @ECHO Setting GPU Undervolt to %guv% MV
  240. %rxtucli% -t -id 100 -v -%guv%
  241.  
  242. @echo Reapply undervolt now (if it didn't show it applied correctly)?
  243. @echo  (1) - Yes
  244. @echo  (2) - No
  245. choice /c:12>nul
  246. if errorlevel 2 goto stopxtu
  247. if errorlevel 1 goto sundervolt
  248.  
  249. :stopxtu
  250.  
  251.  
  252. :choice2
  253. set /P c=Do you want end the XTU Service (Values will still be applied to the system)[Y/N]?
  254. if /I "%c%" EQU "Y" goto :endxtu
  255. if /I "%c%" EQU "N" goto :end1
  256. goto :choice2
  257.  
  258. :endxtu
  259. NET STOP XTU3SERVICE
  260.  
  261.  
  262. :end1
  263. TIMEOUT 5
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top