yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] velis74:
Then it must be a non-standard sensor. I'm using standard Android API to access the sensor and it tells me that there's no sensor (assuming you tried switching the sensor on in app's settings and it reported that there is no sensor).

Since I have no way of testing for your phone, I can only promise you to look into it if you can dig up some info on the sensor and how to operate it. Otherwise we're both SOL.

Interesting. Are you using the updated .apk (v1.0.17), not the original one(v1.0)? I know it's been a few hours between these packages were uploaded, but please make sure you're using the latest one.
[Android Apps and Games] velis74:
Hm, seems I'll have to buy Tasker and Locale in order to support them. Question: Would it be a deal-breaker if I charged 1€ for "pro" version of the app that would support such functionality?
[Android Apps and Games] lou2s:
Just installed, hvn't had chance to test under sun as it is evening here. So far so gd using the amoled dim preset. Thanks!

I remember in lux auto brightness, there was a setting to prevent the app from being killed by the system. Does Veils has the same setting? Or has it been programmed not to be killed? Thanks again!
[Android Apps and Games] :
Downloading again as I believe I was on the v1. 0. Will report back later and thanks.
[Android Apps and Games] d@m3:
Amazing app, fast response and great accuracy. Working great so far no FC on sensor readings nor incorrect brightness levels like max. brightness. Keep up the good work mate :thumbup:
[Android Apps and Games] kantjer:
Not for me, and I will be happy to buy it.
[Android Apps and Games] cukierkas:
Thanks, new setup wizard is awesome :thumbup:

In previous version lux sensor sometimes stucked at 1 or 272 readings. Needed to reload the app to work properly. Will see how that work in this or future versions

Great work. Sorry for translation delays. Rough week, hope to find some time in next week.

Sent from my GT-I9003
[Android Apps and Games] velis74:
I would really appreciate a logcat of such a situation because i can't duplicate this problem. @lvl 9 naturally.
[Android Apps and Games] cukierkas:
Thanks to you, newest version works perfectly. Still no errors or hang ups. About logcat, sure, still waiting for error :cool:

Sent from my GT-I9003
[Android Apps and Games] cukierkas:
Here is a log cat. It was stucked for a minute, later on fixed itself. Hope you gonna find something useful.

http://www.sendspace.com/file/ca0zuh

Sent from my GT-I9003
[Android Apps and Games] :
Hey Velis, just used the app for the first time in landscape mode whilst watching a film and noticed the app is all squashed up as if it is still trying to show in portrait mode which whilst scrollable it still causes it to be squashed. I'll grab a pic and post shortly.
[Android Apps and Games] velis74:
No need. I'm aware of this issue. I just can't figure out why it happens yet. Got it when i set the graph not take entire width in landscape. I suppose i don't have the right attributes on dialog elements.
[Android Apps and Games] :
Aahhh okay no problem thanks for the explanation, not really that bothered to be honest I know what is what just thought I would mention.
[Android Apps and Games] cukierkas:
Yes, i noticed landscape issue as well, but never bothered to call back.

Sent from my GT-I9003
[Android Apps and Games] velis74:
2.20.74 (21.11.2012)

App will load custom translation strings (helps translators do ther work, see app homepage for instructions)

Updated translations: norwegian, italian, slovene

Removed requirement for light sensor (will show app to sony xperia users)

Unfortunately I haven't been able to fix the stuck sensor and landscape mode yet. So little time lately ;)

Otherwise enjoy the new version.
[Android Apps and Games] UnderXP:
The OP attached apk is updated ?
[Android Apps and Games] velis74:
Should be, yes.
[Android Apps and Games] UnderXP:
Well, what name must have the file in /sdcard ?

I want to test the spanish translation :victory:
[Android Apps and Games] velis74:
/sdcard/strings.xml
[Android Apps and Games] :
Thanks for even looking at them fella must be busy with the new little one being to cute to put down :D
[Android Apps and Games] dragxdk:
Works on xperia sola ics root??

with tapatalk
[Android Apps and Games] velis74:
I have some xperias supported, but you will have to try for yourself.
[Android Apps and Games] Luigi_2:
I'm using android 4.2 and noticed that the brightness transittion is silky smooth, using velis now but when the brightness changes, it feels stuttering, please improve this :D
[Android Apps and Games] :
Do it yourself.

Open app goto setting and play around with the smoothing time.
[Android Apps and Games] SahilC:
Just wondering, why aren't velis settings saved when I nandroid/tibu?

Edit: never mind, just me being stupid -_- ignore
[Android Apps and Games] :
Possible data corruption on save? I have nand restored and just tested TB restore app+data and both save settings and restores them.
[Android Apps and Games] jackattack:
I seem to be having an issue with the latest version. When auto brightness is turned off, I still can't adjust volume manually in the system settings. It seems VAB hijacks the system brightness whether auto brightness is turned on or off in the app.
[Android Apps and Games] superbobup:
Same issue here. I seem to be getting some wonky adjustments in ambient lighting too. I'll try to get a logcat for the first issue, but it's hard to get one for the second as I've only seen it happen outside
[Android Apps and Games] velis74:
I will look into this. Seems OS sometimes doesn't ignore the inert window I still have created when I disable.

Don't know what "wonky ambient adjustments" could be. Could you please clarify?
[Android Apps and Games] elrond_bs:
I've always had serious problems with autobrightness in all Cyanogenmod ROMs (but working ok in stock based ROMs) and I've tried many ways to fix it, including other apps for custom controlled brightess. Your app was the one thing that finally made it work! The level of control with all these settings is also impressive. Thank you very much for your work. :)

ZTE Blade with CM10
[Android Apps and Games] velis74:
I think I found the cause of sensor readings getting stuck: it happens when you turn on the screen while proximity sensor is covered (active). The app then ignores the subsequent sensor readings because of proximity and when proximity is finally released, lack of further light events "causes" the app to not update the brightness according to most recent light reading. Of course, this mostly ever happens while in a dark room - that's when light events are very rare because the sensor just doesn't detect any changes in light.

I have added an auto-generated event to occur just after the proximity sensor should release so that the brightness will then be updated. In my testing, I cannot reproduce the problem any more.

I will upload the new apk to OP now and later today to the market. I just want to test a bit more because this isn't the only change I've done.
[Android Apps and Games] sonwon:
Great work sir, anyone with a HTC EVO 3G should see if this also fixes the bad sensor readings when on the charger. I moved on to a Samsung Galaxy G3.
[Android Apps and Games] velis74:
I don't think it would. My speculation about those readings is that the charging notification LED bleeds to the light sensor. This would be confirmed if other auto brightness apps also display the same issue.
[Android Apps and Games] sonwon:
Oh well, I'll be selling my old Sprint phone soon.
[Android Apps and Games] superbobup:
Sorry, never found the time to do this logcat...

As for wonky adjustments, I mean I would bre out at night and pass under streetlights sometimes. Then, the screen would brighten up in the dark and darken in the bright aka the opposite of desired behavior would occur. Not sure why, but it was probably just a one time thing.
[Android Apps and Games] kantjer:
I was suffering from the stuck sensor readings a lot. But since installing the test version 3 days ago I haven't seen the stuck sensor reading any more. It looks like you nailed it :fingers-crossed:
[Android Apps and Games] crackdevelopers:
Thank you for this
[Android Apps and Games] shag_on_e:
Faulty post, this app isn't the screen blackout culprit.

~~~~There is no spoon~~~~
[Android Apps and Games] superbobup:
I'm still getting the sensor stuck issue on my gnex. It didn't happen during the day, but happened when I went out at night when it was all dark.

Just to make sure, the apk in the OP is the latest/test version right?
[Android Apps and Games] Christiancs1969:
Battery reading gone :D

[COLOR="#black"]galaxys2 [/COLOR] dori7.28 rootbox nightly enzo
[Android Apps and Games] velis74:
Yes it is. I've tried to activate it a few times in the market as well, but Google keeps deactivating it :confused::confused::confused:

Seems I'll need to finish the widget support soon so that I can upload a new apk :p
[Android Apps and Games] supergaijin:
I can confirm this "bug". as soon as I got my siii and installed this app, along with a certain other one, the light started. you can see the light flickering as you move your finger closer to and away from it. it is the sensor, but why it is constantly red, when the screen is on and off? since it didn't happen on my i9003, but it's happening on my i9300, it may have something to do with different phones' operation of the proximity sensor... would a logcat help, with the app frozen and defrosted to show what the sensor is doing?

