For this, you need to point your universal remote towards your TV, press the device button on the remote, and then press and hold the power and device buttons. After the power light of the device turns off and then back on, let go of the buttons. If the remote is working, the correct code has been found. If not, repeat the process. However, do note that the auto-programming feature does not always work, and you'll have to manually add the code in most cases.