Screen rotation bug and reset
Accepted answer didn't work for me but the following free command-line tool did;

https://github.com/CdLbB/fb-rotate

Once compiled (see readme) just ./fb-rotate -d 0 -r 0