CF.lumen resurrected for rooted KitKat and beyond
Posted on 2014-04-10, 72 comments, 246 +1's, imported from Google+/Chainfire

NOTICE: This content was originally posted to Google+, then imported here. Some formatting may be lost, links may be dead, and images may be missing.

The night mode and color temperature adjustments of the original CF.lumen and Chainfire3D packages for Gingerbread are some of the most requested features that come through my inbox each day. Today I'm happy to announce that I've brought back these features to KitKat by way of a new version of CF.lumen !

CF.lumen can automatically reduce the color temperature of your display after sundown, vastly reducing the strain on your eyes. The colors also match closer to common artificial light sources, than the daytime light you get from the sun. Lower color temperatures cause less blue light to be emitted, which also reduces your brain's effort to keep you awake. (For your computer, see f.lux )

It also offers a sleep mode that changes the display to levels of red (by default), retaining your night vision.

Aside from basing the color filter in use by the position of the sun and the time of day, you can use the master override at any time, or let the light sensor override the current setting.

Additional filters are available, such as inverting colors, manual channel adjustments, and even enhancements for the colorblind (credit to Google, hopefully it actually helps). 

Walkthrough video: http://youtu.be/-rfxnA-ynL8

Full description - far more elaborate than the one on Play, I ran out of characters - with lots of background detail, and discussion thread at XDA as usual: http://forum.xda-developers.com/showthread.php?t=2711912

+1246
Ryan Markwald commented on 2014-04-10 at 14:02:

+Chuck Haines Weren't you just asking about something like this?

F0xFIre Kiapz Kiapz commented on 2014-04-10 at 14:03:

not compatible with i9305?

Pavel Tikhonov commented on 2014-04-10 at 14:05:

Reminds me of ColorFX widget from CM7

Thassilo Haupt commented on 2014-04-10 at 14:14:

crashes on newest carbon rom on n7105

Bogdan Tautu commented on 2014-04-10 at 14:17:

why does it need root? ?

Stefan Kirchner commented on 2014-04-10 at 14:18:

And now CF3D, that would be awesome.

(Which I bought in those days)

Claudio Ibarra commented on 2014-04-10 at 14:21:

As soon as I clicked "Save" for my location, it went into "Unfortunately, CF.lumen has stopped." mode.

Pavel Tikhonov commented on 2014-04-10 at 14:21:

+Bogdan Tautu Kernel-related stuff for interacting with the GPU

Vito Cassisi commented on 2014-04-10 at 14:32:

Hey +Chainfire. I'm the developer of Lux Auto Brightness. Do you have plans to allow other apps to plug into this functionality, or would you be willing to licence out the tech to other developers?

Chainfire commented on 2014-04-10 at 14:35:

Seems we have a few crashes here and there, and some no-working. Logcat and details are welcome in the XDA thread!

Joshua Randiny commented on 2014-04-10 at 14:35:

+Stefan Kirchner you can use gltools which has similar function as cf3d and compatible with kitkat(or at least my kitkat n4)

Claudio Ibarra commented on 2014-04-10 at 14:36:

+Chainfire If I submit a report when the app crashes, that report goes to you, right?

(as opposed to somewhere in Google's vast network of pneumatic tubes)

Stefan Kirchner commented on 2014-04-10 at 14:38:

Thanks +Joshua Randiny, will try it out.

Man, I really hope that Starfront Collision would work with those tools on my GS4. Played it all day long on my GS2 back in the days. :)

Chainfire commented on 2014-04-10 at 14:38:

+Aaron Li +Daniel Peña Works fine on my S3 i9505 (latest CM nightly)

+Thassilo Haupt logcat and exact when/where/how welcome here or in XDA thread

+Claudio Ibarra just try again - I've seen that happen once during testing but couldn't reproduce it twice - worked next try.

Chainfire commented on 2014-04-10 at 14:42:

+Stefan Kirchner Aside from other tools now available, CF3D may actually return as well. I was waiting for the longest time for Substrate to get up to speed to do it, but I've given up on waiting for that, so who knows ... :)

+Claudio Ibarra Yes, that comes to me - eventually. It goes through Google first.

Chainfire commented on 2014-04-10 at 14:45:

+Vito Cassisi the driver is controlled via setprop, just use SuperSU's logging feature to see how to control it. It isn't documented in any way... just don't interfere with my 'Pro' features ;)

Vito Cassisi commented on 2014-04-10 at 14:47:

+Chainfire Thanks, I knew I bought SuperSU Pro for a reason. :)

Claudio Ibarra commented on 2014-04-10 at 14:48:

Glass Video from Apr 10, 2014

Hopefully that link works. That's me trying again (unless you mean reinstalling?)

Chainfire commented on 2014-04-10 at 14:49:

+Claudio Ibarra ah it crashes right on startup, not just on Maps. Different issue then! I'll wait for the crash report in Google Play's developer console (can take a while) and see if I can find and fix the problem. Phone and firmware details are helpful at this point.

Karan Rajpal commented on 2014-04-10 at 14:51:

It asks me to install drivers every time I open the app on my nexus 4 even when I already have. Can you help me out +Chainfire ?

