yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] supergaijin:
interestingly enough, when I went outside in bright sunlight, my lux reading in the app was 11000. I may have to look at the actual sensor readings to confirm this ;)

*** Update: using a newly downloaded app, andro sensor, my lux maxed at 11000, so I think that even though velis reported my max as 3000 lux, it accepted the full range when it was necessary.

for the manual, I didn't see anything about the "manual graph adjustment". the app manual only covers instructions for the settings other than the manual graph so far. I assume your baby sabotaged your plans :p

get some sleep, and thanks again for the great app!
[Android Apps and Games] velis74:
Interesting. I thougt if the sensor reports its max as 3000, it would never go above that...

Yep, she did. I only got an hour or so towards the morning to fix the manual :( Will add the manual editing later.

I'm also planning on removing the entry from menu and adding an icon to top left corner of the graph. Would that be a satisfactory solution or would it just make new users think that's the only way of editing the graph?
[Android Apps and Games] sonwon:
I would expect shortcuts on the screen and choices in the menu.
[Android Apps and Games] RovG:
My sensor reading today in bright sunlight. 16000:D View attachment 1451338
[Android Apps and Games] supergaijin:
+1 for this setup.

if it's not too difficult, then have the graph shown when the app opens, but the graph will not be editable without touching the shortcut. the shortcut can be the current "new profile" prompt shown on the front page of the app, just rename it to "change profile" and change the function as described next. once you touch the shortcut it will prompt the user the same as if the user is already in the settings menu and selected the brightness profile setting. currently, under brightness profile, you have the amoled, etc. preset profiles, and you have "custom". the new style would be the same at first appearance, but when you select "custom", you then have the option to create/edit your profiles (instead of having to go back to the front screen), or select a profile you've already made. if you select to create/edit, then you have a selection to create based on the automatic curve or enter points manually. my flow may not be 100% clear, but here's my idea on how it would work:

open app --> main screen shows graph and underneath, shows current profile (only current, not all as I see in some users' screenshots), and next to that, shortcut to "change profile".

click shortcut to change profile, or go to brightness profile in settings menu --> option to choose preset profile or custom profile

if select custom profile --> prompt user for saved profile (1) or create/edit profile (2)

then

(1) show list of saved profiles, if any, else show small text popup "no saved profiles found". if a saved profile is selected, return to front screen after applying profile so user can be sure setpoints appear accurate, rather than making user click back to front screen to confirm.

OR

(2) prompt user to create (3) or edit (4) profile, then give option to set profile using red bars on graph (5) or setting points manually (6)

SO:

if select (3), then prompt for (5) or (6)

else

if select (4), then prompt for (5) or (6)

on edit screen, whether (5) or (6), show "save profile" button, and naming option and other settings will be the same as in app's current "new profile" process.

once user selects to save profile, prompt user if want to apply now, and if yes, apply and go to front screen of app. if no, go back to main settings menu page.
[Android Apps and Games] velis74:
It seems such a long procedure. Current design saves many clicks in comparison to this solution.
[Android Apps and Games] supergaijin:
if three clicks is too many to start editing a profile, I'll accept that :p
[Android Apps and Games] sonwon:
Taps / clicks should always be as few as possible / reasonable.
[Android Apps and Games] :
+1 I find the current layout great everything where it needs to be. Three clicks to get to anything would just be annoying.
[Android Apps and Games] UnderXP:
@Velis, it's possible to have a feature: Auto-settings the lowest brightness at night (configurable hours) ? Because at night, auto brightness is not necessary (well, almost)

Btw, I will update again the translations.
[Android Apps and Games] velis74:
About translations: please wait a day or so. I'm preparing an update with some new strings. Will send the new strings to all translators when this is done.

This is possible through Tasker / Locale. The app itself currently doesn't have such a setting. But even so: at night the sensor hardly ever reports changes (because it's dark all the time) so the app doesn't do much work and it doesn't burn battery. The functionality you are requesting seems to be already provided.

I personally have one complaint over the current system: even though the above is true, the stupid sensor will report values under 10 even during the day (in bad light conditions). Because of that, you can have screen too dim during the day and you set a brighter profile so that this doesn't happen. During the night that brightness is way too much, a much dimmer setting would be desired, so you need to switch to a dimmer profile.

I intend to solve this with cameras: during the day they will compensate for bad sensor readings and alter the sensor reading to a higher value while during the night they will cover the lower sensor range sensor can't touch. For example, my Nexus goes only as low as 4. The cameras will cover the range down to 0.
[Android Apps and Games] UnderXP:
Well, I don't use the camera sensor in your app, neither tasker.

Can dual profile setting (one for day, one for night, configurable, switch automatically) resolve this problem ?

Ok, I'll wait for your app update
[Android Apps and Games] sonwon:
A thought, I have this problem with my sensor not working at low levels when on AC power. Could a threshold be set where it would automatically switch to camera when on AC power for low light levels? And work as you stated when on battery.
[Android Apps and Games] wietse1988:
Used the app for a few weeks now, works very well. Only after the last 2 updates, when I unlock my screen it doesn't adjust the screen brightess. When I change the sensor value by putting the phone into more light area or less light area the screen adjust to the desired brightness that I tweaked. Don't know what causses this?
[Android Apps and Games] SahilC:
Hello :D

I've been on RasBean + Trinity for around a month now. Good battery life, close to 4 hours screen on.

Lately I've been getting pretty quick battery drain, and by the end of the day, I'm on just above 3 hours screenon. :(

I recently started using Velis auto brightness control. Could that be the issue?

Are there any other stats and specifics that I need to mention for anyone to help me out? :P
[Android Apps and Games] supergaijin:
go to this thread and get the latest betterbatterystats, and donate if you like by getting the paid version here.

also, get cpuspy here and report your results.
[Android Apps and Games] Pkt_Lnt:
The same suggestions I made in the Rasbeanjelly thread to the same question there, BetterBatteryStats and CPUSpyPlus.
[Android Apps and Games] Christiancs1969:
No probs here:D. Hope all is well ;)

s2 dori 7.11rootbox nightly
[Android Apps and Games] :
@Velis -Sorry for off topic but hows your little one coming along? :)
[Android Apps and Games] velis74:
Sorry for no activity guys, I get so little comp time lately :(

I have however managed to make some progress and have updated first post with a new version that has the following new additions:

Service will stop after a minute if auto brightness is disabled

Support for proprietary sensor solutions on Sony Xperia, SGS2

Updated translations: german, persian

This is not yet a release since I'd like to do two more things before I do that:

Try to fix the graph freeze

Create a first-start settings wizard

In order to do the first, this version (in the first post, not the market) contains some logging enhancements. I would ask someone with the problem to please drop me a mail with logcat @ level 9 (long press the proximity sensor reading values to set the level). All I need is a few seconds @ level 9 when the graph is not responding to light changes.

The second item will be a series of 4 - 5 dialogs asking the user about his basic preferences. I will make it so that even existing users will have the option of running this dialog.

Of course, I'm also interested in Xperia sensor support if any Xperia users are still following the thread. Maybe for the support to work correctly, apps like this will need to be active. The app should work even without that, but there may be some strange results because OS and app will fight for their brightness. Don't know what the OS does if an app sets its own brightness.

@shadowch: The baby is great, we're having so much fun. We already managed to get her to sleep during the nights (that's why I have no more comp time :D ) We're all going for a walk to lake Bled today.
[Android Apps and Games] cukierkas:
I'm going to be daddy at end of december as well:)

setting wizzard would be awesome, some people finds hard to understand some points.
[Android Apps and Games] lou2s:
Lake Bled is such a beautiful place! I regret not visiting the church in the center of the lake last time.
[Android Apps and Games] UnderXP:
@Velis, Spanish translation updated.
[Android Apps and Games] velis74:
The wizard will introduce quite a few new strings.

I'm thinking of implementing some custom translation routines so that translators could verify the translations right away. Would that be helpful?

You missed out on the wishing bell on that church as well :D
[Android Apps and Games] flash5000:
Are you already using http://crowdin.net/ ?

This would allow for translators to get notified of new strings and also you can see how much is already translated...

EDIT:

Maybe there's also a similar free service available; use Google to your advantage :D
[Android Apps and Games] cukierkas:
Yes, auto notification would be lovely! Some of Lithuanian strings are not translated yet.

Sent from my GT-I9003
[Android Apps and Games] ngonchan:
Im testing the latest version (first post) with & without "disable light censor" app on my Acro S :P

Are there any ways to see if the OS and this app are fighting for the brightness?

If you need more info about running on Xperia phone, talk it to me (and tell me how to collect them, of course :P)

Sent from my LT26w
[Android Apps and Games] Christiancs1969:
Latest app nice. Running good :D

No probs at all to report sorry

