[Q] Improved Refresh-Rate on 2.1?

Search This thread

jleecong

Senior Member
Aug 30, 2007
63
33
Per the Nookie Froyo thread they have a suggestion to increase the refresh rate to 68000 to stop/reduce flicker.

I noticed a similar flicker on "stock" 2.1 and checked /sys/devices/omapdss/display0/timings only to find out it is also set at 48000. I increased it to 68000, but it is reset after each reboot.

What is the proper refresh rate? Anyone else notice a flicker on the stock ROM?
 

paleh0rse

Senior Member
Jan 4, 2011
1,942
627
Per the Nookie Froyo thread they have a suggestion to increase the refresh rate to 68000 to stop/reduce flicker.

I noticed a similar flicker on "stock" 2.1 and checked /sys/devices/omapdss/display0/timings only to find out it is also set at 48000. I increased it to 68000, but it is reset after each reboot.

What is the proper refresh rate? Anyone else notice a flicker on the stock ROM?

what process did you use to modify the file?
 

gedster314

Senior Member
Sep 7, 2007
936
126
Oxnard, Ca

greenmky

Senior Member
Aug 4, 2010
129
7
Midland, MI
I did this (as I posted in the nook flicker thread):

I did a CAT on immediately after, and it had defaulted instead to 66461 instead of 68000 (maximum rate for the chip?)

Of course it also cleared upon reboot. Should I have seen a flicker improvement right away?
 

here.david

Senior Member
Jan 6, 2009
423
29
Sonoma, CA
After clearing up all the posted suggestions listed here is what worked for me

I did this (as I posted in the nook flicker thread):

I did a CAT on immediately after, and it had defaulted instead to 66461 instead of 68000 (maximum rate for the chip?)

Of course it also cleared upon reboot. Should I have seen a flicker improvement right away?

I also get 66461
------------------------
increase the refresh rate to 68000/66461 to stop/reduce flicker.
---------------------------------------------------------------------------
adb pull /system/bin/clrbootcount.sh

gedit clrbootcount.sh (assume you stay in specific dir)

add this to end of file and save
---------------------------------------------------
#run other commands
setprop persist.service.mount.umsauto 0
---------------------------------------------------
NEXT

adb shell mount -o rw,remount -t ext2 /dev/block/mmcblk0p5 /system
adb push clrbootcount.sh /system/bin/clrbootcount.sh
adb shell chmod 755 /system/bin/clrbootcount.sh
adb shell mount -o ro,remount -t ext2 /dev/block/mmcblk0p5 /system
adb shell reboot
--------------
NEXT

adb shell - NOW AT THE su # PROMPT (HAD NO LUCK WITH THE ADB SHELL and then commands all in one line)

cat /sys/devices/omapdss/display0/timings

mount -o remount,rw /dev/block/mmcblk0p5 /system

chmod 0755 /sys/devices/omapdss/display0/timings

echo 68000,1024/70/200/40,600/10/11/10 > /sys/devices/omapdss/display0/timings

mount -o ro,remount -t ext2 /dev/block/mmcblk0p5 /system

reboot
-----------------------------------------------
NEXT

cat /sys/devices/omapdss/display0/timings
66461,1024/70/200/40,600/10/11/10
----------------------------------------------
Three reboots and I still have the changes...

Read all the posting listed if you want/need more details....
 
Last edited:

khaytsus

Senior Member
Apr 8, 2008
7,258
1,175
Central Kentucky
adb shell - NOW AT THE su # PROMPT (HAD NO LUCK WITH THE ADB SHELL and then commands all in one line)

cat /sys/devices/omapdss/display0/timings

mount -o remount,rw /dev/block/mmcblk0p5 /system

chmod 0755 /sys/devices/omapdss/display0/timings

echo 68000,1024/70/200/40,600/10/11/10 > /sys/devices/omapdss/display0/timings

mount -o ro,remount -t ext2 /dev/block/mmcblk0p5 /system

reboot

You do not need to remount /system to write to /sys, and if you have chmod at all (unlikely) it would not be 755, it would be 644.
 

DatterBoy

Senior Member
Aug 17, 2010
142
8
I also get 66461
------------------------
increase the refresh rate to 68000/66461 to stop/reduce flicker.
---------------------------------------------------------------------------
adb pull /system/bin/clrbootcount.sh

gedit clrbootcount.sh (assume you stay in specific dir)

