FORUMS
Remove All Ads from XDA

[APP][5.0+][2017.02.09] CF.lumen v3.70

11,218 posts
Thanks Meter: 86,138
 
By Chainfire, Senior Moderator / Senior Recognized Developer - Where is my shirt? on 9th April 2014, 11:10 PM
Post Reply Email Thread
8th August 2017, 11:58 AM |#1951  
Raijin's Avatar
Senior Member
Thanks Meter: 100
 
More
Quote:
Originally Posted by Infy_AsiX

I found I can use colour calibration as well as location based colour temperature filtering simultaneously via app Lux Auto Brightness. It allows CF.lumen as a plugin implementation which gets around Lux's own buggy and flickering KCAL support. If I set to use the KCAL driver on CF.lumen, I can then use Android's accessibility colour inversion independently on top while still keeping all other modifications.

In effect I can use a custom colour calibration with location based colour temperature filtering and have only the original source data inverted. Eliminating the issue where black text becomes pure white when inversion is enabled and all other modifications get cancelled.

I noticed KCAL's cont and value setting gets reset to 255 somewhere. To force that calibration I set Tasker at boot to write the custom values and then set permission to read only.

Hey,

Fortunately I don't have to use CF.Lumen anymore, at least in a time, because my current phone supports KCAL and I created a control panel with Tasker, but I save your nice explanation to use it in the future. 🙂

Thank you very much! And kind regards.
 
 
8th August 2017, 12:06 PM |#1952  
Infy_AsiX's Avatar
Senior Member
Flag Brisbane
Thanks Meter: 156
 
More
Quote:
Originally Posted by Raijin

Hey,

Fortunately I don't have to use CF.Lumen anymore, at least in a time, because my current phone supports KCAL and I created a control panel with Tasker, but I save your nice explanation to use it in the future. 🙂

Thank you very much! And kind regards.

You're welcome. Oh also the app f.lux has a red filter with invert since that's something you asked about originally. It has a few driver options too. It clashes when enabled simultaneously with CF.lumen but can work.

Sent from my Xperia Z3 Compact using XDA Labs
The Following User Says Thank You to Infy_AsiX For This Useful Post: [ View ] Gift Infy_AsiX Ad-Free
8th August 2017, 12:27 PM |#1953  
Raijin's Avatar
Senior Member
Thanks Meter: 100
 
More
Quote:
Originally Posted by Infy_AsiX

You're welcome. Oh also the app f.lux has a red filter with invert since that's something you asked about originally. It has a few driver options too. It clashes when enabled simultaneously with CF.lumen but can work.

Sent from my Xperia Z3 Compact using XDA Labs

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.
The Following User Says Thank You to Raijin For This Useful Post: [ View ] Gift Raijin Ad-Free
8th August 2017, 12:57 PM |#1954  
Infy_AsiX's Avatar
Senior Member
Flag Brisbane
Thanks Meter: 156
 
More
Quote:
Originally Posted by Raijin

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! Yup I've used SwipePad for launching shortcuts for a long time.
The Following User Says Thank You to Infy_AsiX For This Useful Post: [ View ] Gift Infy_AsiX Ad-Free
13th August 2017, 10:05 PM |#1955  
Infy_AsiX's Avatar
Senior Member
Flag Brisbane
Thanks Meter: 156
 
More
@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
18th August 2017, 01:02 AM |#1956  
pure.by's Avatar
Senior Member
Thanks Meter: 321
 
More
Quote:
Originally Posted by pathologo

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.
18th August 2017, 01:37 AM |#1957  
Senior Member
Thanks Meter: 485
 
More
Quote:
Originally Posted by pathologo

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
The Following User Says Thank You to Ch3vr0n For This Useful Post: [ View ] Gift Ch3vr0n Ad-Free
18th August 2017, 11:02 AM |#1958  
pure.by's Avatar
Senior Member
Thanks Meter: 321
 
More
Quote:
Originally Posted by Ch3vr0n

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.
22nd August 2017, 03:23 AM |#1959  
Senior Member
Flag Seville
Thanks Meter: 26
 
More
Differences between Root mode and kcal built-in kernel??
27th August 2017, 04:19 AM |#1960  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by Icmer

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

Quote:

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

3rd September 2017, 03:36 AM |#1961  
Senior Member
Thanks Meter: 26
 
More
Does this app consume considerable amount of battery ehen active? If so why?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes