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 11-10-2014, 05:33 AM   #151
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
@Anak

Your system seems not to know the "find" command, and the script breaks at this point.

Quote:
'FIND' is not recognized as an internal or external command,
operable program or batch file.
I used the find command in this script to prevent the creation of an archive, if there has not been created any content. But we could do without it. The script below should run on your system, but it will create the archive, even if nothing has been produced.
Attached Files
File Type: zip x3.11.0.bat.zip (1.5 KB, 323 views)
tshering is offline   Reply With Quote
Old 11-10-2014, 09:31 AM   #152
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
Assuming that the missing "find" command was the only problem, I provide a replacement for the 3.11.0.bat.
On systems that have access to the "find" command, the functionality remains as it was. On systems that (for reasons unknown to me) do not have access t the "find" command the concerned part of the script is skipped. That means the file KoboRoot.tgz will be created irrespective whether any patched library files have actually been produced.

It would be nice if Anak or anybody who has the problem reported by Anak could test the new batch file and report.
Attached Files
File Type: zip 3.11.0_new.bat.zip (1.6 KB, 363 views)
tshering is offline   Reply With Quote
Old 11-10-2014, 11:04 PM   #153
rogerinnyc
Addict
rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.
 
Posts: 229
Karma: 944808
Join Date: Apr 2009
Device: Kobo Libra 2, Forma and Aura One; Kindle Voyage; Galaxy Note 10
I apologize, but I'm a noob with Kobo and patching. I was able to follow the instructions in post 1, without doing any customization of any of the libnickel files, and it did a great job in reducing the bottom margin on my new H2O. But I'm not getting it in terms of further customization (e.g. I would like to increase the padding on the footer).

I'm using Notepad++ to open the libnickel file with the custom footer patch, but what exactly am I changing? When I delete all (or frankly any) of the # signs before the example lines for H2O (e.g., lines 41 through 46) and then run the 3.11.0.bat file, I get a replace_string mismatched data error for whichever line I removed the # sign from. But I haven't done anything but delete the # character and then save the file. Am I supposed to uncomment all the replace_string lines in the H2O example? Do I do anything with the main entry of the patch (e.g., line 17)? Is there something more to uncommenting than deleting the hashmark?

Any guidance would be much appreciated! Thanks.
rogerinnyc is offline   Reply With Quote
Old 11-11-2014, 12:59 AM   #154
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 rogerinnyc View Post
I apologize, but I'm a noob with Kobo and patching. I was able to follow the instructions in post 1, without doing any customization of any of the libnickel files, and it did a great job in reducing the bottom margin on my new H2O. But I'm not getting it in terms of further customization (e.g. I would like to increase the padding on the footer).

I'm using Notepad++ to open the libnickel file with the custom footer patch, but what exactly am I changing? When I delete all (or frankly any) of the # signs before the example lines for H2O (e.g., lines 41 through 46) and then run the 3.11.0.bat file, I get a replace_string mismatched data error for whichever line I removed the # sign from. But I haven't done anything but delete the # character and then save the file. Am I supposed to uncomment all the replace_string lines in the H2O example? Do I do anything with the main entry of the patch (e.g., line 17)? Is there something more to uncommenting than deleting the hashmark?

Any guidance would be much appreciated! Thanks.
As well as uncommenting (removing the '#' from) the example you want, you also need to comment out (add a '#' to) the examples you don't want. Only one example can be active (uncommented) at once.

E.g. after choosing the H2O example it should look like this:
Code:
# Example for Glo/Aura:
#replace_string = DBDC0D, `min-height: 70px;`, `min-height: 40px;`
#replace_string = DBDC20, `max-height: 70px;`, `max-height: 40px;`
#replace_string = DBDC3D, `footerMargin: 105;`, `footerMargin: 105;`
#replace_string = DBDC58, `font-size: 16px;`, `font-size: 20px;`
#replace_string = DBDC6A, `padding-bottom: 0px;`, `padding-bottom: 5px;`
#replace_string = DBDC80, `margin-top: 0px;`, `margin-top: 0px;`
#
# Example for AuraHD/H2O:
replace_string = DBDC0D, `min-height: 70px;`, `min-height: 50px;`
replace_string = DBDC20, `max-height: 70px;`, `max-height: 50px;`
replace_string = DBDC3D, `footerMargin: 105;`, `footerMargin: 170;`
replace_string = DBDC58, `font-size: 16px;`, `font-size: 26px;`
replace_string = DBDC6A, `padding-bottom: 0px;`, `padding-bottom: 8px;`
replace_string = DBDC80, `margin-top: 0px;`, `margin-top: 0px;`
#
Edit: Once that is done, to increase the padding (space between bezel and bottom of footer text) change the replacement string in the padding-bottom line, without increasing the length of the replacement string. E.g. to add an extra 10 pixels (note that the extra digit relaces the leading space):
Code:
replace_string = DBDC6A, `padding-bottom: 0px;`, `padding-bottom:18px;`

