[APP][2.3+] Lux Auto Brightness

Search This thread

ClownShoes

Senior Member
Mar 23, 2008
968
62
London
www.indigorebel.com
Yeah - It's personal preference - but for me - Lumen was more trouble than it's worth - Lux on the other hand - I find to be very useful - just my opinion

Cheers Shaggy Skunk,

If I can find a workaround that enables me to still use CF Lumen then I'll probably take it, as the night time mode does seem a lot better.

EDIT:

Sometimes you just can't see the wood for the trees ;)

It appears Lux only has issues with CF.Lumen when accessing it as a plugin. If they are allowed to run in tandem as independent apps, they work in perfect harmony, which is all I ever wanted. Any additional hit on processing or ram appears to be insignificant on my LG G3 16gb running Lollipop 5.0
 
Last edited:

pure.by

Senior Member
Jan 23, 2010
544
330
What app are you using to detect CF Lumen is running?
I can see SuperSU flashing message about Superuser permission for CF.Lumen on every boot, and it is sometimes shown in HTC Task manager (rather inaccurate task manager, does not show all running apps most of the time, but the ones shown are running).

It appears Lux only has issues with CF.Lumen when accessing it as a plugin. If they are allowed to run in tandem as independent apps, they work in perfect harmony, which is all I ever wanted.
This is true until you go below 0 brightness. You will get an ugly dark overlay, instead of lowering color's intensiveness. For that, "CF.Lumen integration" must be selected, which, well, kinda breaks CF.Lumen :)
 

p50kombi

Senior Member
Dec 20, 2005
3,969
2,150
Samsung Galaxy Note 10+
So you want to use it? But you don't want it running.... Doesn't make sense to me

**********
Sent from a tin of baked beans using some chewing gum, tinfoil, a piece of string and a manual written by MacGyver
 

pure.by

Senior Member
Jan 23, 2010
544
330
So you want to use it? But you don't want it running.... Doesn't make sense to me
To make things clear: CF.Lumen consists of 2 parts:
1) CF.Lumen app (normal app)
2) CF.Lumen driver (a GPU hack or something that enables screen color changing, gets permanently installed with the CF.Lumen app and stays in your system even after you uninstall the CF.Lumen app (unless you uninstall the driver manually))

The Lux's setting "Enable CF.Lumen integration" requires only the driver. Not the app. The CF.Lumen app is not technically required for this feature to work. Moreover, enabling this feature breaks all functionality of CF.Lumen app.

It has been this way all the time. Untill the unfortunate December update, which changed this behavior and now requires CF.Lumen app to be installed and to be running in background so that Lux may verify, that I have purchased CF.Lumen app.

But CF.Lumen app is useless Lux breaks all it's features! So since December, Lux forces me to run an app, which' features I can not even use. Now I find this behavior very user-unfriendly, unethical and inefficient, no matter how little battery and RAM CF.Lumen app uses.
 
Last edited:

p50kombi

Senior Member
Dec 20, 2005
3,969
2,150
Samsung Galaxy Note 10+
Man,that's a lot of big words..you sure this is your only issue? Unethical ..man,there are so many things out there that are truly unethical.

**********
Sent from a tin of baked beans using some chewing gum, tinfoil, a piece of string and a manual written by MacGyver
 

pure.by

Senior Member
Jan 23, 2010
544
330
Man,that's a lot of big words..you sure this is your only issue? Unethical ..man,there are so many things out there that are truly unethical.
I am discussing an app which I am a huge fan of in it's dedicated forum discussion thread. What else, according to you, am I doing wrong? (-;
 
Last edited:
  • Like
Reactions: vitoski

p50kombi

Senior Member
Dec 20, 2005
3,969
2,150
Samsung Galaxy Note 10+
I just don't get why you it is unethical that when you use an app that utilises another,you complain you have to see and use at second app. Its not exactly the end of the world now is it?

**********
Sent from a tin of baked beans using some chewing gum, tinfoil, a piece of string and a manual written by MacGyver
 

ClownShoes

Senior Member
Mar 23, 2008
968
62
London
www.indigorebel.com
I am discussing an app which I am a huge fan of in it's dedicated forum discussion thread. What else, according to you, am I doing wrong? (-;

I just don't get why you it is unethical that when you use an app that utilises another,you complain you have to see and use at second app. Its not exactly the end of the world now is it?

