View Single Post
Old 09-28-2019, 08:29 AM   #135
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,077
Karma: 147983159
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by traycold View Post
I also would ask if, in case is possible, you could find values so to get:
- something between 10-30 minutes to use for stand-by
- something between 3-5 days (i.e. 72-120 hours) for power-off

I would just use these two values, the other options could be whatever.

Thanks.
Here is my modified version. I have first value as 26min and the second as 43min. I''ve tested the 26min sleep timer and it works perfectly. I too would like larger values such as 48, 72, and 96 hours.

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 C5 45} # 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: "26m"}
  - ReplaceString: {Offset: 8, Find: "10 mins", Replace: "43m"}
  - ReplaceString: {Offset: 16, Find: "15 mins", Replace: "1h1m"}
  - ReplaceString: {Offset: 24, Find: "30 mins", Replace: "12h5m"}
  - ReplaceString: {Offset: 32, Find: "45 mins", Replace: "24h1m"}
  - ReplaceString: {Offset: 38, Find: "60 mins", Replace: "37h8m"}
  # Values (see https://www.mobileread.com/forums/showpost.php?p=3887105)
  - FindBaseAddressSymbol: "N3SettingsPowerView::initChoices()"
  - ReplaceInt: {Offset: 11,  Find: 5,  Replace: 3}
  - ReplaceInt: {Offset: 465, Find: 5,  Replace: 3}
  - ReplaceInt: {Offset: 99,  Find: 10, Replace: 5}
  - ReplaceInt: {Offset: 525, Find: 10, Replace: 5}
  - ReplaceInt: {Offset: 159, Find: 15, Replace: 7}
  - ReplaceInt: {Offset: 583, Find: 15, Replace: 7}
  - ReplaceInt: {Offset: 219, Find: 30, Replace: 83}
  - ReplaceInt: {Offset: 641, Find: 30, Replace: 83}
  - ReplaceInt: {Offset: 279, Find: 45, Replace: 165}
  - ReplaceInt: {Offset: 699, Find: 45, Replace: 165}
  - ReplaceInt: {Offset: 339, Find: 60, Replace: 255}
  - ReplaceInt: {Offset: 755, Find: 60, Replace: 255}

Last edited by JSWolf; 09-28-2019 at 08:56 AM.
JSWolf is online now   Reply With Quote