Working ROM for running kcal utilities? - Moto G Stylus (Moto G Pro) Questions & Answers

I got a replacement LCD screen and the colors are wrong. Basically the gamma needs adjustment. I saw that kcal-based apps allow for that type of adjustment.
It's my first time unlocking, rooting, and flashing a non-Google device. It was a little complex, but I got HavocOS 4.8 and Magisk installed. However, color adjustment applications say that kcal is not available. Kernel Adiutor also shows nothing. It is possible I've missed some important piece of config, and I'm looking into that in parallel.
Has anyone found a custom ROM whose kernel includes kcal patches for the Moto G Stylus? It would certainly spare me having to flash and root multiple distros if I know one of them works.

Related

[Q] Display Color Correction?

I came to the Charge after a brief stint with the Nexus S 4G. On that device, there was a Voodoo-based kernel available which allowed the user to make adjustments to the color settings of the display. AFAIK, these color modifications are not included in the Voodoo kernel for the charge. Does anyone know whether it is possible to incorporate these in a future kernel and/or whether there is any other method out there to tweak the display?
I looked at incorporating Voodoo Color, but the methods that are modified by the Voodoo Color changes do not exist in our display driver.
imnuts said:
I looked at incorporating Voodoo Color, but the methods that are modified by the Voodoo Color changes do not exist in our display driver.
Click to expand...
Click to collapse
Too bad. Thanks for the quick reply though, imnuts.

[Q] Cpu/Kernel Manager Suggestions?

Hey guys. First off, Apologies if this has been created or discussed before. I have searched before this posting; as I am not big on creating new threads, and the stigma related.
Anyway, On my HTC EVO 3D, I used Kernel Manager, as it had a great layout, allowed cpu/gpu adjustments, AMAZING widget, mpdecision support, ThermalD suppport (I do know the support comes from the kernel, Im saying the app allowed me to customize it), set vsync, color depth, whole nine yards. Im looking for something like it that would work well with the Infinity. Ive noticed kernel manager and ROM Toolbox are both finnicky with the tablet and it doesnt do as well. Kernel tuner works best, still it seems to not get along with the extra 2 CPUS. their governors always revert, it wont display CPU temp properly, no GPU settings, The battery drain is always +/-errmA (i guess error Milliamps) and the widget only displays two of the four CPUS. Anybody have any suggestions, or a solution to make kernel tuner work? Anything is welcomed and appreciated. Thanks in advance.

Stock kernel compatible with Nexus Display Control

Hi,
I just want to know whether there are any kernels out there which is exactly similar to Stock with have the ability to use Display Control? Or are there any ways to add that feature to stock kernel?
Thanks alot
Well, if its a stock kernel it wont have the display control. And if its a custom kernel, it can have it. But the custom kernel will change much more than just adding the screen control. And that the only way to get it, unless you build yourself a stock kernel + display control.
ElementalX lets you choose stock kernel settings in the installer and allows you to change the color profile.

[APP][OPEN SOURCE][ROOT][5.0+] Night Light (KCAL)

