TODO: try gamemode - https://github.com/FeralInteractive/gamemode
enable multilib in /etc/pacman.conf
:
[multilib]
Include = /etc/pacman.d/mirrorlist
install drivers and steam, GPU: AMD R9 270
- Southern Islands (SI):
pacman -S xf86-video-amdgpu mesa lib32-fontconfig lib32-mesa lib32-systemd vulkan-tools steam
add vars to /etc/environment
AMD_VULKAN_ICD=RADV
XDG_RUNTIME_DIR=/run/user/1000
load modules, prioritize amdgpu /etc/mkinitcpio.conf
:
MODULES=(amdgpu radeon)
mkinitcpio -p linux
check current driver lspci -k | less
:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Curacao PRO [Radeon R7 370 / R9 270/370 OEM]
Subsystem: PC Partner Limited / Sapphire Technology Device e271
Kernel driver in use: radeon # <<< should be amdgpu instead
Kernel modules: radeon, amdgpu
check vulkaninfo
output, shouldn't produce error below:
ERROR at /build/vulkan-tools/src/Vulkan-Tools-1.2.199/vulkaninfo/vulkaninfo.h:248:vkEnumeratePhysicalDevices failed with ERROR_INITIALIZATION_FAILED
check module parameters:
sudo dmesg | grep -E '(cik|si)_support'
[ 1.407151] amdgpu 0000:01:00.0: amdgpu: Use radeon.si_support=0 amdgpu.si_support=1 to override.
set module parameters in kernel cmd /etc/default/grub
:
GRUB_CMDLINE_LINUX_DEFAULT="... radeon.si_support=0 amdgpu.si_support=1"
sudo grub-mkconfig -o /boot/grub/grub.cfg
and reboot
possible cmd start parameters:
LD_PRELOAD=/lib64/libSDL2-2.0.so.0 SDL_VIDEODRIVER=wayland DRI_PRIME=1 %command% -vulkan
LD_PRELOAD=/lib64/libSDL2-2.0.so.0 SDL_VIDEODRIVER=x11 DRI_PRIME=1 %command%
links: https://wiki.archlinux.org/title/AMDGPU#Enable_Southern_Islands_(SI)_and_Sea_Islands_(CIK)_support https://wiki.archlinux.org/title/steam#Installation https://wiki.archlinux.org/title/Vulkan#AMDGPU_-_ERROR_INITIALIZATION_FAILED_after_vulkaninfo