[APP][2.3+] Lux Auto Brightness

Search This thread

odysseus84

Senior Member
Dec 19, 2010
520
115
Solothurn
Hello everybody,

First, this is a awsome app for battery savings. I use it on my Nexus4 for some days now and it's fantastic.

Now... the process of optimation the profile needs some time. Maybe some one is able to share a good powersaving profile?
 

p107r0

Senior Member
Jan 29, 2010
1,829
628
Hello everybody,

First, this is a awsome app for battery savings. I use it on my Nexus4 for some days now and it's fantastic.

Now... the process of optimation the profile needs some time. Maybe some one is able to share a good powersaving profile?

not sure if it's a good idea, even the same devices can have completely different sensor sensitivity - have two identical ones at home, both need different profiles

Sent from my GT-N5100 using xda premium
 
  • Like
Reactions: odysseus84

juanej

Senior Member
Sep 4, 2009
75
5
Medellin
I'm having a problem using this app on a HTC One runing AOSP, when I take a picture with lux in night mode they are reddish, if i turn the night mode off on lux my pictures are just fine
 

noraef

Senior Member
Jul 18, 2013
72
26
Testing the free "Lite" version of the app, for now, and was wondering something: I haven't found a way to create more profiles than the already 4 existing ones (day, night, car and cinema)... is there any such way?
 

tommi.a

Senior Member
Aug 8, 2013
111
25
Testing the free "Lite" version of the app, for now, and was wondering something: I haven't found a way to create more profiles than the already 4 existing ones (day, night, car and cinema)... is there any such way?
You are lucky. Just few days ago there was an update for the free version which brought these profiles. Before there was only one (unnamed) profile.
 

noraef

Senior Member
Jul 18, 2013
72
26
Ah, thanks, tommi.a: I've ended up buying the paying version, as it's the Tasker compatible brightness app I was most comfortable with.
A bit sad, we're limited to those 4 profiles only: I've eaten them up already, with day/night, and two corresponding car versions on top of those...
 

jmejiaa

Senior Member
Nov 22, 2008
654
129
Quick question about the app, just bought it yesterday. I came upon it when searching for a feature like CM's custom brightness ranges..

I have the app to auto, and have it checking the light sensor for changes. With CM what I did was lower the stock % for lux ranges so I would save battery in theory. I'd like to do the same with this app.

I was able to make 0 a much lower percentage so my eyes don't hurt at night(+night mode)..

My problem is I don't know what to setup, if I give it a set percentage for certain lux value it wouldn't really do much because I'm not always going to hit that exact lux value.

Is it possible to do what I want?
 

noraef

Senior Member
Jul 18, 2013
72
26
Are you talking about subzero mode level, jmejiaa?
It's in the settings (gearing icon on the lower right of the widget): Parameters>Brightness>Backlight zero level (well, sorta: translated from my French interface)
The higher you'll set it, the brighter it'll start cutting down on backlight power supply.

Else, for more classic brightness setup (dark filter over the display), you go to Installation>Profile editor, and set your "luminous flux on the sensor/brightness of the screen" function (with two points only, it seems to be some sort of S curve).
 
Last edited:

p107r0

Senior Member
Jan 29, 2010
1,829
628
My problem is I don't know what to setup, if I give it a set percentage for certain lux value it wouldn't really do much because I'm not always going to hit that exact lux value.
not sure if I understand your problem correctly, but if you have set brightness levels for two separate lux values, then brightness for lux values between those two is calculated/extrapolated automatically - moreover there are three different methods for this, you can choose one best suiting your needs in the settings
 

jmejiaa

Senior Member
Nov 22, 2008
654
129
Are you talking about subzero mode level, jmejiaa?
It's in the settings (gearing icon on the lower right of the widget): Parameters>Brightness>Backlight zero level (well, sorta: translated from my French interface)
The higher you'll set it, the brighter it'll start cutting down on backlight power supply.

Else, for more classic brightness setup (dark filter over the display), you go to Installation>Profile editor, and set your "luminous flux on the sensor/brightness of the screen" function (with two points only, it seems to be some sort of S curve).

