X11 remote TV plus AVR Low Tech Fix
Put something in front of your AVR to block the infrared beam. (I used a tall pillow). If you have your AVR remote, see if it turns on the AVR or not. Staying Off is good.
The follow the prompts to pair your TV Remote.
Then say “Yes”to program AVR.
Remove the barrier, check “pair my AVR”.
then exit, remove the barrier and test.
It worked for me.