Go Back   Android Forums > Android Discussion > Android Applications > Tasker

Like Tree5Likes

test: Reply
 
LinkBack Thread Tools
Old September 11th, 2012, 03:06 PM   #1 (permalink)
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)
davoid and kevp75 like this.

Advertisements
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)
sponsored links
Old September 11th, 2012, 09:26 PM   #2 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

Awesome. Auto-brightness has always driven me nuts but forgetting to change the brightness before going outside is annoying too. Great solution.

* I'm not getting it to run. Why do I have orange triangles next to the names?
__________________
My Eris apps
bberryhill0 is online now  
Last edited by bberryhill0; September 12th, 2012 at 12:41 AM.
Reply With Quote
Old September 11th, 2012, 11:20 PM   #3 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

Maybe in a new post instead of editing:
Attached Images
File Type: jpg uploadfromtaptalk1347423550847.jpg (36.1 KB, 75 views)
bberryhill0 is online now  
Reply With Quote
Old September 12th, 2012, 12:57 AM   #4 (permalink)
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

The only orange triangle I can see is the symbol for event


Can I have screenshots within the tasks please?
SUroot is offline  
Reply With Quote
Old September 12th, 2012, 01:52 AM   #5 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

Ah. The ! in the triangle had me worried. I'll check in the morning to see if it works in sunlight.

Should the set %LightValue to %Light be %LIGHT?

* Is changing the profile status necessary to get GetLight to notice the variable %WantLight change?
bberryhill0 is online now  
Last edited by bberryhill0; September 12th, 2012 at 02:15 AM.
Reply With Quote
Old September 12th, 2012, 11:09 AM   #6 (permalink)
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

Quote:
Originally Posted by bberryhill0 View Post
Ah. The ! in the triangle had me worried. I'll check in the morning to see if it works in sunlight.

Should the set %LightValue to %Light be %LIGHT?

* Is changing the profile status necessary to get GetLight to notice the variable %WantLight change?
Sorry %LIGHT is correct. Edited

Yes, we want GetLight off so it's not getting light from sensor constantly. We turn it on for a moment when we want light.
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
bberryhill0 (September 12th, 2012)
Old September 12th, 2012, 06:54 PM   #7 (permalink)
Senior Member
 
mrhomiec's Avatar
 
Join Date: May 2010
Location: Arizona
Gender: Male
Posts: 528
 
Device(s): Droid 1, Galaxy Nexus, Galaxy S3
Carrier: Not Provided

Thanks: 67
Thanked 72 Times in 51 Posts
Default

I can't get this to work, and everything matches perfectly.

I turned off Auto Brightness, turned it up high, and covered the sensors. But nothing changed.
__________________
Nintendo 3DS Friend Code, PM if you add me.
================================================== ===========================THANKS
================================================== ==============================| |
================================================== ==============================| |
================================================== ============================== V
mrhomiec is offline  
Reply With Quote
Old September 12th, 2012, 07:26 PM   #8 (permalink)
Member
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 380
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

Quote:
Originally Posted by SUroot View Post
Sorry %LIGHT is correct. Edited

Yes, we want GetLight off so it's not getting light from sensor constantly. We turn it on for a moment when we want light.
I'm a little confused about this. It seems to work (when I'm in the house brightness is at 39%, and outside in the shade it's at 71%), but, after it's set, when I look at the profiles in Tasker, GetLight is active. According to what you said, shouldn't it be inactive?
bruce73 is offline  
Reply With Quote
Old September 12th, 2012, 08:46 PM   #9 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

Quote:
Originally Posted by mrhomiec View Post
I can't get this to work, and everything matches perfectly.

I turned off Auto Brightness, turned it up high, and covered the sensors. But nothing changed.
It only checks the light sensor when the display comes on.
bberryhill0 is online now  
Reply With Quote
Old September 13th, 2012, 01:09 AM   #10 (permalink)
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