not sure if I understand your problem correctly, but if you have set brightness levels for two separate lux values, then brightness for lux values between those two is calculated/extrapolated automatically - moreover there are three different methods for this, you can choose one best suiting your needs in the settings

Sounds like the second quote is more of what I want to do.. I basically want the screen dimmer than it would normally would be. By the sounds of it, I can accomplish by lowering the 10000 lumen value to something like 80-90%?

If I leave it in auto, does it switch between day/night profiles? I don't really need multiple profiles but I don't see a way to modify the values for "auto".

I just tried modifying the outer bounds for both lux/lum and it seems to do what I want..
 

p107r0

Senior Member
Jan 29, 2010
1,829
628
Sounds like the second quote is more of what I want to do.. I basically want the screen dimmer than it would normally would be. By the sounds of it, I can accomplish by lowering the 10000 lumen value to something like 80-90%?

If I leave it in auto, does it switch between day/night profiles? I don't really need multiple profiles but I don't see a way to modify the values for "auto".

I just tried modifying the outer bounds for both lux/lum and it seems to do what I want..

the simplest approach is to adjust brightness and create link each time you are not satisfied with auto level - this way, after 5-10 links you should have fine-tuned brightness curve
 

tommi.a

Senior Member
Aug 8, 2013
111
25
Widget icon says "Sub"

Hi,
would it be possible to print -xx% in the same ways as (+)xx% ?
This would be much more usable information.
Thanks
 

jibsen

Member
Jun 29, 2013
8
1
iroopen either

anyone else have an issue where night mode comes on correctly and gradually, but it never comes back to daytime the next morning? I have to manually turn off/on night mode for daytime colours to come back.

Are you using manual or auto location?

I have had the same issue recently. Night mode dim comes on fine in the evening, but every morning I have to go into settings and turn night mode off+on to get back daytime colors.

I have Automatic Night Mode enabled in the night mode option (the three stars icon), and in Night/Astro Mode in the settings I have Night Mode and Enable automatic Night Mode enabled. I also have Auto sunset location enabled.

Other than that little thing, this version of Lux has been working great :good:.
 

Cyb3rGlitch

Senior Member
Apr 12, 2011
599
663
I'm having a problem using this app on a HTC One runing AOSP, when I take a picture with lux in night mode they are reddish, if i turn the night mode off on lux my pictures are just fine
This is a limitation of using Android overlays. You'll have to use the sleep button in the notification when taking screenshots.

Testing the free "Lite" version of the app, for now, and was wondering something: I haven't found a way to create more profiles than the already 4 existing ones (day, night, car and cinema)... is there any such way?
This isn't possible yet. I'll look into it.

Hi,
would it be possible to print -xx% in the same ways as (+)xx% ?
This would be much more usable information.
Thanks
I'm not sure what you're asking. Can you clarify?

I have had the same issue recently. Night mode dim comes on fine in the evening, but every morning I have to go into settings and turn night mode off+on to get back daytime colors.

I have Automatic Night Mode enabled in the night mode option (the three stars icon), and in Night/Astro Mode in the settings I have Night Mode and Enable automatic Night Mode enabled. I also have Auto sunset location enabled.

Other than that little thing, this version of Lux has been working great :good:.
This will be fixed soon.
 
  • Like
Reactions: jibsen

tommi.a

Senior Member
Aug 8, 2013
111
25
Hi,
would it be possible to print -xx% in the same ways as (+)xx% ?
This would be much more usable information.
Thanks
I try to clarify:
On the home screen you can place app icons and app widgets. Lux offers one widget which can be placed on the homescreen.
In case of backlight it prints "xx%", in case of subzero it just prints "sub" which isn't too useful.
Instead of "sub" I would like to see the negative %-value similar to the positive % value.
 

NCtwin

Senior Member
Mar 1, 2011
81
8
California
We all come from different places. Time zones Be patient with reply s.........I use default setting without problem. Try a few settings and see what you prefer....

s2..rootbox

I've been patient. It's been 3 days(4 depending on your time zone). Then my question was just skipped over. I just threw it up again to make sure it didn't get lost.

Thanks for your help. That's all I needed.
 
  • Like
Reactions: Christiancs1969

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.