Claudio Ibarra commented on 2014-04-10 at 14:52:

Nexus 5

Android 4.4.2 (stock ROM, rooted)

Franco Kernel #43

Build KOT49H

CyanogenMod phone case :)

wang pan commented on 2014-04-10 at 14:54:

试过很多类似软件,总算找到了个能完美解决导航栏及虚拟按键色温的软件了,感谢开发者!

希望能尽快添加中文,谢谢!

Chainfire commented on 2014-04-10 at 14:55:

+Karan Rajpal that's probably going to be more complicated to diagnose than G+ will allow, please go to the XDA thread.

+Claudio Ibarra interesting, running a Nexus5 on 4.4.2 stock myself. Superuser, CWM Superuser, or SuperSU ?

Karan Rajpal commented on 2014-04-10 at 14:57:

+Chainfire alright, no problem. I'll be glad to provide logs if you need them. Thanks!

Claudio Ibarra commented on 2014-04-10 at 14:58:

+Chainfire SuperSU is what shows up in my apps tray (I know I have the Pro version installed, though... I just double-checked by reinstalling from the play store's web interface to my phone).

Chainfire commented on 2014-04-10 at 15:11:

Looking at the console, seems most of the crashes have Xposed installed. If you are using Xposed and experiencing issues - which modules do you have installed ?

+Claudio Ibarra the above question also for you!

Claudio Ibarra commented on 2014-04-10 at 15:11:

I have never installed or used Xposed.

(I had to Google it to remind myself what it even was)

Claudio Ibarra commented on 2014-04-10 at 15:12:

(but is there something I can do to verify 100% that it's not installed?)

Chainfire commented on 2014-04-10 at 15:15:

+Claudio Ibarra if you didn't know what it is then you probably don't have it... this APK should solve some of the reported crashes, let me know if it fixes yours: https://dl.dropboxusercontent.com/u/25695577/CF.lumen-v2.01.apk

(I can't reproduce the crash myself, so can't test if this fixes anything)

Filip Maciejewski commented on 2014-04-10 at 15:16:

Maguro here. App asks to install drivers, reboots phone, asks to install drivers again. (loop it forever) :c

Claudio Ibarra commented on 2014-04-10 at 15:23:

I uninstalled, rebooted, downloaded the APK, installed, and ran it.

As soon as I clicked "save" for my location, I was back to crashing on app boot.

DEMS commented on 2014-04-10 at 15:27:

Oh nice, downloading now. Run Xposed so I'll cross my fingers, but I'm sure crash problems will be taken care if ASAP

Chainfire commented on 2014-04-10 at 15:39:

+Claudio Ibarra silly question, but what happens now if you reboot normally and try again?

Brandon Golway commented on 2014-04-10 at 15:41:

These apps are awesome, I used to use f.lux for my computer but the massive red/orange tint to everything really bothered me and I would end up turning it off.

Claudio Ibarra commented on 2014-04-10 at 15:48:

+Chainfire I get the crashed notification window on reboot of my phone before I can even launch the app (i.e. the app boots and dies when the phone restarts).

Claudio Ibarra commented on 2014-04-10 at 17:59:

When I saw night mode as an option, I bought the app immediately. I missed that from the early days of CM.

Craig D commented on 2014-04-10 at 18:07:

Thanks +Chainfire... A great app. Look forward to the crash bug fixes. Keep them updates coming! Bought the app to show my support.

greller grellsen commented on 2014-04-10 at 18:50:

Too bad it needs google maps...i use an alternative map app. There should be a possibility for a manual location entry

Erik Huizinga commented on 2014-04-10 at 19:00:

Having a problem, reported on the xda thread.

Kishorelal Deva commented on 2014-04-10 at 20:03:

Using omnirom on a N7000. Works very well. Thank you.

トーマスbarnassey commented on 2014-04-10 at 20:10:

+Chainfire What about the people who paid for chainfire 3d specifically to enable this feature? I don't want to rebuy an app to get equivalent functionality.

Kishorelal Deva commented on 2014-04-10 at 20:37:

Just install your 3d paid app it unlocks this one as well

Marquin Alexander commented on 2014-04-10 at 20:40:

+Chainfire not compatible with Note 3 N9000?

tamas szabo commented on 2014-04-10 at 20:42:

+barnassey thomas "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." that's from XDA. I hope is clear, and pls follow the thread there. thanks

トーマスbarnassey commented on 2014-04-10 at 20:46:

+tamas szabo no offense but I rather hear it from the app dev.

Chainfire commented on 2014-04-10 at 21:34:
  • All "not compatible" questions: make sure you are running Android 4.4.x KitKat, as is required.

  • All crashes: logcats in XDA thread!

  • Driver not sticking: this is probably a detection issue. To be sure, please check if /system/lib/libcflumen.so is present.

  • +Claudio Ibarra I'm not sure how to go further from this point. If you can pull logcats straight from device and install test versions (perhaps connect on hangouts?) I'm sure we can sort this out.

  • +Mirko Grell ultimately there should be an option to enter it manually. However, if you've just used your alternative map app and let it determine your location, then open CF.lumen, it may actually detect your location automatically if you press the butotn.

  • +barnassey thomas as +Kishorelal Deva stated, and is listed in both the Play store description as well as the XDA thread opening post: installing the Chainfire3D Pro package will also unlock CF.lumen Pro.

Claudio Ibarra commented on 2014-04-10 at 21:50:

+Chainfire please forgive my ignorance, as I've never actually logcat'd before. Is this useful?

https://drive.google.com/file/d/0By-HVZpDIPtReUhmZzhRN2o2Y0k/edit?usp=sharing

トーマスbarnassey commented on 2014-04-10 at 21:52:

+Chainfire Ah my apologies.

Chainfire commented on 2014-04-10 at 21:53:

Anyone having problems, please post your location as well (doh) as location has influence on a lot of the code path. Nearest city and country name will do!

+Claudio Ibarra not really, you need to do it from computer, or type "su" before you type logcat :)

Claudio Ibarra commented on 2014-04-10 at 22:00:

And today, I learned that there's an app just for Logcats (catlog). And I was typing out terminal commands on my phone, like a sucker.

+Chainfire I hope this is better: https://drive.google.com/file/d/0By-HVZpDIPtRSW1zd21xZmJHQkk/edit?usp=sharing

I started the log, tried to launch the app three times, and then ended the log recording.

Erik Huizinga commented on 2014-04-10 at 22:08:

+Chainfire, my location is visible under my avatar on XDA!

Chainfire commented on 2014-04-10 at 23:24:

+Claudio Ibarra I believe this version should get rid of your error, please let me know ASAP :)

