[REQUEST] Add KCAL support to stock kernel, it is possible? - Xiaomi Mi A1 Questions & Answers

Hi, since our Mi A1 display is quite pale (and color calibration is inaccurate), it would be fantastic to have KCAL support in order to use for example Kernel Adiutor to calibrate the screen (as we can do with Redmi Note 4 global on Lineage OS rom with patched kernel). I have tried with Color Changer Pro but it's pretty limited (saturation change give poor results).
Now that the sources are released (even if nougat-based) , it will be easy to apply using the guidelines in this post https://forum.xda-developers.com/android/software-hacking/dev-kcal-advanced-color-control-t3032080 ?
Thanks in advance
PS: sorry if it's quite similar to a mine old post, but I have posted it in the wrong section last time, so I please mods to cancel the incorrect post.

dying_sun said:
Hi, since our Mi A1 display is quite pale (and color calibration is inaccurate), it would be fantastic to have KCAL support in order to use for example Kernel Adiutor to calibrate the screen (as we can do with Redmi Note 4 global on Lineage OS rom with patched kernel). I have tried with Color Changer Pro but it's pretty limited (saturation change give poor results).
Now that the sources are released (even if nougat-based) , it will be easy to apply using the guidelines in this post https://forum.xda-developers.com/android/software-hacking/dev-kcal-advanced-color-control-t3032080 ?
Thanks in advance
PS: sorry if it's quite similar to a mine old post, but I have posted it in the wrong section last time, so I please mods to cancel the incorrect post.
Click to expand...
Click to collapse
well it's too early to demand anything in kernel as far as i saw devs here all are in try to make custom roms well I don't think it is much necessary (we are on stock already) we need custom kernels first so if a one developer should work only to make kernel source stable it would be great and yes this features would be implemented but we have to wait
in a month we can get android 8.0 stable kernel and OS i think

Mod please lock this useless thread

itsnie said:
Mod please lock this useless thread
Click to expand...
Click to collapse
I don't think it's an useless thread, because kcal support is added in every custom kernel and it's quite used worldwide. If it's useless FOR YOU, it's not my problem.

dying_sun said:
I don't think it's an useless thread, because kcal support is added in every custom kernel and it's quite used worldwide. If it's useless FOR YOU, it's not my problem.
Click to expand...
Click to collapse
Just off topic.
kcal support is added in every custom kernel and it's quite used worldwide.
Click to expand...
Click to collapse
If it's in every custom kernel then your request and this thread are useless.
Won't you agree.

Pale?!... wtf... just made a comparison with my old lg g3 and it's 1:1... except for the low dpi.... are you sure it's not a hardware problem... otherwise.... yes KCAL would be great....

alkesh95 said:
Just off topic.
If it's in every custom kernel then your request and this thread are useless.
Won't you agree.
Click to expand...
Click to collapse
Off topic? Thread it has been moved by mods. Anyway, since no custom kernel is available yet my request is to modify stock kernel in order to have KCAL support, I have seen all over XDA more useless threads...
ivomin said:
Pale?!... wtf... just made a comparison with my old lg g3 and it's 1:1... except for the low dpi.... are you sure it's not a hardware problem... otherwise.... yes KCAL would be great....
Click to expand...
Click to collapse
I have seen hundreds of mi a1, screen is far form perfection, colors are under saturated and contrasts are poor. G3 had poor colors too. Redmi Note 4 has the same problem (and a quite similar panel), but with kcal I was able to do big improvements to the screen. I attach an example.
LEFT -> Redmi note 4 calibrated RIGHT -> Mi a1 hope you can appreciate the difference, it's not easy to show it in camera

dying_sun said:
Off topic? Thread it has been moved by mods. Anyway, since no custom kernel is available yet my request is to modify stock kernel in order to have KCAL support, I have seen all over XDA more useless threads...
I have seen hundreds of mi a1, screen is far form perfection, colors are under saturated and contrasts are poor. G3 had poor colors too. Redmi Note 4 has the same problem (and a quite similar panel), but with kcal I was able to do big improvements to the screen. I attach an example.
LEFT -> Redmi note 4 calibrated RIGHT -> Mi a1 hope you can appreciate the difference, it's not easy to show it in camera
Click to expand...
Click to collapse
My post was off topic not your thread.
Second i am aware of the benefits of kcal.
Just read my post again.

