Gentoo > Fix screen flash in X11
Occasionally one might see weird screen flashing in seemingly random colors when in X11 under low system load, e.g. browsing the web.
This is caused by your AMD graphics card switching performance levels.
To fix, pin you graphics card to either "high" or "low":
# cat /etc/udev/rules.d/30-amdgpu-pm.rules
KERNEL=="card0", SUBSYSTEM=="drm", DRIVERS=="amdgpu", ATTR{device/power_dpm_force_performance_level}="high"
Source: https://wiki.archlinux.org/title/AMDGPU#Screen_artifacts_and_frequency_problem
05:00 19.12.2022