Is there a file that controls the screen resolution of kodi?

Hi All,

Sometimes when tweaking kodi on a raspbian + kodi install or osmc or librelec install I have to fully reset the pi or upgrade to a higher version of kodi. It is a pain to have to do a video calibration. I was wondering if there is a file that controls the screen size and/or resolution of kodi? I would make sure I always restore this after tweaks or upgrades and not have it reset all the time back to the desktop resolution.