View Single Post
Old 06-15-2014, 04:13 PM   #195
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
I have a patch to modify the light/sleep/power-off times selected from the settings menu, but there are some restrictions which limit its usefulness:

1. The values selected from the menu must be in the range 1-255 minutes (about 4 hours max).

2. All three light/sleep/power menus display the same six fixed options, regardless of the actual values set by each option (so it will be confusing unless you choose the same six values for each menu).

firmware 3.3.0 (libnickel.so.1.0.0):
Spoiler:
Code:
<Patch>
patch_name = `Custom light/sleep/power-off time menu options`
patch_enable = `yes`
# Values displayed on all three menus
replace_string = D66910, `5 mins\x00`, `10 mins`
replace_string = D66918, `10 mins`, `20 mins`
replace_string = D66920, `15 mins`, `30 mins`
replace_string = D66928, `30 mins`, `1 hour`
replace_string = D66930, `45 mins`, `2 hours`
replace_string = D66938, `60 mins`, `4 hours`
# Actual values used for light menu
replace_int = A06EBE, 5, 10
replace_int = A06F08, 10, 20
replace_int = A06F4C, 15, 30
replace_int = A06F90, 30, 60
replace_int = A06FD4, 45, 120
replace_int = A07018, 60, 240
# Actual values used for sleep menu
replace_int = A070C8, 5, 10
replace_int = A0710C, 10, 20
replace_int = A07152, 15, 30
replace_int = A07198, 30, 60
replace_int = A071DE, 45, 120
replace_int = A07224, 60, 240
# Actual values used for power menu
replace_int = A072D8, 5, 10
replace_int = A0731A, 10, 20
replace_int = A0735E, 15, 30
replace_int = A073A2, 30, 60
replace_int = A073E6, 45, 120
replace_int = A07428, 60, 240
</Patch>

firmware 3.3.1 (libnickel.so.1.0.0):
Spoiler:
Code:
<Patch>
patch_name = `Custom light/sleep/power-off time menu options`
patch_enable = `yes`
# Values displayed on all three menus
replace_string = D69BF8, `5 mins\x00`, `10 mins`
replace_string = D69C00, `10 mins`, `20 mins`
replace_string = D69C08, `15 mins`, `30 mins`
replace_string = D69C10, `30 mins`, `1 hour`
replace_string = D69C18, `45 mins`, `2 hours`
replace_string = D69C20, `60 mins`, `4 hours`
# Actual values used for light menu
replace_int = A07C0E, 5, 10
replace_int = A07C58, 10, 20
replace_int = A07C9C, 15, 30
replace_int = A07CE0, 30, 60
replace_int = A07D24, 45, 120
replace_int = A07D68, 60, 240
# Actual values used for sleep menu
replace_int = A07E18, 5, 10
replace_int = A07E5C, 10, 20
replace_int = A07EA2, 15, 30
replace_int = A07EE8, 30, 60
replace_int = A07F2E, 45, 120
replace_int = A07F74, 60, 240
# Actual values used for power menu
replace_int = A08028, 5, 10
replace_int = A0806A, 10, 20
replace_int = A080AE, 15, 30
replace_int = A080F2, 30, 60
replace_int = A08136, 45, 120
replace_int = A08178, 60, 240
</Patch>

firmware 3.4.1 (libnickel.so.1.0.0):
Spoiler:
Code:
<Patch>
patch_name = `Custom light/sleep/power-off time menu options`
patch_enable = `yes`
# Values displayed on all three menus
replace_string = D656D4, `5 mins\x00`, `10 mins`
replace_string = D656DC, `10 mins`, `20 mins`
replace_string = D656E4, `15 mins`, `30 mins`
replace_string = D656EC, `30 mins`, `1 hour`
replace_string = D656F4, `45 mins`, `2 hours`
replace_string = D656FC, `60 mins`, `4 hours`
# Actual values used for light menu
replace_int = A0837E, 5, 10
replace_int = A083C8, 10, 20
replace_int = A0840C, 15, 30
replace_int = A08450, 30, 60
replace_int = A08494, 45, 120
replace_int = A084D8, 60, 240
# Actual values used for sleep menu
replace_int = A08588, 5, 10
replace_int = A085CC, 10, 20
replace_int = A08612, 15, 30
replace_int = A08658, 30, 60
replace_int = A0869E, 45, 120
replace_int = A086E4, 60, 240
# Actual values used for power menu
replace_int = A08798, 5, 10
replace_int = A087DA, 10, 20
replace_int = A0881E, 15, 30
replace_int = A08862, 30, 60
replace_int = A088A6, 45, 120
replace_int = A088E8, 60, 240
</Patch>

Last edited by GeoffR; 06-15-2014 at 06:44 PM. Reason: added patch for firmware 3.3.0
GeoffR is offline   Reply With Quote