• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[TWEAK] [ROOT] mDNIe screen sharpness tweak

Search This thread

Nihonno

Senior Member
Jun 7, 2010
260
61
If in file "sys/class/mdnie/scenario" in first byte replace 0 to 1 or 2 or 3 or 4 screen sharpness is increasing (1 more sharp.........4 less sharp.).

For some reason, I can never get this to work. When I try to make the changes by navigating to sys/class/mdnie, there's another folder/shortcut that takes me to another minor folder. In there, I see the scenario file and quite a few others. It even has text and no single digit (like my note 2 did) further more, any changes I make to the scenario file never stick. Maybe the T-Mobile US version is different?
 
  • Like
Reactions: Irvaiz Arya

holygeek

Senior Member
Dec 7, 2010
192
39
Ankara
When I reboot will the value reset itself? And do I need reboot after changing the value? I'm confused hmm.

RE: OK I figured out the thing that I asked. (I had no time to try those when I asked.)

1) No need to reboot after editing.
2) After reboot you have to re-do it.

Sent from my SM-N900 using XDA Premium HD app
 
Last edited:
  • Like
Reactions: deeppalei

airyras

Senior Member
Jul 13, 2013
145
22
3 looks bad ass. Use root explorer. Its what I used and changed the value easily.
 

Mr.Nitro

Senior Member
May 24, 2012
189
19
so 0 value is the most sharpness ?
right ?

Sent from my SM-N900 using XDA Premium 4 mobile app
 

alexhc18

Senior Member
Nov 2, 2013
61
79
Zelenodolsk
Is there anyway to make it permanent? Rather than redoing anytime when power off or reset. .w

Make init.d support on mobile and create file "00mdnie" in folder "etc/init.d" with this inside:

#!/system/bin/sh
echo 3 > /sys/class/mdnie/mdnie/scenario
busybox mount -o remount,rw -t auto /system;
busybox chmod -R 777 /system/etc/init.d;
busybox mount -o remount,ro -t auto /system;

Or type in "terminal emulator" : echo 3 > /sys/class/mdnie/mdnie/scenario

Apps camera and gallery resets this to default 0
 

garykcliu

Senior Member
Oct 6, 2009
75
3
Make init.d support on mobile and create file "00mdnie" in folder "etc/init.d" with this inside:

#!/system/bin/sh
echo 3 > /sys/class/mdnie/mdnie/scenario
busybox mount -o remount,rw -t auto /system;
busybox chmod -R 777 /system/etc/init.d;
busybox mount -o remount,ro -t auto /system;

Or type in "terminal emulator" : echo 3 > /sys/class/mdnie/mdnie/scenario

Apps camera and gallery resets this to default 0

I just followed your guide but still cannot make it work as well.
Perhaps it is too technical for me but anyway thanks so much for your assistance.

By the way, is it possible to make a flashable zip so that we can flash on CWM?

Thank you
 

alexhc18

Senior Member
Nov 2, 2013
61
79
Zelenodolsk
I just followed your guide but still cannot make it work as well.
Perhaps it is too technical for me but anyway thanks so much for your assistance.

By the way, is it possible to make a flashable zip so that we can flash on CWM?

Thank you

First you need busybox. Install this by Stericson: https://play.google.com/store/apps/details?id=stericson.busybox
reboot after installing. Open busybox, use "normal install" method to "system/bin", don't use "smart install".

Then CWM install this:
View attachment zip_init.zip by Ryuinferno
 

iba21

Senior Member
Jul 1, 2010
2,829
1,586
Venice
Make init.d support on mobile and create file "00mdnie" in folder "etc/init.d" with this inside:

#!/system/bin/sh
echo 3 > /sys/class/mdnie/mdnie/scenario
busybox mount -o remount,rw -t auto /system;
busybox chmod -R 777 /system/etc/init.d;
busybox mount -o remount,ro -t auto /system;

Or type in "terminal emulator" : echo 3 > /sys/class/mdnie/mdnie/scenario

Apps camera and gallery resets this to default 0

#!/system/bin/sh
#Replace the number down here with what you want
VAL=`3`

#init.d commands (optional)

busybox mount -o remount,rw -t auto /system;
busybox chmod -R 777 /system/etc/init.d;
busybox mount -o remount,ro -t auto /system;

#auto check commands

while [ 1 ]
do

VAL1=`cat /sys/class/mdnie/mdnie/scenario`

if [ "$VAL1" != "$VAL" ]
then

echo "$VAL" > /sys/class/mdnie/mdnie/scenario

fi

