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-11-2025, 03:35 PM   #16
John F
Grand Sorcerer
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 8,081
Karma: 71355703
Join Date: Feb 2009
Device: Kobo Clara 2E
I need some help with the patches please. I'm trying to set the "My 10 line spacing values" by modying src\libnickel.so.1.0.0.yaml. But they don't seem to be applied.

Attached is the log. The thing that stands out to me in the log is:

Code:
        applying overrides
            override My 10 line spacing values -> enabled:false
but this is what I have in libnickel.so.1.0.0.yaml.

Code:
My 10 line spacing values:
  - Enabled: yes
  - PatchGroup: Line spacing values alternatives
  - Description: |
      This patch changes the values on the line spacing adjustment slider,
      reducing the number of spacing options from 15 to 10, but allowing
      much narrower spacing values to be set.
    # Bypass code-constructed values 1.0, 1.2, 1.5, 2.0, 3.0
    # These are all the appends not loaded using adr.
  - BaseAddress:  {Sym: "ReadingSettings::lineHeightScalars() const", Rel: 84} # first append
  - ReplaceBytes: {Offset:   0, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
  - ReplaceBytes: {Offset:  86, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
  - ReplaceBytes: {Offset: 128, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
  - ReplaceBytes: {Offset: 188, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
  - ReplaceBytes: {Offset: 290, FindInstBLX: {SymPLT: "QList<double>::append(double const&)"}, ReplaceInstNOP: true}
    # 10 values for replacement, change these replace_float values to suit:
    # Find the prologue for the values + first subtraction (has been unique in
    # every version so far, and is near impossible to change and fail silently):
  - FindBaseAddressHex: CDCC CCCC CCCC F03F 1F85
  - ReplaceFloat: {Offset: 0x00,  Find: 1.05, Replace: 0.8}
  - ReplaceFloat: {Offset: 0x08,  Find: 1.07, Replace: 0.85}
  - ReplaceFloat: {Offset: 0x10,  Find: 1.1,  Replace: 0.875}
  - ReplaceFloat: {Offset: 0x18,  Find: 1.35, Replace: 0.9}
  - ReplaceFloat: {Offset: 0x20,  Find: 1.7,  Replace: 0.925}
  - ReplaceFloat: {Offset: 0x28,  Find: 1.8,  Replace: 0.95}
  - ReplaceFloat: {Offset: 0x30,  Find: 2.2,  Replace: 0.975}
  - ReplaceFloat: {Offset: 0x38,  Find: 2.4,  Replace: 1.0}
  - ReplaceFloat: {Offset: 0x40,  Find: 2.6,  Replace: 1.05}
  - ReplaceFloat: {Offset: 0x48,  Find: 2.8,  Replace: 1.1}
I haven't done any patching in a long time, so not sure what is going on.

Thank you for the help.
Attached Files
File Type: txt log.txt (191.4 KB, 7 views)
John F is offline   Reply With Quote
Old 12-11-2025, 04:25 PM   #17
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 931
Karma: 275656
Join Date: Jun 2016
Device: Kobo
Quote:
Originally Posted by John F View Post
by modying src\libnickel.so.1.0.0.yaml. But they don't seem to be applied.
Edit the kobopatch.yaml file.
Semwize is offline   Reply With Quote
Old 12-11-2025, 05:20 PM   #18
John F
Grand Sorcerer
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 8,081
Karma: 71355703
Join Date: Feb 2009
Device: Kobo Clara 2E
Quote:
Originally Posted by Semwize View Post
Edit the kobopatch.yaml file.
Thank you.

Do I just change it to yes and make the detailed changes in the other file? It looks like it works, but my custom font sizes don't seem to be taking affect.
John F is offline   Reply With Quote
Old 12-11-2025, 05:32 PM   #19
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 931
Karma: 275656
Join Date: Jun 2016
Device: Kobo
Just edit this file without affecting other files. As understand, in kobopatch.yaml Jon added all the currently existing patches. Or almost everything.
Indicate in it: yes or no.
Semwize is offline   Reply With Quote
Old 12-11-2025, 06:02 PM   #20
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 81,342
Karma: 150264805
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Semwize View Post
Just edit this file without affecting other files. As understand, in kobopatch.yaml Jon added all the currently existing patches. Or almost everything.
Indicate in it: yes or no.
It is everything in kobopatch.yaml. You do the yes/no in there and any edits to the patches in the appropriate .yaml in the src directory.
JSWolf is offline   Reply With Quote
Old 12-11-2025, 06:07 PM   #21
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 81,342
Karma: 150264805
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by John F View Post
Thank you.

Do I just change it to yes and make the detailed changes in the other file? It looks like it works, but my custom font sizes don't seem to be taking affect.
My 10 line spacing values is for the line spacing slider.

Might you want Custom font sizes which is in libnickel.so.1.0.0.yaml?
JSWolf is offline   Reply With Quote
Old 12-12-2025, 09:53 AM   #22
John F
Grand Sorcerer
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 8,081
Karma: 71355703
Join Date: Feb 2009
Device: Kobo Clara 2E
Quote:
Originally Posted by JSWolf View Post
My 10 line spacing values is for the line spacing slider.

Might you want Custom font sizes which is in libnickel.so.1.0.0.yaml?
I had yes for both of those, and edited both of those in libnickel.so.1.0.0.yaml.
John F is offline   Reply With Quote
Old 12-12-2025, 02:35 PM   #23
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 81,342
Karma: 150264805
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by John F View Post
I had yes for both of those, and edited both of those in libnickel.so.1.0.0.yaml.
If I decide to update the firmware, I'll have to redo my edits to My 10 line spacing values.
JSWolf is offline   Reply With Quote
Old 12-16-2025, 12:25 PM   #24
EnterNameHere
Junior Member
EnterNameHere began at the beginning.
 
EnterNameHere's Avatar
 
Posts: 5
Karma: 10
Join Date: Jul 2023
Device: Kobo Mini, Libra 2, H2O, various Kindles
In the ZIP file attached to the first post, the kobopatch.yaml file says, on line 3:

version: 4.38.2552

I assume that this should actually be:

version: 4.38.23552

but I'm unsure whether it is actually used anywhere or makes any difference to anything.
EnterNameHere is offline   Reply With Quote
Old 12-18-2025, 06:56 AM   #25
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 81,342
Karma: 150264805
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by EnterNameHere View Post
In the ZIP file attached to the first post, the kobopatch.yaml file says, on line 3:

version: 4.38.2552

I assume that this should actually be:

version: 4.38.23552

but I'm unsure whether it is actually used anywhere or makes any difference to anything.
That is a mistake. But it doesn't matter because the in: line with the name of the source file is correct.
JSWolf is offline   Reply With Quote
Old 12-20-2025, 03:27 PM   #26
RobertJSawyer
Guru
RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.RobertJSawyer ought to be getting tired of karma fortunes by now.
 
RobertJSawyer's Avatar
 
Posts: 747
Karma: 4306712
Join Date: Jun 2006
Location: Toronto
Device: Kobo Libra 2, Clara 2E, and Clara HD; Kindle PaperWhite
Both page turn buttons go to next not working

I'm trying to patch my Kobo Libra 2 running firmware 4.38.23552.

My favorite patch, "Both page turn buttons go to next," isn't working. Yes, I know the description line for this patch in libnickel.so.1.0.0.yaml says "Make both page turn buttons on the Forma go next in the reader" -- but it's always worked before for the Libra 2, as well.

This is the error message from kobopatch.bat:

Code:
APPLY `Both page turn buttons go next`

    Error: could not apply patch "Both page turn buttons go next": line 820: inst 3: ReplaceBytes: expand FindInstB=kobopatch.FlexAbsOffset{Offset:(*int32)(nil), Sym:(*string)(nil), SymPLT:(*string)(nil), SymPLTTail:(*string)(0x18d2dd8), Inline:false, Rel:(*int32)(nil)}: ResolveSymPLTTail("ReadingView::prevPageWithTimer()") = &patchlib.dynsym{Name:"_ZN11ReadingView17prevPageWithTimerEv", Offset:0xf66940, Index:0x7112, Type:elf.STT_FUNC, OffsetGOT:0x16ae2b4, OffsetPLT:0x681100, OffsetPLTTail:0x0, Demangled:"ReadingView::prevPageWithTimer()"}: no tail stub before PLT entry

Error: could not apply patches: error applying patch file 'src/libnickel.so.1.0.0.yaml': could not apply patch "Both page turn buttons go next": line 820: inst 3: ReplaceBytes: expand FindInstB=kobopatch.FlexAbsOffset{Offset:(*int32)(nil), Sym:(*string)(nil), SymPLT:(*string)(nil), SymPLTTail:(*string)(0x18d2dd8), Inline:false, Rel:(*int32)(nil)}: ResolveSymPLTTail("ReadingView::prevPageWithTimer()") = &patchlib.dynsym{Name:"_ZN11ReadingView17prevPageWithTimerEv", Offset:0xf66940, Index:0x7112, Type:elf.STT_FUNC, OffsetGOT:0x16ae2b4, OffsetPLT:0x681100, OffsetPLTTail:0x0, Demangled:"ReadingView::prevPageWithTimer()"}: no tail stub before PLT entry
RobertJSawyer is offline   Reply With Quote
Old 12-20-2025, 08:02 PM   #27
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 81,342
Karma: 150264805
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by RobertJSawyer View Post
I'm trying to patch my Kobo Libra 2 running firmware 4.38.23552.

My favorite patch, "Both page turn buttons go to next," isn't working. Yes, I know the description line for this patch in libnickel.so.1.0.0.yaml says "Make both page turn buttons on the Forma go next in the reader" -- but it's always worked before for the Libra 2, as well.

This is the error message from kobopatch.bat:

Code:
APPLY `Both page turn buttons go next`

    Error: could not apply patch "Both page turn buttons go next": line 820: inst 3: ReplaceBytes: expand FindInstB=kobopatch.FlexAbsOffset{Offset:(*int32)(nil), Sym:(*string)(nil), SymPLT:(*string)(nil), SymPLTTail:(*string)(0x18d2dd8), Inline:false, Rel:(*int32)(nil)}: ResolveSymPLTTail("ReadingView::prevPageWithTimer()") = &patchlib.dynsym{Name:"_ZN11ReadingView17prevPageWithTimerEv", Offset:0xf66940, Index:0x7112, Type:elf.STT_FUNC, OffsetGOT:0x16ae2b4, OffsetPLT:0x681100, OffsetPLTTail:0x0, Demangled:"ReadingView::prevPageWithTimer()"}: no tail stub before PLT entry

Error: could not apply patches: error applying patch file 'src/libnickel.so.1.0.0.yaml': could not apply patch "Both page turn buttons go next": line 820: inst 3: ReplaceBytes: expand FindInstB=kobopatch.FlexAbsOffset{Offset:(*int32)(nil), Sym:(*string)(nil), SymPLT:(*string)(nil), SymPLTTail:(*string)(0x18d2dd8), Inline:false, Rel:(*int32)(nil)}: ResolveSymPLTTail("ReadingView::prevPageWithTimer()") = &patchlib.dynsym{Name:"_ZN11ReadingView17prevPageWithTimerEv", Offset:0xf66940, Index:0x7112, Type:elf.STT_FUNC, OffsetGOT:0x16ae2b4, OffsetPLT:0x681100, OffsetPLTTail:0x0, Demangled:"ReadingView::prevPageWithTimer()"}: no tail stub before PLT entry
Thanks. I'll make the changes needed to show that this patch no longer works.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unofficial patches for 4.44.23552 JSWolf Kobo Developer's Corner 11 Today 11:51 AM
Unofficial Patches for 4.38.23429 JSWolf Kobo Developer's Corner 65 12-11-2025 07:30 AM
Unofficial Patches for 4.38.23555 JSWolf Kobo Developer's Corner 7 12-10-2025 08:47 PM
Unofficial Patches for 4.43.23418 JSWolf Kobo Developer's Corner 13 12-03-2025 10:47 PM
Unofficial Sigil patches varlog Sigil 8 11-12-2014 07:14 PM


All times are GMT -4. The time now is 01:46 PM.


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