[APP][2.3+] Lux Auto Brightness

Search This thread

Heisenberg420

Senior Member
Apr 28, 2011
2,286
1,015
Philadelphia
Google Pixel 6
OnePlus 11
Having a problem with lux on my HTC one m8.

My preferred adjustment setting (on wake) doesn't work. When set to adjust on wake the app doesn't pick up any light sensor readings. Dynamically and ascending adjustments work fine. Also in debug the light sensor appears to be working fine. When set to on wake it just shows the last sensor reading from debug and never updates.

Also should mention that I have no issue on sense Roms or gpe Roms, only on aosp.

Any idea what the problem is?
 

asaqwert

Senior Member
Apr 5, 2011
419
77
So I'm not too impressed right now. I've been using Lux for a long time now, and it has been an awesome app. Saved me tons of battery life and makes the screen brightness much more convienient.

Now it just sucks, not sure why or what happened, but here's the deal:

Samsung Note 3, running Jedi Elite V2 (based on 4.2.2 Kitkat) with the Lean Kernel. Latest version of Lux. Stock brightness auto adjust is off, stock brightness slider is set to minimum (though I've tried it with it set higher and max too with no helpful effect).

What happens is, when the Lux panel is not in the foreground, the brightness settings do not get controlled very well. I have tried Dynamic and periodic (3, 5, and 7 seconds for the latter) and both do similar stuff. When I pull the notification bar down and open lux, or open it from the app tray, as soon as it is open the brightness falls dramatically and goes to where it should be. Sometimes it stays there, other times it bounces right back up to max or near max. If it isn't in the foreground, and is just running in the background, it rarely goes below 90%, even if I'm in the dark. When I open lux up, it immediately drops to 5-10% (in near dark, depending on ambient light). I back out of lux and sometimes it stays for a few minutes, other times it jumps right back up.

Makes for HORRIBLE battery life.

I've tried the sensor poll time at slowest, slow, medium, and I've tried different minimum brightness settings.

Any ideas? this really sucks, because this app used to work great for me.
 

tboooe

Senior Member
Oct 9, 2011
1,090
483
the OC
Dumb question...did you check to see that your light sensor is working properly? I believe there is a setting in Lux that lets you check that.

Have you tried adjusting on Wakeup just to see if Lux is responsive and behaving like it should?

I also have a Note 3 running a custom ROM and Lux seems to be working for me though it does have issues with S view (see my previous post)
 

pleto

Senior Member
Jun 22, 2012
212
7
Hi, I state that my English is the result of the translator.
I installed it on a mini Galaxy S3 cyanogen11 after I installed Lux Auto Brightness but I noticed that when it is running I can not press the "Allow" popup that both Superuser of Supersu (later installed to test). If lux is terminated buttons are clickable. Can you tell me if it is a known issue and there is a solution? thanks

News?
 

apraetor

Senior Member
Jan 25, 2014
67
14
As mentioned previously, it would be nice to get better integration with S View on the Note 3. I have the Note 3 with the official Samsung S View cover. Here's whats happening with me:

I have Lux set up to adjust the brightness on wakeup.

If I turn on the screen with the S cover closed, Lux will dim the screen according to my settings. Because the cover is closed Lux thinks I am in a very dark room so the S View screen is dimmed too low. It would be nice to somehow have Lux not adjust the screen when the S View cover is closed.

Accordingly, if I open the cover after first turning on the screen with the S View cover closed, the screen remains dim which is makes sense given I have Lux set up to only adjust the brightness at wakeup.

Ideally, Lux can be set to not adjust the screen brightness if the S View cover is closed. Maybe just use a fixed value. And if the screen is turned on when the S View cover is closed with Lux set up to only adjust on wakeup, Lux should adjust the brightness when the cover is open.

I know I can set Lux to adjust the brightness dynamically but this is the only situation where I would use this instead of adjust on wakeup.

Anyway, just an idea...

Check post #1574, like 2 posts above yours: use the "Ignore 0 lux" setting. It'll maintain whatever brightness it was at prior to closing the cover.

---------- Post added at 10:41 PM ---------- Previous post was at 10:38 PM ----------

So I'm not too impressed right now. I've been using Lux for a long time now, and it has been an awesome app. Saved me tons of battery life and makes the screen brightness much more convienient.

Now it just sucks, not sure why or what happened, but here's the deal:

Samsung Note 3, running Jedi Elite V2 (based on 4.2.2 Kitkat) with the Lean Kernel. Latest version of Lux. Stock brightness auto adjust is off, stock brightness slider is set to minimum (though I've tried it with it set higher and max too with no helpful effect).

What happens is, when the Lux panel is not in the foreground, the brightness settings do not get controlled very well. I have tried Dynamic and periodic (3, 5, and 7 seconds for the latter) and both do similar stuff. When I pull the notification bar down and open lux, or open it from the app tray, as soon as it is open the brightness falls dramatically and goes to where it should be. Sometimes it stays there, other times it bounces right back up to max or near max. If it isn't in the foreground, and is just running in the background, it rarely goes below 90%, even if I'm in the dark. When I open lux up, it immediately drops to 5-10% (in near dark, depending on ambient light). I back out of lux and sometimes it stays for a few minutes, other times it jumps right back up.

Makes for HORRIBLE battery life.

I've tried the sensor poll time at slowest, slow, medium, and I've tried different minimum brightness settings.

Any ideas? this really sucks, because this app used to work great for me.

OK, that answer was on the previous page of posts: Install 1.95, here's the copy I kept on my Dropbox. No clue what's wrong with it, beyond the fact it's broken and that it's supposedly being fixed in betas or something.
 
  • Like
Reactions: asaqwert

marbertshere

Senior Member
Feb 21, 2014
1,038
206
San Jose
Google Pixel 4 XL
So I'm not too impressed right now. I've been using Lux for a long time now, and it has been an awesome app. Saved me tons of battery life and makes the screen brightness much more convienient.

Now it just sucks, not sure why or what happened, but here's the deal:

Samsung Note 3, running Jedi Elite V2 (based on 4.2.2 Kitkat) with the Lean Kernel. Latest version of Lux. Stock brightness auto adjust is off, stock brightness slider is set to minimum (though I've tried it with it set higher and max too with no helpful effect).

What happens is, when the Lux panel is not in the foreground, the brightness settings do not get controlled very well. I have tried Dynamic and periodic (3, 5, and 7 seconds for the latter) and both do similar stuff. When I pull the notification bar down and open lux, or open it from the app tray, as soon as it is open the brightness falls dramatically and goes to where it should be. Sometimes it stays there, other times it bounces right back up to max or near max. If it isn't in the foreground, and is just running in the background, it rarely goes below 90%, even if I'm in the dark. When I open lux up, it immediately drops to 5-10% (in near dark, depending on ambient light). I back out of lux and sometimes it stays for a few minutes, other times it jumps right back up.

Makes for HORRIBLE battery life.

I've tried the sensor poll time at slowest, slow, medium, and I've tried different minimum brightness settings.

Any ideas? this really sucks, because this app used to work great for me.

Do you have cf lumen integration on?
 

tommi.a

Senior Member
Aug 8, 2013
111
25
Samsung Galaxy S5, non rooted. Lux Pro 1.99.992.
I use the app with periodic mode.
In low light conditions I'm quite happy with Lux pro but in light conditions I don't understand how it works.
Lux lets me configure brightness as a function of Lux value.
My understanding is that Lux value is a function of data from light sensor.
With some testing I found the following:
Sensor reading 0..ca.5000: Lux value = Sensor value
Sensor reading ca. 5000..>100000: Lux value = 5008 constant!!!

Sensor values above 5000 are normal values in daylight. Sensor values ca. > 100000 are normal values in bright sun light .
But I can't make use of this information because Lux app limits the Lux value to 5008.

Anybody else with similar observations?
 

randomvector

Senior Member
Jan 16, 2011
309
381
London
Lux and Tasker

Having problem where I trying to get Lux to turn on Display if the phone is ringing. I manage to set the Event (Phone Ringing) but when I select the Lux Plugin, once I have made my configurations then back out I get the Error toast: Error no plugin configuration data. Have tried over and over to find a way round this to no avail. Any help?
 

apraetor

Senior Member
Jan 25, 2014
67
14
Are you trying to load custom settings just while the phone is ringing (what specifically are you trying to customize)? Which version of Lux do you have? I tested it with 1.95.
 
Last edited:

Mistertac

Senior Member
Oct 22, 2013
4,759
2,749
Springfield, Ma
The latest update to Lux bring any issues to anyone else? Seems Lux just doesn't want to work correctly on my G3 now .

I've wiped out my profiles, uninstalled and reinstalled and nothing.. I'll have to try and earlier release this morning at work and see what's up

- Tapatalked From The G3 -
 

Cyb3rGlitch

Senior Member
Apr 12, 2011
599
663
Apologies to everyone for not being around lately. I've been answering support via email.

A new release is rolling out on the market to 5% of users. Please use the 'Send Feedback' button in Lux preferences if you experience issues. Also, feel free to email me with any questions or concerns.
 

pleto

Senior Member
Jun 22, 2012
212
7
I have a problem with LUX and cm11 for S3 Mini:
the inability to press "allow" when prompted me to superuser/supersu root access by applications.
I am forced to end the dashboard of Lux.
Are there solutions? Thanks!
 
  • Like
Reactions: Sir_gpm

marbertshere

Senior Member
Feb 21, 2014
1,038
206
San Jose
Google Pixel 4 XL
I've had issues after installing 1.99.993. Lux would give me readings of 0 lux no matter what light. I checked ignore 0 lux readings but it still functioned the same, no change in behavior. Always getting 0 lux readings.

I restored a backup of an older version so I can keep using lux.

Does anyone else have similar issues? I guess I'll have to wait for the next update and how it works.

Galaxy S4 w AOSP ROM 4.4.3.
 
Last edited:
  • Like
Reactions: reikar

trjlive

Senior Member
Jul 24, 2013
1,761
2,063
Los Angeles / Orange County, CA
trjlive.com
The latest update to Lux bring any issues to anyone else? Seems Lux just doesn't want to work correctly on my G3 now .

I've wiped out my profiles, uninstalled and reinstalled and nothing.. I'll have to try and earlier release this morning at work and see what's up

- Tapatalked From The G3 -

You really need to be more specific if you expect any help. Just saying that you're having "issues" and that it "doesn't work" is very cryptic and useless to anyone trying to help you. Please be very specific: what exactly doesn't work? What are these "issues"?
 
  • Like
Reactions: shaggyskunk

Mistertac

Senior Member
Oct 22, 2013
4,759
2,749
Springfield, Ma
You really need to be more specific if you expect any help. Just saying that you're having "issues" and that it "doesn't work" is very cryptic and useless to anyone trying to help you. Please be very specific: what exactly doesn't work? What are these "issues"?
Sorry my friend I forgot I had even posted that. I was half asleep and In a pissy mood. I usually know better.

It seemed after the latest Lux update that my Auto Brightness was just all over the place, not behaving at all, one minute bright next way to dark, not following my profile at all.

Im a long time lux user so I somewhat know the tricks to these things and to be honest with you I uninstalled lux a couple of times and installed again, And now it seems to be working once again.

Im on a G3 stock rooted ROM so I either thought it was a Lux bug or maybe my phones sensors even... At this point it doesn't matter. Lux is working just like it always has for me, very well. Must have just been something odd on my end.

- Tapatalked From The G3 -
 
  • Like
Reactions: trjlive

trjlive

Senior Member
Jul 24, 2013
1,761
2,063
Los Angeles / Orange County, CA
trjlive.com
Sorry my friend I forgot I had even posted that. I was half asleep and In a pissy mood. I usually know better.

It seemed after the latest Lux update that my Auto Brightness was just all over the place, not behaving at all, one minute bright next way to dark, not following my profile at all.

Im a long time lux user so I somewhat know the tricks to these things and to be honest with you I uninstalled lux a couple of times and installed again, And now it seems to be working once again.

Im on a G3 stock rooted ROM so I either thought it was a Lux bug or maybe my phones sensors even... At this point it doesn't matter. Lux is working just like it always has for me, very well. Must have just been something odd on my end.

- Tapatalked From The G3 -

No worries, glad you got it working again! :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 160
    unnamed.png


    Lux - The Original Android Auto-Brightness App

    So I thought I should make an XDA thread for Lux, over a year after releasing it to the Play Store!

    FULL or FREE


    Issues/Suggestions

    If you have any issues or suggestions, please add them to the public issue tracker found here. Be sure to search first, duplicated issues will not work in your favour.


    News
    • Update to 1.51 released to Play Store!
      - Profiles. Have different behaviour for day and night!
      - Root plug-ins. Custom kernel with RGB control? Make a plug-in to utilise it!
      - Improved notification
      - Low pass filter
      - Cubic interpolation
      - Polish/French/Russian/German/Italian translation
      - Manual sunrise location input
      - Control Dashboard slider with vol. keys
      - Fade duration/step
      - Reduced battery usage
      - Fixes

    • Update to 1.06 released to Play Store!
      - Automatic night mode (uses location for sunset/sunrise).
      - Notification priority
      - Enhanced dashboard and notification UI
      - Enable/disable and refresh Lux via Tasker
      - Bug fixes

    • Update to 0.76 released to Play Store!
      - Fixed brightness issues after call

    • Update to 0.74 released to Play Store!
      - Fixed max/phone brightness preferences swapped
      - Added ignore 0 lux option
      - Made static phone brightness optional

    • Update to 0.70 released to Play Store!
      - New 'ascending' automatic mode for zero jitter!
      - Expandable notification for added control (Android 4.1+)
      - Improved efficiency
      - Install to OS functionality
      - Set min/max brightness bounds
      - Adjustable night mode
      - Improved persistence (Android won't kill it!)
      - Fixed Nexus 7 255 luma bug
      - Fixed Tasker 'on wake' revert bug
      - Compat. mode is now known as 'sleep mode'
      - Night Mode now default Dashboard action (hold for Astro. mode)
      - Misc. tweaks and fixes.

    App Description

    Lux isn't your ordinary brightness app. It intelligently adjusts the brightness of your display based on the environment you're in. If, for example, you step into a dimly lit room, Lux will automatically lower the brightness of your display to make it not only comfortable to read, but to also preserve battery power.
    Lux provides the option to automatically adjust the backlight at fixed intervals (periodic mode), when a change in environment is detected (dynamic mode), or when the phone wakes from sleep. It's also possible to adjust the backlight manually. Simply disable automatic mode and you can use it like a traditional brightness tool!
    Perhaps the best thing about Lux is that you can teach it how to behave. If the backlight is too bright or dim for your liking, simply open the provided Dashboard, adjust the brightness slider to the level you desire, then hold the link button. Lux will use this new 'link' as a reference in future.

    Give it a go! I want you to test Lux for more than the 15 minute refund period offered by Google. I understand that some devices may not have the best quality light sensor, and that you may need more time to play around with settings. If you find that Lux doesn't suit you after the 15 minutes is up, you can request a refund at any time via e-mail - no questions asked.

    ★FEATURES★
    ■ Custom auto brightness.
    ■ Sub-zero brightness to make reading in the dark significantly less irritating.
    ■ Battery efficient
    ■ Handy brightness widget
    ■ Option to use the camera to read in ambient light.
    ■ Power-user settings such as choice of interpolation, sensor debugging, and linked sample editing.
    ■ Backup to SD.
    ■ 'Ascending' auto mode for phones with inaccurate light sensors.
    ■ Gradual fade for backlight adjustments.
    ■ Astronomer mode adds a red filter to the screen to preserve the eyesight of stargazers.
    ■ Jitter control to prevent constant small changes to the backlight.
    ■ Automatic night mode, to change the colour temperature of the display for comfortable night time viewing.
    ■ Add app specific exceptions via sleep mode
    ■ No ads, or other nuisances.
    ■ Tasker and Locale support!
    Note: Please disable other brightness apps before using Lux. The author is not liable for any issues caused when using this app.

    ★PERMISSIONS★
    TAKE PICTURES AND VIDEOS: Used to read in luma values, if camera input is selected.
    DRAW OVER OTHER APPS: Required for night/astro mode.
    READ PHONE STATE: Required to prevent Lux from interfering with phone controls in Android 4.1.
    MODIFY SYSTEM SETTINGS: Brightness is a system setting, as is toggling the default auto brightness.
    RETRIEVE RUNNING APPS: Required to make the 'sleep list' functionality work, so Lux can disable itself when certain apps are in the foreground.
    COARSE LOCATION: Required to automatically calculate sunrise/sunset times.
    IN APP BILLING: Required for purchasing future device specific root only plug-ins, to enhance functionality.
    14
    Lux Low-Level Plug-ins

    Soon Lux will support plug-ins to bypass Android API limitations. These plug-ins serve to replace the overlay system Lux uses to make adjustments for Night/Astronomer modes and brightness in general. The plug-in library is free to use for non-commercial development, and can be found here:

    Lux Plug-in Library | Nexus 4 Sample Plug-in Code

    How to make a plug-in

    There are two approaches to making a plug-in for Lux. The passive and the active method. The former is as easy as providing a set of superuser commands for Lux to interpret and apply. These command correlate to functions such as setting pixel RGB or brightness levels. This is the type of plug-in the Nexus 4 sample linked above takes.
    The active method requires you produce your own code to perform RGB/brightness adjustments. This might include importing a device specific library to do the heavy lifting, and then returning empty superuser commands back to Lux.


    Getting Started

    Simply import the Lux Plug-in Library source into your IDE as an Android Library Project, and then create a new Android app which extends PassiveDisplay.java.

    PassiveDisplay provides hooks into Lux's plug-in framework, which you can use to provide superuser commands for Lux to execute. These commands correlate to functions such as setting RGB values. Take a look at the sample Nexus 4 project to see how it's all done.
    Finally, in your new project's AndroidManifest.xml file, add the following:

    Code:
        <activity
            android:name="com.vitocassisi.lux.plugin.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
    
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    
        <receiver
            android:name="com.vitocassisi.lux.plugin.LuxBroadcastReceiver"
            android:exported="true" >
            <intent-filter>
                <action android:name="com.vitocassisi.lux.plugin.search" />
            </intent-filter>
        </receiver>
    
        <service
            android:name=".[B]MY_PLUGIN[/B]"
            android:exported="true" >
            <intent-filter>
                <action android:name="[B]YOUR_PACKAGE_NAME_HERE[/B]" />
            </intent-filter>
        </service>

    Be sure to replace YOUR_PACKAGE_NAME_HERE with the name of your plug-in's package, and MY_PLUGIN with your extended PassiveDisplay class.

    And that's it! Now you're ready to test!


    Enabling Plug-In support within Lux

    To enable plug-in support, you must check 'Enable plug-in support' in the Advanced section of Lux settings. Enabling this option forfeits all responsibility of mine for any issues caused while using Lux. Plug-in's can cause very real damage to your device if they're written incorrectly - don't use plug-ins from sources you don't trust!
    Testing your plug-in
    Testing is critical for creating a good plug-in. You are dealing directly with system files, and can easily cause damage if you do not know what you're doing.

    DO NOT RELEASE A PLUG-IN WITHOUT TESTING IT ON THE TARGET DEVICE FIRST!

    Ensure that the following work with your plug-in installed:
    • Astronomer Mode
    • Night Mode
    • General brightness adjustment
    • Lux readings functional

    BE METICULOUS WITH YOUR IMPLEMENTATION OF isSupportedDevice()!
    Modifying system files on the wrong model/kernel may cause irreversible issues!


    Licence
    Code:
    Copyright © 2013 Vito Cassisi
    
    You may not use this library except in compliance with the following:
        - It cannot be used for commercial purposes under any circumstances, unless explicit permission is granted in writing from the author.
        - Modifications to this library may not be distributed.
    
    Unless required by applicable law or agreed to in writing, software
    distributed under this licence is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    11
    Lux v1.99.8 released (staged rollout)

    - Added CF.lumen support (don't need CF.lumen active, just install the driver). Acts as a plug-in for all Android 4.4+ devices. Please buy the pro version to support his work.
    - System autobrightness enabled during calls
    - Option to shake at lockscreen to increase brightness
    - Option to prevent drop in brightness in landscape
    - Enforced persistent notification, added system removal method
    - Fixed dashboard width issue
    - Fixed notification priority resetting at boot
    - Misc. fixes
    11
    Hey everyone. Sorry to hear that people are having issues with the paid version. I'm working on hotfixes at the moment. A lot of these bugs don't appear on my test devices, which is why regressions happen seemingly randomly. I'm working hard on finding a reliable way to reproduce and test these issues to prevent this happening again.
    9
    Apologies to everyone for not being around lately. I've been answering support via email.

    A new release is rolling out on the market to 5% of users. Please use the 'Send Feedback' button in Lux preferences if you experience issues. Also, feel free to email me with any questions or concerns.