![]() |
dillo2 & porting non gtk+ based programs
1 Attachment(s)
Hi,
as we know, DR way to manage screen refresh is handled by some modifications of the gtk+ code. Thus, porting non gtk+ based applications need to refresh screen on their own, similar to what xournal port does due to its use of a special gtk+ widget not covered by the method iRex uses. So, here am I, trying to port dillo2, a tiny but quite functional web browser. I've already compiled it successfully (btw, porting fltk2 library has been quite hard), but it's not usable because of the lack of screen refresh and the keyboard issues. A good way to solve these problems would be to develop an external library we could call from these programs, managing refresh and keyboard, or an external daemon as some hacks on Iliad used. Sadly, this is beyond my skills... is anyone tempted to help? I have the same problem with xboard, a frontend for gnuchess. I've attached a screenshot to show how beautiful dillo browsing could be :D |
IMHO, porting xepdmgr to DR800 should be more feasible than adding eink-refresh code to FLTK.
In xepdmgr, "xepdmgr_einkfb.c" contains most eink-refresh control code. Some of them are iLiad-specific. I don't know if the required functions are available for DR800. |
Hi Iņigo,
I only studied this part of the firmware briefly, but it seems that there are already some provisions. See: \Sources\3.0\iRex\libs\erutils\src\display_utils.c . The code is used by the keyboard app: \Sources\3.0\iRex\erkeyb\src\erkeyb-display-sched.c. The messages send by display_utils.c are handled by sysd (\Sources\3.0\iRex\sysd\src\display.c) there you can see what the effect will be from a message. |
Quote:
[1] https://www.mobileread.com/forums/showthread.php?t=81119 Quote:
Code:
#include <sys/ioctl.h> |
Quote:
Providing a separate library is a good idea. The proposed interface is sufficient, maybe add a (library-)prefix to the commands to avoid conflict with local names in the application. |
Quote:
|
Quote:
I think you mean the display_update_xxx() functions. They call send_message: Code:
static void send_message(int take_control, int waveform)but what means take_control? lock and unlock display... but with which purpose? Thanks, Iņigo |
Code:
/* setup socket for display management (implicitly called by functions below) */ |
Thanks for the extra information!
|
| All times are GMT -4. The time now is 06:10 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.