<div dir="ltr">>I spent around $135 on a spiffy cool AMD Radeon RX 570 at my friendly local Micro Center.<div><br></div><div>I always thought this card was a good value.  I have a bunch running in machines here at home.  I also love not having to mess with Nvidia drivers!</div><div><br></div><div>Not sure if you are into RGB bling in your rigs, but sometimes I get carried away. There are some nifty backplates for that GPU as well:</div><div><a href="https://www.v1tech.com/product-category/backplates/rgb-gpu-backplates/">https://www.v1tech.com/product-category/backplates/rgb-gpu-backplates/</a><br></div><div><br></div><div>yahoo!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 5, 2020 at 3:36 PM Charles Shapiro via Ale <<a href="mailto:ale@ale.org">ale@ale.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I am, of course, somewhat touched that my documented adventures with upgrading has led to a good-sized email stream on this server.   Propers to everyone weighing in.</div><div><br></div><div>I am now in the throes of upgrading my video card.  I spent around $135 on a spiffy cool AMD Radeon RX 570 at my friendly local Micro Center.  I'm hoping to harness some of this awesome compute power for OpenCV and perhaps even Folding at Home.  I've already started playing with OpenGL courtesy of this excellent tutorial ( <a href="http://www.opengl-tutorial.org/" target="_blank">http://www.opengl-tutorial.org/</a> ), which has been most interesting and fun.  Plus it's given me a chance to exercise my C (not C++!) chops..<br></div><div><br></div><div>So my first problemo was that I was running the proprietary Nvidia drivers for my current $70 video card, which according to lspci is:</div><div><br></div><div>04:00.0 VGA compatible controller: NVIDIA Corporation GF119 [GeForce GT 610] (rev a1)</div><div><br></div><div>The proprietary drivers were in the nvidia-legacy-390xx-driver package.  Since the new card is an AMD, I very much doubted that the nvidia proprietary drivers would even allow me to bring up the desktop.  I wanted to drop back to the shipped Nouveau drivers to make sure everything would work before I installed the (still proprietary) AMD drivers.  <br></div><div><br></div><div>So here's what I wound up doing:</div><div><br></div><div><ctl><alt>F4 to a terminal session</div><div>Login as root<br></div><div># Drop to multi-user: network connected, but no graphical desktop<br></div><div>systemctl isolate multi-user.target</div><div># Uninstall the proprietary nvidia drivers</div><div>apt-get uninstall  nvidia-legacy-390xx-driver package.</div><div># Make sure nvidia stuff is really uninstalled.<br></div><div>cd /etc/modprobe.d</div><div>mv nvidia-blacklists-nouveau.conf nvidia-blacklists-nouveau.conf.backup  <br></div><div>mv nvidia.conf nvidia.conf.backup  <br></div><div>mv nvidia-kernel-common.conf nvidia-kernel-common.conf.backup</div><div># Reinstall nouveau packages </div><div># nb that "drm" here means "Direct Rendering Manager"<br></div><div>apt-get install --reinstall libdrm-nouveau2</div><div>apt-get install --reinstall xserver-xorg-nouveau</div><div># Bring graphical desktop back up<br></div><div>systemctl isolate graphical.target</div><div># Reboot system</div><div># Verify that nouveau drivers are loaded</div><div>su <br></div><div>lsmod | grep nouveau<br>nouveau              2179072  31<br>video                  45056  1 nouveau<br>ttm                   131072  1 nouveau<br>drm_kms_helper        208896  1 nouveau<br>drm                   495616  24 drm_kms_helper,ttm,nouveau<br>i2c_algo_bit           16384  1 nouveau<br>mxm_wmi                16384  1 nouveau<br>wmi                    28672  2 mxm_wmi,nouveau<br>button                 16384  1 nouveau</div><div><br></div><div><br></div><div># Take machine to basement laboratory and wrangle hardware.  Make another visit to Micro-Center after I find out that DVI and DVI-D are Different. <br></div><div><br></div><div>On first boot, she kvetched about missing firmware.  But the desktop came up ok fine, albeit with no desktop Effects ( I have Rotating Cube turned on for switching desktops)</div><div><br></div><div># Drop back down to multi-user:</div><div> <br></div><div>systemctl isolate multi-user</div><div><br></div><div>Go through the apt commands in this excellent explainer ( <a href="https://linuxconfig.org/how-to-install-the-latest-amd-drivers-on-debian-10-buster" target="_blank">https://linuxconfig.org/how-to-install-the-latest-amd-drivers-on-debian-10-buster</a> )</div><div><br></div><div>reboot</div><div><br></div><div>#Verity that amd drivers are loaded</div><div>lsmod | grep amd<br>amdkfd                237568  1<br>amdgpu               3461120  32<br>chash                  16384  1 amdgpu<br>gpu_sched              28672  1 amdgpu<br>i2c_algo_bit           16384  1 amdgpu<br>ttm                   131072  1 amdgpu<br>drm_kms_helper        208896  1 amdgpu<br>drm                   495616  25 gpu_sched,drm_kms_helper,amdgpu,ttm<br>mfd_core               16384  2 lpc_ich,amdgpu</div><div><br></div><div># Take a look at lspci</div><div>lspci | grep VGA<br>04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480] (rev ef)</div><div><br></div><div>#glxinfo also has something to say:</div><div>glxinfo | grep Device</div><div>glxinfo | grep Device<br>    Device: Radeon RX 570 Series (POLARIS10, DRM 3.27.0, 4.19.0-9-amd64, LLVM 7.0.1) (0x67df)</div><div><br></div><div>I then had some additional fumbling around to get my openGL tutorials working again.  They were failing on the GLFW initialize.  I found that glxinfo(1) was also failing, claiming it couldn't init GLX properly.  After some random duck-duck-go ing I found that my problem was the openGL eXtensions.  The final clue was that the nvidia drivers replace libgl.so.0 with a proprietary version.  I installed "libgl1" ("vendor-neutral GL dispatch library") and rebooted.  At that point, both glxinfo(1) and my tutorials started working again. Phew!</div><div><br></div><div>Piglet is now just marginally noisier than she was with the old card -- this one has two fans in it, so I am up to around 7 fans total in her.   But I am all set to explore the Joys of 32 Compute Units, 2048 Stream Processors, and 128 Texture Units!</div><div><br></div><div>-- CHS</div><div><br></div><div><br></div><div><br></div></div>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="https://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">https://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div>