Stopping the service "Detecting RANDR (monitor) changes" as mentioned in the fix of this page solved my problem.
I am having a VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) -- [Intrepid] Screen flicker/resync on X4500HD https://bugs.launchpad.net/bugs/275152 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs