If you are developer, try this method:
Developers: ¿How to rotate the screen on Exodux Android TV Box? - EXODUX Box
There is an APP demo for testing rotation and open source code.
Of course, it will depend also on the other build.prop properties, but you can change them from runtime too.
Also...