I recently purchased a Sony STR-DN1040 AV Receiver as well and I also cannot successfully set the code on my TiVo remote to control the receiver. I've attempted the following with no success:
1) Tested all of the remote codes suggested by TiVo for Sony receivers.
2) Searched through and tested all codes the TiVo remote can generate (http://support.tivo.com/app/answers/detail/a_id/292
3) Attempted to program the TiVo remote with the 1040 remote (http://support.tivo.com/app/answers/detail/a_id/278
), but my TiVo remote doesn't support this feature.
I've successfully programmed TiVo remotes to control two previous Sony AV receivers but the 1040 is a challenge, maybe because it is so new to the market. Has anyone successfully programmed their TiVo remote to control the DN1040 and if so, what is the code?