yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] papix8:
i'm sorry but i have to say that's not correct. Rootdim can set brightness even to zero (but, in my device, this makes the display completely black). 8/255 is the minimum level for having the backlight on. Rootdim isn't only adjusting the pixel value (i would say that it cannot even do this :D) it can only adjust the backlight (using the file i have posted). (and after that, it can keep the file locked so no other app could modify the brightness).

Probably you can implement this feature (30/255 it's a silly limitation from android settings, but it's by no means the real minimum brightness, and probably you can test manually by terminal writing in brightness file). Maybe i'm the only one interested in this feature as there's no app that implement it :D

anyway thanks for answers :)
[Android Apps and Games] velis74:
AFAIK RootDim requires root privilege to do its magic and my app can't afford such a privilege.

If what you say is indeed the case, I would recommend that you simply modify the relevant files in your ROM before you flash it. Then the limitiation will be removed and VAB will be able to take advantage of it.
[Android Apps and Games] papix8:
yes, i think the root is needed for accessing directly the file. Anyway, as i'm very stubborn :), i decided to write my own auto brightness.

I used python SL4A (it both have API for reading the light sensor and to set brightness). Unfortunately setScreenBrightness has the same limitation of your VAB (brightness lower than 30 aren't accepted and the brightness is set to 30). So i managed to direct write on brightness file. Here is the code:

import android, time

def customSetBrightness(value):
#this path might change on other devices!!
f=open("/sys/devices/platform/leds-mt65xx/leds/lcd-backlight/brightness","w")
f.write(str(value))
f.close()

droid = android.Android()
droid.startSensingTimed(1, 250)

custom_curve=[ (850, 8), (950, 16), (1050, 32), (1150, 80), (1250, 100), (1350, 120), (1450, 160), (1000000, 200) ]

last_bright=""

while 1:
print time.asctime()
light=droid.sensorsGetLight().result
print "Light: %s"%light
for (lux,bright) in custom_curve:
if light<lux:
if bright!=last_bright:
customSetBrightness(bright)
print "Bright: %s"%bright
last_bright=bright
break
time.sleep(1)

as you can see it's just a little script with no UI, but this is what i need. Probably you might implement (as an option, may be like the camera support) the direct access to brightness file, as it would allow to have a better control over the display (and battery life).

Anyway, thank you for informations (without these probably i would be still switching by hands brightness between indoor and outdoor!!)
[Android Apps and Games] supermeerkat:
Stuck sensor value

Has anyone else got the problem with occasionally stuck sensor values?

On my Xperia S (LT26i, running stock Jelly Bean 4.1.2, build version 6.2.B.0.200), sometimes the light sensor value will get stuck and refuse to dim the screen past a certain point. The light sensor itself is fine, if I run the phone's Service Tests the ambient light sensor still behaves as normal. The only way to 'unstick' the app's brightness reading is to briefly shine a torch at the sensor!

I found a way to reliably re-create the problem - if I expose the light sensor to bright light, then cover it up, the graph reading seems to 'lag' slightly when decreasing brightness and takes a few seconds to catch up with the actual light level. During this 'catch-up' period I can switch off the phone's screen. Then when I switch the screen back on, the graph will be stuck at the last value and will not register any new brightness levels below the stuck value. Again, to unstick it, i have to shine a bright light at the sensor to nudge the brightness value above the stuck value and then the autobrightness behaves normally again.

Apart from that, the app works wonderfully and I don't think I could use my phone without it! I've bought the app recently, even though I have no use for the widget :silly:
[Android Apps and Games] velis74:
Thanks for finding this. I will look into it asap. Perhaps i can duplicate the problem.
[Android Apps and Games] lklaus:
Hi,

I've been playing with maclaw's cm10.1 for the s3 mini. I know that this is beta and subject to change, but I do have some questions which might nonetheless easily answerable:

I can activate cameras, but in settings it says "no camera detected". In logcat I find:

I/velis.vab.CameraSupport.CameraSupport( 2643): Num cameras: 2, backCam: 0, frontCam: 1

There's no directory for storing the camera log nor the picture taken. I tried adding one, but nothing is written there.

Any ideas, or should I simply wait for cm10.1 for s3 mini is more production ready?

Klaus
[Android Apps and Games] velis74:
I am aware of this. A friend of mine also has a similar setup with these issues. I have arranged to get his phone as soon as i get back from trip in a fourtnight. Sorry I can't do much about this before then.
[Android Apps and Games] Wafflez_SE:
Cant install .apk files with this app indtalled. The install button is unresponsive. Wierd issue
[Android Apps and Games] RovG:
Please tick "Package Installer" under Settings -> Excluded Apps and try again.
[Android Apps and Games] lklaus:
Hi, no need to hurry. Take your time, this romis developing... Probably will have to go back to enox rom for battery issues
[Android Apps and Games] allenf:
Great app.

Apologies if this has already been posted somewhere in the preceding 107 pages...

I've found a bug: HTC One X International, rooted with Cyanogenmod 10.1.0 stable.

When autodimming down to low screen levels the backlit capacitive buttons pulse during the dimming operation.

I've tried extending the smoothing time etc.
[Android Apps and Games] ldx00:
Feature request

I don't see it in the to do list so apologies if it has been mentioned already but I have a feature request.

Basically I love the program, but it has one huge flaw (or there is an issue on my device). Basically in darkish indoor environments, the screen brightness pulses as the detected screen brightness bounces down to 0 and up to some non 0 number. The usually great, percentage change before service reacts immediately, has no effect here presumably because there is an infinite change!

I have been thinking about how to overcome this and I have a few suggestions.

1. Allow a threshold light level below which you can switch to an absolute light scale for detecting whether the service should react, rather than a percentage light change

2. Force minimum detectable light level to some non 0 number so you can at least use the percentage to stop this happening (the problem with this the percentage you set may have to be at to some massive number!)

Any thoughts appreciated, as there is the possibility I'm totally missing something here and what I describe is perfectly preventable!
[Android Apps and Games] Max-SK:
so i´ve got a problem, cannot install apk´s when installed VAB. when removed, all things worked again. any tips? using nexus 4 stock, unlocked. when on stock, locked, no problems.
[Android Apps and Games] papix8:
the same happened on my phone (star b94m/b943) android 4.2.1. Try to terminate VAB and then install what you need (it should be fine; anyway that's really strange!)
[Android Apps and Games] Max-SK:
yeah, strange. same set of apps as before, only thing changed is unlocked bootloader.
[Android Apps and Games] Pkt_Lnt:
Mentioned here many times, it is also in the manual http://velisthoughts.blogspot.com/2012/10/velis-auto-brightness-manual.html

Look at Settings - Excluded Apps. You must include VAB in excluded apps, and you will not have the problem.
[Android Apps and Games] Max-SK:
Great, thank you. But still not understand why few months all worked fine and yesterday was day of change :)

Odoslané z môjho Nexus 4 pomocou Tapatalk 4 Beta
[Android Apps and Games] lklaus:
Hi Velis,

Yesterday I ventured into maclaw's AOPK, which works fine. Vab also seems to start flawlessly, but it does not control the brightness. Cameras are detected, and log file and pictures taken are stored where expected. But again, shutter and Aperture are 0...

klaus
[Android Apps and Games] ogsmokie:
SE arc - works with one issue

Unbelivebale, it works on my arc S with LMU AS3676 chip with Android 4.1.B.1.13 (SuperleggeraV6)

Great, the first time that the sensor under Android 4.1 returns a value.

But an error is still there ...

VBA's current light reading goes up to the value of " 254/0 lux 0.00 mA ".

I know that the sensor under CM 10.1 anzu up to 12,000 lux can measure with the internal display settings menu.
[Android Apps and Games] lklaus:
Hi,

as for VAB with maclaw's AOPK, I put VAB_camera_front.txt and pic_front.jpg and png at https://lichtenwalder.name/, for your perusal.

Klaus
[Android Apps and Games] sunsero:
[MENTION=2424510]velis74[/MENTION]: When you get hold of an S3 mini, can you please also check the brightness update time after unlocking the device? In daily experience it still seems to differ a lot each time the device is unlocked e.g. with Simple Cover Lock beta app. This can be seen best when locking the device in a dark environment and waking it up again in a bright environment (it takes some seconds till the pattern unlock screen gets bright enough to be recognizable) . I'm using this curve: Pt: 0 7

Pt: 1 15

Pt: 62 30

Pt: 1000 255

Pt: 15000 255

Superdim starts at 10%.
[Android Apps and Games] AbhishekS:
I have a Samsung Galaxy Nexus.

What is the use of 'Lux Sensor Access Method'? By default it is 'Sharp v1 0.75mA'. Shall I change that option to 'Samsung Galaxy Nexus'?
[Android Apps and Games] lklaus:
Hi Velis,

Any chance you get to look into cm10.1 issues? (S3mini: shutter and speed zero again). No hurry, but if you will have the time, would be great!

Klaus
[Android Apps and Games] velis74:
Back from holidays :)

I will start working shortly and will most definitely address these issues.
[Android Apps and Games] lklaus:
Ah, I forgot that... Welcome back, then! I hope, you enjoyed your holidays!

Klaus
[Android Apps and Games] sunsero:
Another idea to check would be if the camera is read immediately when releasing the proximity sensor (or maybe after some small configurable delay)
[Android Apps and Games] jglm4u:
*****It be cool if you add green, yellow color to the night mode!! *****
[Android Apps and Games] daa_sasha:
Classy program if not for is one but - she has blocked me on "Install." as a result - I can not put the apk file ... have to disable the the program to install software. Telephone star b943 Android 4.2.1

A good idea to address this lack.
[Android Apps and Games] sunsero:
As written in previous posts you should add the package installer to the list of excluded apps and everything will be fine then.
[Android Apps and Games] daa_sasha:
Can not understand that it is necessary to do an on the phone.
[Android Apps and Games] velis74:
This is a strange issue to me. It would seem some phones don't obey the overlay size parameters while others do.

No matter what I do, there's always someone with an issue - it Package installer is excluded by default, I get reports that screen brightness changes while installing, if I don't exclude it, people can't install...

I think i will revert to Package installer being excluded by default. This way at least everything works even if some aren't happy about VAB turning off for the duration.
[Android Apps and Games] dm5530:
Recommendation to OP: please add a known issues section.

