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 12-13-2013, 05:43 AM   #616
erikssenmar867
Connoisseur
erikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of light
 
Posts: 58
Karma: 12028
Join Date: Nov 2013
Device: Kobo Aura H2O
Quote:
Originally Posted by GeoffR View Post
I have updated the file in post #605 with this patch now.
Wow! I have no words... thank u very much for your work
erikssenmar867 is offline   Reply With Quote
Old 12-13-2013, 06:52 AM   #617
Antizip
Junior Member
Antizip began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2013
Location: Moscow, Russia
Device: Kobo Glo
I noticed a slightly strange behavior of Kobo Glo with this patch. When I open a book from library the screen flashes two times: when the text appears and then again. I.e. the device forces screen refresh.

Checked on 3.1.0 and 3.1.1. Without patch there is no forced refresh.
I'm fine with this "new feature", but maybe someone has any thoughts how to disable it?
Antizip is offline   Reply With Quote
Advert
Old 12-13-2013, 07:11 AM   #618
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 Antizip View Post
I noticed a slightly strange behavior of Kobo Glo with this patch. When I open a book from library the screen flashes two times: when the text appears and then again. I.e. the device forces screen refresh.

Checked on 3.1.0 and 3.1.1. Without patch there is no forced refresh.
I'm fine with this "new feature", but maybe someone has any thoughts how to disable it?
Which patches do you have enabled? I haven't seen anything like this on my Glo, but I am only using the line spacing, font size, and margins patches.
GeoffR is offline   Reply With Quote
Old 12-13-2013, 07:37 AM   #619
Antizip
Junior Member
Antizip began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2013
Location: Moscow, Russia
Device: Kobo Glo
Quote:
Originally Posted by GeoffR View Post
Which patches do you have enabled? I haven't seen anything like this on my Glo, but I am only using the line spacing, font size, and margins patches.
I'm using exactly the same config that you posted on previous page.
But i got your point. I'll try to disable all patches and then turn them on one by one.
Antizip is offline   Reply With Quote
Old 12-13-2013, 07:43 AM   #620
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 Antizip View Post
I'm using exactly the same config that you posted on previous page.
But i got your point. I'll try to disable all patches and then turn them on one by one.
I just tried with the footer patch using the disable footer example and I see the double refresh issue. When I use the decreased footer example, or don't enable the footer patch, then it doesn't happen.

If that is the same for you then maybe you need to experiment with the replacement footer to see if something else will work.
GeoffR is offline   Reply With Quote
Advert
Old 12-13-2013, 08:03 AM   #621
Antizip
Junior Member
Antizip began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2013
Location: Moscow, Russia
Device: Kobo Glo
Quote:
Originally Posted by GeoffR View Post
If that is the same for you then maybe you need to experiment with the replacement footer to see if something else will work.
Tried your solution. Here are the results.

footer patch enabled (no footer) = double refresh
footer patch enabled (footer decreased) = double refresh
footer patch disabled = normal behavior (no double refresh)

I'll try later to experiment with footer settings.

Antizip is offline   Reply With Quote
Old 12-13-2013, 08:41 AM   #622
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 Antizip View Post
footer patch enabled (no footer) = double refresh
footer patch enabled (footer decreased) = double refresh
footer patch disabled = normal behavior (no double refresh)
Perhaps it depends what is on the page the book opens at. I am opening at the beginning of a chapter, no images, just a chapter heading and text.

