![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Instructions for patching firmware 3.12.0
Before starting:
1. Make sure your Kobo ereader is already running firmware version 3.12.0 (563a2baefd). 2. Check that your battery is well charged. 3. Note that in Windows 8 the instructions below might require the batch file to be run in admistrator mode. Patching from Windows, Linux (i386/x86_64), or Mac (OS X 10.8-10.9, i386/x86_64): 1. Download and extract patch_kobo_3120.zip (attached). [WARNING: If using Windows, make sure the path to the extracted files does not contain any '&' characters.] 2. Download the Kobo firmware archive version 3.12.0 for your device (See this thread) into the 3.12.0_source subdirectory. (Don't extract.) 3. Read and edit all the *.patch files in the 3.12.0_source subdirectory in order to: choose which patches to enable (patch_enable=`yes`) or disable (patch_enable=`no`); and to change some of the replacement values to suit your device and preferences. (See the section below on customising the patches.) 4. In Windows double-click 3.12.0.bat; For Linux/Mac open a terminal, change to the patch_kobo_3120 directory, and run ./3.12.0.sh from the command line. 5. If there were no errors, copy the resulting KoboRoot.tgz from the 3.12.0_target subdirectory to the .kobo directory on your ereader. 6. Safely eject and unplug the device, which will then update and restart. To return your ereader to its original unpatched state: 1. Edit all the 3.12.0_source/*.patch files to disable all patches (set patch_enable = `no` for every patch). 2. Repeat steps 4-6 of the procedure above. Customising the patches to suit your preferences and device Some patches require no customisation, you can choose simply to enable them or not. But the following patches allow more customisation and their initial values should be considered examples only. 1. Custom reading footer style: There are six example footer styles, comment out the styles you don't want by adding a "#" character at the beginning of the line beginning with replace_, and leave the style you want uncommented. Examples 1 or 4 are best if using the ePub adjustable top/bottom margin patches. More complex customisation is possible, see this post for a guide on what all the options do. 2. My line spacing values: Change the lines of the enabled patch starting with replace_float: the middle number is the original spacing value, the number to change is on the right. The values are the line spacings set by the adjustment slider. The actual spacing depends on the font used, but for most fonts a value of 0.7 gives very tight spacing with ascenders/descenders overlapping, a value of about 0.9 gives a spacing similar to that of a mass-market paperback. The smallest value available in the unpatched firmware is 1.0. 3. Custom font sizes: Change the lines starting with replace_int. The middle number is the original value, the number to change is on the right. The values are the font sizes set by the adjustment slider, they are in pixels so the absolute size depends on the device: size 20 on the Glo is about the same as size 25 on the AuraHD. Some books change the base font size, so you may need font sizes that are larger or smaller than your normal reading size to allow for adjusting such books. 4. Custom left & right margins: Change the lines starting with replace_int. The middle number is the original value, the number to change is on the right. The values are the margin widths (in units of about 1% screen width I think) set by the adjustment slider. The margin size is added to whatever margin is fixed in the book (if any) and in reading software (The kepub reader has a base margin of about 2 units, the epub reader has a base margin of zero). 5. Brightness fine control: Change the lines starting with replace_int. The middle number is the original value, the number to change is on the right. The values are the percentage amounts that the brightness slider changes when the small or large sun symbols are tapped. (Both should probably be set to the same value). 6. ePub adjustable top/bottom margin (disabled by default): Comment out one of the replace_string lines (i.e. add a '#' character to the beginning of the line) and leave the other uncommented to select whether both top and bottom, or just the top margin, should be made adjustable. Change the right-most number of the replace_int line to set the size of the top/bottom margins relative to the left/right margins, depending on your device. (The suggested values should make the top/bottom margins roughly equal to the left/right margins). 7. ePub fixed top/bottom margin (disabled by default): Comment out one of the replace_string lines (i.e. add a '#' character to the beginning of the line) and leave the other uncommented to select whether to increase both top and bottom, or just the top margin. The replacement value is the size (in pixels) of the increased margin, seperated by \x00. For example, to fix the margin at 40 pixels instead of 25 pixels, change the replacement value from 2\x005 to 4\x000 Last edited by GeoffR; 12-14-2014 at 03:31 PM. Reason: Updated `Custom font sizes` patch, now has 40 font sizes |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Notes and more patches
Notes for firmware 3.12.0:
The number of different font sizes in the `Custom font sizes` patch has increased from 24 to 40 in this firmware version. When reading kepubs with a low line spacing setting, a partial line of text can appear at the top or bottom of a page. To avoid this it is necessary to increase the line spacing a bit. See this screenshot for example, and see this post for what I think is causing the problem. More patches for firmware 3.12.0: If you know of any more patches for firmware 3.12.0 post them in this thread and I'll add them to this list: The custom reading footer patch in the attachment to post #1 has a new layout: there are now three seperate patches for Touch/Mini, Glo/Aura, AuraHD/H2O; each patch has six example footer sizes. Here is the old style patch (libnickel.so.1.0.0.patch): Spoiler:
A patch to display page numbers as 'x / y' instead of 'Page x of y' (libnickel.so.1.0.0.patch): Spoiler:
A patch to remove the white borders around book covers on the homescreen (libnickel.so.1.0.0.patch): Spoiler:
A patch to squeeze a third row of book tiles onto the Glo/Aura homescreen, see this screenshot for example. (libnickel.so.1.0.0.patch): Glo: Spoiler:
Aura: Spoiler:
A patch to customise the sleep and power-off timeout menus options (libnickel.so.1.0.0.patch): Spoiler:
A patch to always (or never) turn on kepub hyphenation, regardless of justification setting. (libnickel.so.1.0.0.patch): Spoiler:
A patch to fix the kepub bug that cuts off letters with large side bearing (such as f) in full-screen mode. https://www.mobileread.com/forums/sho...&postcount=130 A patch to make the line spacing and justification settings selected from the reading settings (Aa) menu take effect on some epub books where they didn't before. https://www.mobileread.com/forums/sho...1&postcount=95 Patches to use a fixed font sharpness value in ePub / KePub books: https://www.mobileread.com/forums/sho...4&postcount=96 An improved `ePub fixed/adjustable top/bottom margins` patch to replace the existing `ePub adjustable top/bottom margin` and `ePub fixed top/bottom margin` patches: https://www.mobileread.com/forums/sho...&postcount=109 Attached are the main patches from post #1 for use with kpg.exe: Last edited by GeoffR; 01-18-2015 at 11:19 PM. Reason: Updated link to `Fix kepub side bearing font cut-off bug` patch. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 71,903
Karma: 122094787
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
That was fast. Thank you!
|
![]() |
![]() |
![]() |
#4 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
I'm getting a replace_string mismatched data error for the patch to display page numbers as 'x / y' instead of 'Page x of y' (libnickel.so.1.0.0.patch). I've tried adding enough spaces to match the original string but still getting the same error. I added it towards the bottom of the libnickel.so.1.0.0.patch file with the rest of the patches, which I've done in the past, and it's worked before, but I'm sure I'm doing something wrong.
<Patch> patch_name = `Custom footer` patch_enable = `yes` # # Changes the footer text with something shorter # (not sure how it affects translations) # replace_string = D1BCE8, `Page %1 <i>of</i> %2`, `%1 / %2` </Patch> Edited: Edited the incorrect string here just to prevent anyone accidentally using it. Last edited by Ripplinger; 12-06-2014 at 12:31 AM. |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,133
Karma: 16059044
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
No, I don't think so, there's a typo. Try this instead.
Code:
<Patch> patch_name = `Custom footer` patch_enable = `yes` # # Changes the footer text with something shorter # (not sure how it affects translations) # replace_string = D1BCE8, `Page %1 <i>of</i> %2`, `%1 / %2` </Patch> |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
eBook-Reader-Fan
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 444178
Join Date: Sep 2012
Location: Saarbruecken / DE
Device: Kobo Aura H2O 2nd Edition
|
Thanks for the new Patcher, GeoffR.
![]() |
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 15
Karma: 10
Join Date: Oct 2014
Device: h2o
|
If enable 'ePub fixed top/bottom margin', Error line 490.
C:\Users\XXX\Desktop\patch_kobo_3120\patch_kobo_31 20\tools\pa32lsb.exe: line 490 in 'C:\Users\XXX\Desktop\patch_kobo_3120\patch_kobo_3 120\3.12.0_source\libnic
kel.so.1.0.0.patch': replace_string mismatched data. ERROR processing C:\Users\XXX\Desktop\patch_kobo_3120\patch_kobo_31 20\3.12.0_so urce\libnickel.so.1.0.0.patch |
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
|
![]() |
![]() |
![]() |
#11 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 12028
Join Date: Nov 2013
Device: Kobo Aura H2O
|
Thanks as usual GeoffR! Is it possible to create "Custom Sleep/Power-off time menu options" also for this fw?
|
![]() |
![]() |
![]() |
#12 | |
Member
![]() Posts: 15
Karma: 10
Join Date: Oct 2014
Device: h2o
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#13 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,916
Karma: 185041098
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
|
Totally unbelievable - the patch is up before I even realise there's a new FW - how do you do that, Geoff?
|
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
|
![]() |
![]() |
![]() |
#15 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
One thing I noticed different between 3.11.0 and 3.12.0 is that the patch for enabling the Advanced Settings for fonts works properly with all fonts for me on 3.12.0. In 3.11.0, it didn't always work for some reason... the Advanced Settings weren't there, or when it was, it didn't make any difference on the font even when setting to full right. The sample showed the change, but when you clicked ok and off that screen, the font was still normal and not any darker/thicker. Might have just been a quirk on my readers, but I did have 3.11.0 and the same patches installed on 2 Glos.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.11.0 | GeoffR | Kobo Developer's Corner | 226 | 06-01-2015 05:32 AM |
Instructions for patching firmware 3.2.0 | DNSB | Kobo Developer's Corner | 66 | 12-05-2014 07:28 AM |
Instructions for patching firmware 3.8.0 | GeoffR | Kobo Developer's Corner | 92 | 10-22-2014 07:22 AM |
Instructions for patching firmware 3.3.x, 3.4.x, 3.5.x | GeoffR | Kobo Developer's Corner | 285 | 08-27-2014 10:06 AM |
Instructions for patching firmware 3.1.1 | GeoffR | Kobo Developer's Corner | 64 | 04-18-2014 01:23 PM |