Detect Active Display in Tasker - YotaPhone

Does anyone know a clever way to detect the active display in tasker? Currently I use luxauto brightness to keep the OLED display dim in the house, but the same filtering it does to get below 0 brightness also grays out the eink side, particularly when I have it face down on a desk. It's easy to detect and act on that state with the proximity sensor, but it would be nice if there were a way to trigger based on active display so that I can disable lux in low brightness situations where it isn't face down and I am using hte eink screen.

I was able to figure things our digging through the source code Jeopardy posted, sorry for not digging around more before posting. If anyone else wants to replicate here are the basics, I can provide more detail or screenshots if needed. I disable lux in tasker with a profile that looks for event intent received "yotaphone.intent.action.MIRRORING_START". I have a task that reenables lux whenever the intent yotaphone.intent.action.MIRRORING_STOP_MANUAL or yotaphone.intent.action.MIRRORING_STOP are received (2 profiles, each trigger the same task).
http://forum.xda-developers.com/yotaphone-one/development/widget-yota-toolbelt-t3145462

It's great to see you found use for my findings. Just out of curiosity, is there a specific reason you could not just use android's automatic brightness? I think you could even modify the threshold levels for it with some xposed module.

Jeopardy said:
It's great to see you found use for my findings. Just out of curiosity, is there a specific reason you could not just use android's automatic brightness? I think you could even modify the threshold levels for it with some xposed module.
Click to expand...
Click to collapse
Lux seems to do things much cleaner, allows sub-zero brightness, and is more customizable as far as number of points and smoothness of transitions. I noticed that gravity box might have had a way to do things like this after I installed lux.

Related

[REQUEST] Custom Auto Brightness app

Okay, I don't know if this is the right place.. Or if it is currently even possible. (I know root isn't done or even close).. I figured development and this would be app development so it sorta works in this area.. But here's a little request for someone whose good with code and making apps:
But I want wondering if someone could create a custom auto brightness app that lets you set the max and min for the the auto brightness on the Incredible. I like the auto feature on the Incredible, but it gets way too high and drains the battery too quickly so I have to turn it off ..
So I would like to have an app that lets you set like EX: 5% as the minimum brightness and 40% as the maximum. Make it so you have have ajustable bars to move back and forth to pick your percentage or something along the lines of that. I think if someone managed to work some code and create this app it'd be heavily downloaded. So I was wondering if someone could make an app like this eventually in the future? Thanks again guys
Yeah, this would be cool. I am no developer, and there isn't anything in the market for this type if thing either, so i would assume it is really hard to do.
All you want it to do is be able to set the brightness? Just as a shortcut in a sense?
Dazzle is a pretty good alternative for the time being. hopefully someone can come up with something with something that does it automatically too.
x.v_ said:
All you want it to do is be able to set the brightness? Just as a shortcut in a sense?
Click to expand...
Click to collapse
(Sorry I'm Incredible53517 but I accidently had two accounts so we closed that one and now I'm just using my old one).
Okay, I want auto brightness but I want to choose how bright the phone gets bright and dim. I want to be able to set the max and min is what I'm saying and then have it automatically change by my surroundings...like the stock auto brightness does. I just think it'd be a nice features to have.. That's all. It'd save battery too.
This seemed like a good idea so I looked through the source code for Eclair and there doesn't seem to be any way to do this. All you can do is toggle auto brightness on or off and adjust the brightness when auto brightness is set to off. There is now way to cap the minimum and maximum brightness in the auto mode. Perhaps this is required by the hardware.
Sure, but couldn't you write a program to automatically adjust the brightness (with auto turned off within the OS settings) and set your own caps?
I'm not an Android developer, but this seems like it might be possible.
XC
I am only a noob dev myself, and I'm only seeing a way to set the brightness, not sense how bright it is (read from light sensor).
coolfrooddude said:
This seemed like a good idea so I looked through the source code for Eclair and there doesn't seem to be any way to do this. All you can do is toggle auto brightness on or off and adjust the brightness when auto brightness is set to off. There is now way to cap the minimum and maximum brightness in the auto mode. Perhaps this is required by the hardware.
Click to expand...
Click to collapse
Okay, that's fine. I figured it would be hard since no one has really made it yet. But thanks for trying! I appreciate it!
if you use the android widget for... "power Control" it has all your stuff you like to turn on and off... wifi/BT/GPS/Sync/Brightness... if you tap brightness it goes from auto> full brightness> lowest brightness> back to auto... I didn't know this until I just started using the widget
the widget is included with the phone its not a download

Automatic brightness adjustment?

Anyone know if there is a way to adjust the automatic brightness function - i.e. have it still be automatic, but be a little bright or darker for a given ambient light?
would really like to keep using it, but want my overall brightness turned down. using manual brightness with widget for now, but don't see why automatic brightness could not be tweaked. tried searching for an app to do this, but have not come up with anything. nothing came up in a google search of xda either. anyone got anything?
I want to know as well, I wouldn't mind setting the auto brightness to be more fine tuned as well, smaller changes.
Yes a better working app is needed. something like My Light or Lumos for winmo

Auto Screen Brightness is too dark

