Sunday 26 March 2017

How to solve distorted graphics around window edges on Ubuntu 16.04

I had been working in GNU Octave on my Ubuntu 16.04 and couple of times it crashed or made all windows in OS to loose top command bar after I hit CTRL-C to terminate the running script.

Approximately after these events, even after system updates and reboots, I noticed that graphics is heavily distorted around edges of child windows in any application. It would look something like this:


Solution which helped was to install CompizConfig Settings Manager:
$ sudo apt-get install compizconfig-settings-manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-59 linux-headers-4.4.0-59-generic linux-image-4.4.0-59-generic linux-image-extra-4.4.0-59-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
python-cairo python-compizconfig python-gobject-2 python-gtk2
Suggested packages:
python-gobject-2-dbg python-gtk2-doc
The following NEW packages will be installed
compizconfig-settings-manager python-cairo python-compizconfig python-gobject-2 python-gtk2
0 to upgrade, 5 to newly install, 0 to remove and 0 not to upgrade.
Need to get 1,456 kB of archives.
After this operation, 9,461 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 python-cairo amd64 1.8.8-2 [41.3 kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 python-gobject-2 amd64 2.28.6-12ubuntu1 [181 kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 python-gtk2 amd64 2.24.0-4ubuntu1 [620 kB]
Get:4 http://gb.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python-compizconfig amd64 1:0.9.12.2+16.04.20160823-0ubuntu1 [38.2 kB]
Get:5 http://gb.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 compizconfig-settings-manager all 1:0.9.12.2+16.04.20160823-0ubuntu1 [575 kB]
Fetched 1,456 kB in 7s (190 kB/s)
Selecting previously unselected package python-cairo.
(Reading database ... 306648 files and directories currently installed.)
Preparing to unpack .../python-cairo_1.8.8-2_amd64.deb ...
Unpacking python-cairo (1.8.8-2) ...
Selecting previously unselected package python-gobject-2.
Preparing to unpack .../python-gobject-2_2.28.6-12ubuntu1_amd64.deb ...
Unpacking python-gobject-2 (2.28.6-12ubuntu1) ...
Selecting previously unselected package python-gtk2.
Preparing to unpack .../python-gtk2_2.24.0-4ubuntu1_amd64.deb ...
Unpacking python-gtk2 (2.24.0-4ubuntu1) ...
Selecting previously unselected package python-compizconfig:amd64.
Preparing to unpack .../python-compizconfig_1%3a0.9.12.2+16.04.20160823-0ubuntu1_amd64.deb ...
Unpacking python-compizconfig:amd64 (1:0.9.12.2+16.04.20160823-0ubuntu1) ...
Selecting previously unselected package compizconfig-settings-manager.
Preparing to unpack .../compizconfig-settings-manager_1%3a0.9.12.2+16.04.20160823-0ubuntu1_all.deb ...
Unpacking compizconfig-settings-manager (1:0.9.12.2+16.04.20160823-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link

Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up python-cairo (1.8.8-2) ...
Setting up python-gobject-2 (2.28.6-12ubuntu1) ...
Setting up python-gtk2 (2.24.0-4ubuntu1) ...
Setting up python-compizconfig:amd64 (1:0.9.12.2+16.04.20160823-0ubuntu1) ...
Setting up compizconfig-settings-manager (1:0.9.12.2+16.04.20160823-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5 is not a symbolic link

/sbin/ldconfig.real: /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link

/sbin/ldconfig.real: /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link

...then open it and turn off the Fading Windows effect:



No comments: