[APP][2.3+] Lux Auto Brightness

Search This thread

trunkmonkey1972

Senior Member
Nov 10, 2012
50
13
Ya I have messed with app manager toggle in phone settings and of course in the app. I'm assuming the notification is supposed to be down below with the other expandoids. Is that true? I've actually never seen a screenshot of it. Also why does the app menu refer to touching top of widget. The widget I have has a small arrow pointing down, tapping the top does nothing.

Beginning to wonder if I have mixed components or something.

Widget
uploadfromtaptalk1352671318484.jpg

S3 on Sprint - 16gb pebble blue + 64
 

Cyb3rGlitch

Senior Member
Apr 12, 2011
599
663
Is there a way to change the speed of the of the transition when the screen brightness is changing? In other words to change the smoothness of the transition.

Sent from my SCH-I535
Not yet. Will look into it for a future release.

I have yet to see the expandable notification. I've reinstalled with the same results. I haven't been able to root the app, although it seems to be functioning ok. The JB ota update arrived at recently so I'm just now exploring how lux runs. I really want the notification dashboard to work and haven't noticed any other posts having the issue. Any ideas? I messed with Notification settings in lux dash and system app manager but no luck.

View attachment 1474304

Stock rom 4.1.1 (new this week and installed on top of existing lux)
Current lux version (0.76)
Are you sure you're doing a two finger swipe? My main development device is exactly what you have.

Ya I have messed with app manager toggle in phone settings and of course in the app. I'm assuming the notification is supposed to be down below with the other expandoids. Is that true? I've actually never seen a screenshot of it. Also why does the app menu refer to touching top of widget. The widget I have has a small arrow pointing down, tapping the top does nothing.

Beginning to wonder if I have mixed components or something.

Widget
View attachment 1474673

S3 on Sprint - 16gb pebble blue + 64
Tapping the top is the same as pressing 'refresh' on the Dashboard.
 

trunkmonkey1972

Senior Member
Nov 10, 2012
50
13
Not yet. Will look into it for a future release.


Are you sure you're doing a two finger swipe? My main development device is exactly what you have.


Tapping the top is the same as pressing 'refresh' on the Dashboard.

Check the screen shots. Widget has arrow pointing down, tapping upper part doesn’t do anything. Tapping lower part opens whole dash. Yes, 2 fingers but only get app info pop up. Looks exactly the same as notifications I've had since July.
 
Last edited:

marsexpress

Senior Member
Jun 2, 2011
123
19
Interesting bug I'm experiencing (is it a bug?) on my gs2 the light sensor always reads at least 10 lux, in Lux. On the debug sensor page it reads no lower than 10 even in a completely dark room. In my phones diagnostic page (*#0*#) I can get direct access to the sensor output and it clearly reads 0 in a dark room, if I then cup my hand to reflect some light from the screen the sensor will read 5 so it's definitely not a physical fault with the sensor.

Upshot is that screen is always too bright in dark room. Tried the market version plus Dropbox version.

Any ideas?

Thanks.

Sent from my GT-I9100 using xda premium
 

trunkmonkey1972

Senior Member
Nov 10, 2012
50
13
Check the screen shots. Widget has arrow pointing down, tapping upper part doesn’t do anything. Tapping lower part opens whole dash. Yes, 2 fingers but only get app info pop up. Looks exactly the same as notifications I've had since July.

All my other expandable notifications function fine and I'm having no OS issues with sprint ota update. What to do.... I guess my first question is do my screen shots look like the correct components. I've had lux since July and 0.76 was installed when JB update was applied. I've uninstalled and reinstalled once since JB, no change. Do I need to clean up the uninstall more before reinstall? Ideas?

Thanks

S3 on Sprint - 16gb pebble blue + 64
 

testrider

Senior Member
Apr 11, 2012
417
30
Los Angeles
Interesting bug I'm experiencing (is it a bug?) on my gs2 the light sensor always reads at least 10 lux, in Lux. On the debug sensor page it reads no lower than 10 even in a completely dark room. In my phones diagnostic page (*#0*#) I can get direct access to the sensor output and it clearly reads 0 in a dark room, if I then cup my hand to reflect some light from the screen the sensor will read 5 so it's definitely not a physical fault with the sensor.

Upshot is that screen is always too bright in dark room. Tried the market version plus Dropbox version.

Any ideas?

Thanks.

Sent from my GT-I9100 using xda premium

Same thing on my SGS2. Also, the proximity sensor is either 0 or 5 and nothing in between..
 

trunkmonkey1972

Senior Member
Nov 10, 2012
50
13
Ya I have messed with app manager toggle in phone settings and of course in the app. I'm assuming the notification is supposed to be down below with the other expandoids. Is that true? I've actually never seen a screenshot of it. Also why does the app menu refer to touching top of widget. The widget I have has a small arrow pointing down, tapping the top does nothing.

Beginning to wonder if I have mixed components or something.

Widget
View attachment 1474673

S3 on Sprint - 16gb pebble blue + 64

Is this the current widget? Anyone? (click attachment above) Tapping upper portion does nothing. Tapping lower portion, where the small down arrow is, opens dash. I'm beginning to think my install is somehow messed up. All updates since July were auto via Play Store. For the first month I had the free version.

S3 on Sprint - 16gb pebble blue + 64
 
