I have an AMD Radeon RX 460 Graphics (AMD POLARIS11 / DRM 3.23.0 / 4.15.0-72-generic, LLVM 5.0.1) which is connected to two 4k dell monitors with the latest amdgpu driver. When I wake the computer up from suspend, my display setting is often lost and one of my monitors render in half like below.
If I log out and log back in, 80% of the time this is fixed but not always.
Here is what the setting looks like
What could be the cause of this?
How can I fix this?
From time to time the Window Manager will reset my displays as well. So as to not have to go manually reset them (or reboot) I've created a function in
~/.bashrc
to do this for me:Whenever the screens are "wacky" I open a terminal and type
xreset
.The first step for you is to create a similar function. The next step is to have it automatically called when suspending from resume. To do that create a script in
/lib/systemd/system-sleep
and mark it executable.Of course the desirable solution is to fix the Window Manager (Unity, GDM, etc) but if that isn't possible this band-aid approach can be taken.