One of the greatest Android features is auto-brightness implementation. It helps you to auto adjust brightness settings for your phone. In case you are not happy with default auto-brightness, which is sorely lacking in configurability, this article will be useful for you.
We will guide you through setting up the Tasker to toggle the brightness whenever you shake your Android device. This can be helpful, for example, when you are outside and it is not so easy to reach for the brightness slider.
How to increase Brightness whenever you shake your Android?
Let’s start. It is important to allow Tasker to administer your device before start. On your device, go to Settings -> Location and security -> Device administrators. Check the box for Tasker.
After that, follow these steps:
- Start the Tasker app. In the main screen, press + at the bottom. Create a new Profile with Toggle Brightness name.
- After that, you need to create an Event context and go to Sensor. Choose the Shake event. For Axis, we recommend you Left-Right (because this is pretty natural way to shake the device). For Sensitivity, choose Very Low to not to accidentally toggle the brightness. You can also leave it at Low in case you think you are having to shake device hard to get it to work. As for Duration, we recommend to choose Medium. It’s up to you and you can feel free to make experiments with these settings until you are satisfied.
- Now Exit and create a task (you can skip with the task name, since it is unlikely you will be using it elsewhere.
- Task –> If. Set it to %BRIGHT ~ 255. This will check if the device brightness is already at maximum.
- Display –> Display Brightness. Set the Level to %Bright. This will be the saved brightness that will be restored when you shake the device again.Important: The new version of Tasker doesn’t have same settings. In Step 2 you only have a slider to set brightness (you can set it, for example, to 15%). But you have an alternative way: you can go to Display –> Display Brightness screen, click on the little double arrow criss-cross icon at the right top and it will switch the slider to a text input view (if you don’t see the icon, go to your UI preferences and uncheck Beginner Mode at first). Here you can specify %Bright and tasker will interpret the variable as a number that will set the brightness. Keep in mind that %Bright must be between 0 and 255 because those are the only acceptable values for the brightness, however this should not cause any problems because you are simply setting brightness to whatever it was previously.
- This settings is optional: Display –> Display Timeout. Set the display timeout to restore to what you are usually use.
- Go to Task –> Else.
- Go to Variables –> Variable Set. Set %Bright to %BRIGHT. This setting is storing the current brightness level to a variable to restore on next shake.
- Now go to Display –> Display Brightness. Set it to 255 level, this will set devices brightness to maximum.
- OPTIONAL: Display –> Display Timeout. Set this to a higher display timeout in case that’s what you want.
- Task –> End If.
Tip: If you want to have an icon on top of your phone, so you can monitor whether or not the profile is on. You can do this by adding a Notification to the task.
Now it’s finished! From this moment, in case you shake your phone, brightness of your device will toggle between max level and whatever it is you had before you set to the maximum.