[APP][5.0+][2020.12.22] CF.lumen v3.74

Search This thread

Infy_AsiX

Senior Member
Feb 13, 2012
965
389
Brisbane
Thank you again!

I think I can help you with the inversion of colors with Tasker.

This is a task that I made that toggles the native Color inversion in Android. Copy the content of this code frame to a file named like "filename.tsk.xml" and import it in Tasker long-pressing the "Tasks" tab:

Code:
<TaskerData sr="" dvi="1" tv="5.0u3m">
	<Task sr="task8">
		<cdate>1494467036072</cdate>
		<edate>1502188130789</edate>
		<id>8</id>
		<nme>Toogle Invertir Color</nme>
		<pri>100</pri>
		<Action sr="act0" ve="7">
			<code>548</code>
			<Str sr="arg0" ve="3">Invertir colores</Str>
			<Int sr="arg1" val="0"/>
		</Action>
		<Action sr="act1" ve="7">
			<code>123</code>
			<Str sr="arg0" ve="3">settings get secure accessibility_display_inversion_enabled</Str>
			<Int sr="arg1" val="0"/>
			<Int sr="arg2" val="1"/>
			<Str sr="arg3" ve="3">%InversionColor</Str>
			<Str sr="arg4" ve="3"/>
			<Str sr="arg5" ve="3"/>
		</Action>
		<Action sr="act2" ve="7">
			<code>37</code>
			<ConditionList sr="if">
				<Condition sr="c0" ve="3">
					<lhs>%InversionColor</lhs>
					<op>2</op>
					<rhs>0</rhs>
				</Condition>
			</ConditionList>
		</Action>
		<Action sr="act3" ve="7">
			<code>123</code>
			<Str sr="arg0" ve="3">settings put secure accessibility_display_inversion_enabled 1</Str>
			<Int sr="arg1" val="0"/>
			<Int sr="arg2" val="1"/>
			<Str sr="arg3" ve="3"/>
			<Str sr="arg4" ve="3"/>
			<Str sr="arg5" ve="3"/>
		</Action>
		<Action sr="act4" ve="7">
			<code>547</code>
			<Str sr="arg0" ve="3">%InversionColor</Str>
			<Str sr="arg1" ve="3">1</Str>
			<Int sr="arg2" val="0"/>
			<Int sr="arg3" val="0"/>
			<Int sr="arg4" val="0"/>
		</Action>
		<Action sr="act5" ve="7">
			<code>43</code>
		</Action>
		<Action sr="act6" ve="7">
			<code>123</code>
			<Str sr="arg0" ve="3">settings put secure accessibility_display_inversion_enabled 0</Str>
			<Int sr="arg1" val="0"/>
			<Int sr="arg2" val="1"/>
			<Str sr="arg3" ve="3"/>
			<Str sr="arg4" ve="3"/>
			<Str sr="arg5" ve="3"/>
		</Action>
		<Action sr="act7" ve="7">
			<code>547</code>
			<Str sr="arg0" ve="3">%InversionColor</Str>
			<Str sr="arg1" ve="3">0</Str>
			<Int sr="arg2" val="0"/>
			<Int sr="arg3" val="0"/>
			<Int sr="arg4" val="0"/>
		</Action>
		<Action sr="act8" ve="7">
			<code>38</code>
		</Action>
		<Action sr="act9" ve="7">
			<code>130</code>
			<Str sr="arg0" ve="3">6500K</Str>
			<Int sr="arg1">
				<var>%priority</var>
			</Int>
			<Str sr="arg2" ve="3"/>
			<Str sr="arg3" ve="3"/>
			<Str sr="arg4" ve="3"/>
			<Int sr="arg5" val="0"/>
		</Action>
		<Img sr="icn" ve="2">
			<cls>com.gombosdev.displaytester.Activity_Start_CheckPlayServices</cls>
			<pkg>com.gombosdev.displaytester</pkg>
		</Img>
	</Task>
