[APP][2.3+] Lux Auto Brightness

Search This thread

Mr_JMM

Senior Member
Aug 9, 2008
689
107
Camulodunum UK / Midwest U.S.
So, it looks like the Lux Dash doesn't fit my screen correctly. It's missing the end bits.

Super minor gripe. Is this happening for others as well? Is it because of something I did? Is this how it's supposed to look?

Thanks.

That's normal, I think it's a fixed width.

On my Nexus 4 the margins are even bigger.

Sent from my Nexus 4 using XDA Premium 4 mobile app
 
Last edited:

xI mEzMeRiZe Ix

Senior Member
Jun 6, 2011
994
212
So, it looks like the Lux Dash doesn't fit my screen correctly. It's missing the end bits.

MbrKVAm.png


Super minor gripe. Is this happening for others as well? Is it because of something I did? Is this how it's supposed to look?

Thanks.

I'm confused. What end bits are missing?

Sent from my LG G2
 

RootTheMachine

Senior Member
Oct 4, 2011
2,088
533
I'm using the last paid version of lux on both my Nexus 4 (kk 4.4.2) and on my new Lg G2 (kk 4.4.2). The app works flawless on the nexus but I have one annoying iussue on the G2. When I set the minium brightness to a negative value, no matter what, the brigtness of the navbar didn't change. For example if I set the brightness to -30% the navbar brightness stays to 0%. This problem was fixed on my Nexus 4 using the n4's plugin for lux. Any chance to see a G2's plugin to fix that??


Anyways GREAT app!

I'm guessing the situation is similar to that of the Nexus 5. There is currently no good way to implement such a plugin.
 
  • Like
Reactions: salvatore94

tomei

Member
Jul 25, 2007
32
15
Love the plug-in for the nexus 5. Is there going to be a nexus 7 (2013) plug-in because faux kernel has gamma control in his kernel.
 
Sep 15, 2008
33
2
Recently purchased this and I am having a slight issue. Battery drains pretty quickly, so I loaded up wakelock detector and found Lux is waking the CPU every three seconds. In a 13 hour period it's awoken the CPU 2400~ times - and it's pretty consistent even after resetting the app and rebooting the phone.

This is on an LG F3 (Virgin Mobile), which has no ambient light sensor. I have it use the front camera instead (which works really well, by the way).

Any ideas are welcome! I did submit feedback through the app regarding this, but can't quite remember what I said.
 
  • Like
Reactions: Ci-Fi
Recently purchased this and I am having a slight issue. Battery drains pretty quickly, so I loaded up wakelock detector and found Lux is waking the CPU every three seconds. In a 13 hour period it's awoken the CPU 2400~ times - and it's pretty consistent even after resetting the app and rebooting the phone.

This is on an LG F3 (Virgin Mobile), which has no ambient light sensor. I have it use the front camera instead (which works really well, by the way).

Any ideas are welcome! I did submit feedback through the app regarding this, but can't quite remember what I said.

I am with your settings and for me it saves lots of battery. I use the subzero -50 at 1luma :) I can post my exact profiles if you want to try them out.

Sent from my GT-I8190 using XDA Premium 4 mobile app
 

KuChar_

Senior Member
Jan 5, 2013
138
42
Toruń
I found an issue with Nexus 5 plugin. When the screen gets auto dimmed and then when I touch the screen, the screen goes at high brightness and dynamic brightness doesn't work until I open the app and it refresh the lux value.

_____
Nexus 5 & SwiftKey_
 

Ci-Fi

Senior Member
Sep 11, 2012
316
121
Recently purchased this and I am having a slight issue. Battery drains pretty quickly, so I loaded up wakelock detector and found Lux is waking the CPU every three seconds. In a 13 hour period it's awoken the CPU 2400~ times - and it's pretty consistent even after resetting the app and rebooting the phone.

This is on an LG F3 (Virgin Mobile), which has no ambient light sensor. I have it use the front camera instead (which works really well, by the way).

Any ideas are welcome! I did submit feedback through the app regarding this, but can't quite remember what I said.

I just checked wakelock detector and I am experiencing the same problem - numerous CPU wakelocks (200 in one hour) and high battery drain. I'm going to have to uninstall until this is addressed, which is a shame. (I have the Lux Gnex plugin installed as well)

~~~
Device: Galaxy Nexus GSM (maguro)
ROM: CarbonRom Nightly 3/28 (4.4.2)
Kernel: Franco r395 (4.4.2)
GApps: BaNkS Core GApps 2/11 (4.4.2)
Theme: BlackedOut Black CM10 Theme X
Launcher: Nova Launcher Prime
Recovery: TWRP 2.7.0.0
 

RootTheMachine

Senior Member
Oct 4, 2011
2,088
533
I found an issue with Nexus 5 plugin. When the screen gets auto dimmed and then when I touch the screen, the screen goes at high brightness and dynamic brightness doesn't work until I open the app and it refresh the lux value.

_____
Nexus 5 & SwiftKey_

Happens to me too, except the screen stays dark for 20 seconds instead of getting bright.

Sent from my Nexus 5 using XDA Premium 4 mobile app
 

BobD1605

Member
Jul 13, 2007
42
24
Nottingham
Just been trying out the LIte version of this app. It seems to be working fine on my Samsung Galaxy S4 phone, but on my Samsung Galaxy Tab 2 10.1 tablet I am not sure that it is.

The dashboard on the phone shows 38% 8lx when on my desk, and when I cover the camera this changes to 4% 0lx.

The tablet (sat next to the phone on my desk) shows 100% 63lx, and when I cover the camera this changes to 100% 0lx.

Even if the lx should be different due to different sensors etc, shouldn't the brightness change when covered on the tablet? The notification on the tablet shows "Backlight: (Max) 100%" and therefore does not indicate Sleeping mode.

Running Debug (from Advanced Settngs) does show that the sensor is working. Uncovered it shows 94.696, covered it shows 0.

Have I just got something wrong in my Settings for Lux? I am not aware of having changed anything differently on the tablet. Or does Lux just not like running on this tablet?

I am really keen to see if this works, as then I will buy the full version to get automatic night mode working, so that late night reading on the tablet might not affect my sleep.
 

paychex

Senior Member
Aug 10, 2013
1,286
521
Baltimore
I have Lux set up to adjust dynamically, auto profile, automatic night mode. But when I turn the phone on night mode isn't enabled until I open the app. How can I fix this? Thanks

Edit: Seems the issue is with the Nexus 5 plug-in
 

yanleites

Senior Member
Dec 15, 2012
1,219
246
Jerusalem
I used Display brightness for at least an year, Lux for about 2 month, then I used Gravity Box brightness settings, and after all those I am back to default android AUTO settings... I think its the best - Low memory/battery and great working !
 

murraynt

Senior Member
Dec 29, 2011
163
24
For some reason my screen constantly has the yellow tint, regardless if it night time or not. I have enabled auto night time mode and the day time temperature set to 6500K. is this a know issue/side effect?
Any update on this? Ive kept lux frozen for the last few weeks.


Sent from my Nexus 4 using Tapatalk
 

AutomaticFailure27

Senior Member
Sep 24, 2010
692
373
Running a G-Nex and the toast notifications for low memory were getting quite annoying. Was able to rest them by downloading an xposed module "untoaster" or something like that. Input com.vito.lux and the message itself and seems to have suppressed them quite well.

Sent from my Galaxy Nexus using Tapatalk
 
  • Like
Reactions: designori

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.