Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 12.69 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <title>How to set fans and/or overclock Nvidia on PiMP OS</title>
  5.         <meta charset="utf-8" />
  6.         <meta name="viewport" content="width=device-width, initial-scale=1">
  7.         <meta name="created" content="2017-06-26T21:18:15-0500"/>
  8.         <meta name="modified" content="2017-06-27T20:59:30-0500"/>
  9.         <meta name="tags" content=""/>
  10.         <meta name="last device" content="Charles’s MacBook Pro"/>
  11.     </head>
  12.     <body>
  13.         <div class="note-wrapper">
  14.             <h1>How to set fans and/or overclock Nvidia on PiMP OS</h1>
  15. <p>It took me quite some time to really get the hang of actually figuring out how to get the fans set in PiMP OS for Nvidia GPUs. I hope that this walkthrough will help guide anyone that is not familiar with this PiMP through the process of setting their fan speeds individually and/or overclocking their cards.</p>
  16. <br>
  17. <p>I have to say this :)</p>
  18. <p><b>I AM NOT RESPONSIBLE FOR YOUR SYSTEM…USE AT YOUR OWN RISK</b></p>
  19. <br>
  20. <h2>Agenda</h2>
  21. <ol start="1"><li>What do we need?
  22. </li><li>Where to get what we need.
  23. </li><li>How to implement it.
  24. </li><li>How to automate it.
  25. </li><li>Review & Conclusion
  26. </li></ol>
  27. <h2>What do we need?</h2>
  28. <p>More detailed instructions will follow this list. It is always a good idea to have everything prepared before we embark on our journey together. I will attempt to be as detailed as possible.</p>
  29. <br>
  30. <ol start="1"><li>SSH access to your rig
  31. </li><li>A screenshot of the output from running ‘lspci’ at /root
  32. </li><li>Edit the /etc/X11/xorg.conf file to match the ‘lspci’ output
  33. </li><li>curl and edit <a href="http://paste.ubuntu.com/24960613/">http://paste.ubuntu.com/24960613/</a> <span class='arrow'><svg width="11px" height="10px" viewBox="0 0 11 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">    <g id="left-arrow" transform="translate(5.500000, 5.000000) scale(-1, 1) translate(-5.500000, -5.000000) ">        <path d="M1.77635684e-14,5 L9,5" id="rod" stroke="#000000" stroke-width="2"></path>        <path d="M11,5 L6,0.5 L6,9.5 L11,5 Z" id="point" fill="#000000"></path>    </g></svg></span> oc.sh
  34. </li><li>crontab
  35. </li><li>Review and Conclusion
  36. </li></ol>
  37. <h1>Let’s get started!</h1>
  38. <hr>
  39. <h2>Using SSH to get into your rig</h2>
  40. <p>Mac/Windows:</p>
  41. <ol start="1"><li>Open your terminal, I use ‘Hyper’, but there is iTerm2 and the stock mac terminal as well.
  42. </li></ol>For Windows, use putty or mobaxterm (this is awesome!)
  43. <ol start="2"><li>Once you are in the terminal, type:
  44. </li></ol><code class='code-inline'>ssh root@ip_displayed_whenever_you_boot_PiMP</code>  and then enter your password. If you are just starting, your password might be ‘live’. Please change this ASAP…
  45.  
  46. To change password:
  47. <code class='code-inline'>passwd</code>  enter new password twice and it is changed :)
  48.  
  49. Congratulations! You are hopefully successfully logged in via ssh and now have full control over your rig and settings.
  50.  
  51. <h2>Understanding the results of ’lspci’</h2>
  52. Enter <code class='code-inline'>lspci</code> in your terminal and it should output something like this:<a href="http://paste.ubuntu.com/24967892/">Ubuntu Pastebin</a>.
  53.  
  54. The information you need from this output is:
  55. <pre><code class='code-multiline'>**01:00.0** VGA compatible controller: NVIDIA Corporation Device 1b81 (rev a1)
  56. 01:00.1 Audio device: NVIDIA Corporation Device 10f0 (rev a1)
  57. **02:00.0** VGA compatible controller: NVIDIA Corporation Device 1b81 (rev a1)
  58. 02:00.1 Audio device: NVIDIA Corporation Device 10f0 (rev a1)
  59. **03:00.0** VGA compatible controller: NVIDIA Corporation Device 1b81 (rev a1)
  60. 03:00.1 Audio device: NVIDIA Corporation Device 10f0 (rev a1)
  61. **04:00.0** VGA compatible controller: NVIDIA Corporation Device 1b81 (rev a1)
  62. 04:00.1 Audio device: NVIDIA Corporation Device 10f0 (rev a1)
  63. **05:00.0** VGA compatible controller: NVIDIA Corporation Device 1b81 (rev a1)
  64. 05:00.1 Audio device: NVIDIA Corporation Device 10f0 (rev a1)
  65. **06:00.0** VGA compatible controller: NVIDIA Corporation Device 1b81 (rev a1)
  66. 06:00.1 Audio device: NVIDIA Corporation Device 10f0 (rev a1)
  67. 07:00.0 USB controller: ASMedia Technology Inc. Device 2142
  68. **08:00.0** VGA compatible controller: NVIDIA Corporation Device 1b81 (rev a1)
  69. 08:00.1 Audio device: NVIDIA Corporation Device 10f0 (rev a1)
  70. **09:00.0** VGA compatible controller: NVIDIA Corporation Device 1b81 (rev a1)
  71. 09:00.1 Audio device: NVIDIA Corporation Device 10f0 (rev a1)
  72. </code></pre>
  73. <p>The information we are looking for is bolded above. I am running an 8 GPU Nvidia rig. You need to have these numbers ready so that you can add them to your xorg.conf file in the next section.</p>
  74. <br>
  75. <h2>Edit the /etc/X11/xorg.conf file to match the ‘lspci’ output</h2>
  76. <p>Enter: <code class='code-inline'>nano /etc/X11/xorg.conf</code> or <code class='code-inline'>cat /etc/X11/xorg.conf | pastebin</code> and edit in a text edit such as sublime text 2 or Atom.</p>
  77. <br>
  78. <p>You can view my completed 8 GPU file here. Notice how I have created a screen and device for every GPU in my rig.</p>
  79. <br>
  80. <p>The <b>“Device”</b> section is where you need to take special care because the numbers you capture from the previous section are needed in the <code class='code-inline'>BusID</code></p>
  81. <br>
  82. <p>If you would rather just use my script feel free to:</p>
  83. <p><code class='code-inline'>curl http://paste.ubuntu.com/24968050/ &gt; /etc/X11/xorg.conf && chmod +x /etc/X11/xorg.conf && nano /etc/X11/xorg.conf</code></p>
  84. <br>
  85. <p>Once you are in the file just modify it as needed. For instance, if you only have a 6 GPU rig, you will need to delete <b>“Devices” 6</b> and <b>“Devices” 7</b>, <b>“Monitors 6”</b> and <b>“Monitors 7”</b>,  <b>“Virtual Monitors 6”</b> and <b>“Virtual Monitors 7”</b>, and finally, <b>”Section 6”</b> and <b>“Section 7”</b>.</p>
  86. <br>
  87. <p>You need to be confident that you have completed this correctly before moving on since it will <b>NOT</b> work if it this piece is wrong.</p>
  88. <br>
  89. <h2> Curl and Edit</h2>
  90. <p>Enter:</p>
  91. <pre><code class='code-multiline'>curl http://paste.ubuntu.com/24960613/  &gt; /root/oc.sh && chmod +x /root/oc.sh && nano /root/oc.sh
  92. </code></pre>
  93. <p>This is the file I am using and I am currently only using this to control my fan speeds. I plan on tinkering with overclocking in the future after my rig has run for a few weeks without issues.</p>
  94. <br>
  95. <p>Do not touch <code class='code-inline'>GPUFanControlState</code> :)</p>
  96. <br>
  97. <p>While monitoring your temps and fan speeds on miner.farm ;) you can fine tune these values to manage the temps on your rigs. My fans are set pretty high since it is summertime in the weather confused state of Texas.</p>
  98. <br>
  99. <p>If you would like to take a stab at messing with the core and memory settings feel free.</p>
  100. <br>
  101. <p>The bottom section has two pieces. This is in case you have different nvidia cards in your rig. (gtx1070 and gtx1080ti). If you only gtx 1070s for instance you can just comment or delete the second <code class='code-inline'>for</code> statement.</p>
  102. <br>
  103. <p>Finally, once you are ready to test and see if everything is working:</p>
  104. <p><code class='code-inline'>bash /root/oc.sh</code> and you will see some output. Now go to your miner.farm or miner console of choice and you should see the fan speeds change to your desired settings. </p>
  105. <br>
  106. <h2>Crontab</h2>
  107. <p>Will add later</p>
  108. <br>
  109. <h2>Review and Conclusion</h2>
  110. <p>I hope this guide helps some people easily navigate this whole setup much easier than I did :)</p>
  111. <br>
  112. <p>If you have any questions or comments please refer to the live help at <a href="https://getpimp.org/help/#irc">Help | getPiMP.org</a> or in your rig enter <code class='code-inline'>helpme</code> and you will be directed to a live chat from your rig.</p>
  113. <br>
  114. <br>
  115. <br>
  116. <p>ETH: 0x4f9846e0A0aBC0ae690aA5C4108dcf97B89307EA</p>
  117. <p>BTC: </p>
  118. <p>ZEC: t1To9zwuiJowFvhG71HL85qm8xRALC1MGtr</p>
  119.         </div>
  120.         <script type="text/javascript">
  121.             (function() {
  122.  
  123.     var doc_ols = document.getElementsByTagName("ol");
  124.  
  125.     for ( i=0; i<doc_ols.length; i++) {
  126.  
  127.        var ol_start = doc_ols[i].getAttribute("start") - 1;
  128.        doc_ols[i].setAttribute("style", "counter-reset:ol " + ol_start + ";");
  129.  
  130.    }
  131.  
  132. })();
  133.        </script>
  134.         <style>
  135.             html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}html{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}caption,th,td{text-align:left;font-weight:normal;vertical-align:middle}q,blockquote{quotes:none}q:before,q:after,blockquote:before,blockquote:after{content:"";content:none}a img{border:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}*{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}html{font-size:87.5%;line-height:1.57143em}html{font-size:14px;line-height:1.6em;-webkit-text-size-adjust:100%}body{background:#fcfcfc;color:#545454;text-rendering:optimizeLegibility;font-family:"Avenir-Book"}a{color:#de4c4f;text-decoration:none}h1{font-family:"Avenir-Medium";color:#333;font-size:1.6em;line-height:1.3em;margin-bottom:.78571em}h2{font-family:"Avenir-Medium";color:#333;font-size:1.3em;line-height:1em;margin-bottom:.62857em}h3{font-family:"Avenir-Medium";color:#333;font-size:1.15em;line-height:1em;margin-bottom:.47143em}p{margin-bottom:1.57143em;hyphens:auto}hr{height:1px;border:0;background-color:#dedede;margin:-1px auto 1.57143em auto}ul,ol{margin-bottom:1.57143em}ul ul,ul ol,ol ul,ol ol{margin-bottom:0px}ol li:before{content:counter(ol) ".";counter-increment:ol;color:#e06e73;text-align:right;display:inline-block;min-width:1em;margin-right:0.5em}b,strong{font-family:"Avenir-Heavy"}i,em{font-family:"Avenir-BookOblique"}code{font-family:"Menlo-Regular"}.text-overflow-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sf_code_syntax_string{color:#D33905}.sf_code_syntax_comment{color:#838383}.sf_code_syntax_documentation_comment{color:#128901}.sf_code_syntax_number{color:#0E73A2}.sf_code_syntax_project{color:#5B2599}.sf_code_syntax_keyword{color:#0E73A2}.sf_code_syntax_character{color:#1B00CE}.sf_code_syntax_preprocessor{color:#920448}.note-wrapper{max-width:46em;margin:0px auto;padding:1.57143em 3.14286em}.note-wrapper.spotlight-preview{overflow-x:hidden}u{text-decoration:none;background-image:linear-gradient(to bottom, rgba(0,0,0,0) 50%,#e06e73 50%);background-repeat:repeat-x;background-size:2px 2px;background-position:0 1.05em}s{color:#878787}p{margin-bottom:0.1em}hr{margin-bottom:0.7em;margin-top:0.7em}ul li{text-indent:-0.6em}ul li:before{content:"•";color:#e06e73;display:inline-block;margin-right:0.3em}ul ul{margin-left:1.25714em}ol li{text-indent:-1.55em}ol ol{margin-left:1.25714em}blockquote{display:block;margin-left:-1em;padding-left:0.8em;border-left:0.2em solid #e06e73}.todo-list ul{margin-left:1.88571em}.todo-list li{text-indent:-1.75em}.todo-list li:before{content:"";display:static;margin-right:0px}.todo-checkbox{text-indent:-1.7em}.todo-checkbox svg{margin-right:0.3em;position:relative;top:0.2em}.todo-checkbox svg #check{display:none}.todo-checkbox.todo-checked #check{display:inline}.todo-checkbox.todo-checked .todo-text{text-decoration:line-through;color:#878787}.code-inline{display:inline-block;background:white;border:solid 1px #dedede;padding:0.0em 0.5em;font-size:0.9em}.code-multiline{display:block;background:white;border:solid 1px #dedede;padding:0.7em 1em;font-size:0.9em;overflow-x:auto}.hashtag{display:inline-block;color:white;background:#b8bfc2;padding:0.0em 0.5em;border-radius:1em;text-indent:0}.hashtag a{color:#fff}.address a{color:#545454;background-image:linear-gradient(to bottom, rgba(0,0,0,0) 50%,#0da35e 50%);background-repeat:repeat-x;background-size:2px 2px;background-position:0 1.05em}.address svg{position:relative;top:0.2em;display:inline-block;margin-right:0.2em}.color-preview{display:inline-block;width:1em;height:1em;border:solid 1px rgba(0,0,0,0.3);border-radius:50%;margin-right:0.1em;position:relative;top:0.2em;white-space:nowrap}.color-code{margin-right:0.2em;font-family:"Menlo-Regular";font-size:0.9em}.color-hash{opacity:0.4}.ordered-list-number{color:#e06e73;text-align:right;display:inline-block;min-width:1em}.arrow svg{position:relative;top:0.08em;display:inline-block;margin-right:0.15em;margin-left:0.15em}.arrow svg #rod{stroke:#545454}.arrow svg #point{fill:#545454}img{max-width:100%;height:auto}
  136.  
  137.         </style>
  138.     </body>
  139. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement