View Single Post
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