Last edited:

trunkmonkey1972

Senior Member
Nov 10, 2012
50
13
Here's what's running for lux currently :

uploadfromtaptalk1352764706327.jpguploadfromtaptalk1352764725848.jpguploadfromtaptalk1352764741597.jpg

Do these look correct? Issues are : notification doesn't expand, click it shows dash board.
Widget is attachment link in quote above. Tapping lower half of widget bring up dashboard, also has no sleep button as described. Tapping upper half of widget does nothing.
Currently running lux components are last 2 screen shots above.

4.1.1 stock sprint rom, installed latest update (jb) after 0.76 was already installed.
Have no other JB issues, other expandables ok.
Have had lux since free app in July and no issues until trying 0.76 with JB.
S3 on Sprint - 16gb pebble blue + 64
 

Cyb3rGlitch

Senior Member
Apr 12, 2011
599
663
Interesting bug I'm experiencing (is it a bug?) on my gs2 the light sensor always reads at least 10 lux, in Lux. On the debug sensor page it reads no lower than 10 even in a completely dark room. In my phones diagnostic page (*#0*#) I can get direct access to the sensor output and it clearly reads 0 in a dark room, if I then cup my hand to reflect some light from the screen the sensor will read 5 so it's definitely not a physical fault with the sensor.

Upshot is that screen is always too bright in dark room. Tried the market version plus Dropbox version.

Any ideas?

Thanks.

Sent from my GT-I9100 using xda premium
I don't think it's a bug. The SGS2 was known for reporting lux values in multiples of 10. For some reason Samsung decided not to give apps raw readings.

All my other expandable notifications function fine and I'm having no OS issues with sprint ota update. What to do.... I guess my first question is do my screen shots look like the correct components. I've had lux since July and 0.76 was installed when JB update was applied. I've uninstalled and reinstalled once since JB, no change. Do I need to clean up the uninstall more before reinstall? Ideas?

Thanks

S3 on Sprint - 16gb pebble blue + 64
I added you to the Dropbox. Try that build.

Same thing on my SGS2. Also, the proximity sensor is either 0 or 5 and nothing in between..
Proximity sensor is supposed to give two values, it just tells the apps whether it's covered or not.
 
  • Like
Reactions: marsexpress

marsexpress

Senior Member
Jun 2, 2011
123
19
That's fair enough, hence why I didn't declare it a bug, I wasn't sure. I ran cm10 for so long that going back to stock I actually forgot about little bits and pieces like that!

Thanks :)

Sent from my Nexus 7 using xda premium
 

trunkmonkey1972

Senior Member
Nov 10, 2012
50
13
I added you to the Dropbox. Try that build.

Still no expanding notification. The only change is that I see the notification restart each time I wake up the phone. Lux is set for periodic adjustment, 9 second. Initially rooting option in menu generated no response, and now I get the failed response.

S3 on Sprint - 16gb pebble blue + 64
 

trunkmonkey1972

Senior Member
Nov 10, 2012
50
13
Notifications screenshot

Screenshot from notification shade after attempting to expand Lux notification.

nudahady.jpg
 
Last edited:

Cyb3rGlitch

Senior Member
Apr 12, 2011
599
663
Either your ROM is doing something odd, or you're holding down the notification instead of using two fingers to pull down.
 

trunkmonkey1972

Senior Member
Nov 10, 2012
50
13
xdaforums.com/showthread.php?t=1774291&page=2

Found the above thread.
I turned off my other two ongoing notifications and finally see the Dashboard.

gedu8edu.jpg


Wonder if I now add the other 2 back it will still work or if boot order of apps on startup is the main issue. Any thoughts, Vito?

It's taking up to 2 seconds to expand. Collapsed doesn’t seem to delay.
I'll keep playing with it and update with my results.

S3 on Sprint - 16gb pebble blue + 64
 
Last edited:

ctscloud

Senior Member
Jul 18, 2011
270
25
I'm experiencing an issue on GN 4.2 with the navbar not dimming with the screen along with the entire screen. Is this part of the design, or a known issue?
 

Christiancs1969

Senior Member
Mar 3, 2012
4,762
3,409
london
xdaforums.com/showthread.php?t=1774291&page=2

Found the above thread.
I turned off my other two ongoing notifications and finally see the Dashboard.

gedu8edu.jpg


Wonder if I now add the other 2 back it will still work or if boot order of apps on startup is the main issue. Any thoughts, Vito?

It's taking up to 2 seconds to expand. Collapsed doesn’t seem to delay.
I'll keep playing with it and update with my results.

S3 on Sprint - 16gb pebble blue + 64

You got there at last victory:p


galaxys2 dori7.17 rootbox nightly pitch perfect
 
  • Like
Reactions: trunkmonkey1972

marsexpress

Senior Member
Jun 2, 2011
123
19
Hi, I don't seem to be able to collapse the lux notification bar on galaxy s2 Samsung 4.1.2 leak. Anyone else got the same problem or any suggestions?

Thanks.

Sent from my GT-I9100 using xda premium

---------- Post added at 04:02 PM ---------- Previous post was at 03:54 PM ----------

Lol just grabbed the latest Dropbox version and now can't expand the notification :D

Would rather that than being unable to collapse it...

Sent from my GT-I9100 using xda premium
 

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.