**********
Sent from a tin of baked beans using some chewing gum, tinfoil, a piece of string and a manual written by MacGyver

To be fair, I'm not sure why everyone is bashing pure.by

His point is that the functionality that was present up until December is now broken and he's not wrong. There is currently no way to make them work hand in hand as intended and that is unfortunate.

I guess the question is, is this more of a problem at Vito's end or Chainfire's end? Both apps work perfectly when run independently, so the issue appears to be with Lux's integration of the CF.Lumen driver.

Are you available to comment on this Vito ? @Cyb3rGlitch


EDIT:
Also, does anyone know if this amount of RAM usage for LUX is normal? 150mb seems very high
 

Attachments

  • Screenshot_2015-01-23-15-50-04.jpg
    Screenshot_2015-01-23-15-50-04.jpg
    160.6 KB · Views: 290
Last edited:

Christiancs1969

Senior Member
Mar 3, 2012
4,762
3,409
london
To be fair, I'm not sure why everyone is bashing pure.by

His point is that the functionality that was present up until December is now broken and he's not wrong. There is currently no way to make them work hand in hand as intended and that is unfortunate.

I guess the question is, is this more of a problem at Vito's end or Chainfire's end? Both apps work perfectly when run independently, so the issue appears to be with Lux's integration of the CF.Lumen driver.

Are you available to comment on this Vito ? @Cyb3rGlitch


EDIT:
Also, does anyone know if this amount of RAM usage for LUX is normal? 150mb seems very high
I'm sure chainfire asked lux integration only to be for pro lumen. Lux for me between 60/80 MB. Using beta....I'm not a lumen user.
I have no issues. With just lux
 
  • Like
Reactions: ZDeuce2

ClownShoes

Senior Member
Mar 23, 2008
968
62
London
www.indigorebel.com
I'm sure chainfire asked lux integration only to be for pro lumen. Lux for me between 60/80 MB. Using beta....I'm not a lumen user.
I have no issues. With just lux

To be honest, I think that it's fair enough if Chainfire did ask that. He put all the hard work into engineering CF.Lumen, so the least we can do is contribute if we want to use it to improve Lux's functionality. It just appears there may be a few teething problems getting them to play nice.

This is true until you go below 0 brightness. You will get an ugly dark overlay, instead of lowering color's intensiveness. For that, "CF.Lumen integration" must be selected, which, well, kinda breaks CF.Lumen :)

I just checked and I'm not having that issue with the ugly dark overlay below 0 brightness. I'm wondering what might be causing you that additional problem, as I guess that is the only thing stopping you using the two apps harmoniously

Forgive me if I'm stating the obvious, but you did switch off night mode in Lux, yes?
 
Last edited:

cbomb101

Senior Member
Oct 5, 2012
468
50
30
melbourne
Doesn't cf lumen work for you guys? Im running it tinting my screen grey during the day and 3000k temp later on and i have lux auto brightness on. I don't have enable cf lumen ticked. Because it makes the stock brighteness bar pop up in notification center.
 

ZDeuce2

Senior Member
Apr 26, 2011
3,126
3,257
48
Cincinnati
OnePlus 12
Doesn't cf lumen work for you guys? Im running it tinting my screen grey during the day and 3000k temp later on and i have lux auto brightness on. I don't have enable cf lumen ticked. Because it makes the stock brighteness bar pop up in notification center.
It does work, I just don't like it, so I removed it, and now I'm perfectly happy...

Common sense isn't all that common
 

ClownShoes

Senior Member
Mar 23, 2008
968
62
London
www.indigorebel.com
Doesn't cf lumen work for you guys? Im running it tinting my screen grey during the day and 3000k temp later on and i have lux auto brightness on. I don't have enable cf lumen ticked. Because it makes the stock brighteness bar pop up in notification center.

Yes it works fine for me too, but not as an intergrated plug in, from within LUX. The same as you have yours setup by the sounds of it.

CF.Lumen doesn't appear to have a particularly large footprint either, so it's no biggee running both apps separately.

Sent from my LG-D855 using XDA Free mobile app
 

cobrax2

Senior Member
Aug 17, 2007
995
126
so is there a check button that i have to enable for the supersu to work giving the permissions without disabling the tapjacking feature?
thanks
 

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.