FORUMS

[FTF] Sony Xperia Z Lollipop Release

Sony rolled out a Lollipop update for Xperia Z just yesterday. If you still haven’t gotten … more

Original Moto G Receives Lollipop, OTA Captured

The original Moto G was released almost two years ago. Motorola still continues to … more

Device Review: No.1 X1 Rugged Smartphone

We are almost at the end of Q2 for 2015, and we have seen most of the flagship phones for the … more

When a Friend or Family Member Asks for a Phone Recommendation, What Do You Tell Them?

The majority of us here at XDA would consider … more
Post Reply Subscribe to Thread Email Thread

[GUIDE] Color correction. Loadable mDNIe color profiles.

11th September 2014, 09:20 PM |#11  
Orphee's Avatar
Senior Member
Thanks Meter: 422
 
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, 08:21 PM |#12  
OP Senior Member
Thanks Meter: 153
 
More
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, 12:23 AM |#13  
Member
Thanks Meter: 70
 
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, 09:27 AM |#14  
OP Senior Member
Thanks Meter: 153
 
More
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