![]() |
#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.3.x, 3.4.x, 3.5.x
Before starting:
1. Make sure your Kobo ereader is already running one of the following firmware versions. Each patch works for only one of these specific firmware versions and no other, and so the patch you apply must exactly match the firmware version already on your device: 3.3.0 (8eb9c1f8b2) 3.3.1 (38384a81c1) 3.4.1 (d83b1b0e2a) 3.5.0 (1ad1188b51) 2. Check that your battery is well charged. 3. Note that the instructions below have changed significantly from previous firmware versions. This is because some files other than just libnickel.so.1.0.0 are patched. Patching from Windows, Linux (i386/x86_64), or Mac (OS X 10.8-10.9, i386/x86_64): 1. Download and extract patch_kobo_35.zip attached. 2. Download the appropriate Kobo firmware archive version 3.3.0, 3.3.1, 3.4.1, or 3.5.0 to match the firmware version already on your device (See this thread) into the corresponding 3.x.x_source subdirectory. (Don't extract.) Throughout these instructions 3.x.x refers to the firmware version already on your device. 3. Read and edit all the *.patch files in the 3.x.x_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.x.x.bat; For Linux/mac run ./3.x.x.sh from the command line. 5. If there were no errors, copy the resulting KoboRoot.tgz from the 3.x.x_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.x.x_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 three example 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. More complex customisation is possible by editing the replacement css text, see the Kobo Patcher thread for examples. 2. My line spacing values: There are two versions of this patch, resulting in a line spacing slider with 10 or 15 spacing values, so enable one and disable the other. 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). Last edited by GeoffR; 08-07-2014 at 02:35 AM. Reason: Updated patch_kobo_35.zip to include `Search in library by default` for firmware 3.5.0, thanks to Cecell3000 |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Other patches
If you have a new or improved patch that works with firmwares 3.3.x - 3.5.x, post in this thread and I'll add it to this post.
ePub adjustable top/bottom margins: I've now included this in with the other patches in post #1, but left it disabled by default. See this thread for discussion: Adjustable top/bottom margin patch testing Block WiFi firmware upgrade (libnickel.so.1.0.0): 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. firmware 3.3.0: Spoiler:
firmware 3.3.1: Spoiler:
firmware 3.4.1: Spoiler:
Custom page refresh options (libnickel.so.1.0.0): This patch changes the Reading Settings "Refresh the screen every:" menu options. Instead of only refreshing every 1,2,3,4,5, or 6 pages, you can add more options by changing the patch replacement values of Base, Increment, and Maximum. E.g. Base=2, Increment=2, Maximum=20 will give a menu with options to refesh every 2,4,6,8,10,12,14,16,18, or 20 pages. This patch is now included in patch_kobo_35.zip attached to post #1. Customise PinchGestureRecognizer (libnickel.so.1.0.0): Change some pinch/zoom settings. (Aura or other devices with Multi-touch kernel installed): Firmware 3.5.0: Spoiler:
Applying patches with kpg.exe: The attached files contain kpg.conf with all of the main patches from post #1 for use with kpg.exe. Note that some of the patches now need to be applied to librmsdk.1.0.0 or libadobe.so instead of libnickel.so.1.0.0, and so these ones have been commented out. Last edited by GeoffR; 08-28-2014 at 06:59 AM. Reason: Added `Customise PinchGestureRecogniser for firmware 3.5.0 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 12028
Join Date: Nov 2013
Device: Kobo Aura H2O
|
Thanks again for what you do!
One question: it's not possible to obtain the fix of redundant image cover? Thanks in advance! |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Something has changed again with the way the cover images are generated, and the simple trick of changing the filename of the useless cover to match one of the existing covers doesn't seem to work anymore.
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,545
Karma: 14008730
Join Date: May 2008
Location: PA (USA)
Device: Kobo Clara, 2E, Libre 1, PW4, PW5, 2022 Kindle, Kobo Libre Colour
|
Geoff, maybe it's just me, but the link on #1 is not working. http://rghost.net/53295702.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 70350
Join Date: May 2013
Device: Kobo AuraH2O, Glo, AuraHD, JBC2
|
Quote:
![]() ![]() ![]() Best, SHunter |
|
![]() |
![]() |
![]() |
#7 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,304
Karma: 165124318
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
I've copied the link from the download button on the page. You might give this a try. http://rghost.net/download/53295702/...erpatch_12.exe Regards, David |
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,545
Karma: 14008730
Join Date: May 2008
Location: PA (USA)
Device: Kobo Clara, 2E, Libre 1, PW4, PW5, 2022 Kindle, Kobo Libre Colour
|
Thanks, still not working for me. I'll try another browser.
Still a no go. No biggie, I'm using the #11 version and it's fine, for the Glo I used it on. Last edited by booklover6; 04-24-2014 at 01:21 PM. |
![]() |
![]() |
![]() |
#9 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 490
Karma: 1665031
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo, Galaxy TabPro
|
No patch for the "Fix page breaks" bug? Would greatly appreciate this one.
|
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
I've added the patch to the .conf files attached to post #1, and I've updated the instructions for patching with patch32lsb. But I don't know how to apply the patch with kpg.exe. Can anyone help? |
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Sorry, the link to the Kobo firmware in the Linux instructions was pointing to the 3.1.1 firmware. I've corrected it now. If you found you couldn't generate the patch because patch32lsb stopped with an error about mismatched data then that would probably be why.
|
![]() |
![]() |
![]() |
#12 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 70350
Join Date: May 2013
Device: Kobo AuraH2O, Glo, AuraHD, JBC2
|
Quote:
I am not a programmer and I do not use Linux, so for Windows, I did it by renaming the files: 1) Edit the librmsdk.conf file to one of the two option. Rename the file to kpg.conf 2) find the librmsdk.so.1.0.0 file from the latest version of the Kobo firmware, place it in the same directory as your new renamed kpg.conf. Rename librmsdk.so.1.0.0 to libnickel.so.1.0.0 3) Add kpg.exe to the directory containing your two renamed files and double click. The generated file, KoboRoot.tgz, contains a single file libnickel.so.1.0.0. Rename this file to librmsdk.so.1.0.0 and add the KoboRoot.tgz containing the renamed file to your .kobo directory on your ereader and follow the rest of the directions from GeoffR. I used 7zip to open the KoboRoot.tgz file, located the libnickel.so.1.0.0 file and renamed it to librmsdk.so.1.0.0 all from within 7zip with out extracting the file (easy way). These are not detailed instruction, more of a summary of the main events. I recommend using one of the two attached files instead. Until the original programmer alters the kpg.exe to find the new librmsdk.conf file we are stuck with renaming files. Until/Unless some finds a better solution. Shunter |
|
![]() |
![]() |
![]() |
#13 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Data and information in this post are out of date. Please see post #1 for information on how to apply the patches under Windows.
Quote:
Last edited by tshering; 04-30-2014 at 10:05 AM. |
|
![]() |
![]() |
![]() |
#14 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 70350
Join Date: May 2013
Device: Kobo AuraH2O, Glo, AuraHD, JBC2
|
Quote:
Your method is way easier than the one above (post 12). However, I get an error, see attached file. When I remove the 15 line spacing code and use the 10 line spacing code, I get a similar error. SHunter Last edited by SHunter101; 04-25-2014 at 12:18 PM. |
|
![]() |
![]() |
![]() |
#15 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
Edit: Since the error is at 676F68, I wonder why GeoffR writes twice at this point: Code:
replace_bytes = 676F68, 86 EE 1D A3 D3 E9 00 23, 00 00 00 00 00 00 F0 3F ... replace_float = 676F68, 1.0, 0.7 Last edited by tshering; 04-25-2014 at 02:01 PM. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Firmware Update Instructions and the latest Firmware Versions | mitchwah | Ectaco jetBook | 113 | 10-24-2023 09:02 PM |
Touch Patching nickel to leave the wifi active | schlecky | Kobo Developer's Corner | 4 | 01-23-2017 11:46 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.1.1 | GeoffR | Kobo Developer's Corner | 64 | 04-18-2014 01:23 PM |