Android Rotation issue
Try setting the default offset using hwrotation= ...
HW Rotation props are not intelligent, it will not understand that by 0 you mean landscape... 

You need to actually set it to a value of rotation out of 360 degrees.  

So... 

ro.sf.hwrotation=270    


OR   

ro.sf.hwrotation=180 


OR

ro.sf.hwrotation=90


OR   

ro.sf.hwrotation=0   


If that still is not fixing the issue, then please let me know... 

It is most likely being set by default.prop as part of the boot.img   -   Default.prop properties take priority over Build.prop properties.