AMD RX480 Screen flicker after update to 18.04
As mentioned in the title. Was upgrading from 17.10. Having this screen flickering.
My GPU is AMD RX480
What I did:
- Search for similar issues for 18.04, can't find any
- Perform fresh install. Still the same.
Please help. It is very annoying. I can't work.
Solution 1:
I solved it myself by using amdgpu.dc=0
as a boot parameter.
To do this, edit the file /etc/default/grub
, for example using
sudoedit /etc/default/grub
Find the line beginning GRUB_CMDLINE_LINUX_DEFAULT
and add the text amdgpu.dc=0
between the double quotes (""
). Leave any other parameters as they are. For example, you may end up with a line like this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.dc=0"
Save the file and exit, and then run
sudo update-grub
to write the configuration, and reboot.
Solution 2:
I have screen flickering problem when I'm connecting my laptop to my TV. I found that when I change the refresh rate from 60Hz to 59Hz this problem disappear.
Within Xorg (as I know 18.04 uses it by default) you can change the refresh rate by the help of xrandr
:
0. First you must find the video output name to which you should assing the new mode. Just type xrandr
and investigate which one is it. In my case this is HDMI-1
.
1. Generate new modeline using cvt
:
$ cvt 1920 1080 59 # 1920x1080 58.94 Hz (CVT) hsync: 66.02 kHz; pclk: 169.00 MHz Modeline "1920x1080_59.00" 169.00 1920 2040 2240 2560 1080 1083 1088 1120 -hsync +vsync
-
1920
and1080
are the horizontal and vertical resolution's values. -
59
is the value of the refresh rate.
2. Create the new mode:
xrandr --newmode 1920x1080_59.00 169.00 1920 2040 2240 2560 1080 1083 1088 1120 -hsync +vsync
3. Assign the new mode to the video output:
xrandr --addmode HDMI-1 1920x1080_59.00
4. Activate the new mode:
xrandr --output HDMI-1 --mode 1920x1080_59.00
If the above works and the problem disappear, you should find a proper way to add and set this mode at the system startup. Here are few references about that:
- How can I make
xrandr
customization permanent? - Adding newmode with Xrandr - "800x480_60.00"
- start up command
- Differences how to run scripts at startup
Solution 3:
I've no answer here, but some observation and confirmation of problem. If someone finds this text: please stick to ubuntu 17.10 if you have radeon rx 580 (may be 480 and vegas)
Got myself to very same situation with 18.04 (upgrade, then fresh install). Amd rx 580 here, kernel 4.15.0-20.
What did not help:
- fresh install after upgrade
- oibaf drivers
- M-Bab custom kernel
- 4.17-rc3 kernel from main line ppa.
- amdgpu.dc=1 as boot parameter (/etc/default/grub)
Update: Apparently older kernel works. I've been tinkering with other distibutions and found that kernel 4.15.14 works for rx 580, you may want to try it from mainline ppa.