sleep 1

done
 
  • Like
Reactions: zeyadhan

garykcliu

Senior Member
Oct 6, 2009
75
3
#!/system/bin/sh
#Replace the number down here with what you want
VAL=`3`

#init.d commands (optional)

busybox mount -o remount,rw -t auto /system;
busybox chmod -R 777 /system/etc/init.d;
busybox mount -o remount,ro -t auto /system;

#auto check commands

while [ 1 ]
do

VAL1=`cat /sys/class/mdnie/mdnie/scenario`

if [ "$VAL1" != "$VAL" ]
then

echo "$VAL" > /sys/class/mdnie/mdnie/scenario

fi

sleep 1

done

Unfortunately no matter how hard I tried, I still cannot get it worked.

I have no other alternative but to give up.

Anyway thanks so much for your advice.:(:(:(
 

iba21

Senior Member
Jul 1, 2010
2,829
1,586
Venice
You need a rom witch has the init.d script.. or busybox and create the init.d folder + putting the correct permissions

And sure.. you have to create a script witch contains that code
 

garykcliu

Senior Member
Oct 6, 2009
75
3
You need a rom witch has the init.d script.. or busybox and create the init.d folder + putting the correct permissions

And sure.. you have to create a script witch contains that code

This is what I have done...I have enabled the init.d support and then go into the etc/init.d folder to create a file '00mdnie' without extension which contains the codes:
------
#!/system/bin/sh
echo 3 > /sys/class/mdnie/mdnie/scenario
busybox mount -o remount,rw -t auto /system;
busybox chmod -R 777 /system/etc/init.d;
busybox mount -o remount,ro -t auto /system;
------

However every time when I shut down or reboot the N900 and then it will automatically reset to 0 and could you please advise when went wrong with the procedures that I am doing.

Thank you so much.
 

V3R

Senior Member
Aug 1, 2009
86
31
Kielce
tried that in CM11 4.4.2, manual setting scenario works but its uncomfortable to change it everytime it resets. pasting your code into init.d makes no difference... any ideas? i love sharpness tweaks but don't want to change kernel now so.... :(
 

criskelo

Inactive Recognized Developer
Feb 24, 2010
1,091
4,947
Rosario
forum.xda-developers.com
Script init.d
00mdnie

Code:
#!/system/bin/sh
# By @criskelo - CriskeloRoms
# Mod By @alexhc18

	chmod 777 /sys/class/mdnie/mdnie/scenario
echo 1 > /sys/class/mdnie/mdnie/scenario
	chmod 555 /sys/class/mdnie/mdnie/scenario

This prevents the gallery or camera changes the value to 0

:good:

Edit:
chmod 555 /sys/class/mdnie/mdnie/scenario

Read only and execution
Do not write

Edit:
ATTACHED FILES

All in one
Only install by CWM
ADD in your rom
screen sharpness 1
Support-Init.d
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    If in file "sys/class/mdnie/scenario" in first byte replace 0 to 1 or 2 or 3 or 4 screen sharpness is increasing (1 more sharp.........4 less sharp.).
    10
    Script init.d
    00mdnie

    Code:
    #!/system/bin/sh
    # By @criskelo - CriskeloRoms
    # Mod By @alexhc18
    
    	chmod 777 /sys/class/mdnie/mdnie/scenario
    echo 1 > /sys/class/mdnie/mdnie/scenario
    	chmod 555 /sys/class/mdnie/mdnie/scenario

    This prevents the gallery or camera changes the value to 0

    :good:

    Edit:
    chmod 555 /sys/class/mdnie/mdnie/scenario

    Read only and execution
    Do not write

    Edit:
    ATTACHED FILES

    All in one
    Only install by CWM
    ADD in your rom
    screen sharpness 1
    Support-Init.d
    2
    Is there anyway to make it permanent? Rather than redoing anytime when power off or reset. .w

    Make init.d support on mobile and create file "00mdnie" in folder "etc/init.d" with this inside:

    #!/system/bin/sh
    echo 3 > /sys/class/mdnie/mdnie/scenario
    busybox mount -o remount,rw -t auto /system;
    busybox chmod -R 777 /system/etc/init.d;
    busybox mount -o remount,ro -t auto /system;

    Or type in "terminal emulator" : echo 3 > /sys/class/mdnie/mdnie/scenario

    Apps camera and gallery resets this to default 0
    1
    How to do that on CM 12.1 ? I'm unable to find "scenario" in "sys/class/mdnie/scenario"...

    /sys/class/mdnie/mdnie/scenario