Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pipelinedave/1ad9fce3b46e39cb462628a351d0e977 to your computer and use it in GitHub Desktop.
Save pipelinedave/1ad9fce3b46e39cb462628a351d0e977 to your computer and use it in GitHub Desktop.
Identify the hardware: You need to know exactly what hardware you're dealing with to get the right drivers. For graphic cards, you can use the following command in your terminal to get the necessary information:
  1. Identify the hardware: You need to know exactly what hardware you're dealing with to get the right drivers. For graphic cards, you can use the following command in your terminal to get the necessary information:

    lspci | grep -i --color 'vga\|3d\|2d'
    

    This command will display the VGA compatible devices in your system. Look for the details of your graphic card in the output.

  2. Check the driver in use: You can check which driver your system is currently using with the following command:

    glxinfo | grep "OpenGL renderer"
    

    This will display the GPU and the driver currently in use. If it shows something like llvmpipe it means that your system is using the CPU for rendering, which is not optimal for performance. In such a case, you might need to install the appropriate GPU drivers.

  3. Search for available drivers: After identifying your hardware and checking which driver is in use, you can look for available drivers in the RPM Fusion repository.

    To list all available drivers, you can use the following command:

    dnf search xorg-x11-drv
    

    This will list all the available xorg drivers. You can look for the one compatible with your hardware. For example, if you have an NVIDIA graphics card, you might look for xorg-x11-drv-nvidia. For an AMD card, you'd look for something like xorg-x11-drv-amdgpu.

  4. Install the driver: After finding the right driver, you can install it using the dnf command. For example, if you found that the xorg-x11-drv-nvidia driver is the one you need, you can install it with:

    sudo dnf install xorg-x11-drv-nvidia
    

Remember to restart your system after the installation. This should ensure that the new driver is being used. After the restart, you can verify the driver installation by checking the driver in use again with the glxinfo command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment