Under /Library/Preferences is (I think) com.apple.WindowManager.plist (from the top of my head) which contains the settings for the display. If for some reason or other you don't have the permissions to change this file, that would explain why the settings won't stick.
Check the permissions on the file, and see what it says.