Last edited by GeoffR; 11-11-2014 at 01:10 AM. Reason: change padding example
GeoffR is offline   Reply With Quote
Old 11-11-2014, 05:05 AM   #155
vIosOnE
Junior Member
vIosOnE began at the beginning.
 
vIosOnE's Avatar
 
Posts: 7
Karma: 10
Join Date: Sep 2014
Location: Spain
Device: Kobo AuraH2O
Works well in Aura H2O. Thanks for all
vIosOnE is offline   Reply With Quote
Old 11-11-2014, 11:07 AM   #156
rogerinnyc
Addict
rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.
 
Posts: 229
Karma: 944808
Join Date: Apr 2009
Device: Kobo Libra 2, Forma and Aura One; Kindle Voyage; Galaxy Note 10
Quote:
Originally Posted by GeoffR View Post
As well as uncommenting (removing the '#' from) the example you want, you also need to comment out (add a '#' to) the examples you don't want. Only one example can be active (uncommented) at once.
Thanks for the step-by-step. My mistake was basic (head slap!). I didn't realize that the Aura/Glo example started off in the libnickel file as uncommented, so while I correctly uncommented the H2O example for my device, I failed to add in the hashmarks to comment out the example right above it. Doh!

Last edited by rogerinnyc; 11-11-2014 at 11:09 AM.
rogerinnyc is offline   Reply With Quote
Old 11-12-2014, 03:52 AM   #157
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,079
Karma: 14079267
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by rogerinnyc View Post
Thanks for the step-by-step. My mistake was basic (head slap!). I didn't realize that the Aura/Glo example started off in the libnickel file as uncommented, so while I correctly uncommented the H2O example for my device, I failed to add in the hashmarks to comment out the example right above it. Doh!
Good to hear I wasn't the only one who did that
mbovenka is offline   Reply With Quote
Old 11-12-2014, 04:35 AM   #158
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
Anyone using Windows 8? Did the instructions in post #1 work for you? If not, does the new batch file in tshering's post #152 solve the problem? Do you need to run the batch file in administrator mode for it to work?

Quote:
Originally Posted by tshering View Post
Assuming that the missing "find" command was the only problem, I provide a replacement for the 3.11.0.bat.
On systems that have access to the "find" command, the functionality remains as it was. On systems that (for reasons unknown to me) do not have access t the "find" command the concerned part of the script is skipped. That means the file KoboRoot.tgz will be created irrespective whether any patched library files have actually been produced.

It would be nice if Anak or anybody who has the problem reported by Anak could test the new batch file and report.

Last edited by GeoffR; 11-12-2014 at 04:38 AM. Reason: ... in administrator mode? ...
GeoffR is offline   Reply With Quote
Old 11-12-2014, 08:49 AM   #159
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,079
Karma: 14079267
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by GeoffR View Post
Anyone using Windows 8? Did the instructions in post #1 work for you? If not, does the new batch file in tshering's post #152 solve the problem? Do you need to run the batch file in administrator mode for it to work?
The original batch file worked for me on Windows 8.1 64 bits. Whether it needs admin rights I don't know, as my account has them by default (yeah, bad practice, I know..), but I would be surprised if it did, assuming you run it from a directory tree owned by the account you're running it under.
mbovenka is offline   Reply With Quote
Old 11-12-2014, 08:52 AM   #160
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,535
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Just had a thought (I know... highly unusual).

I know we've shown in the past that collection of full stats on kEpubs is controlled by what location they are stored in; Kobo downloaded material stored in .Kobo directory structure records stats, side loaded material stored elsewhere do not store stats.

This seems to suggest that there is a check on location being done. Any chance of a patch to change this, to re-enable stats regardless of location?
PeterT is offline   Reply With Quote
Old 11-12-2014, 09:54 PM   #161
xtine
Addict
xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.
 
xtine's Avatar
 
Posts: 355
Karma: 1432252
Join Date: Oct 2009
Device: Kobo Forma
Trying to run the shell script from my Mac, I'm getting this error:

