Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,276 Members 44,471 Now Online
XDA Developers Android and Mobile Development Forum

[APP][4.4+][2014.07.02] CF.lumen v2.51 [ROOT]

Tip us?
 
Chainfire
Old
(Last edited by Chainfire; 2nd July 2014 at 01:39 AM.)
#1  
Chainfire's Avatar
Senior Moderator / Senior Recognized Developer - Where is my shirt? - OP
Thanks Meter 49301
Posts: 9,017
Join Date: Oct 2007

 
DONATE TO ME
Default [APP][4.4+][2014.07.02] CF.lumen v2.51 [ROOT]

About

CF.lumen adapts the colors on your Android device based on the position of the sun, or your custom configuration.

When using the default settings, your display will get a warmer tint (lower color temperature) when the sun is down, vastly reducing strain on the eyes. This will take some getting used to, though! The colors also match closer to common artificial light sources, than the daytime light you get from the sun. Blue light makes your brain want to stay awake, and a lower color temperatures reduces the amount of blue displayed; using this in the evening also reduces your brain's effort to keep you awake at night, and can be beneficial to your sleeping pattern. (For your laptop/computer, see find f.lux for this functionality)

During sleeping hours by default a red filter is used. Red strains your eyes the least, and retains your night vision.

Light sensor

The light sensor can be used to automagically adjust the color: switch to the sleep filter in full dark, or to the day filter (usually none) under bright lights.

Because light sensor quality varies wildly between devices, a calibration option is provided. Most devices seem to work fine with sliders set all the way to the left, others need them to be set all the way to the right. Experiment as needed, but be warned that some devices simply cannot distinguish between evening indoor lighting and full darkness, and this feature may thus not work well for you.

Color filters

Several filters are provided. Those named after a color (red, green, blue, amber, salmon) do not limit the display to those colors, but convert the displayed image to grayscale first, then display that image in levels of the selected color, instead of levels of all channels (white). This preserves details that would otherwise be lost.

Grayscale, invert colors, temperature adjustment and custom R/G/B adjustment filters are also provided.

Colorblindness

The master color filter setting also has an option for colorblindness enhancement, with settings for protanopia/anomaly, deuteranopia/anomaly and tritanopia/anomaly. These options redistribute colors across the spectrum, in theory enhancing clarity and color detail.

No claims are made to the effectiveness of these filters, but positive reports have been received from testers. Also note that these filters were thought up by Google engineers - CF.lumen just includes them.

Pro version

Upgrading to CF.lumen Pro will support my developments, remove all nags, unlock the option to start at device boot (make sure you test your configuration first), and unlock notification options.

In Pro mode, the notification adds convenient buttons to quickly disable the current filter or switch to sleep mode, and you can switch the notification to when enabled mode, which shows the notification only when a color filter is active.

In non-Pro mode, the notification only asks you to upgrade to Pro. It may seem that notification is just there to annoy you, but it actually prevents Android from randomly killing the background service taking care of all the work. Getting rid of it without getting the service killed can be done by going to Settings -> Apps -> CF.lumen and unticking Show notifications.

As in the past CF.lumen was part of Chainfire3D, if you have the Pro package of the latter installed, Pro mode will also be enabled.

Performance

When no color filter is active, there should not be any noticeable performance impact. When a filter is active, impact depends on device and what you are doing. On some devices we have tested there was no performance impact at all, on others it was slightly noticeable.

For CF.lumen to work, hardware compositing (not rendering!) has to be disabled, so the more surfaces that need to be rendered, the bigger the impact. As a result, even on devices where you do notice an impact, you're more likely to notice it in regular apps, and less likely to notice it when playing video or games, as the latter generally use only a single surface.

History

Nightmode - now called 'sleep mode' in CF.lumen - was actually the kick-off of Chainfire3D's development, and the later arrival of the original CF.lumen additionally containing the functionality to change color temperature based on the sun's position. Completely different (and no longer possible) techniques were used to get similar results. There were fewer options, and the filters limited display to the selected channels instead of the currently used much higher quality method of displaying luminance levels on the selected channel.

Future

Keep in mind that Android's rendering system changes over time. This app was possible in the old days of Android, and then wasn't possible for a long time. Only with KitKat did it become possible to make this work again. As such, you should be aware that this app may simply stop working on future Android versions without the possibility of a fix.

Scary permissions

By far most permissions are used only for Google Maps to set your location, and Google Play to provide for In-App Purchases. I cannot make any claims as to what information the Google components do or do not send to Google servers, but no information is sent to me or anyone else (than Google).

Download

Get CF.lumen at Google Play

