-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Kobo e-ink devices #1
Comments
You're welcome. I will try my best to help you although I can't guarantee that it will be easy.
There is no code that writes directly to the framebuffer. All drawing is handled by SDL2 with libwtk-sdl2. SDL2 in turn will then use software rendering to write into the framebuffer. On my Raspberry Pi I use it via a kernel module (fbdev) that writes to the framebuffer and then transmits it to the connected LCD. In addition I start an X11 instance but that is not stricly necessary. If you want to run it without X11, directfb should be a possiblity. Here are basically the paths you can take:
In order to do the latter you will have to rewrite the following files: https://github.com/muesli4/libwtk-sdl2/blob/master/src/widget_context.cpp#L44 https://github.com/muesli4/libwtk-sdl2/blob/master/src/draw_context.cpp https://github.com/muesli4/libwtk-sdl2/blob/master/src/texture_view.cpp https://github.com/muesli4/libwtk-sdl2/blob/master/src/font_word_cache.cpp https://github.com/muesli4/libwtk-sdl2/blob/master/src/sdl_util.cpp In addition, I will provide a commit that typedefs edit: I had a closer look at your code and noticed that you already use SDL. Porting from SDL2 to SDL should be a piece of cake. It is even possible to update the screen only at dirty areas, if that is something you're interested in. |
I also noticed that I will have to add a license. Does LGPL3 fit you? |
@muesli4 Thanks for your time!!!
Not possible. I'm using fbcon as the video driver and was removed in sdl2. Kobos don't support directfb/x11 drivers.
It would be awesome. I saw that libwtk-sdl2 is also yours, great work! Not sure how difficult is to (back)port that to sdl.
I'm happy with any license that makes me able to study and use your work without you suing me :P 👍 I'll start for setting up the build system. I saw that C++17 is a requirement, and maybe the toolchain provided by the manufacturer (linaro-arm-gnuabihf 2013) is no able to build your code. Again, thanks |
It would definitely be nice if the code could be shared. However, the easiest solution is a port to SDL1 (replace Maybe you can implement a SDL2 backend for fbcon? (I don't know how difficult it is.)
My guess is that you won't have to touch mpd-touch-screen-gui at all. All my earlier comments were for libwtk-sdl2.
I'm happy that someone uses it.
I fear that is a hard requirement. It uses a lot of modern language and library features of C++17. Replacing them would be a lot of work. (Library features can mostly be replaced with boost equivalents.) On my Raspberry I compile it via distcc and the arm toolchain on my machine (x-tools-armv7-bin). What's your Kobo's specific CPU architecture? |
Awesome project, thank you!!!
On kobos and other linux e-ink ereaders writting to the framebuffer doesn't really works until we update the e-ink display. Could you please point me to the code that writes to the framebuffer?
I would like to port mpd-touch-screen-gui to my kobo aura hd, and maybe other models.
Thanks again
The text was updated successfully, but these errors were encountered: