I have an unrooted OnePlus X phone with the stock recovery and stock OxygenOS 2.2.0-X operating system (based on Android 5.1.1) installed.
With auto-rotation enabled, whenever I turn the device into landscape mode, the screen rotates in the wrong direction. I.e. when I turn it clockwise the screen contents are rotated counterclockwise, and the other way round. This leads to the screen contents always being upside down in landscape mode.
Does anyone have an idea how I could go about fixing this problem? Is there a way to check whether this is a software or a sensor problem?
Update: In the GSensor section of the developer-type manual test menu accessible via *#808#
, the phone reports an angle of 270 when I turn it 90° clockwise and it reports 90 when I turn it 90° counterclockwise. I assume it's supposed to be the other way round?
Update 2: After flashing TWRP recovery, rooting the device and installing a custom ROM, the problem persists. Is it fair to conclude that it's definitely a hardware issue now?