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

Like Tree5Likes

test: Reply
 
LinkBack Thread Tools
Old December 24th, 2012, 05:39 AM   #101 (permalink)
Senior Member
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 999
 
Device(s): Samsung Galaxy s5 G900F and Samsung galaxy tab pro 8.4
Carrier: Vodafone India

Thanks: 280
Thanked 259 Times in 219 Posts
Default

i need brightness full or close to full only when i am outdoors in the house min brightness is great. Maybe its an issue with the light sensor of my phone. not got a chance to check it on a friends s3.

Advertisements
__________________
Running NeatRom 2.2 for G900F
If i helped you please click the thanks button
silentwitness is offline  
Reply With Quote
sponsored links
Old December 24th, 2012, 07:18 AM   #102 (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

1. You need to work out what the highest value %LightValue variable returns whilst indoors firstly.

2. If you just want indoor dull / outdoor bright, you can get rid of all the inbetween values and just have Level 0 if Lux < 120* and level 255 if lux > 120*

* see point 1. Where 120 is a little bit higher than the maximum %LightValue you get at home... It could be 30 I dunno. You have to test.
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
silentwitness (December 24th, 2012)
Old January 17th, 2013, 12:01 PM   #103 (permalink)
Senior Member
 
silentwitness's Avatar
 
Join Date: Aug 2012
Location: Bombay India
Gender: Male
Posts: 999
 
Device(s): Samsung Galaxy s5 G900F and Samsung galaxy tab pro 8.4
Carrier: Vodafone India

Thanks: 280
Thanked 259 Times in 219 Posts
Default

ok i tried it out on a friends phone and mine side by side my phone shows about 10 less than his does in tasker. So it might be some issue with my light sensor. will just setup the profile like u suggested it would be easier.
silentwitness is offline  
Reply With Quote
Old January 22nd, 2013, 01:36 AM   #104 (permalink)
New Member
 
Join Date: Jan 2013
Posts: 1
 
Device(s): Galaxy s2 I9100
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default Re: [Profile] [Light Sensor] V2 - Brightness adjust on Screen on

Hi,

Thanks a lot!
Great profile.

I just downloaded the trial version of Tasker (gonna buy it of course...) and trying to learn it.
This profile helped me understand some things.

I have a few questions:

1. Why did you stop the "get light" profile twice? on profile 2 and profile 1?
Is it just to make sure it stops and doesn't eat the battery...?

2. On profile 3 ,"Display off", you said in the description that when the display is off the profile should be set to off.
It supposes to be "on" like in the screenshot, right?
Just wanted to be sure I understood this and it's just a typo....

3. I'm still trying to understand this variables issue
Was it possible if I didn't set the %LightValue variable and start directly from profile 2 when the brightness levels check is made with the %LIGHT variable?
Then profile 2 would set itself to off and profile 3 will turn profile 2 back to on....

4. last question...
If I'm outside and in bright sunlight,and I get a phone call while the phone is in my jeans pocket - the light value will be set to the one that in my pocket... right?
I thought about creating another profile:
context: phone ringing
task: wait 30 seconds and then stop.
Then, in the beginning of the "get light task" I thought of adding a 10 seconds wait with an if TRUN matches my "phone ringing" task. That way I'll have the chance to get it out of my pocket and let it set the light value then.

What do you think?
Looks ok? Is there a better/more efficient way to do it?
I checked it and it works but I wondered if it can make any problems when I answer the phone before the 10 seconds wait ends...

Thanks a lot and sorry for the long post....
gabi25 is offline  
Reply With Quote
Old January 22nd, 2013, 04:31 AM   #105 (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 gabi25 View Post
Hi,

Thanks a lot!
Great profile.

I just downloaded the trial version of Tasker (gonna buy it of course...) and trying to learn it.
This profile helped me understand some things.

I have a few questions:

1. Why did you stop the "get light" profile twice? on profile 2 and profile 1?
Is it just to make sure it stops and doesn't eat the battery...?

2. On profile 3 ,"Display off", you said in the description that when the display is off the profile should be set to off.
It supposes to be "on" like in the screenshot, right?
Just wanted to be sure I understood this and it's just a typo....

3. I'm still trying to understand this variables issue
Was it possible if I didn't set the %LightValue variable and start directly from profile 2 when the brightness levels check is made with the %LIGHT variable?
Then profile 2 would set itself to off and profile 3 will turn profile 2 back to on....

4. last question...
If I'm outside and in bright sunlight,and I get a phone call while the phone is in my jeans pocket - the light value will be set to the one that in my pocket... right?
I thought about creating another profile:
context: phone ringing
task: wait 30 seconds and then stop.
Then, in the beginning of the "get light task" I thought of adding a 10 seconds wait with an if TRUN matches my "phone ringing" task. That way I'll have the chance to get it out of my pocket and let it set the light value then.

What do you think?
Looks ok? Is there a better/more efficient way to do it?
I checked it and it works but I wondered if it can make any problems when I answer the phone before the 10 seconds wait ends...

Thanks a lot and sorry for the long post....
1) yes, to make double sure.
2) Well spotted
3) One profile arises the variable then the other is triggered by that variable being written. I tried many different methods before I came to the conclusion that this is the best way to do it. I found other methods less reliable. Have a play though, see what you can do.

4) I've never really thought about that, perhaps that will work.
gabi25 likes this.
SUroot is offline  
Reply With Quote
Old March 5th, 2014, 03:58 AM   #106 (permalink)
New Member
 
Join Date: Mar 2014
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Simple but effective!

Old thread, but still like it Used this as a base for my battery friendly auto brightness task, thanks! One problem I encountered was that the LIGHT variable isn't updated immediately after turning on my screen, so I enabled 'Light sensor' on Display Off monitoring in Tasker to 'fix' this. But than my device barely went to Deep Sleep anymore, without showing a visible wake lock (?). I guess that makes sense if the device is really constantly monitoring for light changes with the screen off :P.

Now I've disabled this Display Off monitoring setting and simply put a 500ms wait before setting the LightValue variable, which is the big trick to make this work. Probably it takes a while (on some devices?) to get a new value after the screen turns on (which, now I think about it, also totally makes sense ). Maybe this will help someone struggling with this as I did!
jvandenbroek is offline  
Last edited by jvandenbroek; March 5th, 2014 at 04:02 AM.
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 02:56 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.