**** in my case the issue is with velis AND the other app. @max-sk, are you also using only velis, or other apps that need the proximity sensor too? for me, velis AND effect on the proximity light being displayed. it's only when I activate/deactivate intellicover that it happens. narrow down your issue to see which app it is affecting your sensor ;)

edit:

1) I tested my wife;s phone, which has never had any of the three apps I mentioned above or below, and sure enough, when I tried to make a call, the proximity sensor started emitting a faint red light.

2) I can confirm that using the "androsensor" app forces the proximity sensor on for testing, and the light is on at that time too. so, this may simply be the normal operation when it's activated, and it just may be that you never notice the sensor unless you're specifically looking for it ;)
[Android Apps and Games] Scott586:
On my Rezound if I leave the proximity sensor enabled, it turns off the lighting of my red capacitive buttons at the bottom. Disabling the proximity sensor in the app returns them to normal operation. With it disabled, I tested the phone during a call and the screen turns off as expected, so I'm happy with that. Awesome app gives me much more appropriate brightness under various conditions. THANKS!
[Android Apps and Games] wegotnthtodo:
Thanks for the apps :laugh:

Is it possible to lower the brightness below 1, I wish to lower the brightness somemore when in the dark because it's still too bright in dark room.
[Android Apps and Games] velis74:
A filter is in the TODO list. I'm having a madhouse at work right now so I'm really slow with app development, but I'm hoping things will clear up soon. Of course, studying laucher widgets also isn't 5 minutes work either :)
[Android Apps and Games] superbobup:
@velis

So I installed VAB on my Nexus 7 and it was working fine for some time, then stopped...I uninstalled it but it seems I still can't change the brightness. I'm going to try a clean wipe to see if it resets everything.

In the meantime, here's a logcat of me moving the brightness slider back and forth. Doubt it will help solve the issue but here you go anyways
[Android Apps and Games] velis74:
I can't say I'm an expert in Android, but this doesn't seem a plausible scenario. How could an uninstalled app possibly mess with your screen brightness?
[Android Apps and Games] superbobup:
First off, sorry if I sounded like i was trying to place blame or claim it was anyone's fault! It does seem illogical that an uninstalled app still messes with the screen brightness.

That being said, I assumed it was the app because my screen seemed to have the same behavior with VAB installed and a "stuck" sensor reading that is present. In fact, the screen would start off at the brightness I set it to (I set it to min brightness) then it would immediately jump to another value which I'm assuming was the "stuck" value.

Now, I have no clue why any of this happened. Flashing an update of the ROM (I went from an 11/28 build to 12/08 build) did not fix the issue, but a full wipe (data + system) did do the trick. Could it be that disabling the system autobrightness permanently set a value in a file? I don't see why it would happen though, given that not even a ROM update fixed the issue...so I guess I'm just as stumped as you are, if not more so :silly:

---------- Post added at 12:24 AM ---------- Previous post was at 12:20 AM ----------

Also, doing a really tiny amount of digging, I found this: http://code.google.com/p/android/issues/detail?id=39723 which seems to imply the logcat error comes from the SDK version...so I guess it may have to do with Google's own code. BUT, I literally have no experience coding apps or anything of the sort, so all of this is based on conjecture, but I'm hoping it may point you in the right direction if the logcat made any sense :highfive:
[Android Apps and Games] supergaijin:
it's standard procedure, but to eliminate possible sources of this issue, when you flashed the other ROM, before you went so far as doing a full wipe to get rid of the issue, you made sure to wipe your caches, right? in other words, your phone was having this brightness issue even after wiping caches, and only a factory reset fixed it?
[Android Apps and Games] velis74:
I didn't take your post as blaming, I just couldn't figure out how I could possibly help you. Sorry if I sounded harsh, that wasn't intended and I still don't see it even now reading my post again.

That said, I suspect that this might simply be a cache / data wipe problem. Perhaps this took effect after flashing a new ROM version which mistakenly didn't instruct for data / cache wipes? Something like this happened to me once with some really funny effects like my soft buttons being in the wrong places :)
[Android Apps and Games] superbobup:
Ah no worries man, it's just a bit difficult for me to sense blame/harsh words in posts so i just wanted to make sure i didn't offend.