Code:
Extracting files to patch from 3.11.0_source/kobo-update-3.11.0.zip ...
tar: ./usr/local/Kobo/librmsdk.so.1.0.0: Not found in archive
tar: ./usr/local/Kobo/libadobe.so: Not found in archive
tar: ./usr/local/Kobo/libnickel.so.1.0.0: Not found in archive
tar: Error exit delayed from previous errors.
Cleaning up /var/folders/kf/4nkwy8sd7s39ym600dvch0pm0000gn/T/patch32lsb_XXXXXXXX.DMYDvKNl
logout

[Process completed]
I don't know what I'm doing wrong. I have the kobo-update-3.11.0 zip file in the 3.11.0_source folder. It should be kept zipped, right?

I don't know what I'm doing so please be gentle Thanks!

Update: I tried to run the bat file from a PC ang managed to get a tgz file which I copied onto my H2O. Upon ejecting, it seemed to update but it's been 10 minutes and it's still updating. I hope I haven't bricked my Kobo!

Update #2: In hindsight there may have been errors when I ran the bat file but stupidly assumed everything was fine because I got the tgz file anyway. Thankfully I've managed to do a factory reset so at least the Kobo isn't bricked.

Would still like to do the patch if someone can help me out but I probably won't be trying it again by myself without assistance from the experts
Attached Thumbnails
Click image for larger version

Name:	Photo 11-13-14, 3 38 15 PM.jpg
Views:	396
Size:	178.3 KB
ID:	131020  

Last edited by xtine; 11-13-2014 at 03:07 AM.
xtine is offline   Reply With Quote
Old 11-13-2014, 04:50 AM   #162
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 xtine View Post
Update: I tried to run the bat file from a PC ang managed to get a tgz file which I copied onto my H2O. Upon ejecting, it seemed to update but it's been 10 minutes and it's still updating. I hope I haven't bricked my Kobo!

Update #2: In hindsight there may have been errors when I ran the bat file but stupidly assumed everything was fine because I got the tgz file anyway. Thankfully I've managed to do a factory reset so at least the Kobo isn't bricked.
Just to exclude one possibility: Was your H2O running on FW 3.11.0 when you applied the patch? If you were under FW 3.11.0, it would be interesting to know the content of your tgz file.

And for my curiosity: How did you do the factory reset? By tapping at the top corners of the screen? If yes, did the reset start before the squares started running or afterwards?

Last edited by tshering; 11-13-2014 at 05:01 AM.
tshering is offline   Reply With Quote
Old 11-13-2014, 04:52 AM   #163
xtine
Addict
xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.
 
xtine's Avatar
 
Posts: 355
Karma: 1432252
Join Date: Oct 2009
Device: Kobo Forma
Yes, I checked several times to be sure.

Trying to recheck what I did wrong -- the 3.11 zip file I transferred to the 3.11.0_source folder was this one:

Mark 5 Hardware : New Aura (and probably the Aura H2O)
(4d8eac1207, 16 Oct 2014)
72.9 MB - 74,690 KB - 76,481,595 bytes

from this thread here: https://www.mobileread.com/forums/sho...d.php?t=185660

I don't know if that is indeed the correct 3.11 file for the H2O?

Last edited by xtine; 11-13-2014 at 04:56 AM.
xtine is offline   Reply With Quote
Old 11-13-2014, 05:08 AM   #164
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 xtine View Post
Yes, I checked several times to be sure.

Trying to recheck what I did wrong -- the 3.11 zip file I transferred to the 3.11.0_source folder was this one:

Mark 5 Hardware : New Aura (and probably the Aura H2O)
(4d8eac1207, 16 Oct 2014)
72.9 MB - 74,690 KB - 76,481,595 bytes

from this thread here: https://www.mobileread.com/forums/sho...d.php?t=185660

I don't know if that is indeed the correct 3.11 file for the H2O?
Yes, this is the correct one.
tshering is offline   Reply With Quote
Old 11-13-2014, 05:11 AM   #165
xtine
Addict
xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.xtine ought to be getting tired of karma fortunes by now.
 
xtine's Avatar
 
Posts: 355
Karma: 1432252
Join Date: Oct 2009
Device: Kobo Forma
Thanks. I'm stumped then. I've tried redownloading both the patch and firmware and running the shell script again several times (and on two different Macs), still come up with the error message. I'm afraid to run it through the PC again, because I might not be able to resurrect the Kobo again.
xtine 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
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


All times are GMT -4. The time now is 07:36 PM.


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