Fixa spelkrascher i Linux med AMDGPU
An English version is available below.
Det senaste året har nästan vartenda spel jag testat med Manjaro kraschat när jag försöker starta dem. Jag har äntligen hittat lösningen.
Felet är (i mitt fall) att grafikdrivrutinerna som körs är Radeon istället för AMDGPU. Detta kan snabbt fixas genom att lägga till lite text i grub så att AMDGPU drivrutinerna körs istället för Radeon. Detta gäller endast för AMD grafikkort om det inte var uppenbart.
Säkerhetskopiera först grub-filen,
Make a backup of the grub file,
sudo cp /etc/default/grub /etc/default/grub.bak
Öppna sedan grub-filen,
Then open the grub file,
sudo nano /etc/default/grub
Hitta raden där det står,
Find the row where it says,
GRUB_CMDLINE_LINUX_DEFAULT="......
I slutet av den raden (före sista ” tecknet) lägg till,
At the end of the line (before the last ”) add,
radeon.si_support=0 radeon.cik_support=0 amdgpu.si_support=1 amdgpu.cik_support=1
Så att raden tillslut ser ut ungefär såhär,
So that the row looks something like,
GRUB_CMDLINE_LINUX_DEFAULT="quiet radeon.si_support=0 radeon.cik_support=0 amdgpu.si_support=1 amdgpu.cik_support=1"
Spara och stäng filen, sen uppdatera grub med kommandot,
Save and close the file, then update grub with the command,
sudo update-grub
Starta sedan om datorn. Därefter borde inte lika många spel krascha vid start.
Reboot the pc. After that not as many games should crash.
The last year almsot every game I’ve tried on Manjaro has crashed when starting. I have finally found the solution.
The problem is (in my case) that the active graphics drivers is Radeon instead of AMDGPU. This can be fixed by editing the grub file so that AMDGPU runs instead. This is only valid for AMD cards if it wasn’t obvious.
Källor: ArchWiki AMDGPU, Reddit