[APP][2.3+] Lux Auto Brightness

Search This thread

Cyb3rGlitch

Senior Member
Apr 12, 2011
599
663
I have some good news, and some bad news. The developer fixed the insufficient storage issue with OS integration, which is great. The bad news is, it won't work with paid apps due to the way Android handles them.

I don't know if this works, but if you have issues with Android killing Lux on Android 4.1+ and don't want the persistent notification, long press the notification and click the 'App Info' button. There should be a checkbox to disable notifications. I think that still retains the persistence. Would love to hear feedback.
 
  • Like
Reactions: Christiancs1969

vitalyb

Member
Aug 8, 2008
27
0
Lux doesn't work properly on Galaxy S2 (I9100P)

Lux behaves rather strangely on my phone. Subzero values work correctly, however, anything above 0 has no effect on my phone at all. Is it a known issue?

The only alternative that I see is setting the brightness of the phone to be maximum and controlling the actual brightness using only subzero values. Is it a valid plan? I wouldn't want to have the battery draining as if I am always on maximum brightness...

Model: GT-I9100
Android: 4.1.2
AOKP version: RootBox-JB-i9100p-V2.9
 

Cyb3rGlitch

Senior Member
Apr 12, 2011
599
663
Are you using any apps which adjust brightness, or have an on screen overlay?

Lux behaves rather strangely on my phone. Subzero values work correctly, however, anything above 0 has no effect on my phone at all. Is it a known issue?

The only alternative that I see is setting the brightness of the phone to be maximum and controlling the actual brightness using only subzero values. Is it a valid plan? I wouldn't want to have the battery draining as if I am always on maximum brightness...

Model: GT-I9100
Android: 4.1.2
AOKP version: RootBox-JB-i9100p-V2.9
 

n0j0e

Senior Member
Lux behaves rather strangely on my phone. Subzero values work correctly, however, anything above 0 has no effect on my phone at all. Is it a known issue?

The only alternative that I see is setting the brightness of the phone to be maximum and controlling the actual brightness using only subzero values. Is it a valid plan? I wouldn't want to have the battery draining as if I am always on maximum brightness...

Model: GT-I9100
Android: 4.1.2
AOKP version: RootBox-JB-i9100p-V2.9

Also here on my HTC One S Stock Rom (v2.31, Android 4.0.4, Sense 4.1, no root, no other brightness apps are running).

Must i disable the system auto brightness?

I know that all brightness apps doesn't work correctly on my HTC. :(
 

lordgoata

Senior Member
Apr 9, 2008
106
27
I don't know if this works, but if you have issues with Android killing Lux on Android 4.1+ and don't want the persistent notification, long press the notification and click the 'App Info' button. There should be a checkbox to disable notifications. I think that still retains the persistence. Would love to hear feedback.

That was the first thing I did when I upgraded to Jelly Bean, and I have not had any issues with this or any other app that I have disabled the notification icons for (eg. Tasker), so yes that should work fine.
 

mustafaakk

Senior Member
Feb 22, 2008
160
25
This app uses so much battery. Installed it if i can get some more juice by loeering the brightness, but the process itself uses much more power.

Sent from my GT-N7000
 

Cyb3rGlitch

Senior Member
Apr 12, 2011
599
663
This app uses so much battery. Installed it if i can get some more juice by loeering the brightness, but the process itself uses much more power.

Sent from my GT-N7000

Samsung devices seem to attribute a lot of power usage to Lux. I don't know why exactly, but it seems to be the fact that the light sensor is on all the time in some modes. Personally I recommend using On Wake mode for optimal battery consumption, but I'm skeptical that Lux uses as much as the stats claim.
 

Cyb3rGlitch

Senior Member
Apr 12, 2011
599
663
I think I just worked out why some people are having issues with unreliable lux readings in v0.7x versions of Lux. Anyone having issues (One X users seem to be the main bunch), please contact me so I can give you a test build. Thanks!
 

flash5000

Senior Member
Jul 11, 2009
264
172
I think I just worked out why some people are having issues with unreliable lux readings in v0.7x versions of Lux. Anyone having issues (One X users seem to be the main bunch), please contact me so I can give you a test build. Thanks!

Beta tester here, ready to start testing engines... ;)

I'm using a HTC Sensation, but keep having trouble with the light sensor (despite your recent efforts to resolve the problems)...
 

p50kombi

Senior Member
Dec 20, 2005
3,969
2,150
Samsung Galaxy Note 10+
Same here..
Bought your app ages ago and am linked to your dropbox.
Have a hox as well...

Is the new beta on yr dropbox?
Cheers...


Edit

Never mind.. Found it on dropbox..

Haha, so does hox have a slow sensor? (read changelog... :))
*********

Sent from a tin of baked beans using some chewing gum, tinfoil, a string and a manual written by MacGyver.
 
Last edited:

flash5000

Senior Member
Jul 11, 2009
264
172
I don't know what exactly you have done to improve the situation, but:

It works! Hurray!
:D :highfive:

I will report back if I encounter any issues, but so far it's working great and I'm looking forward to enjoying the Lux AB greatness... ;)
 

jeriel05

Senior Member
Jan 7, 2009
252
21
I just purchased this app after using the free version for a few weeks, I think mainly because of the developer support that I have seen. I haven't figured the best settings to use yet. I'm using this on a GS3 and was wondering if anyone can recommend or share the settings they have been using.

Sent from my SCH-I535
 

lou2s

Senior Member
Jun 19, 2010
775
290
In my experience 0.6x was giving me a better user experience than 0.7x, so I rolled back. The new settings such as in call brightness is coolvbut maybe made optional. I usually ser my screen to -17% and increase only at a lux of 500, so the first time seeing my screen went up to 80% scared me lol.

(I m using sg3 too. 0.7x behaved quite strangely so I rolled back.)

Thanks for the great apps! Minimum battery consumption and very practical!

Sent from my GT-I9300 using xda app-developers app
 
Last edited:

Cyb3rGlitch

Senior Member
Apr 12, 2011
599
663
In my experience 0.6x was giving me a better user experience than 0.7x, so I rolled back. The new settings such as in call brightness is coolvbut maybe made optional. I usually ser my screen to -17% and increase only at a lux of 500, so the first time seeing my screen went up to 80% scared me lol.

(I m using sg3 too. 0.7x behaved quite strangely so I rolled back.)

Thanks for the great apps! Minimum battery consumption and very practical!

Sent from my GT-I9300 using xda app-developers app

All those issues are fixed now.
 
  • Like
Reactions: lou2s

Cyb3rGlitch

Senior Member
Apr 12, 2011
599
663
Same here..
Never mind.. Found it on dropbox..

Haha, so does hox have a slow sensor? (read changelog... :))

Problem is, I set the poll-rate to something relatively slow to save power, but this means that if the HOX changes light value between each poll, the onChange listener never triggers. It's completely stupid, and a core issue with how sensors work on Android.
 
  • Like
Reactions: p50kombi

NukeFish

Senior Member
Jan 29, 2012
64
11
This is truly a fantastic app that does its job exceptionally well. Reading on my phone or tablet at night used to be terrible because I could not get the screen dark enough to be comfortable. This is so much better. It was really easy to learn as well. Brilliant idea to let users pick what they want the brightness to be, link it to the sensor reading, and then make a decision for values that haven't been explicitly set. Great concept, great execution and developer support, I absolutely love it. Very utilitarian app that should be a part of android.

Sent from my SPH-D710 using xda premium
 
  • Like
Reactions: Cyb3rGlitch

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.