Skip to content

Installing drivers

cxf edited this page May 19, 2019 · 15 revisions

Getting supported drivers:

Ubuntu / Linux Mint / Other Ubuntu-based distros:

Nvidia:

To get the latest Nvidia drivers it is necessary to add the Proprietary GPU Drivers PPA:

sudo add-apt-repository ppa:graphics-drivers/ppa

Update to refresh packages:

sudo apt update

Warning: Please ensure your graphics card is supported by the 418 driver before installing. Check supported GPUs here: https://www.nvidia.com/download/driverResults.aspx/145182/en-us

Install the 418.56 driver:

sudo apt install nvidia-driver-418 libnvidia-gl-418 libnvidia-gl-418:i386

Reboot to apply changes.

AMD / Intel:

Since Ubuntu 18.04 ships with LLVM 6.0, which is not supported by DXVK, you must add the stable Padoka PPA and upgrade your system for DXVK to function properly. The same applies to Vega GPUs except you need to use unstable Padoka PPA instead. The requirement covers Ubuntu 18.10 too, as it comes with LLVM 7.0, which works fine with older AMD graphics but not Vega.

Add the stable Padoka PPA to Ubuntu 18.04 for Non-Vega GPUs:

sudo add-apt-repository ppa:paulo-miguel-dias/pkppa

Vega GPU users need to add the unstable Padoka PPA instead:

sudo add-apt-repository ppa:paulo-miguel-dias/mesa

Upgrade Mesa and LLVM:

sudo apt update && sudo apt upgrade

Install 32-bit mesa:

sudo apt install libgl1-mesa-glx:i386 libgl1-mesa-dri:i386

Reboot to apply changes.

Note: Only Ubuntu 18.04 and higher is supported for AMD and Intel graphics.

Arch / Antergos / Manjaro / Other Arch derivatives:

Nvidia:

Enable multilib:

To enable multilib repository, uncomment the [multilib] section in /etc/pacman.conf

/etc/pacman.conf
--------------------------------------------------------------------------------------
[multilib]
Include = /etc/pacman.d/mirrorlist

Then upgrade the system sudo pacman -Syu and install the desired multilib packages.

Proprietary driver is required. To install, execute following command:

sudo pacman -S nvidia nvidia-utils lib32-nvidia-utils nvidia-settings

AMD / Intel:

Enable multilib:

To enable multilib repository, uncomment the [multilib] section in /etc/pacman.conf

/etc/pacman.conf
--------------------------------------------------------------------------------------
[multilib]
Include = /etc/pacman.d/mirrorlist

Then upgrade the system sudo pacman -Syu and install the desired multilib packages.

Only installation of 32-bit mesa is required:

sudo pacman -S lib32-mesa

Installing Vulkan:

Requirements:

  • Vulkan capable GPU - Note for Intel iGPU users: Only Skylake, Kaby Lake, and Coffee Lake offer full Vulkan support. Anything older is only partial. Although some games might work nothing is guaranteed.

Ubuntu / Linux Mint / Ubuntu-based distros:

Nvidia:

sudo apt install libvulkan1 libvulkan1:i386 

AMD / Intel:

sudo apt install mesa-vulkan-drivers mesa-vulkan-drivers:i386

Arch / Antegros / Manjaro / Other Arch derivatives:

Enable multilib (skip if you've already done this):

To enable multilib repository, uncomment the [multilib] section in /etc/pacman.conf

/etc/pacman.conf
--------------------------------------------------------------------------------------
[multilib]
Include = /etc/pacman.d/mirrorlist

Then upgrade the system sudo pacman -Syu and install the desired multilib packages.

Nvidia:

sudo pacman -S vulkan-icd-loader lib32-vulkan-icd-loader

AMD:

sudo pacman -S vulkan-radeon lib32-vulkan-radeon vulkan-icd-loader lib32-vulkan-icd-loader

Intel:

sudo pacman -S vulkan-intel lib32-vulkan-intel vulkan-icd-loader lib32-vulkan-icd-loader

Gentoo Linux (Possibly same for Gentoo-based):

Enable multilib:

  • Multilib for media-libs/vulkan-loader AND/OR media-libs/mesa is required.

    • Add abi_x64_32 USEFlag to a package.use/custom for those packages to emerge 64 and 32 bit version.

    • Add ABI_X86="64 32" to make.conf to allow multilib for whole system.

  • Games on Lutris may require additional 32-bit libraries which can be defined using e-file which is part of app-portag/pfl and then linked/placed in /home/$USER/.local/share/lutris/runtime/lib*.

AMD-AMDGPU

  1. Kernel configuration:

    • In /usr/src/linux/.config change CONFIG_DRM_AMDGPU on m.
    • In /usr/src/linux/.config change DRM_AMDGPU_SI OR DRM_AMDGPU_CIK on y.
    • Changing grub might also be required in /etc/default/grub add GRUB_CMDLINE_LINUX=radeon.si_support=0 amdgpu.si_support=1 OR GRUB_CMDLINE_LINUX=radeon.cik_support=0 amdgpu.cik_support=1. To enable experimental support for radeon SI or CIK.
    • Recompile the kernel and make sure that correct kernel is selected.
  2. Make.conf configuration:

    • Add USE="vulkan" to /etc/portage/make.conf.
    • Add media-libs/vulkan-loader layers to /etc/portage/package.use/custom if required.
    • Add VIDEO_CARDS="amdgpu radeonsi" or VIDEO_CARDS="amdgpu radeoncik" to /etc/portage/make.conf.
  3. Emerge required packages using emerge --ask media-libs/vulkan-loader sys-kernel/linux-firmware.

    • Depending on the configuration media-libs/mesa may also be required.
  4. Check the functionality using dev-util/vulkan-tools with vulkan-info USE flag.

ATI-Radeon (legacy)

  1. Kernel configuration:

    • In /usr/src/linux/.config change CONFIG_DRM_Radeon on m.
    • Recompile the kernel and make sure that correct kernel is selected.
  2. Make.conf configuration:

    • Add USE="vulkan" to /etc/portage/make.conf.
    • Add media-libs/vulkan-loader layers to /etc/portage/package.use/custom if required.
    • Add VIDEO_CARDS="radeon radeonsi" or VIDEO_CARDS="radeon radeoncik" to /etc/portage/make.conf.

Nvidia:

Vulkan is part of proprietary drivers on Gentoo.

You can’t perform that action at this time.