03-12-2010, 08:26 PM | #1 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Applying DR GTK+ patches to iLiad
I guess that DR series gain much performance from patched GTK+. So, I am doing an experiement of applying the patch to GTK+2.14.7 and make it running on iLiad. Maybe I can improve the performance of iLiad.
|
03-12-2010, 10:34 PM | #2 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Since the core part of eink-update is quite the same for DR800 and iLiad (with a brief review, I guess so), I think maybe the patched GTK+-2.12.7 for DR800 can be applied to iLiad directly.
The problem for now is: There are many patch files in directory "patches". How to apply those patch files in some simple steps? Added: The source code from iRex is already patched. It's not necessary to patch it again. Last edited by ericshliao; 03-12-2010 at 10:51 PM. |
Advert | |
|
03-12-2010, 11:00 PM | #3 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Well, I got it compiled. Now, I need to deploy the patched GTK+2.12.7 to a bootable CF and see if it will conflict with ContetLister and ipdf.
|
03-13-2010, 03:20 AM | #4 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
The conclusion of my experiement is:
1. patched GTK+-2.12.7 for DR800 is also compatible with iLiad (re-compilation is required of course). 2. It's ok with ipdf and newLister since these two have their own e-ink update routines. But not for other applications, such as FBReader. 3.The protocol to displayMgr server of DR800 must be different from iLiad. If I can fix this problem, it's highly possible to have a GTK+ lib with eink-update ability on iLiad. |
03-13-2010, 04:36 AM | #5 |
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Hello ericshliao
I'm afraid it should be too much work and not clear success. Afaik the refresh process is very different, with those patches to gtk+ sources and another refresh engine, so though you could get patched gtk+ working, I don't know if it would work for the normal apps. I got my DR800S a week ago. It's a nice device, and once iRex provide zoom and annotations, it will be far better than the Iliad. DR800S refresh is fast and porting apps is also easier as well. In fact I ported fbreader 0.10.7 in a few moments (ok, once I discovered the errors I got ;-) Btw, it's quite strange but fbreader 0.12.x is very slow on the DR800S, but not 0.10.x branch... did you note this same behaviour in your ports? Keep the good and hard work, Iņigo |
Advert | |
|
03-13-2010, 04:55 AM | #6 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
AFAK, if I can send correct command string to displayMgr, I guess GTK+ for DR800 can be applied to iLiad. Before it's done, normal applications won't be able to update the eink screen.
I saw your post about FBReader 0.10.7 for DR800, but I am not sure about the slowness that you mentioned about 0.12.x. Do you mean it's slow when flipping page for 0.12.x or it's slow when starting FBReader? If you mean the later case, maybe it's because 0.12.x will do some sqlite database conversion (or initialization). It only happens once. If you mean 0.12.x is slow when flipping page, then I have no clue about how this could happen. I am using FBReader 0.12.6 on my iLiad, with some preloading mechanism. I can get page-flip in 2 secs (at most 3 secs). IIRC, I got similiar speed of page-flips on 0.10.x and 0.12.x without the preloading code. BTW, if not bothering, would you make some video of DR800 page-flips? I am curious about the speed of DR800, especially on FBReader. There is no such video available. Added: I forgot to mention one thing about the possible cause to slowness. On iLiad, I have to modify registry.xml to make FBReader registered to certain IPC channel, or it will be extreme slow to start FBReader. It's also the case for other applications. Last edited by ericshliao; 03-13-2010 at 05:02 AM. |
03-13-2010, 06:30 AM | #7 | |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
I guess I only have to modify one line to make DR800 GTK+ ported to iLiad. In "gdkwindow.c":
Quote:
sprintf(msg, "!0,1,0"); |
|
03-13-2010, 06:54 AM | #8 | ||
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Quote:
My guess is that the few problems I've detected with 0.10.x are due to device running out of memory. Quote:
Excuse the bad quality, I've recorded it with the mobile phone. |
||
03-13-2010, 06:57 AM | #9 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Iņigo, thanx for the video.
And... I have succeeded in porting DR800 GTK+ lib to iLiad. Totally successful. The screen just update without xepdmgr. And the speed is even more fast. |
03-13-2010, 07:03 AM | #10 | |
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Quote:
can you try some lua program to check the performance, please? |
|
03-13-2010, 07:06 AM | #11 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Sure. But I have to go to bed now. I will try lua tomorrow.
|
03-13-2010, 08:10 AM | #12 |
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
|
03-13-2010, 12:57 PM | #13 |
Enthusiast
Posts: 32
Karma: 10
Join Date: May 2009
Location: Heidelberg, Germany
Device: iLiad (broken screen! cry), x61t tablet
|
Wow, awesome! Once I get my darn screen fixed I'll be very grateful for this!
|
03-13-2010, 03:21 PM | #14 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Just tried some lua app. It works without hansel's xx.
To be honest, I must admit the improvement is not significat. Besideds, sometimes screen-update does not appear as desired. I think xepdmgr or xx can provide more sophisicated screen-update control, since my current mod can only do full-update. |
03-14-2010, 01:35 AM | #15 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Iņigo, some info for you.
I use FBReader to read epub. Comparing 0.10.x and 0.12.x, the later is slower apparently, roughly 1/3 more time to load a book and flip a page. It seems that FBReader is slower processing epub than prc (that's reasonable). But there seems no difference between 0.10.x and 0.12.x when processing prc ebook. Roughly comparing with your video, FBReader for iLiad spent double time to flip a page. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iLiad Compile GTK application on Iliad. Help | vschmidt | iRex Developer's Corner | 9 | 11-25-2008 02:49 AM |
Applying hacks without flashing (brick save) | mkaluza | Sony Reader Dev Corner | 3 | 08-26-2008 05:45 AM |
iLiad [ILIAD]GTK developpement | Olivier78180 | iRex Developer's Corner | 7 | 07-14-2008 06:22 PM |
iLiad Compiling GTK apps for iliad | rudysplif | iRex Developer's Corner | 3 | 03-17-2008 01:59 PM |
iLiad What if iLiad adopts GTK on DirectFB? | ericshliao | iRex Developer's Corner | 1 | 01-26-2008 06:36 AM |