The other day i bought a second hand i9505, the problem is that the screen rotates upside down. When i start any app and turn the phone sideways the screen rotates exactly 180 degrees from what it's supposed to be, which is very annoying when watching a youtube clip or taking a photo. The phone was on stock 4.4, at first i thought it was a callibration problem so i installed a stock 4.2.2, but no luck. Then i installed slimrom but still no go, tried different kernels (like 4 or 5) and still nothing.
So my question is is there any way to fix this without taking it to the shop? Like a patch or an app to fix it, and how can i see the values of the gyroscope to see if it is outputting what it's supposed to ?