FORUMS

IonVR Coming Soon, HTC M9 Dev Edition Gets Android 5.1 – XDA TV

The HTC M9 Developer Edition has received Android 5.1. That and … more

Android 5.1.1 Omni ROM For Motorola Xoom

Back in Feb 2011, the Motorola Xoom became the first device to be sold with Android 3.0 … more

CleanSlate Brings Fingerprint Scanner Mod to HTC One M9+

Work of XDA Recognized Developer tbalden, CleanSlate custom kernel for the HTC … more

Sunday Debate: Which Factors Caused HTC’s Woes?

Join us in a fun Sunday Debate on HTC’s situation. Come with your … more

[GUIDE] Color correction. Loadable mDNIe color profiles.

519 posts
Thanks Meter: 153
 
By heyjoe66, Senior Member on 25th July 2014, 08:47 PM
Post Reply Subscribe to Thread Email Thread
11th September 2014, 09:20 PM |#11  
Orphee's Avatar
Senior Member
Thanks Meter: 429
 
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  
Senior Member
Thanks Meter: 100
 
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