Question: how do i program my directv remote to turn my tv on and off?
Answer: Press MENU on your remote.
Select Settings & Help > Settings > Remote Control > Program Remote.
Choose the device (TV, audio, DVD) you wish to program. ... 
Follow the on-screen prompts to complete programming.