View Single Post
Old 01-06-2021, 08:55 AM   #19
NiMa
Fanatic
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: 507
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
Quote:
Originally Posted by geek1011 View Post
You're going to have to write at least a small amount of C (or Rust or Go) code. I haven't looked into the existing options, but if I were to do it from scratch, I'd do it with FBInk.

One way would be to compile parts of Xorg from source with some modifications to use the fb.

Another way would be to use tigervnc+libvnc+FBInk to display the current screen. libx11+fbink would be another option, but although the code may be easier to work with, you might need to deal with damage tracking and optimization manually.
I thought of all of those options... Recompiling Xorg would be the best, but... Still I have to get myself in touch with C/C++... Well maybe I'll try...

Another idea that I had this morning waking up was that I could (maybe) write a script (ex./dev/fb1) which would "divert" xf86-video-fbdev to output there instead. This script would point to (maybe) FBInk displaying the raw stream.

Speaking of raw stream, do you know how to print one with FBInk? I saw Python scripts to print raw RGBA images and it worked, but what I'd really need is just a "framebuffer" at /dev/fb1 which could act exactly if it was real...

Thanks!
NiMa is offline   Reply With Quote