s2dori7.13rootbox
[Android Apps and Games] velis74:
I don't think there's a definite test to see that. You just have to see for yourself if there's a difference and if the screen is acting as it should. Perhaps the easiest way to see that is if you start manual graph adjustment and then change light conditions. If the screen brightness changes, then the OS is trying to override the app.
[Android Apps and Games] RovG:
Hi Velis,

When the sensor is set to "Samsung Galaxy S2", it does not update/work. I suspect that the custom sensor detection fails for the Xperia resulting in custom detection failing overall.

Spoiler content hidden.
[Android Apps and Games] velis74:
The path for SGS2 I found in an earlier post which directed to another thread discusing sensor reading for Siyah kernel. It is possible that this isn't implemented in all kernels since you get a reading of 0 - probably all the time.

Your analysis is wrong though: the routine checks all possible paths and remembers any that are found to return a real number. You then have an option to change the reading method in settings. For example: all Xperias will most definitely fail the SGS2 check. My phone fails both of these checks and can only use OS provided sensor. I have tried to find the path for sensor on my phone, but it doesn't seem to be there, so I simulated sensor readings with screen brightness path which was available and working.
[Android Apps and Games] RovG:
Pleased to know my analysis was wrong. Will try harder next time:D

I am running a Siyah kernel and the path is correct. Something I have noticed though; If I repeatedly check the contents of lightsensor_file_state with a text editor through ES Explorer, I constantly get valid values but...if I do multiple cats of the file I sometimes get the correct reading mostly I get zero.:confused: It seems like cat & more are not reliable ways of looking at the contents of that file:(
[Android Apps and Games] RovG:
Here is an example of what I am referring to:View attachment 1472426
[Android Apps and Games] velis74:
Wow - only one valid reading in half a minute?

Maybe the value is only available when the actual reading changes?

Perhaps I should ignore the 0 reading as a valid result.

Adding to code now, will release together with the wizard.
[Android Apps and Games] RovG:
0 can be valid, please don't remove it.It is needed for really low light night time reading. It looks like cat / more are the problem here. Like I said viewing with a text/viewer editor shows correct values. Is there another way you can access that file?
[Android Apps and Games] velis74:
Oh, sorry. I understood that the entire thing doesn't seem to work or update. I assumed from your screenshot that it is a result of most samples being 0 instead of a sensor reading. Eliminating 0 would then only leave the valid samples to work with.

It's worth mentioning that sensors may not even be able to detect light as low as 0. Galaxy nexus for example stops at 4lux...
[Android Apps and Games] RovG:
If I use the light sensor test through *#0*#, I see that it does go as low as 0.
[Android Apps and Games] RovG:
If I select Capella Microsystems and then do the cats, it seems to behave correctly.

View attachment 1472537
[Android Apps and Games] MrMastodon:
I'm liking the new version of the app, wizard especially!

Will find time to update Norwegian translation this week :)

SGS2, RR 3.1.2 - Dorimanx 7.15.1
[Android Apps and Games] :
Loving the new setup wizard fella, should help a lot of new folks out with getting things sorted nice and quick. Thanks for the amazing work fella, we all appreciate it.
[Android Apps and Games] RovG:
Guys,

Am I missing something? I downloaded the version from post 1 (2.02.64) but I don't have any wizard.:( Do you guys have a private version?
[Android Apps and Games] velis74:
Yes, i sent the version in work to the translators so they could translate. Release coming shortly.

Thanks for wizard feedback guys. Packing up as soon as baby goes to sleep :)
[Android Apps and Games] RovG:
:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(
[Android Apps and Games] Christiancs1969:
Cool can't wait:D;)

galaxys2 dori7.15 rootbox nightly pitch perfect
[Android Apps and Games] velis74:
Oh, c'mon. It's only a short while now :)
[Android Apps and Games] :
Want to borrow my 4lb sledgehammer? Works a treat, gets ANYONE asleep in seconds! :D
[Android Apps and Games] Christiancs1969:
:mad:

galaxys2 dori7.15 rootbox nightly pitch perfect
[Android Apps and Games] D1Ltd:
Hi Velis, after a LOT of research i found that the file wich contains the sensor readings in the Optimus Black is:

"sys/devices/platform/i2c_omap.2/i2c-2/2-0060/leds/lcd-backlight/als_level".

The minimum value is 0x0 and the maximum is 0x78.

Maybe this helps to make the Optimus black compatible with your app.

Thanks.
[Android Apps and Games] velis74:
rotflmao. No thanks. Still managed it even without that :D

Thank you, the first post is now updated with (hopefully) fully working wizard *and* with Optimus Black support.

I don't release to market because I want to give the translators some time to do their work, otherwise, this is it.
[Android Apps and Games] supergaijin:
velis, I'm not sure this is one of the things on your TODO list, but is there anything that can be done to make the app play nice with flashlight apps that use the screen, for those like me that don't have a flash? I can't make the screen brighter while using one of these flashlight apps unless I kill velis auto brightness.
[Android Apps and Games] velis74:
Actually, it's this one: TODO: App exclusion list (turn off VAB when app is topmost)

Though this can now be done through Tasker / Locale. I haven't looked, but I'm sure there are plugins for those two which trigger on a select app being topmost.
[Android Apps and Games] RovG:
V2.20.71 Feedback:

Wizard radio button options are overlapping at the bottom. Cannot see "AMOLED dim" option.
[Android Apps and Games] velis74:
Thanks. Will wrap into a scrolllayout asap.

Edit: Uploaded the fix
[Android Apps and Games] UnderXP:
@Velis, I will update the Spanish translations tomorrow. Very busy at work last days!

Enviado desde mi GT-I9100 usando Tapatalk 2
[Android Apps and Games] velis74:
Well? Does it work?
[Android Apps and Games] D1Ltd:
Sorry for the delay.

I´m afraid it doesn´t work. The app does take control of the device brightness (this didn´t happen with previous versions), but the auto-brightness doesn´t work; the brightness only changes when i move the bars in the graphic.

Also, tha app still says that there´s no light sensor present in the device, and the lux reading is always 1/0.

I whish i could be of more help.

BTW, the wizard is very nice. great job.
[Android Apps and Games] velis74:
OK, I have added a TODO to make a dialog which would allow one to test and use any custom path.

This way users will be able to support their own phones.

SGS2 and Optimus Black removed from custom sensor readings for now.
[Android Apps and Games] CHEF-KOCH:
Hmpf, i still can't figure out why the sensor works sometimes after a new kernel and sometimes not. The only way to get it working is to re-enable the VAB system (SGS2). My problem -> i capture a log but it doesn't tell me anything useful to work with. A bit annoying. :(
[Android Apps and Games] sonwon:
How does one re-enable the VAB system?
[Android Apps and Games] velis74:
2.20.72 (14.11.2012)

Settings wizard

Service will stop after a minute if auto brightness is disabled

Support for proprietary sensor solution on Sony Xperia

Better LTR language support

Updated translations: german, persian, slovak, spanish

I'm preparing some assist for the translators so that they will be able to test their translations without waiting for my recompile. The thing will work so that when you place strings.xml to /sdcard/ directory, the app will use that as strings and will bypass normal translation routines.

For now I'm accepting comments regarding the chosen path (I think /sdcard/ is available on all phones). This is also the reason Slovene wasn't updated - because I plan to test the feature with my language (and because I was lazy).

Unfortunately I'm not having so much luck with RTL languages: I can't come up with a good way to auto-mirror the layouts. Radio buttons, check boxes are not obedient and neither are TextViews and stuff. This unfortunately results in necessity to create duplicate layouts. I'm working hard on fixing this to automatically mirror at least some pages.

Otherwise, enjoy the new version.
[Android Apps and Games] velis74:
So the kernel reader only works when the Android OS reader is also enabled?

The log @level 9 should report the values it reads from kernel path. If it doesn't, that means nothing is being read.
[Android Apps and Games] sonwon:
How does one discover the kernel path for their phone? Just wondering if this could maybe fix the bad readings from the light sensor when charging?
[Android Apps and Games] MrMastodon:
No and nb translations updated, and in your inbox :)
[Android Apps and Games] velis74:
I can't really tell. I did a "ls -R" from console on my phone and then searched for light, sensor, als, brightness and similar expressions. I was unsuccessful, but still I managed to find a path that shows current screen brightness which was a nice responding input for me to test the kernel reader.
[Android Apps and Games] sonwon:
Regarding the "Settings wizard" it seem to me that the next and previous buttons are reversed compared to other applications?
[Android Apps and Games] velis74:
Hm, I set next to "positive" button and prev to "negative" button. On my phone that places next to right and prev to left.