</TaskerData>

It checks if it's enabled or disabled, saves it in a variable and then, if it's off, it will execute a shell command to enable it, and vice versa.
The fundamental thing is that you can toggle the color inversion entering in a terminal (with su) the command "settings put secure accessibility_display_inversion_enabled 1" or "settings put secure accessibility_display_inversion_enabled 0".
You can also check the value using "settings get secure accessibility_display_inversion_enabled".
And, if you want a complete list of all the settings you can change in Android, you can introduce in a shell "settings list system/secure/global". The third value of that command is the name of the category of settings, because there are three settings categories.
For more information, just enter "settings" in a terminal like Termux.

You can then assign that task to a gesture in Swipe Navigation (recommended), GMD Gesture Control, or whatever.

Thank you for your help! Kind regards.

That works perfectly, thanks very much! :highfive: Yup I've used SwipePad for launching shortcuts for a long time.
 
  • Like
Reactions: Raijin

Infy_AsiX

Senior Member
Feb 13, 2012
965
389
Brisbane
@Raijin I just noticed and remembered that Lux has a red filter called astronomer mode. So you can combine what I previously mentioned with CF.lumen and invert using the native android method.

Sent from my Xperia Z3 Compact using XDA Labs
 

pure.by

Senior Member
Jan 23, 2010
544
330
In case you don't intend to use root for anything else, I suggest unrooting and then install a color filter. Some are said to be really good and let's be honest, you don't win that much - read: a whole new world - by using a deeper approach like cf or flux.
This is probably the worst piece of advice in the entire thread.
Besides being simply not true.
 
Last edited:

Ch3vr0n

Senior Member
May 6, 2009
1,693
668
41
In case you don't intend to use root for anything else, I suggest unrooting and then install a color filter. Some are said to be really good and let's be honest, you don't win that much - read: a whole new world - by using a deeper approach like cf or flux.

That just proves you don't know anything about this or even tried CF.lumen. try the rootless driver in cf.lumen and then the root based one. Then try saying again with a straight face the non root driver is better. That's on top of the fact that a lot of those non root versions use a simple color overlay and Android blocks those for security reasons in parts of the os. One moment you've got a 'red' screen at night, the next you go into 'settings' and bam, normal colors AND at full brightness. An attack on your eyes.

Sent from my Nexus 6P with Tapatalk
 
  • Like
Reactions: pure.by

pure.by

Senior Member
Jan 23, 2010
544
330
a lot of those non root versions use a simple color overlay
* All of them.

It's simply impossible to do anything else but an overlay without root. And there are only 2 root apps: Cf.Lumen and f.lux (not counting KCAL 'cause that's a whole different story).

@pathologo probably didn't even care to inspect the settings for longer than 10 seconds to switch from rootless driver to Cf.Lumen one.
 
Last edited:

BarneyFifeFan

New member
Sep 2, 2013
3
0
This has been a problem for a while now. When using the PCC/RGB driver, the filter stops working after putting the device to sleep. When I wake the device, the filter is no longer there, and only comes back after switching the driver to the normal one and back to PCC/RGB. It used to work fine months ago. I am running Android 6.0.1 on Optimized Cyanogenmod 13.0 for Galaxy S4 i9505.

Can confirm this is still happening. I'm running LineageOS 14.1 (stock LineageOS kernel) on a Nexus 5X, with CF.Lumen Pro v3.70. When using the PCC/RGB driver, the temperature shift goes away as soon as the screen is turned off. This may or may not be related to the fact that I'm using the Lineage OS su addon instead of SuperSU.

As a secondary issue, the CF.Lumen driver doesn't function in Performance mode on my device. Attempting to use it returns the error

The advanced CF.Lumen driver could not be loaded. For stability reasons, a reboot is now recommended!
 

cognitivedissonance

Senior Member
Jan 11, 2012
668
217
3 questions:

1) does using this hurt AMOLED screens or speed up burn-in? Specifically asking about the Nexus 6P screen.

