Friday, 18 December 2015

Adjust Rotation Sensitivity Using Tasker



I've seen a few posts about over-sensitive auto rotate and experienced the same myself. After a bit of digging I found this post on reddit. It's seems a bit out of date for the current version of Tasker but you should make it past the differences just fine. This method was not created by me and I take no credit or responsibility:

Originally posted by kindall on Reddit:

Requires:
Tasker (of course)
A ROM that lets you choose what orientations your phone's display can auto-rotate into. I use Carbon, where this is under Settings > Display > Rotation. In other ROMs it may be in a different place. If you have a stock ROM you may or may not have such a feature at all.

Steps:
1) Go into your phone's orientation settings and TURN OFF everything but 90 degrees. Don't worry, the phone will still display in portrait mode; you just have to turn automatic rotation off! In fact, that's how this trick works: we'll use Tasker to turn auto-rotate on and off as a way to force the phone to be in either portrait or landscape.
2) At the bottom of Tasker > Preferences > Monitor, make sure Orientation State Accuracy is set to High. BTW, if you don't see these settings, make sure Beginner Mode (in the UI tab of the Tasker prefs) is not set.
3) Now create a profile: Name: Landscape; Contexts: [State: Display On; State: Orientation Left Side]. Create a new Enter task containing one action: Display Rotation On.
4) Create a second profile: Name: Portrait; Contexts: [State: Display On; State: Orientation Standing Up]. Create a new Enter task containing one action: Display Rotation Off.
5) Set the Restore Settings checkbox in both of these profiles to Off. (Long-press the profile name, then click the settings icon in the toolbar at the top of the screen.) Otherwise Tasker will switch the setting back as soon as the phone is no longer in the exact position needed to activate the profile, which will defeat the purpose.
Optionally:
6) add a profile that turns Display Rotation Off at startup, and perhaps another one that turns Display Rotation Off when the display is turned off, if you want to force portrait mode at either of these occasions.

Now your phone won't auto-rotate into landscape until you hold it pretty much exactly in landscape orientation, and won't rotate back until you hold it pretty much exactly in portrait orientation. You can control the required accuracy using the Orientation State Accuracy setting in Tasker, mentioned in step 2.
If you want to, you can add a third profile for rotating to the other landscape mode, and activate 270 degrees in your ROM's display rotation preferences. While the phone will freely rotate the display between these orientations when auto-rotation is on, it should be difficult to switch accidentally since they are physically so far apart.

Download from this link

No comments:

Post a Comment