Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE] Color correction. Loadable mDNIe color profiles.

OP heyjoe66

11th September 2014, 10:20 PM   |  #11  
Orphee's Avatar
Senior Member
Thanks Meter: 407
 
832 posts
Join Date:Joined: Jan 2008
More
Do you want me to do a titanium backup of X-rite ColorTrue to leave you try it (with it own gallery)
12th September 2014, 09:21 PM   |  #12  
OP Senior Member
Thanks Meter: 142
 
512 posts
Join Date:Joined: Mar 2007
Quote:
Originally Posted by Orphee

Do you want me to do a titanium backup of X-rite ColorTrue to leave you try it (with it own gallery)

Well, thanks indeed, but what I'm saying is that I have no idea how to correlate values from ICC with mdnie values. I don't know what values in ICC profile mean, some kind of coordinates of base RGB colors on some colorspace. I don't know how to translate them into values like red-in-black, red-in-green, red-in-white.
That's what problem is.

If you know anything about ICC profile structure, if can somehow describe all that values to me, maybe then we could figure out something to do with all that.
5th December 2014, 01:23 AM   |  #13  
Member
Thanks Meter: 28
 
51 posts
Join Date:Joined: Feb 2013
More
Quote:
Originally Posted by heyjoe66

8. PROFILE WILL RESET AFTER SCREEN OFF/ON CYCLE. For now I'm using Tasker to refresh it on screen on event. Maybe later we'll figure out some more elegant way;

You can use a init.d script for profile reloading when screen is reactivated:

Code:
#!/system/bin/sh

(while [ 1 ]
do
    AWAKE=`cat /sys/power/wait_for_fb_wake`
    if [ $AWAKE = "awake" ]; then
         echo 1 > /sys/devices/platform/s5p-mipi-dsim.1/lcd/panel/mdnie/tuning;
         echo "profile file name without path and spaces" > /sys/devices/platform/s5p-mipi-dsim.1/lcd/panel/mdnie/tuning;
    fi
    SLEEPING=`cat /sys/power/wait_for_fb_sleep`
    if [ $SLEEPING = "sleeping" ]; then
        sleep 1
    fi
done &)
It's nothing else than a modified screenstate scaling script, i use that on my S2 and it works very good.

regards,

lombartz
5th December 2014, 10:27 AM   |  #14  
OP Senior Member
Thanks Meter: 142
 
512 posts
Join Date:Joined: Mar 2007
Quote:
Originally Posted by lombartz

You can use a init.d script for profile reloading when screen is reactivated:

Code:
#!/system/bin/sh

(while [ 1 ]
do
    AWAKE=`cat /sys/power/wait_for_fb_wake`
    if [ $AWAKE = "awake" ]; then
         echo 1 > /sys/devices/platform/s5p-mipi-dsim.1/lcd/panel/mdnie/tuning;
         echo "profile file name without path and spaces" > /sys/devices/platform/s5p-mipi-dsim.1/lcd/panel/mdnie/tuning;
    fi
    SLEEPING=`cat /sys/power/wait_for_fb_sleep`
    if [ $SLEEPING = "sleeping" ]; then
        sleep 1
    fi
done &)
It's nothing else than a modified screenstate scaling script, i use that on my S2 and it works very good.

regards,

lombartz

Nice. That looks really useful. Sadly, these wait_for_fb_* attributes are missing on our device, or maybe moved to some place else. Need to look for them.
Regarding the problem you're referring to, it's actually a bug in samsung's code. They are trying to read profile from /sdcard when sdcard is not ready yet. I've fixed it in my own kernel build by moving the mdnie folder to /data. So now profile is updated as it meant to.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes