go to settings...type BUILD NUMBER in search bar. Tap Build Number 7 times to turn on developer options.
Go to settings again then open Developer Options at the bottom.
turn off option for STAY AWAKE. My phone's screen saver function worked after that setting was changed.