As for wiping caches/data, I'm 99% sure i wiped cache and just flashes the update to my ROM, which usually doesn't need a full wipe. Either way, it probably was just a weird issue that won't arise again
[Android Apps and Games] WibblyW:
To compliment the Smoothing feature, is there/can there be an 'Integrated readings' option?

This would look and the last N ambient light changes on a rolling basis and set the target brightness to, say, the average/max/or min value.

Would be good when driving and using the phone as a sat nav, preventing it from hunting as I go under street lights for example...
[Android Apps and Games] velis74:
I'm not sure how "integrated readings" option should work.

Current implementation is as you describe, but it only implements the average function, not the min and max ones.

This should all already be achievable if you set sensitivity threshold to a higher number and / or increase the smoothing time. Can you describe why it doesn't work for you? Perhaps the issue is in some other setting?
[Android Apps and Games] WibblyW:
Ok. I will fiddle some more first...
[Android Apps and Games] supergaijin:
if it's not too difficult, would it be possible to have the app provide a "time at x brightness" for more detailed information regarding screen battery usage?

I set my wife's phone to the same settings as mine, and hers used much less battery while being on for longer. Since it's hard to say how long mine was brighter compared to hers, I can't say if it's a difference between the models of phone or simply the brightness itself. I'm using an i747 while she's using a T999. so, it's basically the same phone, but different carriers may have slightly different specs on the display...
[Android Apps and Games] velis74:
You mean like stats showing how much time was spent at given brightness ranges?
[Android Apps and Games] supergaijin:
yep. I know "all steps in the range from 1-100%" would be too much, so something a little less specific like 10% gradations (time at 1-10%, 11-20%, etc.) or 25% gradations would be good enough for usage evaluation :cool:
[Android Apps and Games] ptmax13:
Hello Velis and great work with this app, I love it!

one question:

Is there any reason why the market app is not the latest 02 Dec version? Is it safe to update from the apk at OP?

I hope you keep on working on this app, because it's the only auto0brightness app I find confortable to use.
[Android Apps and Games] velis74:
I have something like this planned for launcher widget. I hope i can make graph work, android isn't my best friend here. Nevertheless I'm planning a release with this shortly.

The OP APK is the same APK that would be on the market, but for some reason it kept getting disabled. Since I'm in the middle of writing widgets I didn't pay much attention to that. Hoping this will be fixed with next release.
[Android Apps and Games] WibblyW:
Having played a little more I have the following observations:

1. Great app! Works pretty well. :)

2. I too would like the extra control of separate smoothing values for increasing and decreasing brightness. Driving at night in a built up area going under street lights makes VAB pulse the brightness a lot. If I set REALLY long smoothing values it doesn't react fast ENOUGH sometimes. :P So I would like to set a shorter smoothing time for increased brightness (say 4 secs) and a long one for drops in brightness (maybe 30 secs). This should make VAB err on the bright side until I'm driving in an area with less street lights

3. Smoothing seems to control smoothing of the rate at which the screen reacts to the desired target brightness level. I'm wondering if a separate lux smoothing function as well (averaging the recorded light level) would offer even greater control? So there would be smoothing options for both recorded (input/ambient) light level and output (screen) brightness level.

4. My Nexus 7, unlike my Desire S, shows rapid dithering/"hunting" in recorded lux levels on the VAB graph in dimmer environments (and resulting hunting in screen brightness after smoothing). Related to point 3, would there be any benefit to VAB having yet another control to slow down the RATE at which the lux level appears to be monitored/polled? Would this benefit even lower VAB power consumption when running?

5. It would be very cool to have an option to show the smoothing on the VAB graph. So the 'crosshair' would show the smoothed levels (rather than instantaneous ones) as I described in 3 above :) Does it already do this - seems jittery on my N7 especially at lower lux levels (around 10 and below)...? N7 settings are 10% light difference before service reacts, smoothing time 11000, smoothing override 100%