2) What exactly is kcal, and should I use it? I'm on a Nexus 6P, stock 6.0 rooted, with the custom ElementalX kernel.

3) Is there anything else I need to do to use this optimally?

Thanks!
 

AcRs

Senior Member
Jan 20, 2017
197
27
Seville
3 questions:

1) does using this hurt AMOLED screens or speed up burn-in? Specifically asking about the Nexus 6P screen.

2) What exactly is kcal, and should I use it? I'm on a Nexus 6P, stock 6.0 rooted, with the custom ElementalX kernel.

3) Is there anything else I need to do to use this optimally?

Thanks!
I dont know about that theme much, i would like to know the answer to those questions. I only can say you I prefer kcal because is implemented in kernel
Its more or less the same cf.lumen and Kcal control.
 

vt0r

Senior Member
Sep 22, 2013
465
1,003
New York
shellvatore.us
1) does using this hurt AMOLED screens or speed up burn-in? Specifically asking about the Nexus 6P screen.

I have been using this app on my 6P for quite some time and have not seen any burn in.

2) What exactly is kcal, and should I use it? I'm on a Nexus 6P, stock 6.0 rooted, with the custom ElementalX kernel.

KCAL is the Qualcomm MDSS advanced color control interface by @savoca . It allows direct tuning of display color settings through sysfs nodes, and is the best method to use for a few reasons:

1. No overlay is required, so you don't have to allow any app (like CF.lumen) overlay permissions, and you also don't need to disable the filter to take screenshots, install applications, etc.

2. No running daemon is required to support using these tunables, as they're presented by the kernel, which likely means better performance.

3) Is there anything else I need to do to use this optimally?

Probably not, as I'm fairly certain ElementalX already supports KCAL. However, just in case it doesn't, I happen to know of a kernel for the 6P that does support KCAL... ;)
 
  • Like
Reactions: cognitivedissonance

cognitivedissonance

Senior Member
Jan 11, 2012
668
217
Probably not, as I'm fairly certain ElementalX already supports KCAL. However, just in case it doesn't, I happen to know of a kernel for the 6P that does support KCAL... ;)

Thanks so much for the great response! I'm not certain I follow everything you said (over my head technically) but it sounds like you know what you're talking about! I have it installed now and I'm using the kcal driver. When I look at the different modes, it tints the screen as I would expect, so does that mean the ElementalX kernel supports KCAL? If not, can you tell me how to figure it out? I have the EX Kernel Manager app installed if I need to do anything with the kernel (or other) settings.
 

clevebb

Senior Member
Jan 31, 2013
135
26
I would think it does the opposite of burn in because the other color pixels are off. Cf.lumen prolongs amoled screen life.
 

beeshyams

Senior Member
Dec 29, 2014
1,884
806
Bangalore
@Chainfire
Thanks for a good app (purchased couple of days ago)

On Android 6.0, various Android functions refuse to work when an overlay is present. This includes apps asking for permission, installing apps, etc. The app attempts to detect these situations and automatically turn off the filter. If you spot a situation where the filter is not automatically temporarily disabled, please let me know.
Faced this situation today, which puzzled me greatly till I realised that this was due to this app. I rented a movie on you tube and it didn't show video but audio was fine. Other free videos are working fine. After disabling the day time filter, it worked. Guess there is some install like mechanism that is not detected by this app. I Trust this input helps in improving the app (sorry, didn't check if this was earlier reported)
 

Ch3vr0n

Senior Member
May 6, 2009
1,693
668
41
Try it and make up your own mind. What one user may find superior, you may find inferior.