add this to end of file and save
---------------------------------------------------
#run other commands
setprop persist.service.mount.umsauto 0
---------------------------------------------------
NEXT

adb shell mount -o rw,remount -t ext2 /dev/block/mmcblk0p5 /system
adb push clrbootcount.sh /system/bin/clrbootcount.sh
adb shell chmod 755 /system/bin/clrbootcount.sh
adb shell mount -o ro,remount -t ext2 /dev/block/mmcblk0p5 /system
adb shell reboot
--------------
NEXT

adb shell - NOW AT THE su # PROMPT (HAD NO LUCK WITH THE ADB SHELL and then commands all in one line)

cat /sys/devices/omapdss/display0/timings

mount -o remount,rw /dev/block/mmcblk0p5 /system

chmod 0755 /sys/devices/omapdss/display0/timings

echo 68000,1024/70/200/40,600/10/11/10 > /sys/devices/omapdss/display0/timings

mount -o ro,remount -t ext2 /dev/block/mmcblk0p5 /system

reboot
-----------------------------------------------
NEXT

cat /sys/devices/omapdss/display0/timings
66461,1024/70/200/40,600/10/11/10
----------------------------------------------
Three reboots and I still have the changes...

Read all the posting listed if you want/need more details....
Tried all that and it did not stick. The final CAT showed a reversion to 48000. Still don't understand how the change to the clrbootcount.sh is supposed to make it stick but it isn't working.
 

khaytsus

Senior Member
Apr 8, 2008
7,258
1,175
Central Kentucky
Tried all that and it did not stick. The final CAT showed a reversion to 48000. Still don't understand how the change to the clrbootcount.sh is supposed to make it stick but it isn't working.

It wouldn't. The change to the clrbootcount.sh only changes the automount, the change to the /sys var is completely temporary. I assume one could also put it in the clrbootcount.sh, assuming it isn't modified later by the system (negating the change made from the clrbootcount.sh script).
 

DatterBoy

Senior Member
Aug 17, 2010
142
8
Yeah. not sure how anyone is getting this to work but i can't figure it out. As a warning, modifying the clrbootcount.sh and trying to incorporate the fefresh change script has force firmware into boot loop to needing a factory reset twice now. Wonder if anyone else had the same experience.

The flicker is annoying and the refresh change works, but just won't stick.
 

JoshMiers

Senior Member
Feb 4, 2010
58
85
To get it to stick, follow the steps on my other thread http://xdaforums.com/showthread.php?t=901791.

When you edit clrbootcount.sh, add the following to the end:
Code:
echo 68000,1024/70/200/40,600/10/11/10 > /sys/devices/omapdss/display0/timings

The final file (if you also want to disable automounting), will look like:
Code:
#!/system/bin/sh
##################################################################################
#
# File          clrbootcount.sh
# Description	Clear the bootcount variable to 0 on successful boot
#
## 
# Run potential hook first.
/data/boot_complete_hook.sh
# Zero the boot count
dd if=/dev/zero of=/rom/devconf/BootCnt bs=1 count=4
#run other commands
setprop persist.service.mount.umsauto 0
echo 68000,1024/70/200/40,600/10/11/10 > /sys/devices/omapdss/display0/timings
 

cutterjohn

Senior Member
Jul 30, 2010
529
21
While I've never really looked at this, but isn't the "refresh" "rate" largely irrelevant with LCD based screens? I'd always just assumed that even assigning them a "refresh" "rate" was just a place holder to make things work and not break CRT compatibility in drivers/display engines.
 

DatterBoy

Senior Member
Aug 17, 2010
142
8
While I've never really looked at this, but isn't the "refresh" "rate" largely irrelevant with LCD based screens? I'd always just assumed that even assigning them a "refresh" "rate" was just a place holder to make things work and not break CRT compatibility in drivers/display engines.

Don't know if that is true, but I have seen flicker on other LCD panels that could be addressed with refresh changes. The echo command does work instantly on the NC but just won't hold for me.
 

jleecong

Senior Member
Aug 30, 2007
63
33
I have been playing with this and while the changes in clrbootcount.sh do stick, I'm unable to get it to either set the refresh rate or run a script that sets the refresh that I KNOW works from the terminal. Seems idealy this should be set in the ROM. Back to the terminal...

I should add I'm running 1.0.1 (Auto-Nooter 2.12.25) and also tried it in Nookie Froyo.
 

Top Liked Posts