Laptop:
AMD A8-7410 APU Radeon R5
HP 15-AF109AX
symptom: Screen flickering continuously at some interval time
Dmesg error:
[ 3806.507278] radeon 0000:00:01.0: ring 2 stalled for more than 29348msec
[ 3806.507310] radeon 0000:00:01.0: GPU lockup (current fence id 0x000000000000038f last fence id 0x0000000000000390 on ring 2)
Install firmware, you need add non-free repository
# apt-get install firmware-amd-graphics
Check firmware loaded
# lspci -k | grep -A 3 VGA
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R4/R5 Graphics] (rev 45)
Subsystem: Hewlett-Packard Company Device 80cc
Kernel driver in use: radeon
Kernel modules: radeon, amdgpu
Create/Edit /etc/X11/xorg.conf.d/20-radeon.conf
Section "Device"
Identifier "AMD Radeon"
Driver "radeon"
EndSection
Optional /etc/X11/xorg.conf.d/20-radeon.conf if error persist
Section "Device"
Identifier "AMD Radeon"
Driver "radeon"
Option "AccelMethod" "EXA"
Option "ColorTiling" "off"
Option "EnablePageFlip" "off"
EndSection