This Page will help you to calibrate your Samsung TV. I recommend you only use it in emergency - don't do it when it is not needed.
Mostly you will need to calibrate when you made a mistake and start the calibration in Service Menu with the right/left button.
So you need to recalibrate when you see Failure
There are different sources to calibrate: AV, Comp, PC, HDMI - so you need first to switch to the source to calibrate them.
The TV will only allow you to calibrate the current selected source.
To calibrate the AV (Tuner, USB, ) you have to plug in a MediaPlayer which is connected to the AV Interface. I used a Iomega Screenplay TV Link device, but others AV-Devices like, DVD Player, XBox, PC with Composite ... are also usable.
Copy the follow Picture to a USB key and Plug it to your MediaPlayer - you should see the picture on your TV.
Now in Service Menu do a new calibration - you will see a pink square jumping from black (upper left) to white (upper right) to black (button right) and last to white (bottom left). After that procedure you will see again Success.
The same way you do it for HDMI when it is failed.
This HowTo is tested on a D5700 Samsung TV but will work on others models too.