[APP][2.3+] Lux Auto Brightness

Search This thread

kantjer

Inactive Recognized Contributor
Dec 11, 2010
12,393
29,850
www.androidfilehost.com
The overlay should automatically disable after a few seconds. If that's not happening, let me know. Also, I'll email you about translation soon, I only just got the strings ready.

I'm also still having this issue of sometimes not being able to install apk's from sd.
First I thought it was due to the night mode, but even with night mode disabled it still happens sometimes, but not every time.

I have the impression that this issue only appears after LUX has been running for quite a wile, >8 hours

Running RC2
 
Last edited:

ThePureHeart

Senior Member
Jan 15, 2013
492
212
Re: [APP][Official][2.1+] Lux Auto Brightness 0.76

One question...
I'm using the beta build. Why is it that I have to pay to use root features when I've already purchased the app?

Sent from ThePureHeart's I9300 Boss Edition
 

Cyb3rGlitch

Senior Member
Apr 12, 2011
599
663
I'm also still having this issue of sometimes not being able to install apk's from sd.
First I thought it was due to the night mode, but even with night mode disabled it still happens sometimes, but not every time.

I have the impression that this issue only appears after LUX has been running for quite a wile, >8 hours
Forcing LUX to sleep during installation solves the issue.

Running RC2
Hmm, I'll have to keep an eye on this.

One question...
I'm using the beta build. Why is it that I have to pay to use root features when I've already purchased the app?

Sent from ThePureHeart's I9300 Boss Edition
Root features cost extra. They're a massive pain to write (since new modules need to be written for every device model), and sourcing devices isn't cheap. It was either make Lux more expensive, or add in-app payments.

Edit: I should point out that root features enhance Lux's existing features. I'm not going to start locking down non-root features and charge extra for them.
 

rxmxsh

Senior Member
Dec 22, 2012
354
108
The overlay should automatically disable after a few seconds. If that's not happening, let me know. Also, I'll email you about translation soon, I only just got the strings ready.


What device is this?

Nexus 4. I went through my list to see if anything would conflict. I installed Display Tester recently. I uninstalled it this morning, and so far so good.
 

setasai

Member
May 16, 2010
44
5
Hey, I just tried out your new beta this morning but I'm still getting that issue where lux freaks out when I plug in the charger. Is mine an isolated case? I'm using a different rom since last time I tried. Went from Omega 4.1.2 to ARHD 4.1.2 so I wonder if it's the samsung base 4.1.2 that's giving it issues.
 

willybarca

Senior Member
Apr 7, 2010
425
129
sydney
is there much benefits in lowering the contrast on ips displays like nexus 4, does your app actually lower the actual backlight then the stock settings or just lowers then contrast, am confused, could u explain please
 

200mpx

Senior Member
Sep 23, 2005
761
89
Moscow
u6egymyt.jpg

Why for Night Mode the app is asking for all Location services to be on? I do not use Location based on wireless (because of battery drain caused sometimes by this option), only GPS based location is in use. But Lux does not wanted to locate me without all Location modes checked in settings. And even after I agreed to use all in settings and my Night Mode was on (so my actual location was found and time for sunset was calculated), I turned wireless location off and Lux stated to ask me in notification bar to turn it on. Why? Also - is there a possibility to turn Night Mode on manualy?

I noticed that after playing with settings of Lux, I have randomly Lux stacked at 0 or 3000 lux and I can make it work again only by entering in Backlight settings of SGN2. Debug shows 0 lux at that time and no changing (just read that the same issue had a betatester on 30th of January with the same SGN2). Have latest beta of Pro version
 
Last edited:

200mpx

Senior Member
Sep 23, 2005
761
89
Moscow
Re: [APP][Official][2.1+] Lux Auto Brightness 0.76

There is also a small request: is it possible to connect the backlight of offscreen buttons setting with night mode? I would like to have backlight on on daytime and off in night mode. Or/and, if it is hard to implement, is it possible to make a quick toggle button in dashboard? Thank you in advance!

Отправлено с моего GT-N7100 через Tapatalk
 

200mpx

Senior Member
Sep 23, 2005
761
89
Moscow
Re: [APP][Official][2.1+] Lux Auto Brightness 0.76

One more question ) - where is the options I can buy from in-app store? Have not found any mention of in app purchase.

Отправлено с моего GT-N7100 через Tapatalk
 

200mpx

Senior Member
Sep 23, 2005
761
89
Moscow
Re: [APP][Official][2.1+] Lux Auto Brightness 0.76

Just had a sudden switching to night mode at 10:58 am
5ate8ymy.jpg


Отправлено с моего GT-N7100 через Tapatalk
 

200mpx

Senior Member
Sep 23, 2005
761
89
Moscow
Re: [APP][Official][2.1+] Lux Auto Brightness 0.76

Is there anybody but me :)?

Noticed one more issue - I have Manual call brightness unchecked but when I call the brightness is changing to the level mentioned in manual call brightness setting

Отправлено с моего GT-N7100 через Tapatalk
 

Av8torGuy

Senior Member
Nov 4, 2012
79
21
Atlanta
Hi Cyb3rGlitch-
I just installed the latest update, Lux 1.01 from the Play Store. I immediately noticed that when adjust is in "dynamic" mode, my CPU utilization is quite high and NEVER falls below 58%. As soon as I change it from dynamic to any other mode, the CPU utilization falls back towards 0. Prior to the update this morning, the CPU utilization did not behave this way. Is there an adjustment that I missed somewhere, to fix this? I'm running D2SPR CM10.1 with the latest nightly.

Thanks!
p.s. Excellent app!!
 

rxmxsh

Senior Member
Dec 22, 2012
354
108
Re: [APP][Official][2.1+] Lux Auto Brightness 0.76

This can't be lux. I'm running the same, and I drop to 2 cores at 384

Sent from my Nexus 4 using xda app-developers app
 

Av8torGuy

Senior Member
Nov 4, 2012
79
21
Atlanta
Re: [APP][Official][2.1+] Lux Auto Brightness 0.76

Unfortunately it is Lux. I turn it on and off and see the CPU utilization change immediately.

Sent from my SPH-L710 using Tapatalk 2
 
  • Like
Reactions: cybernetus

SineOtter

Member
Aug 19, 2011
44
13
Re: [APP][Official][2.1+] Lux Auto Brightness 0.76

Hi Cyb3rGlitch-
I just installed the latest update, Lux 1.01 from the Play Store. I immediately noticed that when adjust is in "dynamic" mode, my CPU utilization is quite high and NEVER falls below 58%. As soon as I change it from dynamic to any other mode, the CPU utilization falls back towards 0. Prior to the update this morning, the CPU utilization did not behave this way. Is there an adjustment that I missed somewhere, to fix this? I'm running D2SPR CM10.1 with the latest nightly.

Thanks!
p.s. Excellent app!!

One thing I noticed and you might want to tinker wwith is the sample polling rate under Advanced. Your device just might not like something using a sensor that often and that quickly, and at the least it'll help narrow down whats causing issue.

Sent from my Nexus 7
 

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.