Quote:
Originally Posted by bruce73 View Post
I'm a little confused about this. It seems to work (when I'm in the house brightness is at 39%, and outside in the shade it's at 71%), but, after it's set, when I look at the profiles in Tasker, GetLight is active. According to what you said, shouldn't it be inactive?
I've noticed a glitch where getlight wasn't deactivated. I manually deactivated and then tested. It was fine after that. I'll do some testing to see if I can tidy it up or something.
SUroot is offline  
Reply With Quote
sponsored links
Old September 13th, 2012, 01:48 AM   #11 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

My Incredible 2 is too slow to handle Tasker. I can see the brightness change through the three levels when I'm outside.
bberryhill0 is online now  
Reply With Quote
Old September 13th, 2012, 08:42 AM   #12 (permalink)
Senior Member
 
mrhomiec's Avatar
 
Join Date: May 2010
Location: Arizona
Gender: Male
Posts: 528
 
Device(s): Droid 1, Galaxy Nexus, Galaxy S3
Carrier: Not Provided

Thanks: 67
Thanked 72 Times in 51 Posts
Default

Quote:
Originally Posted by bberryhill0 View Post
It only checks the light sensor when the display comes on.
i tried testing that too. i set the display to max brightness. turned off screen. covered up the sensor and unlocked. the screen was still at max brightness.
mrhomiec is offline  
Reply With Quote
Old September 13th, 2012, 10:23 AM   #13 (permalink)
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

Quote:
Originally Posted by mrhomiec View Post
i tried testing that too. i set the display to max brightness. turned off screen. covered up the sensor and unlocked. the screen was still at max brightness.
Well thats wrong on both accounts. It doesn't turn the brightness down if its dark. It turns the brightness up if its light.

You could add a "less than" if you wanted.
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
mrhomiec (September 13th, 2012)
Old September 13th, 2012, 11:21 AM   #14 (permalink)
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

[*]+ Tasker > Profile Status > Name "GetLight", Set "Off"

Added to end of DisplayOn to double disable GetLight
SUroot is offline  
Reply With Quote
The Following 2 Users Say Thank You to SUroot For This Useful Post:
bberryhill0 (September 13th, 2012), bruce73 (September 13th, 2012)
Old September 13th, 2012, 01:08 PM   #15 (permalink)
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

I've attached exported xml profiles in post 1.
SUroot is offline  
Reply With Quote
Old September 13th, 2012, 01:36 PM   #16 (permalink)
Member
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 380
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

Thx for the files, but it still ill doesn't work properly for me. Why is brightness @ 180 listed twice in the WantLightOn task? Also, even with setting brightness to 0 (why would I want to do this anyway), my display only goes down to 8%? Is that a limitation of my phone (HTC Vivid on ICS)?
bruce73 is offline  
Last edited by bruce73; September 13th, 2012 at 01:41 PM.
Reply With Quote
Old September 13th, 2012, 01:50 PM   #17 (permalink)
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

Quote:
Originally Posted by bruce73 View Post
Why is brightness @ 180 listed twice in the WantLightOn task?
Because I've made a mistake....


Quote:
Originally Posted by bruce73 View Post
with setting brightness to 0 (why would I want to do this anyway)
Why wouldn't you want the brightness as 0 (lowest setting) in a dark room? Its not like you need brightness to overcome the abundance the light in the room.


Quote:
Originally Posted by bruce73 View Post
my display only goes down to 8%? Is that a limitation of my phone (HTC Vivid on ICS)?
Maybe it is a limitation of your phone.
SUroot is offline  
Last edited by SUroot; September 13th, 2012 at 01:54 PM.
Reply With Quote
Old September 13th, 2012, 06:53 PM   #18 (permalink)
Senior Member
 
mrhomiec's Avatar
 
Join Date: May 2010
Location: Arizona
Gender: Male
Posts: 528
 
Device(s): Droid 1, Galaxy Nexus, Galaxy S3
Carrier: Not Provided

