[K3 Note Original Android Development] tanish2k09:
New Venom build with Dynamic active RGBlapse automation :

Build with gestures :

https://goo.gl/SHhfvL

(Contains highly optimised doubletap2wake, swipe2wake and Trace2sleep with an excellent battery backup)

Build without gestures (for battery lovers) :

*I'm really sorry guys I can't make it until April*

Changelog :

1) Added KSM (to reduce ram consumption and increase performance for memory pages)
Special :
2) First ever build in the world with lineageOS's "LiveDisplay" eye-protecting feature packaged right into the kernel.
3) Poison tunables re-adjustment
4) Gesture parameters (conditional) re-adjustment
5) Fixed a couple really minor bugs of dt2w v2.0 (devs : fixes can be found in dt2w v2.0 git)
6) Added RGB GPU-level brightness dimmer (much better than play store apps)

Info about LineageOS's Livedisplay :

This feature (when set to automatic) will reduce Blue light in display and give the screen a "yellow" look.

This is similar to night mode, but there's a very significant difference.

Night mode goes to yellow instantly, whereas Livedisplay progresses the yellow shift smoothly as the day goes on .

During day, the screen is normal. As evening approaches, the screen starts to become slightly yellow.

From evening to night the yellow colour keeps increasing/deepening.

From night time to morning it will remain yellow, and then finally at early morning the yellow fades away and returns to normal colour.

This feature is extremely useful for people who spend more time looking at the phone's screen.

What's the drawback of LineageOS's Livedisplay feature?

1) It's found only on LineageOS-based ROMs.
2) You cannot customise the time limits of yellowness. It is calculated according to sunset and sunrise only.

What's benefits of the kernel level RGBlapse?

1) It will work on any ROM which has this kernel installed (Even vibe, MIUI, aosp, aex and other non-lineage based ROMs) (Works even with LOS-based ROMs but conflicts with it's ROM-level Livedisplay)
2) You can customise EVERYTHING used to calculate RGB values. If you have a night shift duty, you can even change the time accordingly.
3) Protects your eyes from blue light in evening of course. Blue light disrupts sleeping ability. With yellow light, you can use phone until late nights without compromising sleep.
4) Fully automatic, you don't even need to change anything other than the on/off switch.

Can you show what it looks like?

Sure! Here's the video of kernel-level livedisplay in action (the ROM livedisplay was turned off in video)
[Url]https://goo.gl/BW9nif[/Url]

How to use Kernel-level livedisplay?

1) Boot your ROM with this kernel first obviously.
2) Open a kernel-tuning app like "kernel adiutor" (Btw I'm working with a fellow developer on an app made specifically for Venom. It might be complete after April due to exams)
3) Go to CPU section
4) Make sure the governor is set to Poison.
5) Open poison tunables
6) Find "force_livedisplay".
7) It is default 0 (meaning off). Changing it to 1 will enable livedisplay in your ROM.
8) If you are using lineageos-based roms (like Los, RR, AICP etc) then please keep it to 0.
9) If you are not using lineageos-based ROMs, it is VERY HIGHLY recommended to change force_livedisplay to 1.

How to customise kernel-level livedisplay like you mentioned?

Here is the description of the tunables added in poison to control livedisplay :

1) livedisplay_Start_hour and stop_hour -- define when to start yellowing and by when to restore daytime Colors

2) Target_rgb -- define which RGB values would you like to move towards as day progresses from start_hour to stop_hour

3) daytime_rgb -- controls normal and initial RGB values.

4) force-livedisplay -- just a switch

5) Livedisplay_Aggression -- controls how fast you want to reach the target_rgb. If start_hour is 6pm, and stop_hour is 7am, and aggression by default is 33, then you will achieve target_rgb by 10pm and it will stay there until 6:50am and then smoothly scale up to daytime in last 10 minutes.

6) Brightness_lvl -- It is a brightness scale which will be factored into your current screen brightness to reduce it below minimum levels. Benefits listed below.

What's the benefit of using brightness dimmer in kernel when there are so many apps in play store?

1) In overlay, you can't press install buttons in package installer, and some other stuff which needs you to disable the overlays...
Basically when you disable the overlay the brightness would increase suddenly and you would NOT like it.

2) Also, when you stay up at night in dark using the overlay, when you take a screenshot the SS will be unviewably dark. You might not even be able to see anything clearly.
Let's say you're chatting with your friends at night (it's common nowadays) and you wanna send them a screenshot...
You have the overlay app running and you take a screenshot and send to your friend. What your friend will see in his device is just a superdark pic without any clear details.
You can try that yourself.

But with kernel function, it is not an overlay so even if you have set the brightness_lvl at 3 and take a screenshot, then view the screenshot later in day at more brightness, then the SS will be as bright as the screen brightness at which the was shot!

3) It also saves slight power on GPU functions.

4) Overlays flicker when they overlap navbar and status bar.
Flickering causes eye strain.

With kernel function, no flickering occurs whatever you do.

Special thanks for support and testing to [MENTION=7728516]ash001[/MENTION] and [MENTION=5452883]Cpt.mactavish[/MENTION] and [MENTION=8274337]AryanAA[/MENTION]

P.s : If you have any doubts about latest build, feel free to ask.

But the only condition is that you MUST read the release post (like this) as well as the first posts (OPs)

If you don't care enough to read what I typed, then I'll not care for your question either (in case it is stupid and already answered)

Sensible answers (which also give a feeling that you have read the thread) are more than welcome and will always (sooner or later) be answered.

Have a good day guys. And make sure to use livedisplay to protect those precious eyes of yours.

Thank me later ;)