As a new user of your app, it would have helped me to know about the problem with the blocked Install button on the apk package installer.

Just MHO.

_________________
[Android Apps and Games] velis74:
The faq is in manual, at the end. One of next versions will include it :)
[Android Apps and Games] jiri.sykora83:
Nice app :good:
[Android Apps and Games] florinbv:
Galaxy s4 issue

Great app but I have a issue on galaxy s4 (i9505), even if I disable the app, I can't control the screen brightness manually anymore , the screen remain unchanged
[Android Apps and Games] velis74:
I will look into this ASAP.
[Android Apps and Games] wolfen3:
nice, thx
[Android Apps and Games] djlucask:
Great app, I thought that my sensor was bad, or my phone performance, built-in auto brightness was too slow, this one is perfect!

I noted some more battry drain, this is because of the brightness changing, or because of the extreme use of the sensor?
[Android Apps and Games] velis74:
Thanks for the praise.

The battery drain can probably be attributed to a brighter preset. Sensor is used no more than system auto brightness uses it. You can try increasing sensitivity thresholds as well to reduce update frequency.
[Android Apps and Games] Latty:
I just updated to 4.3, and I noticed that Velis keeps a persistent notification.

https://plus.google.com/105051985738280261832/posts/MTinJWdNL8t

Hopefully we'll get an update that fixes this! :good:
[Android Apps and Games] velis74:
This is very bad!!!

That notification is what keeps the service running. Without it, the OS will stop the service at its leisure - as it did before I put the notification in, see first few pages of this thread...

The update that "fixes" this will of course be provided making the app all but unusable on 4.3+ versions.
[Android Apps and Games] Pkt_Lnt:
It is not bad, we know it is there, and I can live with it in the notifications to have the benefit of VAB. Here is more info and it has the link to the post shown above. I do not see that you need to change it!

http://www.androidpolice.com/2013/0...tifications-after-you-upgrade-to-android-4-3/
[Android Apps and Games] velis74:
Well, the upside to this is that I will now complete the "proper" notification functionality as a priority :D
[Android Apps and Games] Pkt_Lnt:
I have had other apps in the past that give the option to check persistent notifications as a way to keep android from killing it, just give users the choice using, as you say, "proper way". VAB is just too good to give up!
[Android Apps and Games] velis74:
Of course. The notification provides a quick adjustment method and the users will be able to choose what level notification they want: none?, empty, just an icon, full. I will also research the effect of android 4.2 notifications (the square icon). Perhaps they offer similar functionality to current solution.