Thanks: 67
Thanked 72 Times in 51 Posts
Default

Quote:
Originally Posted by SUroot View Post
Well thats wrong on both accounts. It doesn't turn the brightness down if its dark. It turns the brightness up if its light.

You could add a "less than" if you wanted.
I have no idea what's going on then.

I have my brightness set to the lowest. When it's under direct sunlight, it doesn't change when I turn in the screen.
mrhomiec is offline  
Reply With Quote
Old September 13th, 2012, 09:05 PM   #19 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

I left Tasker open on the variables tab then locked and unlocked my phone. You can see the variables change if they're going to. It didn't work very often for me.
bberryhill0 is online now  
Reply With Quote
Old September 13th, 2012, 09:28 PM   #20 (permalink)
Member
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 380
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

Same here.
bruce73 is offline  
Reply With Quote
sponsored links
Old September 14th, 2012, 04:09 AM   #21 (permalink)
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

I'm finding at the moment I have to turn my screen on then off then on often for it to work at the moment. Its like it only works 50% of the time.

Other times, it wont work until I touch my status bar (Wonder if this is because I have a brightness slider in the Notification area?)

May have to rethink it.
SUroot is offline  
Reply With Quote
Old September 14th, 2012, 04:57 AM   #22 (permalink)
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

Think I have a solution. Seems to be working for me so far.... Variable updates at every screen on.

3x profiles.

1) GetLight
Event Display On
Task %LightValue To %LIGHT

2) Display On
Event Variable Set %LightValue
Task Display Brightness whatever if Greater than whatever
Task tasker Profile Status GetLight Off

3) Display Off
Event Display Off
Task Tasker Profile Status GetLight On*

* GetLight will continue to Poll %LIGHT if the display is on and The GetLight Profile is On so we turn off the Profile. We turn it on When the Display is off as it Does not Poll %LIGHT until the display is turned back on...

Will upload test Profiles in a bit...
Attached Files
File Type: zip profiles.zip (1.5 KB, 45 views)
SUroot is offline  
Last edited by SUroot; September 14th, 2012 at 05:07 AM.
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
mrhomiec (September 14th, 2012)
Old September 14th, 2012, 09:33 AM   #23 (permalink)
Member
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 380
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

Still not working properly for me. I went outside, turned the display on, and it popped up to 75%. But when I came back in and turned the display on in a darkened room, it didn't change from 75%.
bruce73 is offline  
Reply With Quote
Old September 14th, 2012, 09:39 AM   #24 (permalink)
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

Did the variable change? If so, to what? There's no less than in the test profile so you'll only see a drop if its below the step its on and above the lowest step.

Lets keep it simple and confirm it goes up properly
SUroot is offline  
Last edited by SUroot; September 14th, 2012 at 09:48 AM.
Reply With Quote
Old September 14th, 2012, 09:53 AM   #25 (permalink)
Member
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 380
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

That was it. The variable was changing, but the ambient light in my apartment is only around 200. So I brought down the first value to 150 (@75 brightness) and it works. Cool. Thanks.
bruce73 is offline  
Reply With Quote
Old September 14th, 2012, 09:55 AM   #26 (permalink)
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

Cool I'll update op when I'm stationery
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
bberryhill0 (September 14th, 2012)
Old September 14th, 2012, 01:29 PM   #27 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

Hmmm. This is what I get when I import:
Attached Images
File Type: jpg uploadfromtaptalk1347647380513.jpg (46.9 KB, 26 views)
bberryhill0 is online now  
Reply With Quote
Old September 14th, 2012, 01:35 PM   #28 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

Aha! I didn't delete the tasks.
bberryhill0 is online now  
Reply With Quote
Old September 14th, 2012, 02:19 PM   #29 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

I was getting unpredictable results so I changed the Context for GetLight to Display Unlocked. It seems to work now.

