View Single Post
Old 05-24-2014, 06:47 PM   #54
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Custom page refresh options patch

This patch allows the Reading Settings "Refresh the page every:" menu options to be changed, so you can set the screen to refresh less frequently than once every 6 pages without the need to edit the device's .conf file.

The patch has three replacement values: Base, Increment, and Maximum. Base is the value of the first menu option, Increment is the value that is added to get each successive menu option, and the menu will end when the value of Maximum is exceeded.

For example: Base=2, Increment=2, Maximum=20 will give a menu that allows you to select any of the following values: 2,4,6,8,10,12,14,16,18,20. The values in the original firmware are Base=1, Increment=1, Maximum=6 which gives the menu options 1,2,3,4,5,6.

There is also a second alternative which gives the menu options 1,2,4,8,16,32,64.

This patch hasn't been tested at all with this firmware version, so treat with caution and let me know if you discover any problems.

Firmware 3.2.0:
Spoiler:
Code:
<Patch>
patch_name = `Custom page refresh options`
patch_enable = `yes`
# cmp r5, #7; bne.w; --> cmp r5, #6; bls.w;
replace_bytes = 9E0A96, 07 2D 7F F4 7E AF, 06 2D 7F F6 7E AF
#
# Values for replacement: (Alternative 1, arithmetic sequence e.g. 1,2,3,...,12)
# Base (use this value for the first menu option):
replace_int = 9E0988, 1, 1
# Increment, Alternative 1 (add this value to get each successive menu option):
replace_int = 9E0A94, 1, 1
# Maxmium (stop adding options when this value is exceeded):
replace_int = 9E0A96, 6, 12
#
# Values for replacement: (Alternative 2, geometric sequence 1,2,4,8,16,32,64)
# Base (use this value for the first menu option):
#replace_int = 9E0988, 1, 1
# Double to get each successive menu option:
#replace_bytes = 9E0A94, 01 35, 6D 00
# Maxmium (stop adding options when this value is exceeded):
#replace_int = 9E0A96, 6, 64
</Patch>

Last edited by GeoffR; 05-24-2014 at 07:06 PM. Reason: comments in patch
GeoffR is offline   Reply With Quote