https://dl.dropboxusercontent.com/u/25695577/CF.lumen-v2.02.apk

Claudio Ibarra commented on 2014-04-10 at 23:26:

Success! You sir, are excellent!

전진호 commented on 2014-04-11 at 02:29:

this apk is wonderful, but I wanna remove the noti- on statusebar and noti pannel, it it possible?

Shiv Manas commented on 2014-04-11 at 02:33:

+Chainfire New build still isn't working on my Nexus 4 w/ OmniROM. The app launches but is stuck on the loading screen. No error messages or crashes.

Logcat: http://logcat.scheffsblend.com/view?id=2399002

Location: Wellington, New Zealand

Edit: Looks like SuperSU stopped working for some reason. Had to flash Koush's superuser to get back root. Lumen opens up now but crashes when I try to install the driver.

Here's the new logcat: http://logcat.scheffsblend.com/view?id=2409002

Lord Diecide Xinoide Verdamona Deldadra commented on 2014-04-11 at 02:34:

It shows 404

Lord Diecide Xinoide Verdamona Deldadra commented on 2014-04-11 at 02:34:

The page..

Chainfire commented on 2014-04-11 at 07:57:

+전진호 that information is in the app description

+Shiv Manas Dass try again with v2.10 that was just released. Play should have it in a few hours, XDA thread has the file right now.

Shiv Manas commented on 2014-04-11 at 09:43:

+Chainfire Awesome, thanks! Really appreciate your super-fast responses as usual. :) Lumen works well now with no crashes.

Chainfire commented on 2014-04-11 at 13:24:

If you have the infinite driver install issue, that appears to have been a problem with Superuser. Just update to v2.15 with a fix, so get that from Play in a few hours, grab it now from XDA, or simply switch to SuperSU

+Karan Rajpal +Filip Maciejewski +Bog Monster 

Marcus Lim commented on 2014-04-11 at 15:00:

Can this app consider having gray scale mode?

Chainfire commented on 2014-04-11 at 15:27:

+Marcus Lim it already does

greller grellsen commented on 2014-04-11 at 20:08:

Everythings fine now. Used my cf3d pro to unlock. Great work. Thanks a lot

Chainfire commented on 2014-04-12 at 08:16:

+Naitch35 ?

Tim Schwarz Jr. commented on 2014-04-12 at 16:24:

Is it better than Lux?

Chainfire commented on 2014-04-13 at 02:27:

+Naitch35 if you're talking about USA/USD specifically (always hard to tell with the dozens of currencies in Play) it was increased because the price didn't correspond to the price for the rest of the world. Think of that what you will.

nikhil mohan commented on 2014-04-14 at 03:00:

+Chainfire Is it working on the galaxy s4 international version (i9500)?

don fundroid commented on 2014-04-14 at 20:14:

Chain fire master of all???

Vasi Petre commented on 2014-04-16 at 18:24:

Vasi Petrica no se de funsiona esa aplicasion en.mi telefono tengo unSansung galaxi S 2

Basuki uky commented on 2014-04-30 at 07:21:

i

Arioch commented on 2014-05-03 at 07:12:

I paid for the full version, please please please and again please keep updating to make sure it works and we never go without it. I simply love this application and I have sensitive eyes so at night time it's just great. I've always been a big supporter and even donates considering that some of the other applications don't work.

mehul singh commented on 2015-06-03 at 01:24:

working fine on my xolo q700s ! i heard that gray scale mode saves battery !! like in samsung galaxy s5

This post is over a month old, commenting has been disabled.