yashsingh1/xdaforums huggingface dataset:
[Touch Cruise ROM Development] khaledelfeki:
spb mobile shell is a good program, but still I prefer to use pointui.

I have both programs installed in my htc cruise.
[Touch Cruise ROM Development] Uncle_CM:
It is a news ... Your Thread is about the Version 1.5a (released on 2-May-2008) ... This Thread reffers to Version 1.51a which is released on 6-May-2008 ;) ...

Thanks ... i downloaded the v1.5a and didnt realised that v1,51a is available :D
[Samsung Galaxy S8 Questions and Answers] Philipp_94:
After I updated to Android pie, I hat the moisture in USB port warning twice in a week.

The phone never gets near water, because I think that water is always bad for a phone, even if it has a "waterproof" certificate.

So did anyone else got this bug after the android 9 update?

Phone is on newest fw, G950F
[Samsung Galaxy S8 Questions and Answers] TheMadScientist:
People have been having this issue since the start. Try cleaning out the port with a sewing needle. Maybe try a reinstall of the update.
[Samsung Galaxy S8 Questions and Answers] Philipp_94:
Thanks, there was some dust and I think that caused the problem. I had dust in before but never faced this issue.
[Samsung Galaxy S8 Questions and Answers] callumbr1:
Had this issue on nougat and Oreo too, disappeared after flashing custom ROM
[Samsung Galaxy S8 Questions and Answers] novahob:
Got this on the weekend, yes I was in the bath with my phone but nothing new there that I've done over the last 15 months with the phone. I did clear USB settings and restarted and it went away for a couple of days. Then charged my phone with cable (usually wireless charge) and all is ok. I take out cable and message appears. Now 2 days later still have moisture message! Updated to pie today thinking it might go away but no luck. I've minimised the notification and removed it from lock screen but doesn't help now that I can't connect phone to laptop to transfer files.
[Samsung Galaxy S8 Questions and Answers] novahob:
So managed to get a little dust out, restarted phone, notification gone. Plug in charger for 5 seconds, all ok, remove and then plug back in, all ok. Left it to charge 30mins removed cable, up pops moisture notification, are you kidding me! The phone was nowhere near water and it wasn't humid in my house. This has got to be a hardware/software bug. Owned the phone 18 months and never had this before.
[Android Software/Hacking General [Developers Only]] tanish2k09:
TODO :

Add custom-minute support

Add full-smooth scaling algorithm that actually scales from node to node to make the shift smoother

Add a third "intelligent" mode that uses both time-based and brightness-based values to magically come up with an RGB set that's perfect for that environment

A grayscale feature, that maybe also would support a yellow tint over it, so it's like a grayscale night mode.

Telegram support?

Yeah yeah, I know. Telegram links are common now. In compliance with the xda rule of "Only one TG link per thread" that I saw on some other sub-forums, maybe a link would be fine but mods can remove it per will.

Here's the official klapse telegram group, with commit notifications too:

t.me/klapse or from within telegram you can just join klapse but with an @ in front of it (I didn't use it to prevent an unintended mention to some person)

Notes :

I'm open to any other contructive feedback or suggestions

Klapse doesn't conflict with night mode of Android. They both can work TOGETHER, the result would be an overlap of both their colors.

Credits :

I pretty much wrote all the code for k-lapse myself, but it would be useless without these awesome people who put it to use -

[MENTION=3910111]pappschlumpf[/MENTION] for getting k-lapse working for the first time on any snapdragon device, with Smurf kernel for OnePlus 6

[MENTION=5687366]Eliminater74[/MENTION] for tips along the way, very helpful

[MENTION=1211160]HolyAngel[/MENTION] for a collab to add support to HolyDragon, and indirectly SkyDragon, and suggesting some tunable structuring

[MENTION=6924186]rupanshji[/MENTION] for the commit used for an example of a structured kcal implementation

[MENTION=4684315]flar2[/MENTION] for debugging and adding k-lapse support to his app EX kernel manager, purchase the app here - EXKM
[MENTION=3292224]franciscofranco[/MENTION] for adding k-lapse support to his app Franco Kernel Manager, purchase the app here - FKM
[Android Software/Hacking General [Developers Only]] tanish2k09:
Screenshots

Screenshots from EXKM v4.04, Mixplorer and FKM v4.0 have been attached.

Note that these screenshots were taken while v4.3 was the active version. May change in future.
[Android Software/Hacking General [Developers Only]] tanish2k09:
It's pretty common now

[MENTION=4392154]apophis9283[/MENTION] Seeing you're one of the mods here, would you please be kind enough to delete the other 3 clones of this thread that got created due to XDA request failure?

Also, in case this thread is in the wrong sub-forum, please feel free to move it to the correct one but notify me via PM or email. Many thanks :D
[Android Software/Hacking General [Developers Only]] Ryano89:
Been using this on Smurf kernel for awhile now. Absolutely love it. Great job.
[Android Software/Hacking General [Developers Only]] david72262:
Glad your work is posted on XDA now works good in sky dragon.
[Android Software/Hacking General [Developers Only]] Tomatot-:
Great alternative to night mode that does way more than that if you're interested in other features.

It's lightweight and won't bloat your system at all.

Any proper kernel should include this as there are only benefits and no drawbacks. 8)

As a last addition/compliment/support: it's been very well maintained and as you can tell just from reading OP, the dev is friendly and will help you if you have issues with it.
[Android Software/Hacking General [Developers Only]] akiwiz:
On Smurf kernel on op6. I have the gray scale option on digital wellbeing in the night and after switching on this mod (light mode) it automatically turns off the gray scale. Is it a bug?
[Android Software/Hacking General [Developers Only]] tanish2k09:
It is not a bug, it's actually expected behaviour.

First of all, we both know that the screen can't be both grayscale AND have a yellow tint at the same time, because yellow isn't gray.

Only one of them can stay active. The fact that klapse works from the kernelspace makes klapse more powerful. As soon as klapse refreshes, which happens every 30 seconds by default, the grayscale RGB will be overridden.

It also depends on how digital wellbeing's grayscale option works. I'm assuming it uses the same HWC HAL that android uses, but I have not the slightest clue. In case I'm right, both klapse and grayscale will work together to give you a black-n-white + slight yellow tinted screen.

As an alternative, how about I add grayscale as a feature to klapse itself? I can't add it to klapse right away but I can mark it in my TODO post above. Sounds good? Maybe I can come up with a solution that overlaps the grayscale with the yellow tint to create a grayscale night mode?

I don't know about you but it seems like an amazing idea to me :D
[Android Software/Hacking General [Developers Only]] akiwiz:
Thank you for the explanation ? is there a way I can switch off klapse at night when grey scale from digital wellbeing kicks in? Also your alternative would be ideal if it's possible in future! Thanks again
[Android Software/Hacking General [Developers Only]] tanish2k09:
A tester just told me that klapse's yellow tint worked on gray-scale too.

But to answer your question, the only possible solution is to either disable Klapse or keep the schedule of start and stop outside the range of grayscale's schedule.

Btw I totally recommend you to use Klapse at night because yellow tint in the dark is better than grayscale to look at :)
[Android Software/Hacking General [Developers Only]] akiwiz:
So I need EXM to set a schedule start?
[Android Software/Hacking General [Developers Only]] tanish2k09:
EXKM is one way. You can create your own tunables in Franco kernel manager too like. Here's a couple screenshots of an example.

You can use those same paths in kernel adiutor too. I haven't talked to the dev for klapse support yet, maybe I should but next weekend probably.

You can also use a file manager to change those files. Remember that pretty much everything in /sys is rebuilt during each boot so all values reset. That's why an apply-on-boot method is used for fixing values.

Info for which file does what is in OP.
[Android Software/Hacking General [Developers Only]] maigre:
This doesn't seem to work for me. OnePlus 6 with xXx NoLimits and Smurf Kernel. Latest stable versions for all. I have changed settings with EXKM and rebooted multiple times. /sys/klapse files accurately reflect the settings in EXKM. Setting K-Lapse alternately to time and light have failed to demonstrate any color changes as would be expected from the settings. I turned off the phone's night mode so that I can see more purely what K-Lapse does.

Thoughts?
[Android Software/Hacking General [Developers Only]] tanish2k09:
I'm guessing you're using the wrong display calibration mode.

On the OnePlus 6 stock ROM it only works with custom and adaptive display modes in settings.
[Android Software/Hacking General [Developers Only]] maigre:
That was it exactly. Thanks!
[Android Software/Hacking General [Developers Only]] majikfox:
I can't find any settings for K-lapse in the latest EX Kernel Manager. I went through every section of the app. No K-lapse settings.
[Android Software/Hacking General [Developers Only]] maigre:
Tools > Color Control > K-Lapse Settings
[Android Software/Hacking General [Developers Only]] majikfox:
Nope. Not there.
[Android Software/Hacking General [Developers Only]] tanish2k09:
I don't own EX kernel manager yet but I was given a v4.04 build to test, and it was under Graphics > Klapse-settings