6. If I manually edit the graph, it can wind up with an unexpected shape because of the existing data points that have been set. So maybe show existing data points on the VAB graph where fixed levels have been set (the data points in the list where you can manually edit the graph), as well as vertical axis checkmarks for screen brightness. This will make it much easier to spot which data points to edit or delete when manually editing the list. (Even better if I could drag or delete existing data points right on the graph! ;))

7. I don't use screen-on value sensor override because I can't find a 'universal' value to set it to and on my Desire S it kicks in a fraction AFTER the screen turns on (at it's last brightness level) which looks odd. Can there be an option for the screen-on override simply to always abandon smoothing, smoothing override and brightness change sensitivity settings, so the screen starts off popping directly to an appropriate brightness, and smoothing options take over thereafter?
[Android Apps and Games] twe90kid:
how well does this app do with battery saving? I'm going to test to see if this actually helps with battery life on my note2
[Android Apps and Games] Pkt_Lnt:
That is the primary goal of an auto brightness app, in my opinion. The amoled screen on my GNex is gorgeous, and sucks battery like a hooker that can suck the chrome off a trailer hitch (if you ever saw the movie).

I tried three other apps before Velis, and Velis gives me 25% better battery over 18 hours.
[Android Apps and Games] velis74:
Sorry for no forum action lately. I got my car totalled + holidays makes for a pretty busy schedule. Nevertheless I now have launcher widget operational and am working on finishing touches before I publish it, shortly I hope.

In the mean time some answers to the most recent discussion.

@twe90kid and Pkt_Lnt: Choosing an appropriately dimly lit profile should bring some battery savings. Just make sure you leave some brightness for your eyes as well :D

@WibblyW:

1. Thanks

2. This seems a good suggestion. Will se what can be done about this.

3. Since the correlation between input and output is linear I don't see how having two smoothing times would bring any tangible benefits. The final result would just "dance around" a bit more.

4. I have observer this same behaviour on a SGS3 and quite frankly wasn't sure how to fix it. The values are coming into the app as the Android OS feeds them. My current guess for fixing this is just that the lower spectrum should be treated as the same input in its entirety though the lux values differ quite greatly fot this solution to be a good one. Increasing smoothing time could help with this, but that would leave the brightness unresponsive in normal scenarios. Perhaps separate smoothing times for different lux segments?

5. The graph does currently show smoothing, not exact read values. The jerkiness comes from processing speed. I need to work on that a bit more, this has been bothering me too on my phone.

6. I can't think of a good intuitive way to edit points like this. All solutions I came up with just increased editing complexity too much.

7. This is a good suggestion. Will see what can be done about it.
[Android Apps and Games] supergaijin:
wow, sorry to hear about your car, but at least you're ok! :D

[/OT]

thanks for keeping us updated
[Android Apps and Games] velis74:
OK, just uploaded widget support to OP. I'm waiting for about 12 hours for any translations and then I publish it to market.

Please note that widget support requires Tasker / launcher widget premium content purchase. Otherwise only the on / off switch will work.

The profile button allows you to select a profile. Pressing graph will display brightness statistics table as discussed a few posts ago.

There is nothing else added, unfortunately. I'm planning a bit more aggressive schedule in the near future because I'd like to start a new project.

Have fun.
[Android Apps and Games] kubics:
What are current strings? values-v14 / styles.xml and values-v14 / widget_padding.xml?

EDIT: Sorry, now I see these are not the strings ;)
[Android Apps and Games] velis74:
Sorry, was careless and included some unnecessary values. Fixed.
[Android Apps and Games] Christiancs1969:
Nice work mate. Perfect. ;)

Sent from my GT-I9100 using Xparent Cyan Tapatalk 2
[Android Apps and Games] lou2s:
Nothing about the functionality, it's GREAT! But my playstore claims 2.20.74 is the latest version for me.
[Android Apps and Games] velis74:
Currently the new version is only in the OP. I'm uploading this to play store later today.
[Android Apps and Games] velis74:
Updated manual + uploaded app to market.
[Android Apps and Games] AbhishekS:
The Play Store isn't showing any update.
[Android Apps and Games] velis74:
Usually it appears an hour or so later.

Edit: Play store shows the latest version now. Holding fingers crossed that I didn't mess everything up ;)
[Android Apps and Games] AbhishekS:
Just got the update. I thought the widget was to switch among the presets.

Anyway nice update. :)