Screen freezes when going full-screen mode - Ubuntu 16.04 LTS

Create a file named 20-modesetting.conf under the /usr/share/X11/xorg.conf.d directory, with the following content:

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "modesetting"
EndSection

Some people suggest removing the Intel graphics driver entirely (https://bugs.chromium.org/p/chromium/issues/detail?id=606152#c73):

sudo apt-get purge xserver-xorg-video-intel

This will essentially force Ubuntu to use the modesetting driver.

I think it is a more elegant solution to leave the Intel graphics driver as is and just override it with a simple configuration file.

For the moment, the Intel graphics driver is responsible for many problems, such as freezing when in full screen mode and flickering in Google Chrome.