I also cut the brightness choices down to two. Above 1500 and below. I use 100 for the lower setting. I'll probably add back the really low setting for levels below 160.
SUroot likes this.
bberryhill0 is online now  
Reply With Quote
Old September 14th, 2012, 10:31 PM   #30 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

Here's my latest attempt. Oddly it works fine when I run it but it doesn't go to the lowest level when activated by Display Unlocked.
Attached Images
File Type: jpg uploadfromtaptalk1347679899193.jpg (55.3 KB, 28 views)
bberryhill0 is online now  
Reply With Quote
sponsored links
Old September 15th, 2012, 07:01 AM   #31 (permalink)
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

It seems over complicated. You don't really need the else. And upi would have a less than first
SUroot is offline  
Reply With Quote
Old September 15th, 2012, 11:06 AM   #32 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

It runs faster because it doesn't go through all the checks.
bberryhill0 is online now  
Reply With Quote
Old September 15th, 2012, 11:17 AM   #33 (permalink)
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

It still makes all the checks, just in reverse order. But yeah, Still start with the less than.
SUroot is offline  
Reply With Quote
Old September 15th, 2012, 11:56 AM   #34 (permalink)
Member
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 380
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

What's the performance difference and/or advantage between using Display On or Display Unlocked as the context?
bruce73 is offline  
Reply With Quote
Old September 15th, 2012, 11:58 AM   #35 (permalink)
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

I have a Pattern lock. For me, one of the biggest reasons to create this profile was to be able to see what I'm entering on teh pattern unlock screen. The Unlock context wouldn't help me there.
SUroot is offline  
Reply With Quote
Old September 15th, 2012, 12:06 PM   #36 (permalink)
Member
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 380
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

So it's just a matter of when it kicks in then. OK, thanks.
bruce73 is offline  
Reply With Quote
Old September 15th, 2012, 12:24 PM   #37 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

Quote:
Originally Posted by SUroot View Post
It still makes all the checks, just in reverse order. But yeah, Still start with the less than.
The point of the else is to skip the other checks if the first one matches.

For some reason on my phone this doesn't run on the lockscreen. That's why I changed to Display Unlocked.
bberryhill0 is online now  
Reply With Quote
Old September 15th, 2012, 01:52 PM   #38 (permalink)
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

Quote:
Originally Posted by bberryhill0 View Post
The point of the else is to skip the other checks if the first one matches.
Yes I know how it works. I use it in places too. However if is the last value, it checks everything before it first.

I'm not sure why you see 3 different brightness settings on your device. Theres no way your device is too slow, so why its acting so slow is beyond me.

Sure if this works for you better, use it. But I would still recommend having the less than setting first if you're having trouble getting it to run
SUroot is offline  
Reply With Quote
Old September 15th, 2012, 02:10 PM   #39 (permalink)
Member
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 380
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

My issue now is that, while the brightness setting will change, the screen won't usually show the change until I go into Display settings and pull up the slider (or access it through my Widgetsoid widget) and hit cancel. I don't know if this is a issue with my phone (HTC Vivid) or ICS.
bruce73 is offline  
Reply With Quote
Old September 15th, 2012, 02:17 PM   #40 (permalink)
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

I mentioned that problem earlier with touching my notification bar. Also sometimes, it would be at 0 but the slider would register one of the profile values.

This happened a lot when I was testing alternative methods looking for a v2 candidate. Sometimes a reboot fixed. Other time I had to restore the entire app data.

I never got passed that to be honest. Thsts why v2 is how it is. It works reliably for me
SUroot is offline  
Reply With Quote
sponsored links
Old September 15th, 2012, 10:55 PM   #41 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

My version seems to be working now. So far on the low end I've seen lightvalues of 160, 225 and 320. The high is 10240 or something like that. Do your phones have the same range of values?

* This is cool. I just tweaked my lowest level to < 230 to catch the 225 level because it was a bit bright. This is how auto-brightness should work.
bberryhill0 is online now  
Last edited by bberryhill0; September 15th, 2012 at 11:10 PM.
Reply With Quote
Old September 15th, 2012, 11:05 PM   #42 (permalink)
Member
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 380
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

