Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 04-17-2024, 11:25 AM   #16
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,036
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes they can change usb ids in a firmware update.
kovidgoyal is online now   Reply With Quote
Old 04-17-2024, 11:34 AM   #17
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,036
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@jackie: The method to get image settings could certainly probe the device in more detail but to do that someone needs to write the code for it with a device or two to test on. In the meantime on the theory that having the device downscale images is better than upscaling them, I have set it to use the Libra H2) settings for the 2024 devices.
kovidgoyal is online now   Reply With Quote
Advert
Old 04-17-2024, 12:28 PM   #18
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,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by kovidgoyal View Post
@jackie: The method to get image settings could certainly probe the device in more detail but to do that someone needs to write the code for it with a device or two to test on. In the meantime on the theory that having the device downscale images is better than upscaling them, I have set it to use the Libra H2) settings for the 2024 devices.
I agree about the upscaling/downscaling question. However, since my previous post, I've had a chance to look a bit further at the contents of the .kobo/version file on the Kobos I've owned. As far as I can tell the SerialNo (first of six values) isn't the best value to use, the last value looks to be exactly what we need.

This is the contents of my Libra2 (serial no. redacted):
Code:
N41818xxxxxxx,4.1.15,4.38.21908,4.1.15,4.1.15,00000000-0000-0000-0000-000000000388
The last 3-digits, 388, say that it's a Libra2. I do believe this value has also been unique for all previous Kobo models, we just haven't needed to use it for calibre before.

@geek1011 has already posted over on GitHub what the unique values will be for the 3 new Kobos (and the 3 new Tolinos we believe are going to become "semi-Kobo" at some point)
Code:
Libra Colour: 00000000-0000-0000-0000-000000000390
    Clara BW: 00000000-0000-0000-0000-000000000391
Clara Colour: 00000000-0000-0000-0000-000000000393
It would obviously be less work if we knew that Kobo plan to allocate unique PRODUCT_IDs but if they don't I'm quite happy to contribute some code to query the .kobo/version file so that we know exactly which model is connected.

@Peter, if you would prefer to do it yourself I won't be offended
jackie_w is offline   Reply With Quote
Old 04-17-2024, 01:52 PM   #19
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.
 
PeterT's Avatar
 
Posts: 12,288
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Quote:
Originally Posted by jackie_w View Post
@Peter, if you would prefer to do it yourself I won't be offended
I'm more than happy to let you handle it. I'm a tad limited in easy access to a PC. Staying with friends and while there is a PC I can use IIN their computer room, it's a bit crowded with both of them in there many hours each day. I do also have a Chromebook but one major limitation is that USB devices aren't directly accessible by the Linux environment; only via the file system, so no real way of easily testing device recognition.

If you're interested though I'm more than willing to look over the code; while not a Python expert I do mostly grok it.


Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Old 04-17-2024, 02:55 PM   #20
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,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by PeterT View Post
If you're interested though I'm more than willing to look over the code; while not a Python expert I do mostly grok it.
I'll see what I can come up with in the next few days. As the baseline I'll use the latest version Kovid updated a few hours ago.
jackie_w is offline   Reply With Quote
Advert
Old 04-17-2024, 05:24 PM   #21
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,806
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by jackie_w View Post
I'll see what I can come up with in the next few days. As the baseline I'll use the latest version Kovid updated a few hours ago.
If I can contribute then I am glad to help. I've been in the driver code a few times, both with @davidfor and by myself.
chaley is offline   Reply With Quote
Old 04-17-2024, 06:02 PM   #22
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.
 
PeterT's Avatar
 
Posts: 12,288
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
I wonder if Kobo Desktop detects what model device is connected?

Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Old 04-17-2024, 09:10 PM   #23
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.
 
PeterT's Avatar
 
Posts: 12,288
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Quote:
Originally Posted by PeterT View Post
I wonder if Kobo Desktop detects what model device is connected?

Sent from my Pixel 7a using Tapatalk
Well I tried using Procmon from sysinternals. Sure enough Kobo Desktop does read versions.txt. I'll try editting that tomorrow and see if I can alter the connected device name

Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Old 04-18-2024, 08:04 AM   #24
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,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by PeterT View Post
If you're interested though I'm more than willing to look over the code; while not a Python expert I do mostly grok it.
Quote:
Originally Posted by chaley View Post
If I can contribute then I am glad to help. I've been in the driver code a few times, both with @davidfor and by myself.
As I don't have any experience of using GitHub in push mode I'm attaching the updated KOBO/KOBOTOUCH driver here. I've tested it as best I can given I don't have access to one of the 2024 models.

