Repaint canvas glitch using NVIDIA binary driver Ubuntu 15.04

I have some strange effect using the binary driver (latest version 352.30, but the two previous versions behave similar). The setup is a laptop with GTX860M and two additional monitors.

It seems that GNOME is not updated properly. When writing, scrolling, moving the mouse, some parts of the windows are not updated properly, sometimes. When typing (within several editors or thunderbird) what I have typed is not visible unless I move the mouse over it.

I tried some Tweeks in GNOME and in the xorg.conf without success. My xorg looks

++
Section “ServerLayout”
Identifier “layout”
Screen 0 “Screen0” 0 0
Inactive “intel”
EnddSection

Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “Unknown”
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option “DPMS”
EndSection

Section “Device”
Identifier “intel”
Driver “intel”
EndSection

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce GTX 860M”
Option “TripleBuffer” “True”
BusID “PCI:1:0:0”
EndSection

Section “Screen”
Identifier “intel”
Device “intel”
Monitor “Monitor0”
EndSection

Section “Screen”
Identifier “nvidia”
Device “nvidia”
Monitor “Monitor0”
DefaultDepth 24
SubSection “Display”
Depth 24
Modes “nvidia-auto-select”
EndSubSection
EndSection

Section “Screen”
Identifier “Screen0”
Device “Device0”
DefaultDepth 24
SubSection “Display”
Virtual 5760 1080
Depth 24
EndSubSection
EndSection

In CompizConfigSettingsManager, all options are set (i.e. SynctoVBlank, etc.)

Any ideas?

I think all repaint issues boil down to this:
https://devtalk.nvidia.com/default/topic/729908/linux/-gt-334-21-redrawing-problems-in-gnome-3-10-3-12-gtx-580/6/

Still no solution to this? I have now updated to 352.30. Still flickering like hell. Especially when coding/typing a canvas not updating is…well…annoying…

If you’re using the Compiz Config Settings then doesn’t that mean you’re running Unity? If so you might want to look into getting the version of compiz from this PPA:

https://launchpad.net/~townsend/+archive/ubuntu/compiz-nvidia-refresh-test

It has nvidia’s patch to fix the refresh issue in compiz. Not sure if the patch ever made it into Ubuntu’s main repository.

Ok. Solved it no more glitching! For ppl interested:

(works for Ubuntu 15.04, Gnome 3.14)

#git clone GitHub - GNOME/mutter: Read-only mirror of https://gitlab.gnome.org/GNOME/mutter
#cd mutter
#git checkout gnome-3-14
#./auotgen
#./configure --prefix=/usr
#sudo make install

reboot.
done!

Ahrg. ignore the last post. After 10 mins usage, it starts glitching again. Tried the townsend patch put it does not update because the version used seems to be newer than the ppa.
Ripping my hair out!

Are you running GNOME or Unity?

Unity.