Blackscreen flickering after switch from Nvidia to AMD graphics

Findas

New Member
Joined
Aug 24, 2024
Messages
8
Reaction score
2
Credits
68
Hello

I am running Garuda (Arch) I installed it with an old GTX 1050 Ti, today I switched to an ATI Radeon RX 6600.

When on the Desktop I have no problems. The problem comes up when I start a game like Medieval Dynasty or Euro Truck Simulator 2 or even Factorio the screen turns black for 3 seconds and comes back stays for a couple of seconds and than again a blackscreen.

Seems like a driver problem to me.
I followed https://wiki.archlinux.org/title/ATI

installed mesa, lib32-mesa and xf86-video-ati

So what am I missing?
 
Last edited:


I tried a live version of garuda which worked fine. After reinstalling the system and updating it the problem is back.
 
I tried a live version of garuda which worked fine. After reinstalling the system and updating it the problem is back.
Using some of the options available for the radeon driver may help. They can be checked out on the manpage: man radeon.

Below is a list of options that can be placed in an X snippet configuration file. If such a snippet already exists, as it does on some debian installations at:
/usr/share/X11/xorg.conf.d/10-radeon.conf
then the options can be added there and have the boolean values adjusted as preferred.

If the file does not exist, here is a copy of it which can be written there and used:
Code:
Section "OutputClass"
        Identifier "Radeon"
        MatchDriver "radeon"
        Driver "radeon"
EndSection

Relevant options to use in the first instance may include:
Option "Accel" "off"
Option "AccelMethod" "glamor"
Option "ShadowPrimary" "on"
Option "TearFree" "on"

There are others to experiment with, but there's no guarantees of course.
Note that often it's recommended to write such a snippet file to /etc/X11/xorg.conf.d, however experience here is that it has worked more reliably under the /usr/share/X11/xorg.conf.d directory.
 
Last edited:
After writing the conf file do I need to restart the PC or a service or just start the game?
 
So I tried a couple of configurations and none of them worked.

Funny enough Medival Dynasty would not even start without the options but with all it would start. On the screen that is connected via HDMI directly it flickers while on the second screen which is connected from a Displayport (Graphics card) to HDMI (screen) I just get a black screen. This is some funky behaviour
 
Seems like a driver problem to me.
I followed https://wiki.archlinux.org/title/ATI

installed mesa, lib32-mesa and xf86-video-ati
You need this page: https://wiki.archlinux.org/title/AMDGPU

And you may also need vulkan for those games, so you will also need to install these: vulkan-radeon en lib32-vulkan-radeon.

What happens when you do that? Some people also install "xf86-video-amdgpu" but you don't actually need that since the kernel provide de amdgpu driver and mesa provides the other needed things for your gpu. I have an an RX 7900XTX and I only am using mesa and the kernel drivers.
 
You need this page: https://wiki.archlinux.org/title/AMDGPU

And you may also need vulkan for those games, so you will also need to install these: vulkan-radeon en lib32-vulkan-radeon.

What happens when you do that? Some people also install "xf86-video-amdgpu" but you don't actually need that since the kernel provide de amdgpu driver and mesa provides the other needed things for your gpu. I have an an RX 7900XTX and I only am using mesa and the kernel drivers.

Gotta love the arch wiki! I'd do something like this.

Code:
sudo pacman -Syu amdvlk vulkan-radeon xf86-video-amdgpu mesa mesa-vdpau lib32-mesa lib32-vulkan-radeon vulkan-icd-loader

Don't forget to sudo pacman -R nvidia nvidia-settings nvidia-utils idk bout Garuda but they may use nvidia-dkms so if it's not just "nvidia" then try that.
 
After writing the conf file do I need to restart the PC or a service or just start the game?
After changing the configs, one needs to restart X. Logging out and back in if you start from a display manager should do it. Rebooting will do it too.

The package: firmware-amd-graphics or the equivalent in garuda should be installed if it isn't.
 
Last edited:

Staff online


Top