They'll obviously only show up if the kernel supports it.

Also, some users reported that the update isn't live for them yet, so you may have to wait. That's not in my control either and flar2 handles EXKM.
[Android Software/Hacking General [Developers Only]] majikfox:
I'm using the latest version of EX kernel (downloaded through the EX Manager app).

I have v4.04 of the app.

The options listed in Color Control are as follows:

---

Apply on boot

Greyscale

Red

Green

Blue

[ a box of color squares]

Saturation

Value

Hue

---

The word "K-lapse" does not appear anywhere there nor anywhere else in the app.

Is this because the latest version of the EX kernel doesn't support K-lapse?
[Android Software/Hacking General [Developers Only]] tanish2k09:
You did not once mention your device and EX kernel is available for many devices. There is no way for me to confirm that without knowing which device you're talking about.

Last time I checked, EX kernel for Pixel 3/XL and OnePlus 6/t had an update with klapse support, others will probably be updated soon after.
[Android Software/Hacking General [Developers Only]] akiwiz:
So without EXKM we can't schedule a time for klapse to come active?
[Android Software/Hacking General [Developers Only]] tanish2k09:
Yes you can. The required values are in /sys/klapse path and the files are klapse_start_hour and klapse_stop_hour.

Similarly there are two hour files for brightness factor as well.

This was mentioned in the OP.
[Android Software/Hacking General [Developers Only]] Ryano89:
Graphics, scroll down, it's there, I'm using Smurf kernel
[Android Software/Hacking General [Developers Only]] 93ae8074:
Thank you so much for this. I am using it on my Pixel 3 XL on Kirisakura kernel with a Tasker profile to update sunrise and sunset times based on my location. Works like a charm!
[Android Software/Hacking General [Developers Only]] 93ae8074:
klapse_scaling_rate, I have it set to 300 minutes by default in Kirisakura kernel, is it correct? Makes any sense? Do you have any recommended RGB values?
[Android Software/Hacking General [Developers Only]] akiwiz:
But every reboot the values change.
[Android Software/Hacking General [Developers Only]] tanish2k09:
No Kernel values remain the same on reboot. Sysfs is NOT permanent storage, all files are inflated by the kernel on boot and set to default values.

That's why Kernel managers use an "apply-on-boot" service to change the values back.
[Android Software/Hacking General [Developers Only]] Maverick Jester:
[MENTION=5913332]tanish2k09[/MENTION] could you perhaps explain what start transition animation does? Sorry if I missed this in the OP.
[Android Software/Hacking General [Developers Only]] tanish2k09:
Start transition duration in EXKM is equivalent to klapse_scaling_rate in OP.

It controls how long should it take for the normal daytime colors to reach your set values for RGB.

By default klapse_start_hour is 5pm and klapse_scaling_rate is 300 minutes. This means that daytime_rgb will start scaling at 5pm, and will reach full effect by 10pm (300 minutes later), and then stay like that till fadeback_minutes or End transition minutes before stop_hour.

On reaching towards the end, the colors will shift back to normal slowly within fadeback_minutes before klapse_stop_hour.
[Android Software/Hacking General [Developers Only]] Maverick Jester:
Thanks for the thorough explanation. This is very cool stuff indeed.
[Android Software/Hacking General [Developers Only]] maigre:
A week or so in, I'm enjoying using K-Lapse via Smurf Kernel on my OP6. For me, this is preferable to OS's night light or any of the other apps I've used for this purpose. I look forward to its evolution. Thanks, tanish2k09!
[Android Software/Hacking General [Developers Only]] tanish2k09:
Much appreciated, glad to hear that :D
[Android Software/Hacking General [Developers Only]] joedajoester:
Is there any way to adjust the display gamma to alleviate black crush on the pixel 2 XL with this mod? There currently doesn't seem to be any values that would affect the display besides RGB values.
[Android Software/Hacking General [Developers Only]] tanish2k09:
I'm not sure what black crush is on the pixel 2XL, but you're right that klapse only changes RGB.

I've never used that device so I have no idea about that I'm afraid. You might be better off consulting one of your device's devs with this :)
[Android Software/Hacking General [Developers Only]] thecoolkid:
Ooohhh, so this isn't an external module that can be loaded on any (stock) kernel (is that even possible?) and it actually has to be incorporated inside the kernel? I was hoping for something for my cheap Chinese Chuwi tablet that wouldn't slow it down.
[Android Software/Hacking General [Developers Only]] tanish2k09:
Yes the module need to be compiled into the kernel.