A couple of notes:
  1. I'm not sure what the rules about driver version update are so I've left this line as-is:
    Code:
    version = (2, 5, 1)
  2. @PeterT, I've changed supported_dbversion to 175 as you previously mentioned.
Attached Files
File Type: txt kobo2024_driver.py.txt (205.5 KB, 43 views)
jackie_w is offline   Reply With Quote
Old 04-18-2024, 08:12 AM   #25
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,806
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by jackie_w View Post
As I don't have any experience of using GitHub in push mode I'm attaching the updated KOBO/KOBOTOUCH driver here. I've tested it as best I can given I don't have access to one of the 2024 models.

A couple of notes:
  1. I'm not sure what the rules about driver version update are so I've left this line as-is:
    Code:
    version = (2, 5, 1)
  2. @PeterT, I've changed supported_dbversion to 175 as you previously mentioned.
Unless someone objects I will merge this code into calibre source and make a pull request for it.

@jackie_w: as far as I know the version is used only in debugging statements so we can be sure what code is running. It would matter much more if the driver was a "real" plugin instead of a built-in one. I will increment it to 2,5,2.
chaley is offline   Reply With Quote
Old 04-18-2024, 08:26 AM   #26
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,806
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Here is the list of changes between the current version and @jackie_w's file, in the form if a "patch" file.

I decided to up the version to 2.6.0 instead of 2.5.2.

Let me know if I should create the git pull request for @kovid.
Attached Files
File Type: txt patch.txt (6.9 KB, 45 views)
chaley is offline   Reply With Quote
Old 04-18-2024, 10:23 AM   #27
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,036
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No need I have merged, adding some error handling for when the versions file is missing/corrupt
kovidgoyal is online now   Reply With Quote
Old 04-18-2024, 11:55 AM   #28
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: 74,708
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
If the new version of the KoboTouch driver works, are the changes going to make it into the KoboTouchExtended driver?
JSWolf is offline   Reply With Quote
Old 04-18-2024, 01:15 PM   #29
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.
 
PeterT's Avatar
 
Posts: 12,288
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
The Extended driver does not contain much device dependent code. There is a portion of the code that adds an optional device specific CSS file; apart fromn that there should be no issue.
PeterT is offline   Reply With Quote
Old 04-29-2024, 02:08 PM   #30
Croptop
Groupie
Croptop ought to be getting tired of karma fortunes by now.Croptop ought to be getting tired of karma fortunes by now.Croptop ought to be getting tired of karma fortunes by now.Croptop ought to be getting tired of karma fortunes by now.Croptop ought to be getting tired of karma fortunes by now.Croptop ought to be getting tired of karma fortunes by now.Croptop ought to be getting tired of karma fortunes by now.Croptop ought to be getting tired of karma fortunes by now.Croptop ought to be getting tired of karma fortunes by now.Croptop ought to be getting tired of karma fortunes by now.Croptop ought to be getting tired of karma fortunes by now.
 
Posts: 160
Karma: 1018434
Join Date: Nov 2009
Device: Kobo Elipsa, Kobo Aura One, Pixel 8 Pro
I have nothing of any value to contribute to this thread other than to say "Thank you" to each of you for sorting this out and getting the update into Calibre before the new readers have even started shipping (in volume).

It's nice to know that when I receive my Libra Colour (hopefully tomorrow), it'll already be supported by Calibre and the Kobo plugin.
Croptop is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Libra 2 support Adobe Digital Editions (ADE)? TheSmitty Kobo Reader 1 01-08-2024 11:19 AM
Kobo Libra H20 vs Kobo Clara HD vs Pocketbook Touch HD3 cm1 Which one should I buy? 28 01-27-2021 01:18 PM
Transferring books from Kobo Aura H2O to Kobo Libra H20 gfeps Kobo Reader 16 09-24-2020 01:45 AM
can kobo touch display comics in colour irish66 Kobo Reader 3 12-22-2013 09:33 AM
Colour Kobo ? PeterT Kobo Reader 6 11-30-2010 06:38 PM


All times are GMT -4. The time now is 10:52 PM.


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