I'm not sure if even to include the "none" option since that option would effectively prevent the app from working.
[Android Apps and Games] Pkt_Lnt:
Oh, and just in case you did not see in my sig, it is running just fine on JB 4.3 JWR66V, thank you very much.
[Android Apps and Games] ac75:
It's a deliberate move by Google to ensure rogue apps can't continue to run in the background without you noticing. Of course, this has the side effect of a persistent notification for apps such as Velis that you want running but don't need a notification for.

The good news is you can get rid of the notification by long pressing on it, go into App Info and uncheck the Show Notifications box. It does mean you won't get any notifications from Velis from now on, but that shouldn't be a problem for this particular app.
[Android Apps and Games] michel-b:
Since Android 4.3 i cant install a no Playstore App if auto brightness is running.

if i close the app i can do. i reset my phone (Nexus 4) 2 times with the same result.

And the notification in the statusbar is annoying, if i dissabele the notification in the app settings after reboot the is there anyway.

i can`t use this usefull app with this restrictions.

im sorry
[Android Apps and Games] velis74:
RTFM
[Android Apps and Games] michel-b:
the problem appear since i update to Android 4.3 also the notification icon.

I am so sorry that i dont read the Manual for a Problem i dont have bevor.

The problem with the notification icon i can´t understand because

"Yet Another Auto Brightness" does it better, the use can dissable the notifications icon and the app run also.

RoundR show an entry in the pulldown list its even better than alway the notification icon.
[Android Apps and Games] Pkt_Lnt:
Start with post #1100 and read down, it is only ten posts, be a better informed user and understand what velis is doing. The install error was fixed months ago if you would read or search.

tl;dr disable Package Installer in settings and wait for him to fix notifications as posted above
[Android Apps and Games] michel-b:
it is nice that the install error is fixt month ago

but android 4.3 is avalibel since last week an ops

the error is there again, btw. i never have the error bevor

i update to android 4.3.
[Android Apps and Games] Pkt_Lnt:
I am on 4.3 for days now, no install errors.

I read and understand the notifications issue, and velis states he will do it correctly.

Did you disable package installer as I stated above, and velis put in the manual?
[Android Apps and Games] Trojan.Flame.A:
is this work with samsung galaxy wonder? :)
[Android Apps and Games] RovG:
[MENTION=319074]velis[/MENTION],

May I suggest displaying the current brightness level as a percentage in the centre of the notification icon. A positive percentage if above zero and no screen dimming or a negative percentage if screen dimming is enabled. So a scale of -100% to +100.
[Android Apps and Games] pjadec:
I flashed ViperDHD rom couple days ago, after that app installation doesn't worked at all. I downloaded the update a couple of the apps and tried to install them from an SD card, but the installation was not successful at all. Installation button does not work only in cancel button. But GPlay installation still works. I did not know why VAB app was cause that. When i removed it app installation process worked again. I still use VAB because it's good app. I tested a lot of different roms, same problem happened more than couple times with a different roms.
[Android Apps and Games] spupuz:
just put "application istallattion package" in the excluded list and RTFM
[Android Apps and Games] dagactor:
excluding apps

Program force closes when I try to enter the. Exclude Apps option. Running on a Verizon galaxy S3 with Cleanrom Seven. Thanks!
[Android Apps and Games] velis74:
3.10.137 (4.8.2013)

Possible good fix for package installer issues

SGS3 mini custom ROM camera detection fix

Updated OP and Play Store
[Android Apps and Games] velis74:
Super dimming is still not implemented in such a way for me to be able to display values in the suggested range. I'm working on a proper solution for this.

Can you please report the crash to the Play Store so that I can see why it crashes? You're the second user to report this. Do you have a very high number of apps installed?
[Android Apps and Games] velis74:
Unfortunately your method doesn't seem to work on my phone. I also looked at the code and can't seem to find anything that might cause this issue under such conditions.

I know the issue is there, I just can't seem to put a finger to it yet though.

The latest version should work a bit better.
[Android Apps and Games] spupuz:
have you a G+ group for beta versions?
[Android Apps and Games] velis74:
No. Would such a group be beneficial in comparison to this thread?
[Android Apps and Games] spupuz:
actually it could be a good idea for having pushed via play store beta versions of application :) and make it test to a few number of people, then push a new stable version to all users.
[Android Apps and Games] lklaus:
Hi Velis,

I'm afraid on CM10.1 it's still not better on my S3mini. Here are the last lines from VAB_camera_front.txt:

0,0000	0,4418	0,4745	0,3828	200	0,0	0,000
0,0000	0,4278	0,4510	0,4102	200	0,0	0,000
0,0000	0,4281	0,4471	0,4180	200	0,0	0,000
0,0000	0,4291	0,4588	0,4219	200	0,0	0,000
0,0000	0,4268	0,4510	0,4102	200	0,0	0,000
0,0000	0,4308	0,4549	0,4297	200	0,0	0,000
0,0000	0,4340	0,4588	0,4141	200	0,0	0,000
0,0000	0,4378	0,4627	0,3906	200	0,0	0,000

Klaus
[Android Apps and Games] velis74:
Hm, can you please PM me the images so that I can see what's stored in EXIF? The data you posted contains no aperture and shutter info. Shutter info is the single most important info for the algorithm.
[Android Apps and Games] WhiteNeo:
Proposal

How about adding a setting that allows the user to increase the brightness values by X% when some specified apps are running? Would be very useful! :p

But thanks anyway for a really great app that runs on all of my phones! ;)
[Android Apps and Games] sunsero:
I had to redetect cameras because after just starting and canceling the setup assistant from settings they were no more detected. With .137 it took several tries until the cameras were detected again on S3 mini.
[Android Apps and Games] 123421342:
Hey great app. I unchecked show notifications but every reboot makes it show the notification again (it remains unchecked). I have to check it and then uncheck it again. It is a really minor problem, but is it on my end or your end? I am running Carbon 4.3. Again, its really not a big deal I am just wondering why that happens.
[Android Apps and Games] velis74:
It's a feature od 4.3. Until i fix notifications this is how it is.
[Android Apps and Games] velis74:
This is possible by using tasker integration with brighter profiles.
[Android Apps and Games] Pkt_Lnt:
And it works very well indeed, I use it for á couple apps, and when I leave home to increase brightness, and decrease brightness profile at work, all automatic with tasker. :cool:

galaxy nexus / cataclysm jb 4.3 / tapatalk
[Android Apps and Games] Pkt_Lnt:
This is the reason.

http://www.androidpolice.com/2013/0...tifications-after-you-upgrade-to-android-4-3/
[Android Apps and Games] ghost_razr:
Is it possible to change the brightness of transparent navbar on xperia zl? The screen brightness decreases with change in light conditions but navbar stays all bright and looks very very odd.
[Android Apps and Games] vlt96:
Is the navbar on-screen or soft keys?
[Android Apps and Games] ghost_razr:
It's on screen navbar included in Sony's stock ROM
[Android Apps and Games] vlt96:
I don't know if there is anything you can do about it, the same thing happens on my S3 mini, but for toast notification, they weirdly have whatever brightness they want, disabling button backlight is working in any app, have you tried? It has an option in screen filter, set it to 100% and only button backlight should be disabled, but I'm not sure how it works for on-screen buttons
[Android Apps and Games] velis74:
This should only be possible if you are using super dimming. Can you confirm that?
[Android Apps and Games] ghost_razr:
I can confirm superdimming is working with AMOLED profile I am using. Superdimming is the reason navbar brightness is all weird. With superdimming disabled, the navbar brightness matches the profile but I feel brightness adjustment is not accurate . Can you suggest something else?
[Android Apps and Games] velis74:
Actually, I can't. I set all the fullscreen flags I ever found on the net yet your ROM still feels the navbar is untouchable.

I suppose the standard method causes flicker on your phone - or do you mean something else by "not accurate"?
[Android Apps and Games] ghost_razr:
By "not accurate" I meant when I change the profile sometimes I can't see any difference in the brightness. But with superdimming enabled, I can see a visible difference between profiles and battery backup is real good
[Android Apps and Games] t-minik:
really like your app, its excellent !

I do not have persistent notification on acer Liquid E2 Android 4.2.2, is it normal ?

thanks a lot.
[Android Apps and Games] velis74:
Yes, it is. The notification is visible from 4.3 and later.
[Android Apps and Games] xanthrax:
The notification can be removed as from the latest update for n7 4.3 rc3 JLS36C

sent from my Darkside of Nexus 4
[Android Apps and Games] t-minik:
Thanks for your reply about notification

I was afraid VAB was killed silently by system but it seems ok.
[Android Apps and Games] velis74:
No, that's exactly what the notification is for. :)
[Android Apps and Games] t-minik:
yep, but as there is no VAB persistent notification on android 4.2.2, i thought it was killed.