Integrating external modules to a kernel is possible in a limited sense, but I don't think jiffies are externally available so time functions would not work, which pretty much renders K-lapse non-functional.

It definitely doesn't slow down devices though :)
[Android Software/Hacking General [Developers Only]] thecoolkid:
Yeah, but some manufacturers still doesn't release kernel sources ? thx for the quick answer though ?
[Android Software/Hacking General [Developers Only]] bagajohny:
Noob question but how to use this mod?
[Android Software/Hacking General [Developers Only]] tanish2k09:
The source needs to be compiled into the kernel, which then would give you options in /sys/klapse on booting the kernel. The options are listed in OP.

Those values can be written to manually, or a kernel manager like EXKM or Smartpack Kernel Manager (based on KA) can be used to fine-tune klapse to your personal preference.
[Android Software/Hacking General [Developers Only]] samyeh9999:
Is it work in x86 CPUs (like Atom Z3580 on Zenfone 2) ?

I'm trying to porting your great project to my Zenfone 2
[Android Software/Hacking General [Developers Only]] tanish2k09:
Not entirely sure, might cause freezes. Again, not sure about that, might even work fine idk :confused:
[Android Software/Hacking General [Developers Only]] samyeh9999:
thk for reply, i guess i have to find RGB interface variable in source code first

at least i know it's possible now, haha
[Android Software/Hacking General [Developers Only]] Neutralite:
Is there a screen sharpness setting?

Do you have a .zip or apk with screen sharpness setting if you don't?

I'd appreciate it if you could help me a lot.
[Android Software/Hacking General [Developers Only]] tanish2k09:
That's probably a function of KCAL, not K-lapse.

K-lapse only deals with time and scaling, the color control part is all KCAL
[Android Software/Hacking General [Developers Only]] Neutralite:
I'm currently using LineageOS and KCAL doesn't have a sharpness setting.

The KCAL settings of other ROMs also do not have the sharpness option.

Do you know an application that makes screen sharpness?

I want to sharpen the Le max2 display is a bit blurry even though it is 2K.
[Android Software/Hacking General [Developers Only]] tanish2k09:
Nope, not really
[Android Software/Hacking General [Developers Only]] Watanabe_You:
So just to clarify:

1. if I use start time at 6pm and duration at 30m, it will begin to move towards target RGB at 5.30pm?

2. if I use stop time at 7am and duration at 30m, will it move towards target RGB at 6.30am?

Also, is it possible to implement based on location so that sunset and sunrise is more accurately and automatically calculated?
[Android Software/Hacking General [Developers Only]] tanish2k09:
1) If you set start to 6pm and duration to 30min, it will move towards target RGB at 6pm and reach target by 6:30pm

2) If stop is 7am, and duration is 30min, it will start scaling back from target RGB to daytime or "normal" at 6:30am and will reach full white at 7am.

No location is not an intended function inside the kernel, even if it was possible in the first place :)
[Android Software/Hacking General [Developers Only]] Maverick Jester:
[MENTION=5913332]tanish2k09[/MENTION] me again. Sorry for the trouble.

Firstly, is is possible to implement K-Lapse in a 24 hour cycle, e.g. klapse_start_hour and klapse_end_hour being the same?

Or is the limit a 23 hour cycle (e.g. klapse_start_hour = 7 and klapse_end_hour = 6)?

Finally, can fadeback_minutes = 0? Or is 1 the minimum value?

Secondly, building on the above questions, I'm trying to implement the following scenario, but it's not working as I expect it to. I'm trying to use K-Lapse in conjunction with the Digital Wellbeing greyscale function as follows:

K-Lapse set to start at 7 (7am), and end at 22 (10pm).

Digital Wellbeing set to kick the greyscale in from 10pm, and end at 7am.

Dimming set to start at 10pm as well, so that I effectively have my screen set to greyscale and dimmed until K-Lapse RGB tuning kicks back in.

klapse_scaling_rate set to 840 (thus, it should scale from 7am and reach full value at 9pm).

