01-19-2014, 04:17 AM | #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.1.1
Before starting:
1. Make sure your Kobo ereader is running firmware version 3.1.1 (761b066420). These patches work only for this specific firmware version and no other. Windows (or other OS using a Windows emulator): 1. Download mz_koboreaderpatch_11.exe (self-extracting archive) from http://rghost.net/50558386. Extract kpg.exe only (ignore the other files). 2. Download kobo-update-3.1.1.zip from http://download.kobobooks.com/firmwa...date-3.1.1.zip. Inside kobo-update-3.1.1.zip is a tar archive KoboRoot.tgz. Inside KoboRoot.tgz is a file usr/local/Kobo/libnickel.so.1.0.0. Extract libnickel.so.1.0.0 only (ignore the other files). 3. Download kpg_conf_3_1_1.zip attached and extract kpg.conf. 4. Edit kpg.conf to: enable the patches you want (set patch_enable = `yes`) and disable the patches you don't want (set patch_enable = `no`); change the replacement values for the patches to suit your preferences. (See the section below on editing kpg.conf.) 5. Put kpg.exe, libnickel.so.1.0.0, and the edited kpg.conf together in the same directory and run kpg.exe. 6. If there are no problems then a file KoboRoot.tgz will be created. Copy this file to the .kobo directory on your ereader. Safely eject then unplug the ereader. Once unplugged the ereader will update and restart. Linux (or other OS with GCC and GLIBC): 1. Download patch32lsb-v0.6.zip attached, extract patch32lsb.c, and compile with the following command (there should be no errors or warnings): gcc -Wall -o patch32lsb patch32lsb.c 2. Download kobo-update-3.1.1.zip from http://download.kobobooks.com/firmwa...date-3.1.1.zip. Inside kobo-update-3.1.1.zip is a tar archive KoboRoot.tgz. Inside KoboRoot.tgz is a file usr/local/Kobo/libnickel.so.1.0.0. Extract libnickel.so.1.0.0 only (ignore the other files). You can use the following command to do this: unzip -p kobo-update-3.1.1.zip KoboRoot.tgz | tar xz --strip-components=4 ./usr/local/Kobo/libnickel.so.1.0.0 3. Download patch32lsb_conf_3_1_1.zip attached and extract patch32lsb.conf. 4. Edit patch32lsb.conf to: enable the patches you want (set patch_enable = `yes`) and disable the patches you don't want (set patch_enable = `no`); change the replacement values for the patches to suit your preferences. (See the section below on editing kpg.conf.) 5. Put patch32lsb, libnickel.so.1.0.0, and patch32lsb.conf together in the current directory and run the following commands: mkdir -p usr/local/Kobo ./patch32lsb -p patch32lsb.conf -i libnickel.so.1.0.0 -o usr/local/Kobo/libnickel.so.1.0.0 tar czf KoboRoot.tgz ./usr/local/Kobo/libnickel.so.1.0.0 6. If there are no problems then a file KoboRoot.tgz will be created. Copy this file to the .kobo directory on your ereader. Safely eject then unplug the ereader. Once unplugged the ereader will update and restart. To return your ereader to its original unpatched state: 1. Edit kpg.conf or patch32lsb.conf to disable all patches (set patch_enable = `no` for every patch). 2. Delete the old KoboRoot.tgz, then repeat steps 5-6 of the procedure for your OS above. Editing kpg.conf to suit to 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 existing values in kpg.conf 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: Change the lines starting with replace_float. The middle number is the original value, the number on the right is the new value that can be changed. 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 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 on the right is the new value that can be changed. 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 on the right is the new value that can be changed. The values are the margin widths (in units of 1/16 inch 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 on the right is the new value that can be changed. 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). Last edited by GeoffR; 01-26-2014 at 03:53 AM. Reason: Added section on editing kpg.conf to suit preferences and device. |
01-19-2014, 04:38 AM | #2 |
Wizard
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:
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:
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:
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:
Last edited by GeoffR; 05-21-2014 at 02:24 PM. Reason: Updated `Block WiFi firmware upgrade` patch |
Advert | |
|
01-19-2014, 07:53 AM | #3 |
Connoisseur
Posts: 75
Karma: 30702
Join Date: Jul 2010
Location: Italy
Device: Kobo Libra H2O
|
Very nice, thank you!
|
01-19-2014, 10:41 AM | #4 |
eBook-Reader-Fan
Posts: 175
Karma: 444178
Join Date: Sep 2012
Location: Saarbruecken / DE
Device: Kobo Aura H2O 2nd Edition
|
Thanks a lot.
|
01-19-2014, 06:14 PM | #5 |
Guru
Posts: 796
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
Thanks, GeoffR. This makes things a whole lot easier. It would also be nice if, from now on, each new FW version gets its own "Instructions for patching firmware n.n.n" post. I spent many hours reading the other thread, trying to figure out what to do for 3.1.1.
|
Advert | |
|
01-20-2014, 08:13 PM | #6 |
Zealot
Posts: 129
Karma: 2934438
Join Date: Jan 2014
Location: Winnipeg MB Canada
Device: aura hd
|
Alas, I followed the instructions and all I got was a full factory reset
Now re-populating it with all my content. Then I will just stick to reading with stock FW |
01-20-2014, 09:04 PM | #7 |
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
|
Excellent, thank you. Worked like a charm on my Glo.
|
01-22-2014, 03:25 AM | #8 |
Member
Posts: 14
Karma: 13124
Join Date: May 2013
Location: Thailand
Device: Kobo Aura HD, Sony PRS-650
|
Thank you so much for the instruction. It does work!
|
01-22-2014, 11:34 PM | #9 | |
Nameless Being
|
Quote:
Icallaci, Sorry, I asked you a question but I did so before I read the entire thread...Thanks, Last edited by Bill_D; 01-23-2014 at 12:09 AM. |
|
01-22-2014, 11:47 PM | #10 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Did you read the first post in this thread?
|
01-23-2014, 12:58 AM | #11 |
Nameless Being
|
Dave,
No, like an idiot, I didn't. I spent literally hours and hours researching last weekend (to no avail). Today I started again and when I came across this thread I posted without reading the whole thing. Now I'm feeling a bit sheepish but STOKED! GeoffR, Worked like a champ....Thanks a million!! |
01-23-2014, 01:39 AM | #12 |
Nameless Being
|
One quick question....is there a kpg.conf edit that will disable the book title from being displayed? Or mabe decrease the header to nothing? Not many people need to be reminded of what book they are reading with every page turn.
Thanks in advance. |
01-23-2014, 02:23 AM | #13 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Firstly, the book title is only shown for kepubs. If you read epubs the title isn't shown.
For kepubs, I don't remember seeing a patch. But if you add "showPageHeader=false" into the "Reading" section of the "Kobo eReader.conf" file, the titles are not shown. Unfortunately, it doesn't reclaim all the space. |
01-23-2014, 02:37 AM | #14 |
Nameless Being
|
Thanks for the info Dave,
I read mobi's because I like to know how many pages I have left in a book regardless of the font size (total pages remain the same with epubs when font size is changed). Unfortunately, mobi's also show the title (at least the ones I have do). |
01-23-2014, 02:55 AM | #15 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I haven't tried a mobi for a while and I hadn't noticed the title or the page numbering. I usually found problems with them and converting to epub solved them.
Kepubs use do page numbering per screen but it is per chapter rather than the whole book. There are advantages especially if the book has footnotes or pictures. But it shows the title at the top of the screen. There is a calibre plugin to sideload as kepub if you want to experiment. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Firmware Update Instructions and the latest Firmware Versions | mitchwah | Ectaco jetBook | 113 | 10-24-2023 10:02 PM |
Touch Patching nickel to leave the wifi active | schlecky | Kobo Developer's Corner | 4 | 01-23-2017 12:46 PM |
Automatically patching custom recipies with updates to built-in recipies | squigish | Development | 4 | 10-13-2013 04:48 AM |