View Single Post
Old 01-19-2014, 03:38 AM   #2
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
More patches

If anyone has any other patches for firmware 3.1.1, post them in this thread and I'll add a link to them here. To use these patches, just copy and paste them into your kpg.conf (or patch32lsb.conf).


A replacement for the standard line spacing patch which allows all 15 spacing values to be changed:
Spoiler:
Code:
<Patch>
patch_name = `My 15 line spacing values` 
patch_enable = `yes`
# save regs, load val1 from new table
replace_bytes = 73FA38, 00 22 00 23 06 F1 48 05, B0 46 06 F1 48 05 3C A3
replace_bytes = 73FA40, C3 F6 F0 73, D3 E9 00 23
# load val5 from new table
replace_bytes = 73FA88, 4F F0 33 32 43 F2 33 33, 2B A3 D3 E9 00 23 00 46
replace_bytes = 73FA90, C3 F6 F3 73, 00 46 00 46
# load val7 from new table
replace_bytes = 73FAB2, 00 22 00 23 C3 F6 F8 73, 23 A3 D3 E9 00 23 00 46
# load val10 from new table
replace_bytes = 73FAEA, 00 22 4F F0 80 43, 17 A3 D3 E9 00 23
# load val11-val14 from old table in a loop to make room for new table
replace_bytes = 73FAFC, 32 A3 D3 E9 00 23 1E A9, 32 A7 00 26 D7 E9 00 23
replace_bytes = 73FB04, 28 46 61 E9 0A 23 35 F6, 1E A9 31 44 61 E9 0A 23
replace_bytes = 73FB0C, 60 EB 30 A3 D3 E9 00 23, 28 46 35 F6 5E EB 08 36
replace_bytes = 73FB14, 1E A9 28 46 61 E9, 08 37 20 2E F2 D1
# restore regs, load val15 from new table
replace_bytes = 73FB1A, 08 23 35 F6 56 EB 2D A3, 46 46 28 46 0C A3 D3 E9
replace_bytes = 73FB22, D3 E9 00 23 1E A9 28 46, 00 23 1E A9 61 E9 02 23
replace_bytes = 73FB2A, 61 E9 06 23 35 F6, 35 F6 50 EB 13 E0
# new table, inial values 1.0, 1.2, 1.5, 2.0, 3.0
replace_bytes = 73FB30, 4E EB 2B A3 D3 E9 00 23, 00 00 00 00 00 00 F0 3F
replace_bytes = 73FB38, 1E A9 28 46 61 E9 04 23, 33 33 33 33 33 33 F3 3F
replace_bytes = 73FB40, 35 F6 44 EB 00 23 00 22, 00 00 00 00 00 00 F8 3F
replace_bytes = 73FB48, C4 F2 08 03 1E A9 61 E9, 00 00 00 00 00 00 00 40
replace_bytes = 73FB50, 02 23 28 46 35 F6 3A EB, 00 00 00 00 00 00 08 40
#
# 15 values for replacement
replace_float = 73FB30, 1.0,  0.7
replace_float = 73FB98, 1.05, 0.75
replace_float = 73FBA0, 1.07, 0.8
replace_float = 73FBA8, 1.1,  0.825
replace_float = 73FB38, 1.2,  0.85
replace_float = 73FBB0, 1.35, 0.875
replace_float = 73FB40, 1.5,  0.9
replace_float = 73FBB8, 1.7,  0.925
replace_float = 73FBC0, 1.8,  0.95
replace_float = 73FB48, 2.0,  0.975
replace_float = 73FBC8, 2.2,  1.0
replace_float = 73FBD0, 2.4,  1.05
replace_float = 73FBD8, 2.6,  1.1
replace_float = 73FBE0, 2.8,  1.2
replace_float = 73FB50, 3.0,  1.5
</Patch>


A patch to prevent the AndroidBookLoadTablet_Aspect.parsed cover image file being downloaded or generated, which fixes a problem with the cover image for kepubs not being displayed on the book details screen if wifi is turned off.
(Note that recent versions of Calibre will copy the AndroidBookLoadTablet_Aspect.parsed image along wth other cover images if you have "Send covers" enabled, so this patch may no longer be needed.)
Spoiler:
Code:
<Patch>
patch_name = `Avoid generating/downloading redundant cover image`
patch_enable = `yes`
replace_string = 1104FA4, `AndroidBookLoadTablet_Aspect`, `N3_LIBRARY_FULL`
</Patch>



Patches to force the use of user selected font and line spacing for epubs:
https://www.mobileread.com/forums/sho...&postcount=641


Patches to ignore the book's internal CSS stylesheet and TOC navpoints:
Spoiler:
Code:
<Patch>
patch_name = `Ignore book internal CSS stylesheet`
patch_enable = `no`
replace_string = 14413CC, `s`, `_`
replace_string = 14413E4, `s`, `_`
</Patch>

<Patch>
patch_name = `Ignore book TOC navpoints`
patch_enable = `yes`
replace_string = 144388C, `n`, `_`
</Patch>



Block WiFi firmware upgrade: This patch should prevent the firmware being upgraded during WiFi sync. You can still upgrade by sideloading the new firmware or by syncing via the Kobo desktop program. See this thread for discussion.
Spoiler:
Code:
<Patch>
patch_name = `Block WiFi firmware upgrade`
patch_enable = `no`
replace_string = 1106BE1, `%3/%4/%5`, `k/99.9/5`
</Patch>

Last edited by GeoffR; 05-21-2014 at 01:24 PM. Reason: Updated `Block WiFi firmware upgrade` patch
GeoffR is offline   Reply With Quote