Hysteresis for auto-rotation

asked 2017-01-01 08:36:30 +0300

akssri gravatar image

updated 2017-01-01 10:46:14 +0300

I find the auto-rotation to be much too sensitive - leaving the phone on a flat surface with slight deformities is generally enough to trigger a transition. Would it be possible to add some kind of hysteresis, an offset, before the change is actually triggered. Is there source code available for the procedure that governs the transition (so that I can play with various schemes) ? A quick grep failed to yield anything that could catch my eye.

edit retag flag offensive close delete

Comments

2

You can use lock-rotation feature - hold finger on screen when you positioning your phone and UX remains in actual position.

Naecken ( 2017-01-01 11:10:17 +0300 )edit
2

@Naecken I don't find that natural at all. It seems like manual hack for something that can be improved IMO.

akssri ( 2017-01-01 11:18:56 +0300 )edit
1

@akssri what the phone needs is a compass not only gyros or accelerometers its a combination of those three hardware sensors to allow intelligent auto rotation, Apple iphones do a pretty good job at that but would say that its not sensitive enough in that case.

DarkTuring ( 2017-01-01 18:18:02 +0300 )edit
1

@DarkTuring A magnetometer will definitely help, but it appears entirely feasible to have very pleasant behaviour using the accelerometer alone.

akssri ( 2017-01-02 06:49:25 +0300 )edit