Hi all,
I found that the default auto brightness setting always render the screen darker than my favourite. For certain I want to keep the adaptive approach (i.e. the screen brightness will change according to my physical enviornment), however I would like to fine tune it such that it will always return a +1 / +2 brightness on top of the default return. Do anyone know any apps / tricks can I do so?
p.s. I know I can place an widget to manual adjust the brightness, but I am now looking for a way to fine tune the automated value.
Thanks all!
HKcow said:
Hi all,
I found that the default auto brightness setting always render the screen darker than my favourite. For certain I want to keep the adaptive approach (i.e. the screen brightness will change according to my physical enviornment), however I would like to fine tune it such that it will always return a +1 / +2 brightness on top of the default return. Do anyone know any apps / tricks can I do so?
p.s. I know I can place an widget to manual adjust the brightness, but I am now looking for a way to fine tune the automated value.
Thanks all!
Click to expand...
Click to collapse
Did you ever solve this. Posted numerous times about a similar issue but never really found a proper solution.
You can use Tasker. Set up profiles for depending how much the light sensor sees, you can have the brightness exactly how you want. Note: You need to disable auto brightness for this to work.

adjusting auto-brightness range

Looked on google for this and found other people asking about it but no answer so far.
If i leave the screen brightness set to auto-adjust, the phone NEVER adjust the screen brightness down to it's lowest setting, even if i am sitting in a pitch dark room. Is there some way to adjust the range of the brightness setting so that it will actually use the lowest brightness? It seems beyond stupid that in a pitch dark room the screen doesn't go down to it's lowest level.
Most of the time i find the screen to be too bright, so if i could adjust the auto-brightness over-all to be darker, that would be cool too.
failing that, is there an app that makes adjusting the brightness quicker then digging down into the settings to move the slider?
thanks
I use widgetsoid (free) from the market place to do what you speak of and 7 other things as well.
i think i already have something that does what it looks like widgetsoid does. I have a button on the screen that i can tap that switches the screen between 3 brightness settings. i was just wondering if there was one where you could tap and get a slider. Seems silly to have the actual slider itself on the screen since that would take up so much room. But a button that would open up into a slider would be nice.
I'd still prefer to be able to adjust the autobrightness settings and use that if possible.
You can set autobrightness levels with tasker. There's a thread floating around with details.
Sent from my blah blah blah blah
merkk said:
i think i already have something that does what it looks like widgetsoid does. I have a button on the screen that i can tap that switches the screen between 3 brightness settings. i was just wondering if there was one where you could tap and get a slider. Seems silly to have the actual slider itself on the screen since that would take up so much room. But a button that would open up into a slider would be nice.
I'd still prefer to be able to adjust the autobrightness settings and use that if possible.
Click to expand...
Click to collapse
Again, Widgetsoid does this. Once it is setup, modify, settings/Brightness Modes and set it Custom (Seekbar) or use one of the other 2 settings. You can change those as well with custom. Exit. Go to toggle and you have slider with one click on one button, which option of adding 7 more.
devnulldroid said:
Again, Widgetsoid does this. Once it is setup, modify, settings/Brightness Modes and set it Custom (Seekbar) or use one of the other 2 settings. You can change those as well with custom. Exit. Go to toggle and you have slider with one click on one button, which option of adding 7 more.
Click to expand...
Click to collapse
ah ok, cool, thanks. I'm going to see if i can find the thread about tasker since i'd prefer to have auto-brightness working better. if that fails then i'll give widgetsoid a try.
thank you
Just what I was looking for Screen brightness less then 10% and Less then Curvefish's toggle to 4%. I was looking for the 1% brighness and I think i got with the Widgetsoid only compaint is no exit after setting... Thanks

ASUS can do so much with their Splendid display tuning app!

The Blue Light Filter mode can replace 3rd party apps like cf.lumen, Twilight and Lux's night mode. It's a stock method of customizing the display color temperature.
ASUS should copy a leaf from cf.lumen's book and add the capability to automatically calculate sunset by your GPS coordinates and turn BLF mode on at night! Later at night they can add option to automatically change color temperature to more red tones (i.e. setting the BLF mode slider all the way to the right) like cf.lumen's sleep mode!
Thanks to Splendid display tuning, I no longer have cf.lumen installed. But! I do miss the convenience of automating things. Having the display tuner widget in quick settings is nice but no cigar!
Similarly when bright sunlight detected, the Splendid app could have option to turn vivid mode on.
Cyanogenmod12 and by extension CyanogenOS12 already has both these options (night mode and CABC for bright sunlight mode similar to vivid) available in their display options settings.
Perhaps these suggestions should be forwarded to Asus...as they seem to be set on providing timely updates to the phone(awesome), they might listen. I do like the Splendid app.
I agree. And now that we have this option: @Asus_USA
Maybe a rep here would forward the suggestion?
thedisturbedone said:
I agree. And now that we have this option: @Asus_USA
Maybe a rep here would forward the suggestion?
Click to expand...
Click to collapse
Timed profiles for Splendid would be great. A more effective colour temperature adjustment, coupled with a considerably lower minimum screen brightness on a hardware level would make this phone SO much more usable for late-night reading.

Categories

Resources