Screen rotation bug and reset Poked at the system settings, display settings, and changed screen rotation setting to 180.
Immediately after rotation setting became read only, and then after 30 seconds it crashed.

After reboot i cant'go to system setting any more, it just says to me that it cant open display settings and hangs.

NVRAM reset (options+cmd+R+P) does not reset screen rotation setting, only everything else.

So. How to do rotate display back to default? Command line options anyone?

Macbook Pro 13", 2013, OS X 10.10.2
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