Sent from my Nexus 6P with Tapatalk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 298
    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.

    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 unlocks notification options. It also enabled Tasker integration.

    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.

    Drivers

    CF.lumen currently supports three driver backends to adjust the display: the original CF.lumen driver, the KCAL kernel driver, and the rootless (non-root) overlay. See the driver section below for further details.

    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.

    Performance characteristics change based on the driver you are using. See the driver section below for further details.

    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 5.0 Lollipop or newer!

    Screenshots
    128
    Walkthrough video


    GIF

    cflumen-small.gif


    Drivers

    CF.lumen currently supports several driver backends to adjust the display: the original CF.lumen driver, the KCAL kernel driver, the PCC/RGB kernel driver, and the rootless (non-root) overlay. Driver selection will only be presented to you if multiple drivers are actually supported on your device.

    Drivers: performance background

    Software compositing is when your device takes the different surfaces on screen (the app's display, the status bar, the navigation bar, a popup window, these are all surfaces), draws them into a single buffer, then lets the hardware display this buffer. Virtually all modern devices can also do hardware compositing, where these different surfaces are presented to display hardware themselves, skipping one drawing step. It should be noted however, that hardware compositing only supports three surfaces (usually), so only the most basic scenes can be rendered this way. If more than the number of supported surfaces are displayed, the system falls back to software compositing automatically. Performance is slightly lower when this happens, but it happens all the time, and I doubt you've ever noticed it without looking for it.

    One specific note about this is that "secure" content (DRM protected video rendering, for example) can only be hardware composited, as the software is not allowed to gain access to the surface. So if you are experiencing video disappearing, it's because the system has switched to software compositing. This can be due to CF.lumen's driver, a color overlay, or even just a system popup pushing the number of surfaces beyond the number of supported surfaces by the hardware compositor.

    Drivers: CF.lumen

    The CF.lumen driver requires software compositing, as it changes the colors displayed during the software compositing step. Of course, it lets the system go back to hardware compositing if it's not actively changing colors. This can slightly impact performance.

    This driver changes colors on the surface content level, and can perform all sorts of calculus before deciding what to display. This usually gives it the highest possible image quality output. For example, in the color channel modes (red - night mode, green, blue, amber, salmon), the image is first converted to a luminance-based grayscale image, and then output in the selected color channels. This dramatically improves clarity and detail over only displaying the selected channels. Taking red mode as an example, this means that green and blue image content still shows up in a shade of red, whereas normally all colors devoid of a red component would show up as full black. Because of the surface-based manipulation, the invert filter may sometimes show unexpected results.

    This driver affects both full-screen screenshots as well as app screenshots. Aside from normal screenshot/cast purposes, these are also used by the system for animations and in the recent task lists, and thus it may sometimes appear like a filter is applied twice during rotation or while browsing the tasks list.

    Since v3.65 this driver comes in three different modes:

    Drivers: CF.lumen: Compatibility mode

    This driver mode should work on virtually all devices out there, however, on many firmwares it comes with an extra large performance penalty. Rendering quality is generally excellent, but various internal actions of Android itself (such as screen on, pattern unlock, app install, etc), as well as any app that triggers Android's accessibility options, may temporarily interfere with the rendering. This can cause a flash of the original colors being shown, instead of our manipulated colors.

    Drivers: CF.lumen: Performance mode

    This driver mode overrides Android's rendering system in a different way. While it doesn't work on all devices and firmwares, if it does work, it is often significantly faster than the compatibility mode. It also doesn't suffer from short flashes of the original colors being shown. This mode causes visible artifacts on some devices, though it isn't common.

    Drivers: CF.lumen: Anti-flicker mode

    This driver mode is a hybrid of compatibility and performance modes. It uses the same subsystem as performance mode, and thus it doesn't work on all devices and firmwares. This mode keeps the rendering from compatibility mode, but attempts to prevent the short flashes of the original colors being shown.

    Drivers: KCAL

    The KCAL driver is quickly becoming a popular kernel mod for Qualcomm devices. It allows color adjustments in the display hardware itself. There is no performance difference with this driver, but of course your kernel must support it. This is the fastest driver.

    This driver changes colors on the display level, and is limited in the operations it can perform. It is fast, but the image quality can be less. In color temperature modes (probably your most used mode) there is no difference with the CF.lumen driver. In the color channel modes however, there is no luminance conversion. If you select for example the red mode, you will only see the red component of colors. Pure blue, pure green, or any color which is a mix of blue and green but not red, will appear black.

    A gamma correction option is available for this driver. Some devices automatically gamma correct the values CF.lumen gives the kernel, the app needs to know about this, so it can take this into account in its calculations.

    This driver affects neither full-screen screenshots nor app screenshots. It does not support the colorblind filter.

    Drivers: PCC/RGB

    This driver is very closely related to the KCAL driver, as they use the same hardware, so please read that section. Some kernels provide support for one but not the other. If both are supported, KCAL generally gives you a few more options than PCC/RGB, but there is no performance difference between the two.

    This driver does not support the grayscale, invert or colorblind filters.

    Drivers: rootless

    The rootless fallback driver (for non-root users) uses a color overlay. This is an additional surface, causes at least one additional expensive full-screen rendering step, and is likely to throw your system into software compositing mode most of the time. This is the slowest (and ugliest) driver.

    Image quality wise, it is no competition for the other drivers, but not everyone has root. Like the other screen color tint apps on the market (there are quite a few, and while CF.lumen is older than all of those, it is certainly not the best known or most popular one), a color overlay is used. Where the other drivers properly manipulate the displayed colors, this driver is more like putting a half-transparent colored sheet over a picture. While it somewhat does the job, it lowers contrast significantly.

    On Android 6.0, various Android functions refuse to work when an overlay is present. This includes apps asking for permission, installing apps, etc. The app attempts to detect these situations and automatically turn off the filter. If you spot a situation where the filter is not automatically temporarily disabled, please let me know.

    This driver affects only full-screen screenshots (but not full-screen animations), not app screenshots. It does not support the grayscale, invert, or colorblind filters.

    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, v2.50: 546, v2.60: 39, v2.61: 132, v2.66: 27, v2.71: 563, v2.74: 388, v2.75: 1042, v3.00: 4320; v3.65: 1376)
    50
    Changelogs

    2020.12.22 - v3.74

    - (c) 2020
    - Remove references to G+
    - Android 11 support
    - Android 10+: Show warning about notification options not working
    - Android 10+: Disable rootless mode
    - Android 10+: Disable advanced/injection/anti-flicker/performance driver (needs further investigation to make work)
    - Add foreground service permission
    - Built for API 29
    - Fix notification spam issue
    - Fix maps crashing

    2018.12.20 - v3.72-TEST
    - Pie: Fix soft-bar transparency
    - Pie: Fix boot-up launch
    - Pie: Fix maps not working
    - Pie: Fix greylist violations
    - Oreo/Pie: Fix notifications
    - Fix Magisk detection / root warning
    - Fix system settings modification permission handling
    - Fix location permission handling
    - Fix performance driver injection on some 7.0 devices
    - Fix several deadlocks
    - Add option to detect which driver mode is the fastest
    - Support for new KCAL paths
    - Replaced root sockets with Binder-based IPC
    - Removed colorblind options (available in Developer Options on all recent devices)
    - Greyscale/Saturation filter: allow up to 2.0x factor (oversaturate)

    2018.11.28 - v3.71-TEST
    - (c) 2018
    - Basic Pie fixes (far from complete!)
    - Updated libsuperuser and librootjava
    - CF.lumen performance driver: fixed injector for newer Android versions

    2017.02.09 - v3.70
    - (c) 2017
    - Upgrade grayscale filter from a toggle to a saturation slider
    - CF.lumen driver: fix 'performance mode' on Nougat (bypass new linker protections)
    - CF.lumen driver: fix darken filter math issue (still doesn't work on invert, though)

    2016.03.30 - v3.66
    - CF.lumen driver: smoother filter switching
    - CF.lumen driver in Performance mode: fix disable hardware overlays option sticking when CF.lumen is disabled
    - Tasker: fix black screen on filter selection
    - Tasker: fix brightness change on filter selection

    2016.03.01 - v3.65
    - Reworked raw remote control receiver
    - Fix logcat spammed with notification errors regarding a missing icon
    - Fix issue with "Bright light" setting
    - Fix flicker on location update
    - Reduce frequency of notification updates
    - Add color checker to rgb/custom and temperature filter selection dialogs
    - Underlined numbers next to sliders can now be tapped to input a text value
    - CF.lumen driver: fix not closing properly when switching to KCAL
    - CF.lumen driver: better monitor accessibility settings
    - CF.lumen driver: added anti-flicker and performance modes
    - KCAL driver: add gamma correction feature
    - KCAL/CF.lumen drivers: Tune color temperature algorithm
    - PCC RGB driver added
    - Add "Darken filter" setting to "Brightness" option (sub-zero)
    - Made "Brightness" setting on filter selection an icon
    - Moved "Auto-update location" option to the Map activity

    2016.02.18 - v3.62
    - Fix driver not initializing on various devices

    2016.02.17 - v3.61
    - Slight performance improvement in root driver
    - Change timeout handling code in root service
    - Fix background ANR

    2016.02.16 - v3.60 - RELEASE NOTES
    - Play release of v3.53

    2016.02.16 - v3.53 BETA
    - Add notice to reboot first after installation if old driver found
    - Fix some options in the settings screen not being disabled when they should be
    - Adjust light sensor calibration texts and min/max values
    - Add option to auto update location (enabled by default, passive listener, no power use)
    - Add welcome message

    2016.02.13 - v3.52 BETA
    - Fix issue with system-based SuperSU
    - Fix old driver not always being reset when switching drivers
    - Fix KCAL driver not always resetting when setting to disabled (screen power cycle also works)
    - Fix rootless overlay being applied twice on service restart
    - Periodically and on certain actions, reset color matrix

    2016.02.08 - v3.51 BETA
    - Fix grayscale channel rendering
    - Allow master mode without location
    - Improve Marshmallow doze/standby handling
    - Fix filters sometimes not showing on initial setup in Rootless mode
    - Added warning if drawing over other apps is disabled in M+Rootless mode
    - Added capability to detect permission dialogs and hide overlay in M+Rootless mode

    2016.02.08 - v3.49 BETA
    - Should work again on MIPS
    - 4.4 support dropped, now 5.0+
    - Fix FC on SuperSU prompt
    - Completely new CF.lumen driver code
    - Improved driver switching
    - (C) 2016

    2015.10.28 - v3.16
    - Detect Enforcing SELinux without supolicy availability and warn user

    2015.10.27 - v3.15
    - Fixed a case of the new root driver not being injected (and thus nothing happening)

    2015.10.26 - v3.11 BETA - RELEASE NOTES
    - Fixed freezing issue
    - Fixed Note5 (and others?) support

    2015.10.19 - v3.10 BETA - RELEASE NOTES
    - New root driver method
    - Adjusted slider layouts
    - Dropped MIPS support :(

    2015.02.24 - v3.00 - RELEASE NOTES
    - (C) 2015
    - Added KCAL driver (see XDA thread for details)
    - Added Rootless driver (see XDA thread for details)
    - Added freeload option
    - Backuptool script updated (requires un-/reinstall of driver to become active)

    2014.12.22 - v2.75
    - Change notification flags
    - Fix driver detection issue which could lead to bootloops on devices with symlinked busybox
    - Work-around one case of bootloops, detect that case, and warn about it

    2014.12.02 - v2.74
    - Fix remote control issue

    2014.11.19 - v2.72
    - Fix issue with in-app billing

    2014.11.14 - v2.71
    - Hide notification from (secure) lockscreens on L
    - Check free space before installing driver

    2014.11.06 - v2.70
    - Tasker integration (Pro only)

    2014.11.05 - v2.66 - RELEASE NOTES
    - Android 5.0 fixes
    - 64-bit fixes
    - Performance improvement

    2014.10.22 - 2.61
    - Fix UI bug where settings wouldn't open sometimes

    2014.10.22 - 2.60 - RELEASE NOTES
    - Fixed a name issue with the recovery installer
    - Automatically restart service when app is updated
    - Expanded theme options, including material (basic)
    - SELinux policy patches for LPX13D
    - Experimental support for arm64, x86-64, mips64

    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
    39
    v3.72-TEST

    Another test version. Not everything I wanted to fix/add has been done, but my day is over :)

    This test version brings dozens of fixes to Oreo and Pie UI handling and background service operation. I think most issues should now be fixed, but please report back your findings (it's not a TEST release for nothing). Some additional performance driver fixes, some deadlocks fixed, completely untested support for those new KCAL paths. Better Magisk support too. Colorblind options have been removed as these are available from developer options on all modern devices. The greyscale/saturation filter can now also over-saturate instead of just under-saturate.

    In other words, a lot of small things that together took a lot of time to do. Unfortunately still no redesign of the notification options or adding quick settings. I had hoped to have time left today for that, but it'll have to wait some more.

    Compatibility vs Performance mode revisited

    Regarding my statements of Compatibility vs Performance mode of the previous test release ( https://xdaforums.com/showpost.php?p=78282459&postcount=2084 ), I've done some more research, and it seems to be impossible to devise a simple test that shows you which of the modes is faster, nor is it possible in a proper cross-device way for the app to detect.

    My earlier assumption that using Netflix to show DRM content would work was wrong. Android 7.0+ now has a path through the graphics pipeline that does allow GPU compositing with DRM content, if your device supports it, so it is no longer invisible.

    I've added a button that runs some tests and attempts to determine internal surfaceflinger state to see if GPU or HWC compositing is used. If the app can determine this, it will tell you which mode is advised. If not, I would personally advise to just use Compatibility mode on any mid-to-high-end device that shipped with Oreo or newer.


    EDIT: Download updated, initial download crashed on run. No idea why, just cleaned/rebuilt it and it works now :/
    34
    I'll look into the scheduling again when I have the time, hopefully before new year.

    I'm hammering on the Android version because in 8.0 and 9.0 they made a lot of changes to background processing handling. And CF.lumen is 99% a background service so this messes everything up quite thoroughly. So if you're having an issue, being on 7.0 makes a world of difference to being on 8.0 or 9.0.

    While great for battery life and overall performance, the changes they made run very deep. In upgrading CF.lumen's build, Android is now treating it as it were built for Oreo+ and enforces the full might of its oppression. It may well be another test release or two before I have the timing kinks worked out.

    The roots of CF.lumen are quite old, and though I put a lot of effort into having it use as few resources as possible, its design does not match well with Android's new methodology. Fixing these problems is not that big of an issue, but figuring out exactly where things go wrong is time consuming; especially with services that are based on the time of day, and Android using a lot of timeouts to decide what to do when. I can't simply make a change, run it, and consider it a good test - everything has to be closely examined and run (and monitored!) for a couple of days to know if the changes help or not. Behavior changes with screen on/off state and charging or not charging (or even connected) as well, so you can imagine how frustrating this is.

    Major overhauls like these are periodically necessary, but Google has thrown them at us devs every year or two. And having to redo half the innards of half the apps every year because Android is about as stable as a pink-haired teenager is one of the reasons I lost my passion for working on Android. And this has to be a labor of love, because it certainly doesn't pay the rent :)

    Keep close track of what does/doesn't work. When the screen should've changed but didn't, or did change but shouldn't have. Was the screen off for a long time? Was USB connected or not? Make sure you exclude CF.lumen from battery optimizations (though I hope it will run eventually without needing this) only in case of problems (and note if it is effective), and report back your findings including details of your setup. And please be patient while I try to fix it.