I tried this instead of the example in kpg.conf to remove the footer altogether and it doesn't double refresh, but then the reduced footer example didn't double refresh for me either:
Spoiler:
Code:
<Patch>
patch_name = `Custom reading footer style`
patch_enable = `yes`
replace_xor_9C = 13FD538, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\nReadingFooter[deviceCodeName="kraken"], \nReadingFooter[deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 15;\n}\n\nReadingFooter[deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 20;\n}\n\n* {\n\tfont-size: 16px;\n}\n\n[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n[deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `ReadingFooter {\n\tmin-height: 5px;\n\tmax-height: 5px;\n\tqproperty-footerMargin: 15;\n}\n\n* {\n\tfont-size: 1px;\n\tcolor: transparent;\n}\n\n\x00`
GeoffR is offline   Reply With Quote
Old 12-13-2013, 11:10 AM   #623
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by GeoffR View Post
... attached kpg.conf for firmware 3.1.1 (761b066420), it has the footer, line spacing, font size, margins, page break, advanced font controls, wifi insomnia, brightness fine control, and search library default patches.
Thanks, Geoff, for the fantastic speedy response and especially for adding the `Freedom to advanced fonts control`patch to your 'standard update pack'
jackie_w is offline   Reply With Quote
Old 12-13-2013, 11:45 AM   #624
Antizip
Junior Member
Antizip began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2013
Location: Moscow, Russia
Device: Kobo Glo
Quote:
Originally Posted by GeoffR View Post
I tried this instead of the example in kpg.conf to remove the footer altogether and it doesn't double refresh, but then the reduced footer example didn't double refresh for me either:
Curiouser and curiouser. I enabled the footer patch with decreasing settings again. And there is no double refresh... Inexplicable but true.
Antizip is offline   Reply With Quote
Old 12-13-2013, 03:10 PM   #625
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Quote:
Originally Posted by DNSB View Post
With the release of firmware 3.1.1, the XOR has been changed to 9C and the address for the ReadingFooter has been changed to 0x13FD538.

Have fun!

Regards,
David
How do you get this data? : Blink:
surquizu is offline   Reply With Quote
Old 12-13-2013, 03:34 PM   #626
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
Quote:
Originally Posted by surquizu View Post
How do you get this data? : Blink:
This is how I would do it: FF hex is 255 decimal, including 0 this gives 256 possible values for the XOR (assuming it is always 2 hex digits). So write a little program to XOR the binary file with all possible 256 values. This will produce 256 output files (include the XOR value in the file name), which you can then search across for a known string e.g.,ReadingFooter. The name of the matching file will contain the correct XOR value.

It sounds complicated, but it is quite a simple program to write, and would probably only take 5-10 minutes to run. I would write it myself but have not bothered as someone always supplies the XOR value here.
ShellShock is offline   Reply With Quote
Old 12-13-2013, 06:27 PM   #627
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,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by surquizu View Post
How do you get this data? : Blink:
I used a utility called XORSearch. Basically, feed it a file and a search string and it will list out all the locations that string is found in the file along with the XOR used to obfuscate the string. I run it from a batch file that passed the search string from the command line and pauses at the end of the search to give a chance to see the results.

For 3.1.1, running xorsearch.exe libnickel.so.1.0.0 ReadingFooter
Code:
Found XOR 00 position 1CDA20: ReadingFooterC1EP7QWidget
Found XOR 00 position 1CDD55: ReadingFooter7setTextERK7QString
Found XOR 00 position 1CF6E0: ReadingFooter7setFontERK7QString
Found XOR 00 position 1CFFB7: ReadingFooter6updateERK7QStringiibb
Found XOR 00 position 24E7BE: ReadingFooterD2Ev
Found XOR 00 position 24E7D6: ReadingFooter
Found XOR 00 position 24E7E9: ReadingFooterD1Ev
Found XOR 00 position 24E805: ReadingFooterD1Ev
Found XOR 00 position 24E822: ReadingFooterD1Ev
Found XOR 00 position 24E839: ReadingFooterD0Ev
Found XOR 00 position 24E855: ReadingFooterD0Ev
Found XOR 00 position 24E872: ReadingFooterD0Ev
Found XOR 00 position 24E889: ReadingFooter15getFooterMarginEv
Found XOR 00 position 24E8AF: ReadingFooter15setFooterMarginEi
Found XOR 00 position 24E8D5: ReadingFooterC2EP7QWidget
Found XOR 00 position 24E8F8: ReadingFooter7setupUiEP7QWidgetE11initialized
Found XOR 00 position 24E92F: ReadingFooter7setupUiEP7QWidgetE1c
Found XOR 00 position 24E95B: ReadingFooter7setupUiEP7QWidgetE11initialized_0
Found XOR 00 position 24E994: ReadingFooter7setupUiEP7QWidgetE1c_0
Found XOR 00 position 24E9C2: ReadingFooter7setupUiEP7QWidgetE11initialized_1
Found XOR 00 position 24E9FB: ReadingFooter7setupUiEP7QWidgetE1c_1
Found XOR 00 position 24EA25: ReadingFooter16staticMetaObjectE
Found XOR 00 position 24EA4B: ReadingFooter5eventEP6QEvent
Found XOR 00 position 24EA73: ReadingFooter5eventEP6QEvent
Found XOR 00 position 24EA95: ReadingFooter11changeEventEP6QEvent
Found XOR 00 position 2EF8D5: ReadingFooter10metaObjectEv
Found XOR 00 position 2EF8F6: ReadingFooter11qt_metacastEPKc
Found XOR 00 position 2EF91A: ReadingFooter11qt_metacallEN11QMetaObject4CallEiPP
Found XOR 00 position 2EF954: ReadingFooter
Found XOR 00 position 2EF968: ReadingFooter
Found XOR 00 position 115DF3C: ReadingFooter
Found XOR 00 position 11C57A0: ReadingFooter
Found XOR 00 position 11C580A: ReadingFooter
Found XOR 9C position 13FD538: ReadingFooter {..min-height: 70px;..max-height: 70
Found XOR 9C position 13FD58E: ReadingFooter[deviceCodeName="kraken"], .ReadingFo
Found XOR 9C position 13FD5B7: ReadingFooter[deviceCodeName="phoenix"] {..min-hei
Found XOR 9C position 13FD627: ReadingFooter[deviceCodeName="dragon"] {..min-heig
If I know the XOR key, I can also use another little program called XOR which reads in the first file, XORs it with the key and writes the result out.

I originally wrote a program similar to what ShellShock suggested but it was a pain searching through 256 files looking for a string manually and they took up a mass of disk space.

Regards,
David

Last edited by DNSB; 12-13-2013 at 06:31 PM.
DNSB is offline   Reply With Quote
Old 12-13-2013, 08:42 PM   #628
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Quote:
Originally Posted by DNSB View Post
I used a utility called XORSearch. Basically, feed it a file and a search string and it will list out all the locations that string is found in the file along with the XOR used to obfuscate the string. I run it from a batch file that passed the search string from the command line and pauses at the end of the search to give a chance to see the results.

For 3.1.1, running xorsearch.exe libnickel.so.1.0.0 ReadingFooter



If I know the XOR key, I can also use another little program called XOR which reads in the first file, XORs it with the key and writes the result out.

I originally wrote a program similar to what ShellShock suggested but it was a pain searching through 256 files looking for a string manually and they took up a mass of disk space.

Regards,
David
: Gracias:
surquizu is offline   Reply With Quote
Old 12-14-2013, 06:59 AM   #629
pietro77
Member
pietro77 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Nov 2013
Device: KO3
Hi there
How I should create KoboRoot.tgz for new firmware 3.1.1. When I use kpg.conf 3.1.1 with libnickel.so.1.0.0 i have error :"data for replace in libnickel.so.1.0.0 and kpg.conf does not match!"
What I doing wrong?
pietro77 is offline   Reply With Quote
Old 12-14-2013, 07:48 AM   #630
Martina Schein
eBook-Reader-Fan
Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.
 
Martina Schein's Avatar
 
Posts: 175
Karma: 444178
Join Date: Sep 2012
Location: Saarbruecken / DE
Device: Kobo Aura H2O 2nd Edition
@pietro77, please have a look at post 549 at site 37. There you will find the explanation.
Martina Schein is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glo How to import reading Life Statistics from Kobo Touch to Kobo Glo? the_m Kobo Reader 5 12-13-2012 03:40 PM
$25 gift card w. purchase of Kobo Touch or Kobo Vox at Frys sufue Deals and Resources (No Self-Promotion or Affiliate Links) 0 07-15-2012 10:39 AM
Touch Kobo Touch defective after 3 months and Kobo Customer Support useless shaf Kobo Reader 5 12-04-2011 05:10 PM
Touch Kobo Touch not ejecting cleanly with Calibre OR Kobo Desktop - Windows 7 JBlyth Kobo Reader 11 08-03-2011 05:38 PM
Kobo Touch not disconnecting properly from Calibre OR Kobo Desktop - Windows 7 JBlyth Devices 1 08-03-2011 06:50 AM


All times are GMT -4. The time now is 03:01 AM.


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