Phone [Q] Porblem with O3D

So.. My screen goes out of the rails. It stops, starts, locks, unlocks. I don't know what happened, but iniatilly this problem appeared only when I was connected to a Wi-Fi or to the data mobile. Now, it also appears when the battery is under 30 % and when it gets warm (like over 30 C).
Some months ago I had a problem with the phone, I have unbricked it and I have installed the official ics 4.0.4.
Can somebody help me?