I do not think the TV is forgetting settings, it is changing them per input.
No idea how old your is but I can state that on the 2012 Sony I had you could set user settings per input as James has already allied to.
EG set up preferences for HDMI input 1, and when changing to HDMI input 2 it would default to factory setting until I set it up for that input and so on.....