[APP][2.3+] Lux Auto Brightness

Search This thread

sacredsoul

Senior Member
Feb 17, 2007
1,896
565
Singapore
Something weird happened last night. My screen just suddenly lit up to max brightness while i was in bed in complete darkness. Blinded me for a sec. Then it adjusted itself in a couple of seconds again. Used to happen very often with my old Xperia Z. Only once so far with the G2. Shall monitor and update if anything changes.
 

testrider

Senior Member
Apr 11, 2012
417
30
Los Angeles
Anybody got good profile for Galaxy Note 2?

I just moved from a Galaxy S2 to a Note 2. I bought the paid version. It worked beautifully on the GS2,
but doesn't work well at all on my Note 2.

- The light wouldn't adjust when light changes. sometimes it did and most of the time it did not
- most of time it changed very slowly and I tried to change the up and down delay but it didn't improve much.
- I tried to create new links for the profile I was in, but it never worked well

- I really ran out of things to try. Could anybody who got theirs work on a Note 2 tell me what your settings are?

Thank you very much.
mike
 

maxxxxel

New member
Apr 24, 2008
3
0
So if I understand this app correctly it is a screen overlay filter. It does not reduce the power to the backlight and save power. I noticed on my home screen a stripe at the bottom of the screen was the much brighter so it can not be the backlight that is reduced
 

AutomaticFailure27

Senior Member
Sep 24, 2010
692
373
So if I understand this app correctly it is a screen overlay filter. It does not reduce the power to the backlight and save power. I noticed on my home screen a stripe at the bottom of the screen was the much brighter so it can not be the backlight that is reduced

Afaik, it is an overlay. It doesn't seem to be able to cover the navigation bar yet can the status bar.

OP, Is there a possibility that it could go over the whole screen/navbar/status bar. I use Paranoid Android and having the per app colors so, again if possible, would be nice to be able to have the navbar covered also.
 

Weetbix

Senior Member
Feb 1, 2010
606
290
Kariong
I just moved from a Galaxy S2 to a Note 2. I bought the paid version. It worked beautifully on the GS2,
but doesn't work well at all on my Note 2.

- The light wouldn't adjust when light changes. sometimes it did and most of the time it did not
- most of time it changed very slowly and I tried to change the up and down delay but it didn't improve much.
- I tried to create new links for the profile I was in, but it never worked well

- I really ran out of things to try. Could anybody who got theirs work on a Note 2 tell me what your settings are?

I've got the international version, N7100, and lux is working pretty well. It's been a while since I've installed it and set up from scratch as I usually just restore settings using TB, but from memory I have changed very little after the initial setup. I do have it set up to adjust dynamically and to use the auto profile though.

Are you using a custom rom, or the stock samsung one? I'm using a samsung based custom rom (Alliance v4 to be precise). Maybe that makes a difference? Dunno....
 

Looki75

Senior Member
Apr 1, 2010
1,708
1,450
I tried using Tasker to kill Lux when in car mode, but Lux just turns back on a couple seconds later. I tried checking "root", too. I'm admittedly a noob with Tasker so any tips would be greatly appreciated.

The initial request was:
Is there anyway to add a feature in the Lux to automatically disable (like Sleep list) when the phone goes in to Car Mode?

It's not about killing Lux with Tasker. It's about using the Lux plugin in Tasker.
This plugin appears automatically in Tasker when Lux is installed.

Create a profile in Tasker which triggers when your car mode app is launched (you can find other ways, I don't use CarMode, I don't know if Tasker is able to detect it first hand, but there is surely a way).
In the action which is created, add: "Plugin/Lux Plug-in/"... in front of "configuration" or "setting" click the button "Edit".
And then select what you need. According to the initial request, that would be first choice OFF.

Does that help?
 
  • Like
Reactions: mcox1124

mcox1124

Senior Member
Dec 6, 2010
108
17
Seattle, WA
The initial request was:


It's not about killing Lux with Tasker. It's about using the Lux plugin in Tasker.
This plugin appears automatically in Tasker when Lux is installed.

