Quote:
Originally Posted by geek1011
OK, for the custom values:
To use it, find the column with the values you want, replace the replace value in the ReplaceHex with the instruction at the top of the column (warning: if you type it wrong, you may need to factory reset, so I suggest. you copy/paste it), and replace the replace values with the number from the leftmost column and the strings from the column you want.
JSWolf, you probably want the values in the 20 column (17m - 3d). traycold, you probably want the values in the 21 column (34m - 6d)
|
thank you very much.
Just to be sure not to make a terrible mistake, and assuming I'm using the values in the 21 column, is the following correct:
Code:
Larger Sleep/Power-off timeouts:
- Enabled: yes
- PatchGroup: Sleep/Power-off timeouts
- Description: |
Increase the available sleep/power-off timeouts to larger values (up to a
few weeks). See https://www.mobileread.com/forums/showpost.php?p=3887105
for additional values.
# Multiplier in N3PowerWorkflowManager::configureWakeup
- ReplaceBytesAtSymbol: {Symbol: "N3PowerWorkflowManager::configureWakeup(AlarmControl*, int, char const*)", Offset: 11, FindH: 04 FB 05 F5, ReplaceH: 4F EA 45 55} # mul r5(dest), r4(multiplier), r5(mins) -> lsl r5, r5, #19
# Multiplier in N3PowerWorkflowManager::pollBattery
- ReplaceBytesAtSymbol: {Symbol: "N3PowerWorkflowManager::pollBattery()", Offset: 101, FindH: 08 FB 00 F8, ReplaceH: 4F EA C0 48} # mul r8(dest), r8(multiplier), r0(mins) -> lsl r8, r0, #19
- ReplaceBytesAtSymbol: {Symbol: "N3PowerWorkflowManager::pollBattery()", Offset: 149, FindH: 02 FB 00 F2, ReplaceH: 4F EA C0 42} # mul r2(dest), r2(multiplier), r0(mins) -> lsl r2, r0, #19
# Menu text
- FindBaseAddressString: "5 mins\0"
- ReplaceString: {Offset: 0, Find: "5 mins\0", Replace: "34 min"}
- ReplaceString: {Offset: 8, Find: "10 mins", Replace: "1 ora"}
- ReplaceString: {Offset: 16, Find: "15 mins", Replace: "4 ore"}
- ReplaceString: {Offset: 24, Find: "30 mins", Replace: "1 gg"}
- ReplaceString: {Offset: 32, Find: "45 mins", Replace: "3 gg"}
- ReplaceString: {Offset: 38, Find: "60 mins", Replace: "4 gg"}
# Values (see https://www.mobileread.com/forums/showpost.php?p=3887105)
- FindBaseAddressSymbol: "N3SettingsPowerView::initChoices()"
- ReplaceInt: {Offset: 11, Find: 5, Replace: 1}
- ReplaceInt: {Offset: 465, Find: 5, Replace: 1}
- ReplaceInt: {Offset: 99, Find: 10, Replace: 2}
- ReplaceInt: {Offset: 525, Find: 10, Replace: 2}
- ReplaceInt: {Offset: 159, Find: 15, Replace: 7}
- ReplaceInt: {Offset: 583, Find: 15, Replace: 7}
- ReplaceInt: {Offset: 219, Find: 30, Replace: 41}
- ReplaceInt: {Offset: 641, Find: 30, Replace: 41}
- ReplaceInt: {Offset: 279, Find: 45, Replace: 124}
- ReplaceInt: {Offset: 699, Find: 45, Replace: 124}
- ReplaceInt: {Offset: 339, Find: 60, Replace: 165}
- ReplaceInt: {Offset: 755, Find: 60, Replace: 165}
In particular, I used the value of column 21 in the replace related to N3PowerWorkflowManager::configureWakeup (value in red above), but left unchanged (respect the original patch) the replace related to N3PowerWorkflowManager:

ollBattery.