Yeah, I'm getting 90225 (average 160) in my apartment, 320 under fluorescent light at the market today, and 10240 in bright sunlight.
bruce73 is offline  
Reply With Quote
Old September 16th, 2012, 01:15 PM   #43 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

I changed the context for GetLight back to Display On and it didn't apply until the second time I turned the display on. Weird. Back to Display Unlocked.

On my phone Tasker takes about a second to process each line of code. I added a %Brightness variable so I can monitor %BRIGHT and the variable changes a second after the screen brightness changes.
bberryhill0 is online now  
Reply With Quote
Old September 29th, 2012, 12:09 AM   #44 (permalink)
Junior Member
 
digit27's Avatar
 
Join Date: Sep 2012
Posts: 32
 
Device(s): LG-G2X/P999 (Cyanogenmod7/Trinity)
Carrier: Not Provided

Thanks: 3
Thanked 1 Time in 1 Post
Default

When I try Variable Set %LightValue To %LIGHT, %LightValue just becomes "%LIGHT"
digit27 is offline  
Reply With Quote
Old September 29th, 2012, 01:53 AM   #45 (permalink)
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

Did you put it in quotations?
SUroot is offline  
Reply With Quote
Old October 6th, 2012, 03:52 PM   #46 (permalink)
New Member
 
Join Date: Oct 2012
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bruce73 View Post
Yeah, I'm getting 90225 (average 160) in my apartment, 320 under fluorescent light at the market today, and 10240 in bright sunlight.
Forgive my ignorance (I am new to Tasker), but how do you check the Light Value?
Frank_V is offline  
Reply With Quote
Old October 6th, 2012, 03:55 PM   #47 (permalink)
Member
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 380
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

Quote:
Originally Posted by Frank_V View Post
Forgive my ignorance (I am new to Tasker), but how do you check the Light Value?
Open up Tasker, go to the Variables tab, and you'll see the current value.
bruce73 is offline  
Reply With Quote
The Following 2 Users Say Thank You to bruce73 For This Useful Post:
bberryhill0 (October 6th, 2012), Frank_V (October 6th, 2012)
Old October 6th, 2012, 04:29 PM   #48 (permalink)
New Member
 
Join Date: Oct 2012
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bruce73 View Post
Open up Tasker, go to the Variables tab, and you'll see the current value.
Many thanks! I didn't have that tab, and then I realized I still had beginner mode selected. Appreciate the quick reply.
Frank_V is offline  
Reply With Quote
Old October 6th, 2012, 05:26 PM   #49 (permalink)
Member
 
bruce73's Avatar
 
Join Date: Feb 2012
Location: Los Angeles
Posts: 380
 
Device(s): HTC Vivid, Nexus 10
Carrier: Not Provided

Thanks: 113
Thanked 45 Times in 42 Posts
Default

No prob, glad to help.
bruce73 is offline  
Reply With Quote
Old October 6th, 2012, 09:50 PM   #50 (permalink)
Senior Member
 
bberryhill0's Avatar
 
Join Date: Jan 2010
Location: Rhinelander, WI> Wayzata, MN>Sisters, OR
Posts: 2,439
 
Device(s): Q9c, Eris xtrROM 4.6.5, Droid Concepts 11, Incredible 2 EclipticSense
Carrier: Not Provided

Thanks: 844
Thanked 360 Times in 320 Posts
Default

And then there's the stuff you can swipe from the top and bottom. I have four projects. Still haven't figured out the stuff at the bottom.
Attached Images
File Type: jpg uploadfromtaptalk1349578231210.jpg (47.3 KB, 26 views)
bberryhill0 is online now  
Last edited by bberryhill0; October 6th, 2012 at 09:52 PM.
Reply With Quote
Reply


Go Back   Android Forums > Android Discussion > Android Applications > Tasker
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:54 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.