nvidia flickering compiz

If you experience screen flickering at random times you can try adding

options nvidia_new NVreg_Mobile=1 NVreg_RegistryDwords=”PerfLevelSrc=0x2222″

(for copy&paste check the “)
to /etc/modprobe.d/nvidia-kernel-nkc (Ubuntu) in order to fix some timer problems between the driver and compiz-fusion.

It took me a long time to finally see this solution here:

http://www.nvnews.net/vbulletin/showthread.php?t=87692