I have Ubuntu 12.04 (Precise) OS and I actually can't tell what has caused this weird thing to occur.
Sometimes, the screen just turns off. Then it immediately turns on thinking it's in digital mode (DVI) even though it should be analog mode. And then it goes to analog mode and then it might even have a progress bar showing that it's initializing itself (says "auto adjusting").
This has started occurring only today. I think the only thing I’ve done is to do a small update for the OS. Sometimes it occurs only after a long time since boot, but when it occurs, there is a high chance that it will occur soon again.
The screen is Samsung syncMaster T220p.
Is there maybe a way to go back to previous state of the OS, like on Windows? Maybe something went wrong in the settings of GNOME?
I've connected the problematic monitor to another computer (Windows 7) and it worked fine, while connecting a different monitor to Ubuntu OS (which also worked fine).
Today, I've connected the problematic monitor back to Ubuntu OS computer and it has worked fine for several hours and then the problem has occurred again.
I think it's best to replace the monitor, but it would be nice to know if someone can tell me if it's possible to fix it in another way.