Is this not the case on your phone? What locale are you using?
[Android Apps and Games] sonwon:
My next was on the left and previous on the right. Not sure where to find locale, language is set for English (United States), but this doesn't seem to be what you are asking for?
[Android Apps and Games] velis74:
This was exactly what i was asking. I have locale set to en-uk. Will try en-us to see if i get the same placement... (30 secs go by ...) nope, i'm not experiencing this. Do you have any other issues like this in the app?
[Android Apps and Games] sonwon:
None that I noticed.
[Android Apps and Games] sonwon:
Next question, how do I open up a console? I've been in a Linux console before but never on the phone.
[Android Apps and Games] flash5000:
Search for 'terminal emulator' in play store...
[Android Apps and Games] sonwon:
Got it, what is the best tool to browse the root drive with?
[Android Apps and Games] mikeones42:
Is it possible to have this app control the brightness of soft keys also? The soft keys on my sensation seem to be brighter than the display when this app is enabled.
[Android Apps and Games] velis74:
I'm looking into it, but first info shows that I'd need root privilege for that. Not encouraging.

This thread has instructions for HTC EVO (using Tasker), perhaps sensation even has the same path?
[Android Apps and Games] kubics:
For me this sounds good. It would help for sure.
[Android Apps and Games] velis74:
Seems i will need to implement the averaging soon :)

Perhaps there will be some time tonight to try and implement some of to-do items.
[Android Apps and Games] kroz:
that's great, system auto brightness is not that good, sometimes it stick to highest brightness for a long period of time when you have just came from outdoor,

gonna watch the thread for future updates,

keep it up... :)
[Android Apps and Games] xanthrax:
definately !
[Android Apps and Games] dorimanx:
Hi, great work!

now all OK, i can install apps when your app is in RAM,

and all working as planed!

Thanks allot for great app. now i can switch off all the ROM brightness tweaks :)

you should upload it to MARKET :)
[Android Apps and Games] velis74:
Today or tomorrow. Testing going better than expected.
[Android Apps and Games] Christiancs1969:
Its very good:D

s2 RR 308 dori
[Android Apps and Games] xanthrax:
velis ! you`ve the appreciations of one of the greatest dev on XDA !

do your best mate !!!
[Android Apps and Games] kantjer:
Hi Dori, nice to see a lot of your kernel users here in this thread :angel:
[Android Apps and Games] vegdroid:
first look... very nice :)
[Android Apps and Games] Sun90:
thats a pretty good app for sure ma8:), keep up the good wrk:)
[Android Apps and Games] :
HTC One S running Trickdroid v8. 0 custom rom.

Experiences one weird issue regarding flashing bright light.

In low light situations I have it set to minimum brightness but every now and again it will flash extremely bright (only for the blink of an eye its that fast) without any change in light source. Just thought I'd share hope I've explained it well enough.
[Android Apps and Games] bgx:
Great app! when tasker is implement I will use it daily. Its because I bump up the screen brightness with the help of tasker when open the gallery or watching youtube vids...

Keep the good work!
[Android Apps and Games] lou2s:
Hv been using lux auto brightness, wonder how this one comparing to it :)
[Android Apps and Games] donjamal:
Hi, thanks for the reply but the phone does have brightness sensor, pls see the attached screenies from the service menu.

Sent from the outer space, delivered by an android