![[Project Share] OLED/AMOLED Battery Saver](https://preview.redd.it/epkvmf33ujjh1.png?auto=webp&s=cc92f30042517882a6242403d2c0c45e552216e0)
[Project Share] OLED/AMOLED Battery Saver
PROJECT UPDATED - The mesh of black pixels is now randomised. Different pixels are disabled each time you launch the overlay (preventing 'burn in').
This is my goodbye gift to the Tasker community. I popped in a few days ago to see what's going on (I was borrowing an Android phone). It's time for me to say goodbye.
As a little parting gift, here is a simple solution to draw a very fine mesh overlay covering all of your screen (including the status bar and navigation bar). The grid contains a series of tiny, single pixel, black squares. When shown, these squares have the effect of 'turning off' the pixels on your display.
Full touch control of elements on your screen is retained. Use your phone as normal.
This is only worth using on an OLED or AMOLED (including LTPO AMOLED) display.
50% of your screen will be switched off, this saves up to 60% of the battery used to power your display. This is because even a pixel in very low brightness uses a surprisingly high amount of power.
Features:
- Fade in and fade out animation when the overlay is created and closed
- Set the mesh pixel size and opacity in the variables provided (my advice is to keep opacity at 100% and the mesh size at the minimum '1'). If you make the grid size too big you will start to see the individual squares and it looks bad. At default settings, it is not possible to see individual squares with the naked eye.
- Separate close script provided to allow you to create your own automations/quick settings tiles etc.
The screen will dim slightly when you are using the overlay (this is predictable as we are turning off pixels). If you take a screenshot with the overlay, thumbnails might show as black until you maximise the image - then they display normally.
Mesh size: 1 = 2x2 pixels, 2 = 4x4 pixels, etc.
You can adjust the variable values to use in possible screen security or privacy projects also.
Tasker needs Accessibility service enabled.
SDK >=33 required.
Good luck to everyone with their future projects!