It needs Android 4.4 KitKat or newer!

Screenshots
Attached Thumbnails
Click image for larger version

Name:	screenshot-phone-small-ui-1.png
Views:	7963
Size:	71.8 KB
ID:	2678219   Click image for larger version

Name:	screenshot-phone-small-ui-2.png
Views:	7542
Size:	63.2 KB
ID:	2678222   Click image for larger version

Name:	screenshot-phone-small-home-day.jpg
Views:	8139
Size:	38.7 KB
ID:	2678223   Click image for larger version

Name:	screenshot-phone-small-home-sundown.jpg
Views:	8066
Size:	87.1 KB
ID:	2678224   Click image for larger version

Name:	screenshot-phone-small-home-sleep.png
Views:	7602
Size:	161.0 KB
ID:	2678225  

BLOG - G+(Chainfire) - G+(Personal) - TWITTER - IRC - DONATE

A proper quote includes only the relevant paragraphs, and a proper post never ends with the word "why"

Android
HTC G1, Hero, One
LG G Pad 8.3, G Watch, G3
Moto E
Samsung i5800, i9000*2, P1000*2, P7100, i9100*2, N7000, P6800, i9300, N7100, i9505, N9005, G900F
Sony T LT30p, Z C6603
Nexus Galaxy*2, N7*2, N10, N7-2013, N7-2013-3G, N5

SuperSU, Mobile ODIN, TriangleAway, DSLR Controller, CF-Root, 500 Firepaper, OpenDelta, USB Host Diagnostics, ExynosAbuseAPK, Live dmesg+logcat, NoMoarPowah!, CF-Bench, Chainfire3D, CF.lumen, SGS2 SIM Unlocker, GingerBreakAPK, SuperPower, and more!

Windows Mobile 5/6
E-Mobile EM-ONE
HTC Wizard*2, Kaiser, Touch, Diamond, Pro, HD*2, Diamond 2, Pro 2*2, HD2*2
Samsung i780, i900*2, i8000*2, b7300, b7320, b7330, b7620*2, b6520

WMWifiRouter, KaiserTweak, FPUEnabler, WMLongLife, WMRegOptimizer, CFC+GUI, TF3D+v2 ports, Kaiser+Omnia2+Snapdragon 3D drivers, GfxBoost, and more!

Windows Phone 7
LG GW910

NOTICE: I do not respond to tech support questions through PM.
The Following 92 Users Say Thank You to Chainfire For This Useful Post: [ Click to Expand ]
 
Chainfire
Old
(Last edited by Chainfire; 1st July 2014 at 04:36 AM.)
#2  
Chainfire's Avatar
Senior Moderator / Senior Recognized Developer - Where is my shirt? - OP
Thanks Meter 49301
Posts: 9,017
Join Date: Oct 2007

 
DONATE TO ME
Walkthrough video



GIF



Non-GApps firmwares

