[APP][2.3+] Lux Auto Brightness

Search This thread

codesplice

Senior Member
Jun 17, 2008
2,678
951
Huntsville, AL, USA
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

Collapsing it can sometimes be a little tricky. The method I've found to work the most reliably is to drag your finger down from above the Lux notification (like you were trying to expand the one above it), past the bottom of the Lux notification, and then drag it back up. This should get it to collapse correctly.
 

marsexpress

Senior Member
Jun 2, 2011
123
19
Hmm can't expand the notification now, no matter what I do. Sometimes it appears to be expanded and when it is I can't collapse it.

Sent from my GT-I9100 using xda premium
 

trunkmonkey1972

Senior Member
Nov 10, 2012
50
13
Update : I added back the other ongoing notifications and can't expand Lux as before. When it was solo I could collapse quickly (followed my fingers in real time just like email, etc). But expanding always delayed, sometimes by several seconds and worked only half the time. App info always appeared, even when it did eventually expand. Hmmm...

S3 on Sprint - 16gb pebble blue + 64
 

CloudyPear

Senior Member
Dec 12, 2010
60
7
Tasker I think updated for me either yesterday or today and now when I try and add a task to use the Tasker plug in to set a manual brightness I get the error in the screen shot.

Is anyone else getting this or can suggest something I'm doing wrong? My old Tasker tasks that use the plugin are still working but cannot be modified.

Thanks for your help and thanks dev for an awesome app!

Sent from my GT-I9300 using xda app-developers app

https://dl.dropbox.com/u/10961338/Screenshot_2012-11-16-20-47-36.png
 

Attachments

  • uploadfromtaptalk1353098988967.jpg
    uploadfromtaptalk1353098988967.jpg
    70.9 KB · Views: 296
Last edited:

CloudyPear

Senior Member
Dec 12, 2010
60
7
Tasker I think updated for me either yesterday or today and now when I try and add a task to use the Tasker plug in to set a manual brightness I get the error in the screen shot.

Is anyone else getting this or can suggest something I'm doing wrong? My old Tasker tasks that use the plugin are still working but cannot be modified.

Thanks for your help and thanks dev for an awesome app!

Sent from my GT-I9300 using xda app-developers app

https://dl.dropbox.com/u/10961338/Screenshot_2012-11-16-20-47-36.png

This sorted after I updated my ROM. Maybe the permissions fix or something.
 

andy_0

Member
Dec 6, 2008
26
0
Hi Cyb3rGlitch,

At first I want to thank you for this wonderful app! I bought an Android phone a few days back and had issues with the always to bright screen. Your application is well worth the investment of ~2 Euro!

I've got a question regarding the "sub zero" brightness. Does it have any (possible) negative effects on an OLED (Super AMOLED) screen? I mean there *must* be a reason why there is a 0% brightness limitation ...

Regards,

Andy
 
Last edited:

eden1988

Senior Member
Dec 25, 2010
275
64
Anyone experienced increased brightness when a text (e.g. whatsapp) is received? I'm playing a game (Subway Surfers) and at times the screen will just increased the brightness then decreased back to normal (during the adjustment of brightness touch sensitivity is being affected). I'm using the adjust upon unlock setting.
 

Cyb3rGlitch

Senior Member
Apr 12, 2011
599
663
Hi Cyb3rGlitch,

At first I want to thank you for this wonderful app! I bought an Android phone a few days back and had issues with the always to bright screen. Your application is well worth the investment of ~2 Euro!

I've got a question regarding the "sub zero" brightness. Does it have any (possible) negative effects on an OLED (Super AMOLED) screen? I mean there *must* be a reason why there is a 0% brightness limitation ...

Regards,

Andy
It's probably limited to stop people putting the brightness so low that they can't see anything during daylight.

Anyone experienced increased brightness when a text (e.g. whatsapp) is received? I'm playing a game (Subway Surfers) and at times the screen will just increased the brightness then decreased back to normal (during the adjustment of brightness touch sensitivity is being affected). I'm using the adjust upon unlock setting.
Do you have the persistent notification on? It sounds like the system might be killing Lux to free memory, and then restarts it.
 

eden1988

Senior Member
Dec 25, 2010
275
64
Do you have the persistent notification on? It sounds like the system might be killing Lux to free memory, and then restarts it.

Yup I did have it off, I already have like 5 persistent notification (JD, Screebl. avast etc etc) on my notification bar so I was trying to keep it as minimal as possible. Well I shall try using it with the persistent notification and report back on how things goes :)

Thanks for clarifying Cyb3r!!

Regards,
Eden~
 

berardi

Senior Member
Jul 16, 2007
944
26
NYC
I would like to integrate into shell but am also getting the message about insufficient space in system/app. Anything special I need to do? Su is giving it privilege and I am rooted. Please advise.
 

ojbmuc

Member
Feb 29, 2012
16
2
Munich
What exactly does "integrate in Android"

Hi Cyb3rGlitch,

thank you for the app. I liked it and purchased it.

Can you tell me what the option "integrate to android" exactly does?

Thank you in advance.

Greetings
Oli
 
Last edited:

zetsui

Senior Member
Jul 8, 2012
769
33
Samsung Galaxy S20 FE
I played around with app all of last night, but I don't get it. It say it sets the lums by 'environment' That's a very general term. It doesn't seem to do it by app. I'm wondering if this is possible. I put on automation and then turned it off and set custom lums by app, but it just stuck to the last lum selected.

Any quick idea on what I'm missing here. I feel like its something simple. I read through the tutorial and setup multiple times
 

Cyb3rGlitch

Senior Member
Apr 12, 2011
599
663
I would like to integrate into shell but am also getting the message about insufficient space in system/app. Anything special I need to do? Su is giving it privilege and I am rooted. Please advise.
Don't worry about it, this feature will be removed in the next update.

Hi Cyb3rGlitch,

thank you for the app. I liked it and purchased it.

Can you tell me what the option "integrate to android" exactly does?

Thank you in advance.

Greetings
Oli
At this point nothing, because Android handles paid apps differently to free ones, so they're stored in a protected area in memory. I don't know the details.

I played around with app all of last night, but I don't get it. It say it sets the lums by 'environment' That's a very general term. It doesn't seem to do it by app. I'm wondering if this is possible. I put on automation and then turned it off and set custom lums by app, but it just stuck to the last lum selected.

Any quick idea on what I'm missing here. I feel like its something simple. I read through the tutorial and setup multiple times
It links backlight levels to the brightness of the room. You can't set brightness on a per app basis.
 
  • Like
Reactions: hakoreh

zetsui

Senior Member
Jul 8, 2012
769
33
Samsung Galaxy S20 FE
hey cyber thanks for the clarification. is there a possibility of the app including application custom brightness in the future.

what comes to mind is my amazon kindle. it is ALWAYS a night time app for me in a dim light and I want it set to a certain brightness rather than the very bright auto that doesn't allow me to start to get sleepy in bed. I sort of want to 'dim down' for the night.

I still don't get the point of linking if you can't change it by app though.
 

trunkmonkey1972

Senior Member
Nov 10, 2012
50
13
Bring up the Dashboard when you're in bed, slide brightness down to your comfort level, long press link icon to set that brightness for the dark environment. Or try the night mode.

S3 on Sprint - 16gb pebble blue + 64
 
  • Like
Reactions: zetsui

ojbmuc

Member
Feb 29, 2012
16
2
Munich
>>Can you tell me what the option "integrate to android" exactly does?
>At this point nothing, because Android handles paid apps differently to
>free ones, so they're stored in a protected area in memory. I don't know the details.

What do you mean with nothing? Because it works. If I integrate it then Lux will not been killed.

Maybe you got me wrong. My question was what exactly happens when you press 'integrate to android' before the reboot. And why is the reboot necessary?

And please do NOT remove that feature, because otherwise when Lux gets killed you allways have the change in screen brightness which is very annoying.

BTW I am using a Galaxy Note running 4.0.4 with speedmod kernel.

Thanks
Oli
 
Last edited:

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.