Night light is an open-source app which uses KCAL to adjust blue light intensity of the display colors, so that viewing the screen at dark becomes pleasant for the eyes, and help you fall asleep faster (this is what science have proven so...).
Features
Easy to use user interface. Settings are easier to find.
Uses KCAL to adjust screen RGB colors, hence its efficient and changes are seen everywhere on screen.
Supports older KCAL implementations as well as newer KCAL implementation for v4.4 kernels.
Simple color controls for normal users through color temperature control.
Manual KCAL controls for advanced users.
Automation routines lets you define routines where you specify Night Light settings which you wish to apply, and they will be automatically applied for you in specified times.
Intensity fading in/out is supported as part of automation routines.
Supports sunset/sunrise timings.
Set on boot delay.
Original KCAL settings of user is backed up and applied when night light is turned off. And it can be configured as well.
Support for user profiles, which are collections of settings that user can apply with one click.
And to fulfill your all kinds of automation needs, app is supported as a Tasker plugin. You can use it with Profiles.
Option to automatically disable Night Light in lock screen, and turn it back on after the device is unlocked.
Quick Setting tile for easy toggling on/off night light anywhere.
Launcher icon shortcut for toggling Night Light on/off and toggling intensities.
Dark and Light theme.
Advantages
No overlays.
Background service is only used for lock screen option. The entire automation (including the fading) is done using neat AlarmManager tricks (which not only is battery friendly, but memory friendly as well).
Requirements
Kernel supporting KCAL.
Root access.
Download
Source - https://github.com/corphish/NightLight
Wow. Thanks for this awesome app. This is my best daily night light app.
Thanks
sounds good
let me have a try brother......
corphish said:
Night light is an open-source app which uses KCAL to adjust blue light intensity of the display colors, so that viewing the screen at dark becomes pleasant for the eyes, and help you fall asleep faster (this is what science have proven so...).
Features
Easy one touch toggles, with a single slider to tweak blue light intensity.
Quick Setting tile for easy toggling on/off night light anywhere.
Automatic switching on/off night light at user specifed timings. (Limitation - Start time must be lesser in value than ending time, that is if you choose starting time at 2300 hrs and ending time at 0600 hrs (next day) it won't work for now).
Requirements
Kernel supporting KCAL.
Root access.
Download
Source - https://github.com/corphish/NightLight
Click to expand...
Click to collapse
The automatic switch doesn't seem to be reliable. Could you add intents so it can be toggled with Tasker? I already have a profile that triggers at sunset so that would be perfect.
Sent from my Nexus 5X using XDA Labs
Great app, thanks. Have been using CF.lumen until now, but that seems unsupported (and is closed source).
Please keep improving it. Would also like to donate a beer.
Can you explain whats this KCAL thing ??? ??
thanks for this app apreciate it i got ADD and Slightly Autism and i already have an issue sleeping my brain get supercharged and i can't get to sleep but this app helps [email protected]
Loving the app so far, however, I notice it won't trigger at the time I have set unless I manually open the app. I've removed it from Android's battery optimization so I don't think that can be it. Any ideas?
rickysidhu_ said:
Loving the app so far, however, I notice it won't trigger at the time I have set unless I manually open the app. I've removed it from Android's battery optimization so I don't think that can be it. Any ideas?
Click to expand...
Click to collapse
Same here. I forgot to report it. I use Tasker to launch it at sunset & sunrise along with switching between dark / light app themes.
Sent from my Nexus 6P using XDA Labs
yochananmarqos said:
Same here. I forgot to report it. I use Tasker to launch it at sunset & sunrise along with switching between dark / light apo themes.
Click to expand...
Click to collapse
I ended up doing this as well! Now the other thing I'm hoping gets implemented is a smooth transition to the orange hue.
zaibansari20 said:
Can you explain whats this KCAL thing ??? [emoji848][emoji848]
Click to expand...
Click to collapse
Kcal is a kernel tweak that lets you customize colors at lower (kernel) level, so there won't be any filter or layer on screen, but in most stock kernels it isn't available, so you have to find a custom kernel for your phone/rom that has it.
Thanks for the app, but I've used tasker with the command "echo 180 75 35> /sys/devices/platform/kcal_ctrl.0/kcal" for a long time (echo 256 256 256 > /sys/devices/platform/kcal_ctrl.0/kcal to get the color back.)
Obviously you can change the values to whatever you want.
But the app will be much more easy for many people
Envoyé de mon ONEPLUS A5000 en utilisant Tapatalk
J0kker said:
Kcal is a kernel tweak that lets you customize colors at lower (kernel) level, so there won't be any filter or layer on screen, but in most stock kernels it isn't available, so you have to find a custom kernel for your phone/rom that has it.
Click to expand...
Click to collapse
I'm using LineageOS with a custom kernel which allows mein to change RGB values from any kernel modification app...
Sent from my LG G2 using XDA Labs
zaibansari20 said:
I'm using LineageOS with a custom kernel which allows mein to change RGB values from any kernel modification app...
Click to expand...
Click to collapse
So it should work for you, you can try with a kernel manager like kernel adiutor but the app should work.
J0kker said:
Kcal is a kernel tweak that lets you customize colors at lower (kernel) level, so there won't be any filter or layer on screen, but in most stock kernels it isn't available, so you have to find a custom kernel for your phone/rom that has it.
Thanks for the app, but I've used tasker with the command "echo 180 75 35> /sys/devices/platform/kcal_ctrl.0/kcal" for a long time (echo 256 256 256 > /sys/devices/platform/kcal_ctrl.0/kcal to get the color back.)
Obviously you can change the values to whatever you want.
But the app will be much more easy for many people
Envoyé de mon ONEPLUS A5000 en utilisant Tapatalk
Click to expand...
Click to collapse
I tried the Tasker method and it works great. I had no idea that command existed and could be used in Tasker. Thank you for sharing! :good: :highfive:
rickysidhu_ said:
Loving the app so far, however, I notice it won't trigger at the time I have set unless I manually open the app. I've removed it from Android's battery optimization so I don't think that can be it. Any ideas?
Click to expand...
Click to collapse
Does it fail to trigger if a reboot had happened sometime before the time it should have triggered?
For example, if it was to trigger at 5pm, but a device reboot happened in, say, 3pm, then does it fail to trigger at 5pm?
Anyway, set on boot is broken (again), will need to fix it, but normal timers should work fine.
corphish said:
Does it fail to trigger if a reboot had happened sometime before the time it should have triggered?
For example, if it was to trigger at 5pm, but a device reboot happened in, say, 3pm, then does it fail to trigger at 5pm?
Anyway, set on boot is broken (again), will need to fix it, but normal timers should work fine.
Click to expand...
Click to collapse
Ahh, that might be it. I think it stops working after a reboot, so I'd be going back into the app to get it going again.
Very minor issue though, great app - thank you for your hard work!!:highfive:
corphish said:
Does it fail to trigger if a reboot had happened sometime before the time it should have triggered?
For example, if it was to trigger at 5pm, but a device reboot happened in, say, 3pm, then does it fail to trigger at 5pm?
Anyway, set on boot is broken (again), will need to fix it, but normal timers should work fine.
Click to expand...
Click to collapse
Launcher shortcut (toggle on/off) switch is also seems somewhat broken, it toggle on but fails to toggle off.
@jineshpatel30 @rickysidhu_
Here is an experimental version (in the attachment of this reply), with launcher shortcut toggle and set on boot fixed.
The reason why it is experimental :
- Now written in kotlin
- Uses some of the new stuff announced in I/O 18, like ktx and the new material design style
- Uses different font called 'Acme'. (Feel free to suggest fonts)
- I decided to ditch cards because normal layouts look better in this new style.
Source - https://github.com/corphish/NightLight/tree/p
corphish said:
@[email protected]_
Here is an experimental version (in the attachment of this reply), with launcher shortcut toggle and set on boot fixed.
The reason why it is experimental :
- Now written in kotlin
- Uses some of the new stuff announced in I/O 18, like ktx and the new material design style
- Uses different font called 'Acme'. (Feel free to suggest fonts)
- I decided to ditch cards because normal layouts look better in this new style.
Source - https://github.com/corphish/NightLight/tree/p
Click to expand...
Click to collapse
It kicked in automagically at sunset tonight which reminded me to come back and comment. That was unreliable previously.
What does the save button do at the bottom? I assume it saves something, but there's no toast message to acknowledge it's been pressed.
I don't like the font, myself. Since you're going for new and fancy code and styling, why not use ProductSans? I like the new font used in the Wear OS app, I think that's it.
Could you add the numerical values for the sliders for more accurate fine tuning? I like the way the new XDA Navigation Gestures app does it. It's in the latest beta posted in the thread and should be pushed to the Play Store soon.
Since CF.lumen is EOL now, this app is going to be a great alternative especially when it eventually breaks.
Thank you!
Sent from my Nexus 6P using XDA Labs

My personal stuff likely useful for LineageOS users

Do with your own risk.
I am in no way responsible for any damages caused by using anything from the list below.
READ EVERYTHING CAREFULLY IF YOU DON'T WANT TO ACCIDENTALY DESTROY YOUR PHONE
Things are provided as is in hoping that it might be useful.
if you don't like it or have doubts whether it'll work fine on your phone, or if you don't even have data backup or backup phone if things went wrong, then don't use it. :fingers-crossed:
Tweaks/Magisk Modules :
Adreno Driver
Kernels :
Gamma Kernel + Thermal Tweaks + Stock Mixer
Personal Stuff :
Adren[email protected]_0_Vulkan_1_1_128_LG_V20_flashable_v5_spoof.zip
Originally provided by Arda Süzen. Modified for LG V20.
[email protected] Adreno Driver with working screen recording.
GPU Name spoofed into Adreno 630 to unlock graphics settings on other games.
REQUIRES PIE CAMERA BLOBS MAGISK MODULE OR CAMERA MAY NOT WORK.
Daved-v20notch1080.zip (LineageOS 17.1)
made by @dvdarg, this will set the notch to 1080p.
you will have to set your resolution using
Code:
wm size 1080x2040
wm density 300
Daved_LYB-v20notch720 (2).zip (LineageOS 17.1)
originally made by @dvdarg, this will set the notch to 720p.
you will have to set your resolution using
Code:
wm size 720x1360
wm density 200
Reduced resolution may provide less heat and less battery drain.
This will also help games that only renders at the phone's screen resolution.
You can change the density to your liking.
flashable-h990-gamma-kernel-v20.0.0_v101_UNDERVOLT.zip
This kernel is made personally for me with mild undervolt to reduce heat. MAY CRASH ON BOOT OR BRICK YOUR PHONE.
https://gist.github.com/lybxlpsv/c1d889442d7887897687bf0e61514a36
Thermal mods for LineageOS 17.1
flashable-lge-v20-stock-thermal-engine-mod-q_85c.zip (throttles at 85c, 2a to 1.5a battery throttle)
flashable-lge-v20-stock-thermal-engine-mod-q_93c.zip (throttles at 93c, 2a to 1.5a battery throttle)
flashable-lge-v20-stock-thermal-engine-mod-q_100c.zip (throttles at 100c, no battery throttle ONLY FOR USE WITH LYB BATTERY PM)
Only use if you modified your phone thermals (e.g. replacing the stock copper shim, thermal pad, etc)
lybBattery PM Magisk Module
batterypm_v7.zip
Features :
- Slows down and disables charging when CPU is too hot.
Download all files listed above here
HiFi DAC switch for LineageOS 17.1
Toggle the ES9218 dac with ease on LineageOS 17.1.
HiFi DAC Switch
Clean ROM without custom mixer is highly recommended
NO MORE NEED TO USE THIS
Yet another LG V20 Kernel (OC + Voltage Control + Gaming Related Optimizations)
lyb's Alternative Kernel
Pie Camera Blobs (for use with Adreno Drivers)
Personal Note
Thermal :
If you live on the edge like I do. disable core control on kernel adiutor/smartpack.
All cores will stay on no matter how hot the phone is.
Clock Speed :
Best clock speed for casual gaming or better battery life span.
1824mhz big, 1324mhz little targeting 1.5a current average (6w)
2150mhz big, 1824mhz little for Genshin Impact with Undervolts. (CPU Voltage Control available on my kernel)
only use 2342mhz big and 1920mhz little if you have great thermals.
RAM Related :
Avoid stutters and lag with Chromium based browser and games by disabling ZRAM and creating a swapfile. (e.g. on /data/swapfile)
Beware that by doing this you will wear the NAND even more.
https://linuxize.com/post/create-a-linux-swap-file/
Audio Related :
The effects may take quite some CPU. Especially when it fails.
you can disable with
Code:
pm disable org.lineageos.audiofx
thanks man!
lybxlpsv said:
HiFi DAC switch for LineageOS 17.1
Toggle the ES9218 dac with ease on LineageOS 17.1.
HiFi DAC Switch
Clean ROM without custom mixer is highly recommended
Click to expand...
Click to collapse
hi, thanks!
Could you please confirm this toggle is the one slready available in LOS17.1 or different?
What do you mean by clean rom without custom mixer? If i replace the tasha mixer with the force impedance one, will the dac toggle still works?
Thanks
Darkaedenxxx said:
hi, thanks!
Could you please confirm this toggle is the one slready available in LOS17.1 or different?
What do you mean by clean rom without custom mixer? If i replace the tasha mixer with the force impedance one, will the dac toggle still works?
Thanks
Click to expand...
Click to collapse
don't use this. use the dac toggle on LOS.
lybxlpsv said:
don't use this. use the dac toggle on LOS.
Click to expand...
Click to collapse
Ok thanks.
Do you advice to install the audio mod Aunir Narsil or it happens to conflict with something (eg quad dac, eq)?
Thanks!
Thanks for sharing @lybxlpsv . Tried to flash Daved-v20notch1080.zip on LOS 18.1 and TWRP 3.4.0-1, but failed with error code 127.
@lybxlpsv
In your experience, what are the improvements when using the Pie camera blobs + Adreno driver?
Thanks.
MaverickNextDoor said:
@lybxlpsv
In your experience, what are the improvements when using the Pie camera blobs + Adreno driver?
Thanks.
Click to expand...
Click to collapse
only useful for gaming and emulation related.
I'm glad the Hifi toggle is now a Lineage feature. Maybe I'll upgrade from 16 to 18.1 I'll also test some of your optimizations, thanks for sharing.
I got strange crash at boot using your gamma kernel on h990ds, it only crash when i rebooted with charge plugged in and when im not charging it doesnt crash on reboot. I got purple screen crash, i dont remember what was the error log. Your lyb's kernel is fine though no crashing at all but i like the gamma one
lybxlpsv said:
flashable-h990-gamma-kernel-v20.0.0_v101_UNDERVOLT.zip
This kernel is made personally for me with mild undervolt to reduce heat. MAY CRASH ON BOOT OR BRICK YOUR PHONE.
https://gist.github.com/lybxlpsv/c1d889442d7887897687bf0e61514a36
Click to expand...
Click to collapse
Do you have any info about how you compiled the kernel?I tried to do this with MK2000 kernel last year and could never get the unmodded but recompiled kernel to run right on my phone.
I'm not even sure where the source code is for the gamma kernel. Any info you could provide would be awesome.
I get how the tables for the voltage work... Just issues with environment and compiling the source.
Anyway to increase the volume past the max?

Categories

Resources