This app uses Maps for manual location setting, and Play for purchasing Pro. An increasing number of users do not have GApps, for privacy, security, and other concerns. If the app is installed on such a firmware, your location will be determined using the normal location API (without manual override, so your phone has to be able to determine your location). As I do not want to deprive anyone from the potential health benefits of sleeping better, the app operates in Pro mode if you do not have the Play store installed (PayPal'ing me beer money is always an option).

The APK is attached to this post for those not using Google Play (only).

Under no circumstances are you allowed to (re-)distribute this APK
(v2.00: 32, v2.05: 180, v2.10: 164, v2.16: 288, v2.25: 118, v2.40: 555)
Attached Files
File Type: apk CF.lumen-v2.50.apk - [Click for QR Code] (671.8 KB, 273 views)
BLOG - G+(Chainfire) - G+(Personal) - TWITTER - IRC - DONATE

A proper quote includes only the relevant paragraphs, and a proper post never ends with the word "why"

Android
HTC G1, Hero, One
LG G Pad 8.3, G Watch, G3
Moto E
Samsung i5800, i9000*2, P1000*2, P7100, i9100*2, N7000, P6800, i9300, N7100, i9505, N9005, G900F
Sony T LT30p, Z C6603
Nexus Galaxy*2, N7*2, N10, N7-2013, N7-2013-3G, N5

SuperSU, Mobile ODIN, TriangleAway, DSLR Controller, CF-Root, 500 Firepaper, OpenDelta, USB Host Diagnostics, ExynosAbuseAPK, Live dmesg+logcat, NoMoarPowah!, CF-Bench, Chainfire3D, CF.lumen, SGS2 SIM Unlocker, GingerBreakAPK, SuperPower, and more!

Windows Mobile 5/6
E-Mobile EM-ONE
HTC Wizard*2, Kaiser, Touch, Diamond, Pro, HD*2, Diamond 2, Pro 2*2, HD2*2
Samsung i780, i900*2, i8000*2, b7300, b7320, b7330, b7620*2, b6520

WMWifiRouter, KaiserTweak, FPUEnabler, WMLongLife, WMRegOptimizer, CFC+GUI, TF3D+v2 ports, Kaiser+Omnia2+Snapdragon 3D drivers, GfxBoost, and more!

Windows Phone 7
LG GW910

NOTICE: I do not respond to tech support questions through PM.
The Following 32 Users Say Thank You to Chainfire For This Useful Post: [ Click to Expand ]
 
Chainfire
Old
(Last edited by Chainfire; 2nd July 2014 at 01:40 AM.)
#3  
Chainfire's Avatar
Senior Moderator / Senior Recognized Developer - Where is my shirt? - OP
Thanks Meter 49301
Posts: 9,017
Join Date: Oct 2007

 
DONATE TO ME
Default Changelogs

2014.07.02 - 2.51
- Fix: ignore light sensor triggered sleep if forced awake during sleep hours

2014.07.01 - 2.50
- Installer fixes for latest AOSP
- Installer fixes for Android "L" Preview
- Added wake button to notification during sleep mode, which goes to sundown mode and is the default tap response - in contrast to disable, which disables all filters and is the default tap response while not sleeping
- Fixed issue where starting CF.lumen would not start the driver/service when not using Pro, and nothing would happen regarding screen colors, no matter which buttons you push

2014.04.16 - 2.40 - RELEASE NOTES
- Added brightness control to filters (actionbar option)
- Added option to wake from sleep mode when an alarm goes off
- Added option to install via custom recovery
- Added backuptool support (survive custom ROM nightlies) - un/re-install driver to activate if coming from an older version
- Fixed setting sleep filter to disabled using day filter at night instead of sundown filter
- Fixed filters occasionally sticking while modifying settings

2014.04.14 - 2.25 - RELEASE NOTES
- Various UI tweaks
- Added gradual filter fading, configurable for sunrise, sunset, sleep and sensor events
- Added notification icon options (keep notification but hide icon)
- Added light sensor based wake from sleep option
- Added driver update needed notification
- Added option to switch between light, dark, and device themes
- Added quick toggle menu items to main activity
- Improved (Pro) notification behavior - en/disable now default tap option when active
- Fixed kelvin and R/G/B choices not being saved between filter selections
- Fixed "Upgrade to Pro" from notification sometimes not working
- Fixed text wrapping on light calibration dialog

2014.04.11 - 2.15
- Fixed driver installation problem when using Superuser instead of SuperSU

2014.04.11 - 2.10
- Fixed crash on driver (un)install

2014.04.10 - v2.05
- Fixed a number of force closes

2014.04.10 - v2.00
- Initial public release
BLOG - G+(Chainfire) - G+(Personal) - TWITTER - IRC - DONATE

A proper quote includes only the relevant paragraphs, and a proper post never ends with the word "why"

Android
HTC G1, Hero, One
LG G Pad 8.3, G Watch, G3
Moto E
Samsung i5800, i9000*2, P1000*2, P7100, i9100*2, N7000, P6800, i9300, N7100, i9505, N9005, G900F
Sony T LT30p, Z C6603
Nexus Galaxy*2, N7*2, N10, N7-2013, N7-2013-3G, N5

SuperSU, Mobile ODIN, TriangleAway, DSLR Controller, CF-Root, 500 Firepaper, OpenDelta, USB Host Diagnostics, ExynosAbuseAPK, Live dmesg+logcat, NoMoarPowah!, CF-Bench, Chainfire3D, CF.lumen, SGS2 SIM Unlocker, GingerBreakAPK, SuperPower, and more!

Windows Mobile 5/6
E-Mobile EM-ONE
HTC Wizard*2, Kaiser, Touch, Diamond, Pro, HD*2, Diamond 2, Pro 2*2, HD2*2
Samsung i780, i900*2, i8000*2, b7300, b7320, b7330, b7620*2, b6520

WMWifiRouter, KaiserTweak, FPUEnabler, WMLongLife, WMRegOptimizer, CFC+GUI, TF3D+v2 ports, Kaiser+Omnia2+Snapdragon 3D drivers, GfxBoost, and more!

Windows Phone 7
LG GW910

NOTICE: I do not respond to tech support questions through PM.
The Following 12 Users Say Thank You to Chainfire For This Useful Post: [ Click to Expand ]
 
rlaw
Old
#4  
Senior Member
Thanks Meter 225
Posts: 752
Join Date: Jul 2011
Is there any practical difference between this and Lux?

Sent from my Nexus 5 using XDA Premium 4 mobile app
 
leninke
Old
#5  
Member
Thanks Meter 40
Posts: 99
Join Date: Feb 2013
Quote:
Originally Posted by rlaw View Post
Is there any practical difference between this and Lux?

Sent from my Nexus 5 using XDA Premium 4 mobile app
See walkthrough video on YouTube, and you will get the answer.

Sent from my Nexus 4 using Tapatalk
The Following User Says Thank You to leninke For This Useful Post: [ Click to Expand ]
 
jackattack
Old
#6  
Senior Member
Thanks Meter 69
Posts: 254
Join Date: Jan 2007
Is it possible that you could add Tasker compatibility? If not, are there public intents available to control cf.lumen through Tasker intents? Thanks for updating this great app.
The Following User Says Thank You to jackattack For This Useful Post: [ Click to Expand ]
 
erikieperikie
Old
(Last edited by erikieperikie; 12th April 2014 at 01:12 PM.) Reason: bugs fixed
#7  
erikieperikie's Avatar
Senior Member
Thanks Meter 33
Posts: 116
Join Date: Dec 2011
Location: Enschede

 
DONATE TO ME
EDIT: The latest update(s) fixed my problems. Thanks CF! Will buy if I like the app after a few days of use.

 
BUG:
I would love to include a logcat, but I simply don't have the time today or tomorrow. If needed, I'll post one this weekend.

When the app runs for the first time: grant su access, then I see the "please install cf.lumen driver". I click install, device reboots after a few secs, after reboot I wait for some time before opening the app again. When I open it, it asks me the same thing: install the driver. Wasn't the driver installed, or doesn't it detect the driver?

PHONE: Nexus 4, ROM: Paranoid Android 4.2 BETA 4 (that's Android 4.4.2 if you don't know), KERNEL: franco.Kernel #204.

On my first try I had Nexus Display Control (also by Franco) installed. My guess was the apps aren't compatible. After uninstalling both apps, reboot, installed cf.lumen again, install driver, reboot: same problem. So for now no cf.lumen for me. Just eye strain.

I hope this helps you find the bug or incompatibility I have!
 
Phone History



Phone
LG Nexus 4
Code:
PRODUCT_NAME       {mako}
VARIANT            {mako 16GB}
HW VERSION         {rev_11}
BOOTLOADER VERSION {MAKOZ30d}
BASEBAND REVISION  {M9615A-CEFMAZM-2.0.1700.98}
CARRIER INFO       {None}
SERIAL NUMBER      {***}
SIGNING            {production}
SEUCRE BOOT        {enabled}
LOCK STATE         {unlocked}
RECOVERY           {TWRP 2.6.3.2}
ROM                {Paranoid Android 4+ KK 4.4.2}
ROOT STATUS        {YES}
Other
Asus Nexus 7˛°ął 32GB
 
kodirovshchik
Old
#8  
kodirovshchik's Avatar
Member
Thanks Meter 7
Posts: 45
Join Date: Aug 2013
Location: Dneprodzerzinsk
Thumbs up 4.0+

Excellent, and we need it for Android 4.0+
The Following User Says Thank You to kodirovshchik For This Useful Post: [ Click to Expand ]
 
SirBindy
Old
#9  
Senior Member
Thanks Meter 81
Posts: 463
Join Date: Nov 2009
Location: Rochester, NY
No love for 4.1 - 4.3 makes me a sad panda
VZW Galaxy Note 3
 
Codename13
Old
#10  
Senior Member
Thanks Meter 907
Posts: 824
Join Date: Jun 2012
Quote:
Originally Posted by kodirovshchik View Post
Excellent, and we need it for Android 4.0+
+1. Although I favour the cool-factor and performance of custom ROMs, it's always nice to be able to get a similar experience on stock ROM (which is ICS for me), considering that there are no stable custom ROMs on my device at the moment. I'm actually in the midst of custom ROM development for my device, though I work on CM10.2. (There are others who work on KitKat). It would be much appreciated if the @Chainfire could add support for lower Android versions.

Samsung Galaxy Ace II X
(GT-S7560M) - Android 4.3.1 JB - CM10.2 with some bugs

Released Works:Status: Add ".patch" to the end of the link to a Github commit, then download the commit as a patch using wget. *mindblown*


Press THANKS if I helped you in any way!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes