Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2014, 03:35 PM   #226
PaulJS
Member
PaulJS began at the beginning.
 
PaulJS's Avatar
 
Posts: 14
Karma: 10
Join Date: Jul 2014
Location: St.Petersburg, Russia
Device: Kobo Touch N905C
Quote:
Originally Posted by GeoffR View Post
The basic procedure is to extract each file that needs to be patched, apply the patch to each file, and then create a new KoboRoot.tgz containing just the patched files with their original pathnames.

So instead of step 4 in the instructions of post #1: if you can somehow extract libnickel.so.1.0.0 and libadobe.so into the patch_kobo_35 directory, then from that directory run:
Code:
mkdir -p ./usr/local/Kobo
./tools/patch32lsb-Darwin -p 3.5.0_source/libadobe.so.patch -i libadobe.so -o ./usr/local/Kobo/libadobe.so
./tools/patch32lsb-Darwin -p 3.5.0_source/libnickel.so.1.0.0.patch -i libnickel.so.1.0.0 -o ./usr/local/Kobo/libnickel.so.1.0.0
tar cvzf KoboRoot.tgz ./usr/local/Kobo/libadobe.so ./usr/local/Kobo/libnickel.so.1.0.0

Great!! Thanks GeoffR! it did worked for me now

Code:
Alinkas-MacBook:~ Alinka$ cd /Volumes/HOME\ /Alinka/Documents/Bubenchik/KoboHack/patch_kobo_35 
Alinkas-MacBook:patch_kobo_35 Alinka$ mkdir -p ./usr/local/Kobo
Alinkas-MacBook:patch_kobo_35 Alinka$ ./tools/patch32lsb-Darwin -p 3.5.0_source/libadobe.so.patch -i libadobe.so -o ./usr/local/Kobo/libadobe.so
Read 245796 bytes from input file 'libadobe.so'
Applied patch `Remove PDF map widget shown during panning`
Ignoring disabled patch `Preserve PDF pan position across page turns`
Ignoring disabled patch `Remove PDF page turn arrows at left and right edges of page`
Wrote 245796 bytes to output file './usr/local/Kobo/libadobe.so'
Alinkas-MacBook:patch_kobo_35 Alinka$ ./tools/patch32lsb-Darwin -p 3.5.0_source/libnickel.so.1.0.0.patch -i libnickel.so.1.0.0 -o ./usr/local/Kobo/libnickel.so.1.0.0
Read 16913252 bytes from input file 'libnickel.so.1.0.0'
Applied patch `Custom reading footer style`
Ignoring disabled patch `Custom header style`
Ignoring disabled patch `My 10 line spacing values`
Applied patch `My 15 line spacing values`
Applied patch `Custom fonts sizes`
Applied patch `Custom left & right margins`
Ignoring disabled patch `Custom kepub default margins`
Applied patch `Freedom to advanced fonts control`
Applied patch `Brightness fine control`
Applied patch `Unitless ePub line height`
Applied patch `Synopsis font size fix`
Ignoring disabled patch `Allow download all in Browser`
Ignoring disabled patch `ePub adjustable top/bottom margin`
Ignoring disabled patch `Custom page refresh options`
Ignoring disabled patch `Remove system fonts in Reader list`
Ignoring disabled patch `Remove non-system fonts in Reader list`
Ignoring disabled patch `Cyrillic keyboard`
Ignoring disabled patch `Wi-Fi insomnia`
Ignoring disabled patch `Disable pinch-to-zoom font resizing`
Ignoring disabled patch `Margins fine tuning`
Ignoring disabled patch `Block WiFi firmware upgrade`
Wrote 16913252 bytes to output file './usr/local/Kobo/libnickel.so.1.0.0'
Alinkas-MacBook:patch_kobo_35 Alinka$ tar cvzf KoboRoot.tgz ./usr/local/Kobo/libadobe.so ./usr/local/Kobo/libnickel.so.1.0.0
a ./usr/local/Kobo/libadobe.so
a ./usr/local/Kobo/libnickel.so.1.0.0
Alinkas-MacBook:patch_kobo_35 Alinka$
Can I just drug it back into ./usr/local/Kobo folder and compress KoboRoot folder into zip archive and change .zip to .tgz? Will this work?
PaulJS is offline   Reply With Quote
Old 07-13-2014, 04:02 PM   #227
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
Quote:
Originally Posted by PaulJS View Post
Can I just drug it back into ./usr/local/Kobo folder and compress KoboRoot folder into zip archive and change .zip to .tgz? Will this work?
I'm not exactly sure what you mean, but I think the answer would be no, you can't create a valid .tgz archive just by renaming a .zip archive.
GeoffR is offline   Reply With Quote
Old 07-13-2014, 04:07 PM   #228
PaulJS
Member
PaulJS began at the beginning.
 
PaulJS's Avatar
 
Posts: 14
Karma: 10
Join Date: Jul 2014
Location: St.Petersburg, Russia
Device: Kobo Touch N905C
Quote:
Originally Posted by GeoffR View Post
I'm not exactly sure what you mean, but I think the answer would be no, you can't create a valid .tgz archive just by renaming a .zip archive.
This one?

tar -pczf name_of_your_archive.tar.gz /path/to/directory
PaulJS is offline   Reply With Quote
Old 07-13-2014, 04:11 PM   #229
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
Quote:
Originally Posted by PaulJS View Post
This one?

tar -pczf name_of_your_archive.tar.gz /path/to/directory
Sorry, I don't understand what you are asking.

Edit: If you mean to replace the files in the original KoboRoot.tgz with the patched ones, then that might work, but it is probably not a good idea. Better to create a new KoboRoot.tgz that contains just the patched files, because the device will then update much faster. You might need to apply the patch a number of times until you have it customised to your liking, and it will take much longer if you install the whole original KoboRoot.tgz each time.

Last edited by GeoffR; 07-13-2014 at 04:26 PM.
GeoffR is offline   Reply With Quote
Old 07-13-2014, 04:44 PM   #230
PaulJS
Member
PaulJS began at the beginning.
 
PaulJS's Avatar
 
Posts: 14
Karma: 10
Join Date: Jul 2014
Location: St.Petersburg, Russia
Device: Kobo Touch N905C
Quote:
Originally Posted by GeoffR View Post
Sorry, I don't understand what you are asking.

Edit: If you mean to replace the files in the original KoboRoot.tgz with the patched ones, then that might work, but it is probably not a good idea. Better to create a new KoboRoot.tgz that contains just the patched files, because the device will then update much faster. You might need to apply the patch a number of times until you have it customised to your liking, and it will take much longer if you install the whole original KoboRoot.tgz each time.
Oh! Now I see! Do I need just to transfer on the device the new KoboRoot.tgz that was created with your script you gave me? Only that or manifest.md5sum and upgrade folder as well?
PaulJS is offline   Reply With Quote
Old 07-13-2014, 04:50 PM   #231
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
Quote:
Originally Posted by PaulJS View Post
Oh! Now I see! Do I need just to transfer on the device the new KoboRoot.tgz that was created with your script you gave me? Only that or manifest.md5sum and upgrade folder as well?
Just transfer the new KoboRoot.tgz containing the two patched files (assuming your device is already running firmware 3.5.0, if not, then upgrade first before patching it). After you eject the device, it will just unpack KoboRoot.tgz and overwrite the old files.
GeoffR is offline   Reply With Quote
Old 07-13-2014, 05:10 PM   #232
PaulJS
Member
PaulJS began at the beginning.
 
PaulJS's Avatar
 
Posts: 14
Karma: 10
Join Date: Jul 2014
Location: St.Petersburg, Russia
Device: Kobo Touch N905C
It worked super fine for me!! THANK you chrisridd and GeoffR! You're awesome guys, I appreciate that! Finally I've got Russian keyboard after 5 years! I just fixed my Kobo Touch broken display this week with one from Kindle! I'm back to my best eReader now
Cheers!
PaulJS is offline   Reply With Quote
Old 07-14-2014, 08:01 PM   #233
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
Quote:
Originally Posted by bug_me_not View Post
One tiny thing I am missing on 3.5.x patch is the:
search library by default option.
That function is quite different in 3.5.0, and I can't see any way to adapt the old patch.
GeoffR is offline   Reply With Quote
Old 07-15-2014, 03:35 AM   #234
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,555
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Does the "Advanced" font setting (the weight/sharpness slider in particular) work with sideloaded fonts at all? I have enabled the patch, and I see the option; when I move the slider I see the effect in the preview panel, but it doesn't seem to have any effect in the book. (This is with v. 3.3.0, in Aura.)
Jellby is offline   Reply With Quote
Old 07-15-2014, 03:51 AM   #235
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
Quote:
Originally Posted by Jellby View Post
Does the "Advanced" font setting (the weight/sharpness slider in particular) work with sideloaded fonts at all? I have enabled the patch, and I see the option; when I move the slider I see the effect in the preview panel, but it doesn't seem to have any effect in the book. (This is with v. 3.3.0, in Aura.)
Yes it does generally work with sideloaded fonts, although there may be some particular fonts it doesn't work with. Two reasons I can think that it might show correctly in the preview but not in the book:

