After upgrading to Ubuntu 22.04 from 20.04, my mining rig crashed(big lesson learnt) so I had to re-install everything from beginning.

Unfortunately there is no driver for AMD RX580 on Ubuntu 22.04 therefore I decided to go back to Ubuntu 20.04. Below are the steps to enable two cards(AMD RX580, Nvidia GTX 1660Ti) after wasting two days in the dark.

1. Insert RX580 only, then install AMD’s latest amdgpu-install_22.20.50200-1_all.deb. Note use the below command line instead of Ubuntu’s “Software Install”. (amdgpu-uninstall won’t be available if using the latter)

sudo apt-get install ./amdgpu-install-VERSION.deb

2. Install the needed OpenCL

sudo amdgpu-install --opencl=rocr,legacy

I found the below command useful to help identify GPU issue, note driver=amdgpu in “configuration” line: if it’s not appearing, it means your card is not recognised properly by the system

$ sudo lshw -c video
  *-display                 
       description: VGA compatible controller
       product: Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: e1
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
       configuration: driver=amdgpu latency=0
       resources: irq:38 memory:e0000000-efffffff memory:f0000000-f01fffff ioport:e000(size=256) memory:f7e00000-f7e3ffff memory:c0000-dffff

3. After reboot, RX580 should be enabled. Install Nvidia 1660Ti and after reboot, Ubuntu should be able to identify the Nvidia card automatically(use lshw to confirm). Go to “Software and Updates”, on “Addition drivers” tab, enable the system provided Nvidia driver and that’s all, no need to download the bulky driver from Nvidia website.

Installing two graphic cards on Ubuntu
Tagged on:             

Leave a Reply

Your email address will not be published. Required fields are marked *

87 + = 96

This site uses Akismet to reduce spam. Learn how your comment data is processed.