Screen Flickering in Ubuntu 18.04.1 LTS
Solution 1:
I was observing screen flickering but not shaking. I had to edit my monitor config and change the framerate. By default mine was set to 60.169086456298828.
open terminal and run the following:
gedit ~/.config/monitors.xml
edit this line:
<rate>60.1690864562988</rate>
set it to be lower than 60 as mentioned by 4levels, I used 59.96.
Solution 2:
I just deactivate the compositor from settings/GUI. I'm new to Linux and stuff but this work for me, I'm using Kubuntu on a very old system/pc.