{{value}}
-
{{ idxOf(idx) }}
Error: {{ error }}
Larger Sleep/Power-off timeouts: - Enabled: no - PatchGroup: Sleep/Power-off timeouts - Description: | Increase the available sleep/power-off timeouts to larger values (up to a few weeks). To customize this patch, see https://pgaskin.net/kobopatch-patches/lgrpwroff-15505.html . IMPORTANT - Although this patch has been tested by multiple users and confirmed to be working, the interaction between the RTC timer and Nickel has many moving parts. As reported by JSWolf on MR, this patch might have issues with actually powering-off with timeouts longer than a day. The cause is likely to be the auto-sync interval or sleepcover causing the timer to be overridden/reset every day. Nevertheless, this patch should work reliably for timeouts under 12 hours, and probably under 1 day. If you are using this patch with timeouts above 12 hours, and can confirm if it works/doesn't work, please PM me or comment on GitHub with your setting values, sleepcover or not, auto-sync interval, wifi on/off, firmware version, and Kobo model. See https://github.com/pgaskin/kobopatch-patches/issues/28#issuecomment-537161827 for more details about this. # Multipliers - ReplaceBytes: Base: "N3PowerWorkflowManager::configureWakeup(AlarmControl*, int, AlarmControlDelegate*)" Offset: 28 FindH: 03 FB 04 F2 # MUL r2(dest), r3(multiplier), r4(mins) ReplaceH: {{ data[cur].insts["lsl r2, r4"] }} # LSL r2, r4, #{{ cur }} - ReplaceBytes: {Base: "N3PowerWorkflowManager::pollBattery()", Offset: 106, FindH: 08 FB 00 F8, ReplaceH: {{ data[cur].insts["lsl r8, r0"] }}} # MUL r8(dest), r8(multiplier), r0(mins) -> LSL r8, r0, #{{ cur }} - ReplaceBytes: {Base: "N3PowerWorkflowManager::pollBattery()", Offset: 156, FindH: 02 FB 00 F2, ReplaceH: {{ data[cur].insts["lsl r2, r0"] }}} # MUL r2(dest), r2(multiplier), r0(mins) -> LSL r2, r0, #{{ cur }} # Menu text - FindBaseAddressString: "5 mins\0" - ReplaceString: {Offset: 0, Find: "5 mins\0", Replace: "{{ data[cur].values[sels[0]] }}"} - ReplaceString: {Offset: 8, Find: "10 mins", Replace: "{{ data[cur].values[sels[1]] }}"} - ReplaceString: {Offset: 16, Find: "15 mins", Replace: "{{ data[cur].values[sels[2]] }}"} - ReplaceString: {Offset: 24, Find: "30 mins", Replace: "{{ data[cur].values[sels[3]] }}"} - ReplaceString: {Offset: 32, Find: "45 mins", Replace: "{{ data[cur].values[sels[4]] }}"} - ReplaceString: {Offset: 38, Find: "60 mins", Replace: "{{ data[cur].values[sels[5]] }}"} # Values (see https://www.mobileread.com/forums/showpost.php?p=3887105) - FindBaseAddressSymbol: "N3SettingsPowerView::initChoices()" - ReplaceInt: {Offset: 11, Find: 5, Replace: {{ sels[0] }}} - ReplaceInt: {Offset: 465, Find: 5, Replace: {{ sels[0] }}} - ReplaceInt: {Offset: 99, Find: 10, Replace: {{ sels[1] }}} - ReplaceInt: {Offset: 525, Find: 10, Replace: {{ sels[1] }}} - ReplaceInt: {Offset: 159, Find: 15, Replace: {{ sels[2] }}} - ReplaceInt: {Offset: 583, Find: 15, Replace: {{ sels[2] }}} - ReplaceInt: {Offset: 219, Find: 30, Replace: {{ sels[3] }}} - ReplaceInt: {Offset: 641, Find: 30, Replace: {{ sels[3] }}} - ReplaceInt: {Offset: 279, Find: 45, Replace: {{ sels[4] }}} - ReplaceInt: {Offset: 699, Find: 45, Replace: {{ sels[4] }}} - ReplaceInt: {Offset: 339, Find: 60, Replace: {{ sels[5] }}} - ReplaceInt: {Offset: 755, Find: 60, Replace: {{ sels[5] }}}