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

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-12-2021, 07:22 PM   #1
c4software
Junior Member
c4software began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2021
Device: Kobo NIA − Kindle PW3
Display Image with Pickel (or alternative)

Hi,

I have a Kobo Nia and I want to use it as an « Image Viewer (with auto-refresh) », I see many ways to do this, but none seems to work in 2021.

I want to do something really simple like the script « /etc/bin/Kobo/demoloop.sh »

But, if I do from telnet :

Code:
zcat /etc/images/splash.raw.gz  | /usr/local/Kobo/pickel showpic
Nothing happen.

And If I do the same from the NickelMenu, I have glitch on screen (like a rotated screen maybe ?). But nothing more.

If someone have an idea ?

My fbset output :
Code:
[root@kobo ~]# fbset

mode "758x1024-0"
        # D: 0.025 MHz, H: 0.029 kHz, V: 0.028 Hz
        geometry 758 1024 768 1024 32
        timings 40000000 12 76 4 5 12 2
        accel false
        rgba 8/16,8/8,8/0,8/24
endmode
c4software is offline   Reply With Quote
Old 01-12-2021, 07:47 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 11,292
Karma: 19703054
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O & Forma
Oh, hai!

----

FWIW, pickel's showpic expects a raw framebuffer dump. It also expects it in its own framebuffer state, which never matches Nickel's on recent FW versions. It's usually @16bpp, in a broken and device-specific rotation.

Last edited by NiLuJe; 01-12-2021 at 07:58 PM.
NiLuJe is offline   Reply With Quote
Advert
Old 01-12-2021, 09:55 PM   #3
NiMa
Addict
NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.
 
NiMa's Avatar
 
Posts: 233
Karma: 2143223
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra H2O, Kobo Glo HD
Quote:
Originally Posted by c4software View Post
Hi,

I have a Kobo Nia and I want to use it as an « Image Viewer (with auto-refresh) », I see many ways to do this, but none seems to work in 2021.

I want to do something really simple like the script « /etc/bin/Kobo/demoloop.sh »

But, if I do from telnet :

Code:
zcat /etc/images/splash.raw.gz  | /usr/local/Kobo/pickel showpic
Nothing happen.

And If I do the same from the NickelMenu, I have glitch on screen (like a rotated screen maybe ?). But nothing more.

If someone have an idea ?

My fbset output :
Code:
[root@kobo ~]# fbset

mode "758x1024-0"
        # D: 0.025 MHz, H: 0.029 kHz, V: 0.028 Hz
        geometry 758 1024 768 1024 32
        timings 40000000 12 76 4 5 12 2
        accel false
        rgba 8/16,8/8,8/0,8/24
endmode
As NiLuJe said, his FBInk library would be perfect for this use-case. It is truly a joy to use.

But I ran into issues with Pickel lately (when trying to show Xorg events on screen)... The raw picture wasn't displaying properly and it was distorted. Anyone knowing why? It should work since the Kobo is able to display update/poweron images. Or is it handled internally with another library?

@NiLuJe oh thanks I didn't read the last part of your post. Any way to still be able to display a picture with pickel? Thanks
NiMa is offline   Reply With Quote
Old 01-12-2021, 10:04 PM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 11,292
Karma: 19703054
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O & Forma
Quote:
Originally Posted by NiMa View Post
@NiLuJe oh thanks I didn't read the last part of your post. Any way to still be able to display a picture with pickel? Thanks
Not easily, no. And it's not a good idea to begin with (performance is terrible, and the fb state constraints make no sense in 99% of cases).

(Also, XOrg *really* doesn't like it if you modify the fb state behind its back).
NiLuJe is offline   Reply With Quote
Old 01-12-2021, 10:06 PM   #5
NiMa
Addict
NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.
 
NiMa's Avatar
 
Posts: 233
Karma: 2143223
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra H2O, Kobo Glo HD
Quote:
Originally Posted by NiLuJe View Post
Not easily, no. And it's not a good idea to begin with (performance is terrible, and the fb state constraints make no sense in 99% of cases).

(Also, XOrg *really* doesn't like it if you modify the fb state behind its back).
Yeah I think I definitely made the good move by using fbink-xdamage... Pickel is just a curiosity for me
NiMa is offline   Reply With Quote
Advert
Old 01-13-2021, 03:56 AM   #6
c4software
Junior Member
c4software began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2021
Device: Kobo NIA − Kindle PW3
Quote:
Originally Posted by NiLuJe View Post
Oh, hai!

----

FWIW, pickel's showpic expects a raw framebuffer dump. It also expects it in its own framebuffer state, which never matches Nickel's on recent FW versions. It's usually @16bpp, in a broken and device-specific rotation.
Annnnd its working 👌Thanks a lot for the fast answer !

Click image for larger version

Name:	PXL-20210113-075343615.jpg
Views:	29
Size:	105.0 KB
ID:	184720

PS: Still early wip project.

Last edited by issybird; 01-13-2021 at 10:32 AM. Reason: Oversize image. Please read the guidelines.
c4software is offline   Reply With Quote
Old 01-13-2021, 11:53 AM   #7
c4software
Junior Member
c4software began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2021
Device: Kobo NIA − Kindle PW3
The main idea behind this script is (if its possible)

- Wake up from sleep or similar ? (looks like its not possible)
- Enable & Connect to WiFi
- Download an image from an HTTP Endpoint
- Display the downloaded image (FBink ��)
- Disconnect Wifi
- Put in Sleep or similar (rtcwake maybe…)

As I see a CRON is not a great solution, so I will certainly do a « while true ».
c4software is offline   Reply With Quote
Old 01-13-2021, 12:38 PM   #8
NiMa
Addict
NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.
 
NiMa's Avatar
 
Posts: 233
Karma: 2143223
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra H2O, Kobo Glo HD
Quote:
Originally Posted by c4software View Post
The main idea behind this script is (if its possible)

1. Wake up from sleep or similar ? (looks like its not possible)
2. Enable & Connect to WiFi
3. Download an image from an HTTP Endpoint
4. Display the downloaded image (FBink ��)
5. Disconnect Wifi
6. Put in Sleep or similar (rtcwake maybe…)

As I see a CRON is not a great solution, so I will certainly do a « while true ».

1. Nickel DBus ?
2. Nickel DBus also
3. wget
4. fbink, yes
5. Nickel DBus also I think.
6. nickeldbus also i think
NiMa is offline   Reply With Quote
Old 01-13-2021, 01:10 PM   #9
c4software
Junior Member
c4software began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2021
Device: Kobo NIA − Kindle PW3
Yes downloading image and display it is pretty straight forward (and classic, not a problem).

I will look for the suspend part with « Nickel DBus ».

Thanks
c4software is offline   Reply With Quote
Old 01-13-2021, 03:40 PM   #10
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 691
Karma: 1327340
Join Date: Sep 2008
Location: Auckland - NZ
Device: Kobo Aura H2O, Kobo Forma
Note, suspend/sleep does not (yet) exist in NickelDBus. It was an oversight I forgot to add. Will be in the next version.

Although, not sure about waking from sleep.
sherman 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
Alternative Display mode is possible? Emix83 KOReader 8 05-22-2020 04:37 PM
Image display problems roger64 KOReader 22 05-20-2016 05:30 PM
pickel dude boriar Kobo Developer's Corner 15 10-09-2015 04:55 PM
image caption display xmlgirl ePub 1 05-21-2015 11:24 PM
Display of a png image linked to a svg image roger64 Editor 6 03-13-2015 07:21 AM


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


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