Site icon Crypto.com.au

Linux Command to Detect GPUs: Using lspci

Linux Command

Detecting that your GPUs are installed correctly is handy when installing or troubleshooting your mining rig.

The following Unix/Linux commands will help you detect which GPU cards you have installed and are detected by your operating system.

First we need to run the update-pciids command, this updates a list of PCI device ID’s:

➜ ~ sudo update-pciids

Next we run the lspci command. This gives us detailed information about devices on our PCI bus, which should list all of our GPUs:

➜ ~ lspci

Here’s an example of the output on a simple 2 card rig, running 2 x 1050s:

➜ ~ lspci

You can also run lspci with the -v switch to display verbose information. We can also pipe this command to the less command to give us pagination:

➜ ~ lspci -v
➜ ~ lspci -v | less
Exit mobile version