dying_sun said:
Off topic? Thread it has been moved by mods. Anyway, since no custom kernel is available yet my request is to modify stock kernel in order to have KCAL support, I have seen all over XDA more useless threads...
I have seen hundreds of mi a1, screen is far form perfection, colors are under saturated and contrasts are poor. G3 had poor colors too. Redmi Note 4 has the same problem (and a quite similar panel), but with kcal I was able to do big improvements to the screen. I attach an example.
LEFT -> Redmi note 4 calibrated RIGHT -> Mi a1 hope you can appreciate the difference, it's not easy to show it in camera
Click to expand...
Click to collapse
I see what you mean... still i don't think there is much of difference for an ordinary usage.. for such low level device I don't think we (I) should have expect anything different and in the end ... it is still an old IPS technology so for really sharp and accurate colors - AMOLED. In the end it is a matter of taste and as this device is yours you should be able to modify it up to your taste.

I find colors of mine very close to what Nexus 5x delivered, which was supposed to be very accurate. AMOLED is usually anything but calibrated, punchy & nice, but not accurate. But there seems to be a great variation of different LCD panels in Mi A1, so I was probably the lucky one..

Related

Color Calibration ( Blue tint fix :) ) - Needs some work though

http://forum.xda-developers.com/showthread.php?t=745248
Have a look (not my work, just wanted to share)
This little fix lets you adjust the colors, so I thought you would be interested.
It does seem to screw up the camera (only white preview) , but other than that it works great
howto: flash the zip in CWM and then install the apk...
so when the camera bug gets sorted it would be awesome
-Yaya- said:
http://forum.xda-developers.com/showthread.php?t=745248
Have a look (not my work, just wanted to share)
This little fix lets you adjust the colors, so I thought you would be interested.
It does seem to screw up the camera (only white preview) , but other than that it works great
howto: flash the zip in CWM and then install the apk...
so when the camera bug gets sorted it would be awesome
Click to expand...
Click to collapse
isn't that what Supercurio's Voodoo Color does ?
where can I acces the voodoo color settings?
I use darkys rom (9.3) and voodoo should be included but I only find an Voodoo control app which adjusts the sound but not the color.
In CWM I can only adjust lagfix settings?
You can use Galaxy Tuner for that.
-Yaya- said:
where can I acces the voodoo color settings?
I use darkys rom (9.3) and voodoo should be included but I only find an Voodoo control app which adjusts the sound but not the color.
In CWM I can only adjust lagfix settings?
Click to expand...
Click to collapse
the Voodoo Control App includes the settings
you only need to switch to a kernel which includes newest Voodoo Color changes
(dunno if it exists for 2.2* kernels though)
Well I just installed the latest Voodoo kernel (5.4.1) but no changes
If I'm not wrong that voodoo colour app only apply to nexus s.. Not available for 2.2..
Sent from my GT-I9000 using XDA App
ccs1988 said:
If I'm not wrong that voodoo colour app only apply to nexus s.. Not available for 2.2..
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
it applies to Nexus S and SGS using CM7 (the kernel-sources are based on Nexus S sources)
Apparently non of these works for us, so we're stuck with the bluish screen
Edit: I posted a thread in which I summarize all I know about this issue.
Edit: This issue is solved. Please look in my thread for more information.
need4steer said:
Apparently non of these works for us, so we're stuck with the bluish screen
Click to expand...
Click to collapse
from what I can gauge from all this, is that certain parts (screens) used by Samsung were not capable of screen variations in/for later builds as such they totally declined further upgrades for all. This would be common in manufacturing the initial device (galaxy S) as trial and error would play a part in releasing the most cost effective product and the part used coming from different sources. The Galaxy S had 20 versions, meant for different locations and pricing, so the componaents would be from from various sources, some of top quality and others of lower grade going to lower priced models meant for third world locations.
so it may be wise to see when and where this models having blue screen problems are cropping up most.
Check this out! Links to useful Guides and " Banned " Documentaries ​
xsenman said:
from what I can gauge from all this, is that certain parts (screens) used by Samsung were not capable of screen variations in/for later builds as such they totally declined further upgrades for all. This would be common in manufacturing the initial device (galaxy S) as trial and error would play a part in releasing the most cost effective product and the part used coming from different sources. The Galaxy S had 20 versions, meant for different locations and pricing, so the componaents would be from from various sources, some of top quality and others of lower grade going to lower priced models meant for third world locations.
so it may be wise to see when and where this models having blue screen problems are cropping up most.
Check this out! Links to useful Guides and " Banned " Documentaries ​
Click to expand...
Click to collapse
That's a very interesting thinking.
I just found out that this problem appears to be a known issue which is caused from incorrect calibration data which exists in some devices and affected by cyanogenmod 9+ (the later 9 ROMs, some of the older don't have this issue)
I think I'll post a new thread to help people understand this problem and its origin, and in the same time I might ask them their model and location, according to your great suggestion.
Thanks again!
Edit: I posted a thread in which I summarize all I know about this issue.
Edit: This issue is solved. Please look in my thread for more information.
bluish screen - dark blue tint / hue after flashing AOSP ICS and above on GT-I9000
-Yaya- said:
http://forum.xda-developers.com/showthread.php?t=745248
Have a look (not my work, just wanted to share)
This little fix lets you adjust the colors, so I thought you would be interested.
It does seem to screw up the camera (only white preview) , but other than that it works great
howto: flash the zip in CWM and then install the apk...
so when the camera bug gets sorted it would be awesome
Click to expand...
Click to collapse
There's a known problem for a little amount of Samsung Galaxy S GT-I9000 devices that are getting bluish screen after flashing AOSP Ice Cream Sandwich (4.0.x) and above.
By bluish screen I mean that there's a dark blue color, a blue tint / hue all over the screen.
This bluish screen appears everywhere in the ROM, in the recovery, and even when charging the phone while it's off.
According to DerTeufel1980 and pawitp, this issue is caused by the updated framebuffer driver of the Nexus S in the CyanogenMod 9 kernels, and the actual problem is that some devices contain incorrect calibration data.
I posted a thread in which I summarize all I know about this issue.
This issue is fixed thanks to pawitp.
We can flash this fixed CyanogenMod 11 nightly.
Any release from now on will be updated with this fix.
There are detailed instructions in pawitp's thread - [NIGHTLY][ROM][4.4] CyanogenMod 11 for Samsung Galaxy S
This is the official thread of CyanogenMod 11 in this forum.
Please note that in CyanogenMod's download site we should flash any version that is newer than cm-11-20140211-NIGHTLY-galaxysmtd.zip which was posted today, the 11.02.2014, at 04:51:57 (according to the "Date Added" column in the download site)
I'd like to appreciate pawitp for his willing to help and for his truly tremendous effort to the community.
Thanks a lot!

Color Calibration on Exynos ...

delete me
I'm just tried it , and it works! ( S7 Flat , rooted, Phoenix ROM v2 with Prometheus kernel 1.4 )
Chris189 said:
I'm just tried it , and it works! ( S7 Flat , rooted, Phoenix ROM v2 with Prometheus kernel 1.4 )
Click to expand...
Click to collapse
That sounds nice, now I just hope it 's not an empty promise that this doesn't use an filter-overlay.
Did you try the manual calibration (Custom-Settings)?
A before (=disabled) and after (=enabled e.g. with RGB set to 100 200 255) screenshot of a 100% white or white to black gradient would be really nice!
Anyway - thanks for confirming!
Hey, thank you for the discovery.
I can confirm you that is not an overlay. The screenshots made with the filter applied remain the same than when the filter is disabled.
I was using CF.lumen with its driver to use custom RGB values. The same happens with it, the screens are the same with filter and no filter, so neither of the two use overlays.
justyourimage said:
... seems to be not as easy as with Qualcomm due to the lack of KCAL support. There also seem to be no Kernels around for Exynos variants where anyone has ever managed to do this (as far as I found out, correct me if I'm wrong)
So far I only found one clue that is not using the usual Color Filters but seems to be changing the RGB values directly ...
In an older review someone reported that this app was working with older Exynos SoCs for them:
https://play.google.com/store/apps/details?id=mobi.omegacentauri.red_pro
Apparently it should also work for Android 6 - as I do not have root yet can someone test if it does work with the S7/S7 Edge Exynos variants?
Otherwise we can only hope for Samsung to include Color Calibration from Android N in their official release (if they aren't to lazy and simply remove that feature)
Click to expand...
Click to collapse
The Pro Version [v1.11] worked perfectly on my Exynos S7 Edge. {requires root}
Thank you for this! :highfive:

[Request] PWM free implementation in kernel

Our axon 7 uses a 240hz pwm to adjust brightness. In the s7 forum a developer solves this by modding the kernel:
https://forum.xda-developers.com/s7-edge/development/amoled-pwm-s7-edge-t3517739/
themostunique said:
Our axon 7 uses a 240hz pwm to adjust brightness. In the s7 forum a developer solves this by modding the kernel:
https://forum.xda-developers.com/s7-edge/development/amoled-pwm-s7-edge-t3517739/
Click to expand...
Click to collapse
I agree. Devs of Lineage OS can perhaps add this?
i Support this idea, we need it.
themostunique said:
Our axon 7 uses a 240hz pwm to adjust brightness. In the s7 forum a developer solves this by modding the kernel:
https://forum.xda-developers.com/s7-edge/development/amoled-pwm-s7-edge-t3517739/
Click to expand...
Click to collapse
I also would like to see such improvement in our device!
+1
maybe @genesixxbf3 could integrate it in Llama Sweet Kernel
and @Unjustified Dev or @OrdenKrieger in LineageOS 14.1. and coming 15 also
Thx for this @themostunique
yeah thats one of the things that always bothered me if it could be implemented not only on LOS or customs ROMs but also on stock ones specially the upcoming oreo
Lets hope LOS 15 will have this thing/improvement&tweak added
I really wish someone could achieve this mod for our Axon 7. The PWM on this device is unbearable and I decided it wasn't worth the constant headaches and eyestrain, so I've kept mine in a drawer for the past 7-8 months and used my ZUK Z2 instead.
I found someone who made this mod for the Samsung Galaxy S8: https://forum.xda-developers.com/galaxy-s8+/development/amoled-pwm-s8-t3716663
P650SE said:
I really wish someone could achieve this mod for our Axon 7. The PWM on this device is unbearable and I decided it wasn't worth the constant headaches and eyestrain, so I've kept mine in a drawer for the past 7-8 months and used my ZUK Z2 instead.
I found someone who made this mod for the Samsung Galaxy S8: https://forum.xda-developers.com/galaxy-s8+/development/amoled-pwm-s8-t3716663
Click to expand...
Click to collapse
I can only support your wish, but few people in custom scene care about health mods... What a pity...
This one needs a talented kernel dev like @Kranoner, who looked into it but found it to lot pf a hassle to do it specially as it needs also some blob stuff... And obviously he left the scene by now like @NFound
Maybe @SaintZ93 can take a look into it and integrate in his Schwifty kernel
Or even @OrdenKrieger and @Unjustified Dev could integrate it into future LOS releases what would have the benefit to have it on all other ROMs bases on LOS right out of the box...
Or maybe @Oki get's enthusiastic about it and takes this as his new challenge after finishing his TWRP mods...
But then again... Who cares about health these days anyway... Really sad that such mods don't have the attention they earn. So let's just hope and be positive!
Legends like @Chainfire used to develop health solutions that even found their way in official releases by now... Like blue light and warm color filters during night time that he pioneered with his cf.lumen that I still use till today as I didn't find anything more advanced and customisable then his tool, altough it became standard in official android releases by now and his tool was last updated 18 months ago
Gachmuret said:
I can only support your wish, but few people in custom scene care about health mods... What a pity...
This one needs a talented kernel dev like @Kranoner, who looked into it but found it to lot pf a hassle to do it specially as it needs also some blob stuff... And obviously he left the scene by now like @NFound
Maybe @SaintZ93 can take a look into it and integrate in his Schwifty kernel
Or even @OrdenKrieger and @Unjustified Dev could integrate it into future LOS releases what would have the benefit to have it on all other ROMs bases on LOS right out of the box...
Or maybe @Oki get's enthusiastic about it and takes this as his new challenge after finishing his TWRP mods...
But then again... Who cares about health these days anyway... Really sad that such mods don't have the attention they earn. So let's just hope and be positive!
Legends as @Chainfire used to develop health solutions that even found their way in official releases by now... Like blue light and warm color filters during night time that he pioneered with his cf.lumen that I still use till today as I didn't find anything more advanced and customisable then his tool, altough it became standard in official android releases by now and his tool was last updated 18 months ago
Click to expand...
Click to collapse
I have looked into this and to me it is not worth all the struggle it really is to implement it into our kernels. Literally have to re-write the entire display files because thats based on samsung files, we would have to convert it to the zte files. Proper blob edits are needed, as well as device tree related files. This is something that could take months to do and no offense but I will pass on that. Maybe some of the other devs might, but they have more important stuff to fix/make.
Edit: However I'll keep an eye on it from time to time and see how it produces.
Gachmuret said:
I can only support your wish, but few people in custom scene care about health mods... What a pity...
Click to expand...
Click to collapse
You really don't need to tag everyone you can think of. The point is to bring a post to someone's attention who might not have a subscription to the thread. Unless you think Chainfire (who has nothing to do with this phone) or NFound (who bailed when he couldn't ransom his ROMs for more money) will do something for you, best not bother them.
Do you know what the default PWM frequency is set to? I don't recall it being looked into yet, but I may have missed it. That Galaxy S8 mod states the default GS8 PWM freq is 240, which is indeed far too low.
If you or anyone else who would like this to be implemented could look into what exactly is going on with the Axon 7 screen currently and what needs to be ported, it might help along your request.
Masterjuggler said:
Do you know what the default PWM frequency is set to? I don't recall it being looked into yet, but I may have missed it. That Galaxy S8 mod states the default GS8 PWM freq is 240, which is indeed far too low.
If you or anyone else who would like this to be implemented could look into what exactly is going on with the Axon 7 screen currently and what needs to be ported, it might help along your request.
Click to expand...
Click to collapse
Well, just look at the OP it says it is also 240:
themostunique said:
Our axon 7 uses a 240hz pwm to adjust brightness. In the s7 forum a developer solves this by modding the kernel:
https://forum.xda-developers.com/s7-edge/development/amoled-pwm-s7-edge-t3517739/
Click to expand...
Click to collapse
But I didn't measure it by myself... So maybe @themostunique can shed some light onto this
---------- Post added at 03:12 AM ---------- Previous post was at 02:38 AM ----------
SaintZ93 said:
I have looked into this and to me it is not worth all the struggle it really is to implement it into our kernels. Literally have to re-write the entire display files because thats based on samsung files, we would have to convert it to the zte files. Proper blob edits are needed, as well as device tree related files. This is something that could take months to do and no offense but I will pass on that. Maybe some of the other devs might, but they have more important stuff to fix/make.
Edit: However I'll keep an eye on it from time to time and see how it produces.
Click to expand...
Click to collapse
Thank you for actually looking at it!
Could it be of any help for any dev that our device has the same display as the Google Pixel XL (Marlin) and is manufactured by Samsung with model nr S6E3HA3
ChazzMatt said:
Same 1440p AMOLED display as Pixel XL
YES, the Pixel XL and the ZTE Axon 7 use the exact same 1440p AMOLED Samsung panel.
New Leaks Highlight Nexus Marlin Details (Pixel XL)
https://www.xda-developers.com/151309-2/
Click to expand...
Click to collapse

How to increase screen saturation on mi a1?

I use the made in China version. So I'm not sure which display this has. But I would like to have a bit vibrant vivid display. So is there any way to increase the screen saturation on mi a1 device? Please don't suggest any custom ROM and kennels. Thank you.
from whatever display you're using it's not possible to add vividness to the MiA1 screen.. it's somehow native that way, in times you'll get used to it.. well I did at least..
moving from Mi4i with MIUI interface it's possible to set an appropriate a comfortable saturation available
but for the moment being you might be able to get a vivid color (saturation) using a third party app (I never search for it though)
afridishamsofficial said:
I use the made in China version. So I'm not sure which display this has. But I would like to have a bit vibrant vivid display. So is there any way to increase the screen saturation on mi a1 device? Please don't suggest any custom ROM and kennels. Thank you.
Click to expand...
Click to collapse
Flash a custom kernel like void or franco kernel and adjust colors and saturation.
See this thread: https://forum.xda-developers.com/mi-a1/review/color-saturation-accuracy-t3679696
datasource said:
Flash a custom kernel like void or franco kernel and adjust colors and saturation.
Click to expand...
Click to collapse
Thanks for your comment. But is it possible to flash Franco kernel without even rooting?
afridishamsofficial said:
Thanks for your comment. But is it possible to flash Franco kernel without even rooting?
Click to expand...
Click to collapse
No. Sorry. I just misread your OP.

Is this device waiting for something before ROMs start flowing?

Kinda surprised there are no ROMs yet...
Does something need to be released for this to happen, or have not enough devs bought this phone?
Sent from my Mi A2 using Tapatalk
Probably not enough devs.
In my opinion the release of pocophone really made this device irrelevant.
So Jasmine is the red headed step child...
Sent from my Mi A2 using Tapatalk
Well, at least we are lucky that this phone works really good on stock ROM, so for now, I'm not complaining.
There is only two things I would like to be fixed, dual ringtone option, and some king of proximity fix, everything else works perfectly fine for me.
Ofcorse, camera2 by default would be great.
philipnzw said:
Probably not enough devs.
In my opinion the release of pocophone really made this device irrelevant.
Click to expand...
Click to collapse
Have you held the pocophone in your hand? It's awful. Cheap plastic, cheap plastic everywhere. Plus bleeding screen. Yes, it has SD845, but the design and build quality is setting us five years back. For me, it is not an acceptable phone. I hope we get some good custom roms soon.
minnuss said:
Well, at least we are lucky that this phone works really good on stock ROM, so for now, I'm not complaining.
There is only two things I would like to be fixed, dual ringtone option, and some king of proximity fix, everything else works perfectly fine for me.
Ofcorse, camera2 by default would be great.
Click to expand...
Click to collapse
working adaptive brightness too ...
I would love to have official TWRP and Lineage OS Support like MiA1
blowtorch said:
working adaptive brightness too ...
Click to expand...
Click to collapse
Try Velis Auto Brightness, it's working great, trust me. :good:
https://play.google.com/store/apps/details?id=com.velis.auto.brightness&hl=en
blowtorch said:
working adaptive brightness too ...
I would love to have official TWRP and Lineage OS Support like MiA1
Click to expand...
Click to collapse
On my device the adaptive brightness works...
Keep in mind that on stock android, until Pie, you won't actually see the brightness slider moving, once the system has set a value you're supposed to use it to adjust the brightness around it.
Lurensu said:
On my device the adaptive brightness works...
Keep in mind that on stock android, until Pie, you won't actually see the brightness slider moving, once the system has set a value you're supposed to use it to adjust the brightness around it.
Click to expand...
Click to collapse
Sure but max brightness is very dim compared to which values it can go when manually setting it to a high value.
Draco is developing an awesome kernel "Hex" kernel. Still in testing phase. I am using it for last 2 days and its giving me amazing battery life. If somehow we get a working pie vendor there are few devs which will bring some of the famous roms.
Sent from my Mi A2 using Tapatalk
ilyas111 said:
Draco is developing an awesome kernel "Hex" kernel. Still in testing phase. I am using it for last 2 days and its giving me amazing battery life. If somehow we get a working pie vendor there are few devs which will bring some of the famous roms.
Click to expand...
Click to collapse
It that a kernel for MiA2 or Mi6x?
How do I join the beta testing?
philipnzw said:
It that a kernel for MiA2 or Mi6x?
How do I join the beta testing?
Click to expand...
Click to collapse
Its for Mi A2. You can through telegram. https://t.me/hexkernel
Sent from my Mi A2 using Tapatalk
There is no such channel on telegram
emprazol said:
There is no such channel on telegram
Click to expand...
Click to collapse
69 members. Works fine for me. Not using telegram though
Yup, I think nobody wants to develop Oreo when Pie is right around the corner...

Categories

Resources