Weird pixelated white border. Ubuntu Xenial (16.04) [duplicate]

Solution 1:

The culprit is the new version of the NVidia driver. Reverting to 375 doesn't work because IMHO it has also been updated (minor version) and/or its dependencies are a mix of several versions. Anyway:

  1. Remove the PPA. On my computer I deleted the file /etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-xenial.list pointing to the repository deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial main
  2. Remove all the installed NVidia packages, i.e. nvidia-*. On my computer I deleted several packages with apt remove nvidia-361 nvidia-375 nvidia-378
  3. Update the packages list with apt update
  4. Install the last official version (i.e. 367) with apt install nvidia-367

As a side note, I'm always amazed how updates regularly break Ubuntu...

Solution 2:

Its' not a solution per se, but it helps to get the white borders removed.

We just need to restart the Unity, by using the following command -

unity --replace,

which will restart the Desktop Manager, but will keep are current Session intact.

So no logout/login needed, just call the above command whenever these NVIDIA drivers create your screen unusable.

EDIT-

Have tried this solution only on Ubuntu, so I guess most of the Debian Distro's will work here, but not sure about any other Linux Distro.


UPDATE

Above Solution was a temporary one... As it is true that latest drivers of NVIDIA breaks Ubuntu... I guess u should try the solution in the following link - Strange artifacts along window borders

As nvidia-367 updates itself automatically to nvidia-375, we need to get a stable nvidia-370, which doesn't update itself. This solved my issue, but I am still not convinced, as I still get screen tearing when watching a high-res video...

Solution 3:

Updating the Nvidia driver to 384.69 solved the issue for me.

In "Software and Updates" open "Additional drivers" tab an there should be "nvidia-384" option available. Select->Apply Changes->Restart

If not then visit: http://www.nvidia.com/object/unix.html