Phones
Auto-Rotate or Compass Not Working? Check Your Phone's Sensors
Screen won't rotate or the compass points the wrong way? Test the accelerometer, gyroscope and compass in your browser, then fix the settings.
By TestrHub · Published October 20, 2026 · Updated October 20, 2026
In short: when the screen stops rotating, the cause is almost always the rotation lock or an app that forces one orientation, not the sensor. When the compass points the wrong way, it is usually a nearby magnet, and a figure-eight calibration fixes it. Our sensor test shows whether the accelerometer, gyroscope and compass respond, so you know in a minute whether to look at the settings or at the hardware.
Which sensor does what
| Sensor | What it measures | What it is used for | Can a browser test it? |
|---|---|---|---|
| Accelerometer | Gravity and movement along three axes | Rotating the screen, counting steps, shake gestures | Yes |
| Gyroscope | How fast the phone turns | Smooth tilt in games, augmented reality, video stabilisation | Yes, when the phone has one |
| Compass (magnetometer) | The Earth’s magnetic field | The direction of the blue dot in maps, compass apps | Yes, on most phones |
| Proximity sensor | Whether something is close to the top of the screen | Turning the screen off during calls | No |
| Light sensor | Ambient light | Automatic brightness | No |
Auto-rotate needs only the accelerometer: a phone without a gyroscope still rotates its screen.
Test your sensors
- Open the sensor test on the phone. On an iPhone, tap Allow motion sensors and accept; on Android, the live view starts at once.
- Tilt the phone. The drawn phone should follow, the level bubble should move, and “Sensors found” should show Working for each sensor. A sensor that shows No data is missing or not answering.
- Run check 1, “Flat and still”. Lay the phone flat and let go for six seconds. The accelerometer should read close to 9.8 m/s², the pull of gravity. Then turn the phone half a turn and measure again: the test separates the slope of your table from the sensor’s own offset.
- Run check 2, “Movements”. Tilt forwards and back, side to side, and turn the phone flat. All three directions should light up.
- Run check 3, “Compass turn”. Turn slowly on yourself, holding the phone flat, until the ring is full. “Smooth” means the compass follows; “Jumps” means something disturbs it.
| Result | What it means | What to do |
|---|---|---|
| Accelerometer close to 9.8, Movements 3 of 3 | The motion sensors work | Look at the settings below |
| Accelerometer far from 9.8 or very unsteady | The sensor is faulty or damaged | Restart; if it stays wrong, have the phone checked |
| A direction never lights up | One axis does not respond | Restart, then repair if it persists |
| Gyroscope “None” | The phone has no gyroscope | Normal on some budget phones |
| Level offset of more than 1° | The sensor reads a small tilt when the phone is flat | Matters only for level and tilt apps |
| Compass “Jumps” | Magnetic interference | Move away from magnets and calibrate (below) |
The screen no longer rotates
- Check the rotation lock first.
- iPhone: open Control Center and look at the Portrait Orientation Lock button, a padlock with a circular arrow. Tap it to turn it off.
- Android: open the quick settings and tap “Auto-rotate”. If it shows “Portrait” or a lock, rotation is locked. When it is locked, many Android phones show a small rotate button in a corner of the screen when you turn the phone: tap it to rotate once.
- Test in an app that rotates. Many apps stay upright on purpose, and the Home Screen of most iPhones does not rotate. Try the web browser or the photo gallery.
- Check the Home Screen setting on Android. Some launchers have their own option, such as “Rotate to landscape mode” or “Allow Home screen rotation”, in the Home Screen settings.
- Restart the phone, then install pending updates.
If rotation is unlocked, the app supports landscape, and the sensor test shows that the accelerometer works, the problem is in the software: a system update or a reset of the settings usually fixes it. If the sensor test shows no movement at all, the sensor is at fault, often after a drop.
The compass points the wrong way
- Move away from magnets and metal. Magnetic cases and car mounts, laptop speakers, metal desks and even some wallet cases with clasps bend the field the compass measures.
- Calibrate with a figure eight. Hold the phone and draw a large figure eight in the air several times, rotating your wrist as you go. In Google Maps on Android, tap the blue dot and choose “Calibrate” for a guided version.
- On an iPhone, check that Compass Calibration is on: Settings → Privacy & Security → Location Services → System Services.
- Run the compass turn again in the sensor test. “Smooth” confirms the fix.
A compass that stays wrong far from any magnet, after calibration, points to a faulty magnetometer, which is rare. If the problem appeared after you added a magnetic accessory, the accessory may have slightly magnetised parts of the phone; calibrating usually compensates for it.
Steps not counted
The step counter uses the accelerometer, often through a low-power chip that runs in the background.
- Permissions. On an iPhone, Settings → Privacy & Security → Motion & Fitness → Fitness Tracking must be on, and the fitness app must be allowed. On Android, the app needs the “Physical activity” permission.
- Battery optimisation. On Android, battery saving can stop a step-counting app in the background. Exclude it from battery optimisation in the app’s settings.
- Where you carry the phone. A phone in a bag or a stroller counts fewer steps than one in a pocket.
Frequently asked questions
Can a website calibrate my phone’s sensors?
No. A web page can only read the values. Calibration is done by the phone itself, or by the figure eight for the compass.
Why do the values move when the phone is still?
Every sensor has a little noise, and some browsers round the values slightly to protect privacy. Small movements in the last digit are normal.
How do I check the proximity sensor?
Make a call and cover the top of the screen with your hand: the screen should turn off, then on again when you move your hand away. Browsers cannot read this sensor.
Can a drop break the sensors?
Yes. The motion sensors are tiny chips on the main board, and a hard drop can damage them or their connections. The sensor test shows whether they still respond.