[APP][2.3+] Lux Auto Brightness

Search This thread
Ive been picking through this massive thread, but not sure my answer is out here. I am not relying on my light sensor, or my camera for detecting light. My tablet is installed in my dash so that only the screen is visible.

I thought I could set this up so that at sunset it reduces brightness to a predetermined level, then at sunrise it goes to my daytime level.

I tried messing with the profiles, set my day to 100%, and my night to 0%. Set my manual sunrise/sunset times, set to wake update, and smart adjust. Today I turned it on, and it was still at 0, and didn't go to 100 until I hit day profile.

What am I doing wrong? Again, I want to pretend I dont have any way to detect ambient light.

Thanks!

Justin

Edit: was really hoping this app would do what I needed. I can't seem to make it switch profiles on its own. I've just reinstalled tasker and have it switching between a day/night setting. Super easy. Keeping lux on my phone though. Still would like to know if it's possible!!

You must enable Automatic night mode.
In settings;
Night/astro mode
Enable Night mode
Tick Automatic night mode
And disable night mode again. (Dont worry, app keep on this settings)

It is worked for me. ?

---------- Post added at 08:42 AM ---------- Previous post was at 08:39 AM ----------

"Smart" profile is not working correctly for me. It does not switch between day and night. I'll get the wrong profiles at the wrong times.

Device: Mlais M52 Red Note
OS: Android 5.0
Kernel version: 3.10.31\root@wangxsh-All-Series #2\Tue Jul 21 14:01:59 CST 2015

I changed my latitude and longtutide manually. (Try google)

Then,

You must enable Automatic night mode.
In settings;
Night/astro mode
Enable Night mode
Tick Automatic night mode
And disable night mode again. (Dont worry, app keep on this settings)

It is worked for me. ?
 
  • Like
Reactions: WuddaWaste

WuddaWaste

Member
Mar 28, 2014
17
3
I ended up ditching that phone, but your answer totally makes sense. Can't believe I didn't think to double-check it. Cheers, mate! Thank you!
 

Pantalone

New member
Oct 15, 2015
1
0
Hello guys!
Could you please help.
I need one of the following features:
v 1.99.9 What's in this version : (Updated : Jul 15, 2014)
- System autobrightness enabled during calls
- Option to shake at lockscreen to increase brightness
But it not works. When I get an incoming call, the brightness of the screen is very dark, and I do not see who is calling. How to fix it?
I use Infocus M2 with KitKat.
 

ghettocruiser

Member
Mar 29, 2011
23
2
You must enable Automatic night mode.
In settings;
Night/astro mode
Enable Night mode
Tick Automatic night mode
And disable night mode again. (Dont worry, app keep on this settings)

It is worked for me.

---------- Post added at 08:42 AM ---------- Previous post was at 08:39 AM ----------



I changed my latitude and longtutide manually. (Try google)

Then,

You must enable Automatic night mode.
In settings;
Night/astro mode
Enable Night mode
Tick Automatic night mode
And disable night mode again. (Dont worry, app keep on this settings)

It is worked for me.

Stupid question... But in order for this to work automatically, does it have to be set to "SMART" update? And leaving it "On Wake" is ok too?

Thanks! I hope this works! One less thing tasker has to do!

Justin
 

ghettocruiser

Member
Mar 29, 2011
23
2
@ghettocruiser

I don't know this before. Because I have been using Lux for 2 weeks.
I use options; Smart and Dynamically.

Thanks for the reply. I think "Smart" is the important setting. I need mine to be "On Wake" because my tablet is either on, or in deep sleep. No feedback to the light sensor to use for dynamic adjustment anyway.

I will test this out and see how it goes!

Justin
 
  • Like
Reactions: yerebakan

edwardob

Senior Member
Feb 8, 2009
929
196
night mode is disaster....... turn it on and phone goes black.....can't use
it
because you can't see anything

had to do full wipe and install.......

not installing again......... can't afford to touch 3 stars accidentally and phone become unusable again......

dev hasn't answered why this is happening.....
any o one any ideas...... apart from looking for refund

im on a note 5. ....
 

crcucb

Member
Nov 10, 2008
17
0
Smart Profile keeps getting selected which is giving me a really bright screen

The Profile keeps getting change to Smart during the day which is giving me a really bright screen. I change it back to Day (and the adjust is Dynamically) and the brightness is where I want it. But when my screen times out and I turn it back on the profile is changed to Smart and my screen is really bright (I am assuming this is taking into account the night profile?)

The Sunrise/sunset time mode is currently set to Manual with a sunrise time set to 7:30am. It's past 9:30am.
I have tried the Sunrise/sunset set to Auto and with the location manually set.
 
I've been using Lux forever and I love it - but I recently upgraded my phone to an LG G4 and I have found that the automatic sleep mode for some apps is not functioning (So I have to disable lux if I'm say, installing an apk for example, since it will block access if it detects Lux's screen overlay.) It worked fine on my Samsung S5. Granted, it's definitely a minor annoyance, but it is an annoyance.

Lux version 1.99.9999.99
Verizon LG G4 VS986
Android 5.1
Firmware Stock (non-rooted) VS98611A

I'm having the same problem on my Z1 Compact on Android 5.1.1, Lux v1.99.9999.99. I saw a previous post that recommended using "alternative overlay", but that didn't solve it for me. Any other suggestions? I emailed dev, but no reply yet.
 

voidzero

Inactive Recognized Developer
Another long time Lux user here. Is it possible to use Cyanogenmod's night mode with Lux? Right now I am using CF.Lumen, but it would be nice to use CM's internal night mode instead from one app (Lux). Especially since I've automated brightness with Tasker. Cheers :)
 

PunkoDe

New member
Nov 9, 2015
1
0
When I click on the BitBucket Link I get access denied, even though I created an account. My problem is that Lux was working fine until I upgraded to the Marshmallow release. I'm on a Nexus 5 and Lux is v1.0-2015-10-11. It will not start up, just crashes.
 

caffeinated.pants

Senior Member
Oct 16, 2013
58
43
On the LG G4 after the upgrade to Marshmallow, the backlight of the navigation buttons is always full bright - I need to switch back to LG's built-in brightness slider to make it sync up with the screen brightness again. Using Lux in dynamic mode. I'm happy to help if you need testers on the the G4. :)
 
Last edited:

dirtyreturn

Senior Member
Aug 14, 2011
1,138
252
Nexus 7
Huawei Nexus 6P
I have had to disable overlay to check SuperSU notifications and now have lux force closing. I am unsure of how to proceed with getting the app to work again. Can anyone provide some help?

Sent from my Nexus 6P using Tapatalk
 

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.