1. You haven't pressed the "Apply" button before closing the advanced font dialogue.

2. The font showing in the book is not the font that you are have selected for adjustment. Try changing to a different font: if the font shown in the book doesn't change to the font you selected then the book has been created in a way that forces a certain font to be used rather than the one you selected. Only way to get around this is to edit the book's stylesheet so that the paragraph classes for the main text inherit the font set at the body level. (The font you select in the device's menu is applied at body level).
GeoffR is offline   Reply With Quote
Old 07-15-2014, 04:02 AM   #236
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,555
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Neither of those options applies. Changing the weight with one of the pre-loaded fonts works fine in the same book, which means that the font is not hardcoded. Strange... it looks like the same font in different books has different weights, but it may be a difference in size too. I'll try again after upgrading to 3.5.0 and rebooting. Maybe I should remove the books' settings too.
Jellby is offline   Reply With Quote
Old 07-15-2014, 04:19 AM   #237
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
The sideloaded font I use for testing is Dark Courier: http://h10025.www1.hp.com/ewfrf/wc/s...reitem=lj611en
GeoffR is offline   Reply With Quote
Old 07-20-2014, 09:58 PM   #238
Cecell3000
Enthusiast
Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.Cecell3000 ought to be getting tired of karma fortunes by now.
 
Posts: 46
Karma: 303048
Join Date: Feb 2013
Location: Brazil
Device: Kindle Paperwhite 3
`Fix page breaks bug` to "disable" widows/orphans css

I think the patch `Fix page breaks bug` essential

I use to "disable" widows/orphans and avoid blank space at the bottom margin.

I tried to adapt to firmware 3.5.0
here:
Code:
# librmsdk.so.1.0.0 in firmware 3.5.0 (1ad1188b51)

<Patch>
patch_name = `Fix page breaks bug`
patch_enable = `yes`
replace_bytes = 2B87F6, E5 D0, E5 E7
#Alternative method
#replace_bytes = 2B87F6, E5 D0, 00 46
</Patch>

add file librmsdk.so.1.0.0.patch to folder /patch_kobo_35/3.5.0_source/

I hope it is useful.
Attached Files
File Type: rar librmsdk.so.1.0.0.patch.rar (264 Bytes, 223 views)
Cecell3000 is offline   Reply With Quote
Old 07-20-2014, 10:13 PM   #239
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,582
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Cecell3000 View Post
I think the patch `Fix page breaks bug` essential

I use to "disable" widows/orphans and avoid blank space at the bottom margin.

I hope it is useful.
Probably not that useful since the long paragraph bug was fixed in the version of the Adobe RMSDK used to build 3.5.0.

So far none of my test books showed that bug so I agree that it was fixed making the page break fix unneeded.

Regards,
David
DNSB is offline   Reply With Quote
Old 07-21-2014, 03:40 AM   #240
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by Cecell3000 View Post
I think the patch `Fix page breaks bug` essential
Without regard of the question whether this patch is useful, I would like to mention that in addition to
Quote:
Originally Posted by Cecell3000 View Post
add file librmsdk.so.1.0.0.patch to folder /patch_kobo_35/3.5.0_source/
Linux users have also to add the concerned library to the FILES_TO_PATCH list in 3.5.0.sh:
Code:
FILES_TO_PATCH="./usr/local/Kobo/libnickel.so.1.0.0 ./usr/local/Kobo/libadobe.so ./usr/local/Kobo/librmsdk.so.1.0.0"
tshering is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:54 AM.


MobileRead.com is a privately owned, operated and funded community.