Create a profile in Tasker which triggers when your car mode app is launched (you can find other ways, I don't use CarMode, I don't know if Tasker is able to detect it first hand, but there is surely a way).
In the action which is created, add: "Plugin/Lux Plug-in/"... in front of "configuration" or "setting" click the button "Edit".
And then select what you need. According to the initial request, that would be first choice OFF.

Does that help?

Great! Thank you. Set it up and tested the action. Seems like it worked.

Tasker does recognize "car dock" as a state, so it was quite simple when associated with the plug-in. Not sure how I missed the Lux plug-in.

Thank you very much!

Sent from my HTC One using Tapatalk
 
Last edited:

Looki75

Senior Member
Apr 1, 2010
1,708
1,450
Great! Thank you. Set it up and tested the action. Seems like it worked.

Tasker does recognize "car dock" as a state, so it was quite simple when associated with the plug-in. Not sure how I missed the Lux plug-in.

Thank you very much!

Sent from my HTC One using Tapatalk

You're welcome!
One thing I forgot: add an "exit" task that will re-activate LUX when the car dock state ends.
 

occtec

Senior Member
Dec 9, 2012
2,818
924
South Australia
Can anyone suggest the best lux settings to use with the new nexus 7. I purchased it for my son and would like to set some recommended values for him :) Thanks in advance!
 

mbze430

Senior Member
Feb 28, 2007
1,556
180
Southeast Missouri
So with a new ROM... the Light sensor now reads -1 in the Lux Debug menu when it's completely dark... but the reading from Lux is always 6 and never goes down to 0. what do I need to do to make for the compensation?
 

testrider

Senior Member
Apr 11, 2012
417
30
Los Angeles
I've got the international version, N7100, and lux is working pretty well. It's been a while since I've installed it and set up from scratch as I usually just restore settings using TB, but from memory I have changed very little after the initial setup. I do have it set up to adjust dynamically and to use the auto profile though.

Are you using a custom rom, or the stock samsung one? I'm using a samsung based custom rom (Alliance v4 to be precise). Maybe that makes a difference? Dunno....

Thanks for the reply. I think it has something to do with how 'lux' was showed by the Note 2. Even in a lighted room, the reading could drop to 0 and therefore make it too dim for the condition. I kept having to adjust it up and down. I used 'auto' with the profile I selected (either 'day' or 'night' or 'cinema') but none of them came out correct (sometimes it was right, sometimes it was either too dark or too bright). That's why I'm trying to get other Note 2 users' setting to see how well it works for me. I just moved from a Galaxy S2. On the S2, it was just perfect. I didn't even have to touch it once I selected a profile.
 

tommi.a

Senior Member
Aug 8, 2013
111
25
Hi occtec, I personally use the new Nexus 7 almost only indoor -> no direct sunlight, therefore I prefer rather low settings, The lowest standard setting by the system is much too light for me.
in addition I'm a freak regarding battery saving :), but this helps only in +% range because the background LEDs can't be dimmed lower.

These are my settings (I use Automatic mode):
Day:
0 -30%
100 -1% (why can't I set it to 0%?)
250 +4%
20000 +100%

Night:
0 -30%
100 -1%
20000 +40% (I guess I never use it in >100 during night)

Hope this helps,
Cheers,
Thomas
 
  • Like
Reactions: occtec

Szczepanik

Senior Member
Dec 31, 2007
853
586
Could anybody who got theirs work on a Note 2 tell me what your settings are?

Thank you very much.
mike
Mike, on my Note 2 the settings are default with adjust on wake using profile auto and I only took one sample. I turn the phone off and on if I move from one lighting condition to another (e.g. indoors to / from outdoors). It works perfectly.
Cheers
Tom


My Note 2 to you
 

Attachments

  • uploadfromtaptalk1382198204130.jpg
    uploadfromtaptalk1382198204130.jpg
    43 KB · Views: 162

testrider

Senior Member
Apr 11, 2012
417
30
Los Angeles
Mike, on my Note 2 the settings are default with adjust on wake using profile auto and I only took one sample. I turn the phone off and on if I move from one lighting condition to another (e.g. indoors to / from outdoors). It works perfectly.
Cheers
Tom


My Note 2 to you

Thanks Tom, I didn't think of using 'power on wake'. I used only 'auto/dynamically' exclusively. I'll give it a try.
mike-
 

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.