View Single Post
Old September 11th, 2012, 03:06 PM   #1 (permalink)
SUroot
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts
Default [Profile] [Light Sensor] V2 - Brightness adjust on Screen on

This is a mid-level complexity profile to set the screen brightness higher if its bright outside.

This profile is for those who don't use Auto-brightness (which we know uses power whilst constantly polling the light sensor).

Thanks to Davoid for the inspiration / base and to guys on google groups helping me iron out issues with the light sensor.


NB. These are my values, set up for my preference. Please experiment with your own

V2:

This consists of 3 profiles.

I have exported them and attached them as a zip.


The two .xml files inside need to go to /sdcard/tasker/profiles/ to import them.

To import, long press on the "Profiles" tab. I haven't tested these.


Profile 1: GetLight

Profile


  • Add (+) Profile, name "GetLight"

Context
  • Select Event > Display > Display on

Task


  • New Task
  • + Variable > Variable Set >Name "%LightValue", To "%LIGHT"
  • + Tasker > Profile Status > Name "GetLight", Set "Off"

Profile 2: DisplayOn

Profile


  • Add (+) Profile, name "DisplayOn"

Context


  • Select Event > Variable > Variable set > "%LightValue"

Task


  • New Task
  • + Display > Display Brightness > Level (0), IF "%LightValue" < "500"
  • + Display > Display Brightness > Level (75), IF "%LightValue" > "500"
  • + Display > Display Brightness > Level (120), IF "%LightValue" > "1500"
  • + Display > Display Brightness > Level (190), IF "%LightValue" > "3000"
  • + Display > Display Brightness > Level (120), IF "%LightValue" > "4000"
  • + Tasker > Profile Status > Name "GetLight", Set "Off"


Profile 3: DisplayOff

Profile


  • Add (+) Profile, name "DisplayOff"

Context
  • Select Event > Display> Display Off

Task


  • New Task
  • + Tasker > Profile Status > Name "GetLight", Set "Off"



V1:



Attached Files
File Type: zip profiles.zip (1.6 KB, 276 views)
SUroot is offline  
Last edited by SUroot; January 22nd, 2013 at 04:27 AM.
Reply With Quote
The Following 9 Users Say Thank You to SUroot For This Useful Post:
bberryhill0 (September 11th, 2012), bruce73 (September 11th, 2012), davoid (September 11th, 2012), Flumme (September 11th, 2012), fortunz (October 5th, 2013), Frank_V (October 6th, 2012), mrhomiec (September 11th, 2012), silentwitness (December 9th, 2012), Tepes4 (December 7th, 2013)