after 20 mins my monitor automatically goes on screen saver mode and locked. once we give the password to unlock the system, the resolution is changed automatically...
Solution might be to change the screen saver image you are using to a newer, one, as some older ones run at a lower resolution. You did not say which way the resolution was changing, upward or downward. Eg.,
changed from 1024x768 to 800x600.