fadeback_minutes set to 0 (because it doesn't need to go back to normal prior to hitting greyscale).

The main problem I have, is it appears that the K-Lapse pulsing disables greyscale after a few minutes. Perhaps this is expected behaviour (which I suspect it is, as I do understand the dimming works on the basis of scaling the daytime_r/g/b values), but I would like to confirm. Does this mean that I cannot have dimming enabled with this setup, and should rather set enable_klapse = 2 and work with brightness mode?
[Android Software/Hacking General [Developers Only]] tanish2k09:
For now 23-hours is the max active time of k-lapse in time mode. Fadeback minutes can be set to 0.

Everything you said is correct, and pulse overriding gray-scale happens because gray-scale isn't changing the RGB in KCAL, so klapse thinks that the screen is still the RGB stored by KCAL values, so it uses them to calculate the reduced RGB set and apply it.

I'm thinking of pushing a small update where klapse pulse doesn't change the RGB outside of active period.

Sometime later I'll also try adding a gray-scale option in klapse.
[Android Software/Hacking General [Developers Only]] GollyJer:
Hi. Thanks for the awesome MOD!

I'm having one strange issue. If I set RGB to 256-0-0 then come back into EXKM and check the settings RGB is always reset to 256-20-24.

I can never get a pure red screen at night.

Is this a bug or intentional behavior?

Thanks!

Jeremy
[Android Software/Hacking General [Developers Only]] tanish2k09:
Kcal (in most device implementations) doesn't allow values less than 20, neither does klapse. This is probably a safety measure because many users are stupid and might set everything to 0 causing a black screen.

In short, this is intended behavior.
[Android Software/Hacking General [Developers Only]] nvmnghia:
Is it possible to somehow implement the calibration capability with the tools at hand (your code and KCAL)? Thanks for reply, I'm searching such information for quite a long time.

Edit: I mean a proper color calibration with icc profile.
[Android Software/Hacking General [Developers Only]] tanish2k09:
It might be possible but I'm not entirely sure what exactly you're looking for. KCAL, as the name suggests, is for screen calibration. K-lapse on the other hand, has no relation to calibration, but rather has a dynamic scaling purpose.

The actual color code is within gamma/KCAL implementation, and the k-lapse code is merely logic to combine different variables like time, brightness and color sets.

From what little I understand from your post, I'd suggest you're looking for something more KCAL-related ??
[Android Software/Hacking General [Developers Only]] tanish2k09:
Franco Kernel Manager now supports K-Lapse as well, screenshot added in OP #3

It's also on sale for a few days, you might wanna grab it if you haven't already :)
[Android Software/Hacking General [Developers Only]] lashlaro:
:good:
[Android Software/Hacking General [Developers Only]] GollyJer:
Where would I go to put in a feature request?

KCAL or klapse?

I would suggest not limiting one of the rgb going below 20 but allowing the other two. This way a user can't shoot themselves in the foot by going to all black but they can go all red, blue, or green if desired.

Even my Samsung TV can do it!

Surely this phone I have complete control over can. ?
[Android Software/Hacking General [Developers Only]] tanish2k09:
The min value is set by KCAL and is not a part of k-lapse. While what you say is indeed possible to achieve with a few if statements in the code, it is not my responsibility under klapse to add those. Instead, you should try asking the kernel maintainer to change the kcal settings.
[Android Software/Hacking General [Developers Only]] GollyJer:
Cool. Will do. Thanks. ?
[Android Software/Hacking General [Developers Only]] GollyJer:
I posted in the Kirisakura kernel thread if you're interesting in following. ?
[Android Software/Hacking General [Developers Only]] ajay1919:
Chimera Kernal for Mi Resume 3s Prime Land, now supports Kcal but after flashing the karnal I can't find any way to tweak it's setting or even know whether it's working or not.

What I need to do?

Is there a user interface or app for this ?
[Android Software/Hacking General [Developers Only]] tanish2k09:
First of all, this is not a KCAL thread.

Second, like for any other kernel feature, you need to use a kernel manager app. EXKM and FKM support klapse AND kcal completely. Free alternatives includes KA mods like Smartpack Kernel manager

Third, your post better belongs to chimera's thread :)
[Android Software/Hacking General [Developers Only]] renascape:
What is the essence of this chip?
[Android Software/Hacking General [Developers Only]] Watanabe_You:
? It's a feature like LOS livedisplay.

Some science stuff: https://justgetflux.com/research.html
[Android Software/Hacking General [Developers Only]] akiwiz:
After a rom update and kernel flash klapse doesn't turn on automatically. Hasn't happened before. Syberia rom with Smurf kernel
[Android Software/Hacking General [Developers Only]] tanish2k09:
You're in the wrong thread then lol, there's nothing wrong with klapse itself :)
[Android Software/Hacking General [Developers Only]] Watanabe_You:
I'm on syberia Pie and it works. It's just a bit slower to start