Skip to contentSkip to conversation

ecore: remove fix-ecore-fb-initialization.patch

PATCH In review Simon Busch 4 participants 6 messages Aug 10, 2010 – Aug 16, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ecore: remove fix-ecore-fb-initialization.patch

Removing the fix-ecore-fb-initialization patch as it let ecore open the supplied touchscreen device twice which results in an error on platforms where the touchscreen device node can be opened only once. Furthermore I doubt that it is necessary to open the touchscreen device node more than one time.

---
 recipes/efl1/ecore.inc                             |    2 -
 .../efl1/ecore/fix-ecore-fb-initialization.patch   |   29 --------------------
 2 files changed, 0 insertions(+), 31 deletions(-)
 delete mode 100644 recipes/efl1/ecore/fix-ecore-fb-initialization.patch
recipes/efl1/ecore.inc +0 -2
index bb7eea5..081572d 100644
@@ -12,8 +12,6 @@ inherit efl
 
 BBCLASSEXTEND = "native"
 
-SRC_URI += "file://fix-ecore-fb-initialization.patch"
-
 do_configure_prepend() {
 	touch ${S}/po/Makefile.in.in || true
 	sed -i -e 's: po::g' ${S}/Makefile.am
recipes/efl1/ecore/fix-ecore-fb-initialization.patch deleted +0 -29
deleted file mode 100644
index 2ac61ca..0000000
@@ -1,29 +0,0 @@
-#
-# The whole ecore-fb init logic is somewhat flawed; with this patch we
-# get at least a working touchscreen w/ tslib again.
-#
-# Signed-off-by: Michael 'Mickey' Lauer <[email protected]>
-#
-
-Index: ecore/src/lib/ecore_fb/ecore_fb.c
-===================================================================
---- ecore.orig/src/lib/ecore_fb/ecore_fb.c
-+++ ecore/src/lib/ecore_fb/ecore_fb.c
-@@ -46,6 +46,9 @@
- 
-    if (!ecore_fb_vt_init())
-      return --_ecore_fb_init_count;
-+     
-+   if (!ecore_fb_ts_init())
-+     return --_ecore_fb_init_count;
- 
-    ECORE_FB_EVENT_KEY_DOWN          = ecore_event_type_new();
-    ECORE_FB_EVENT_KEY_UP            = ecore_event_type_new();
-@@ -70,6 +73,7 @@
-    if (--_ecore_fb_init_count != 0)
-      return _ecore_fb_init_count;
- 
-+   ecore_fb_ts_shutdown();
-    ecore_fb_vt_shutdown();
- 
-    return _ecore_fb_init_count;
Signature · 1 line
1.7.0.4
#1 lore raw

Hello.

Quoted 4 lines · Simon Busch

Removing the fix-ecore-fb-initialization patch as it let ecore open the supplied touchscreen device twice which results in an error on platforms where the touchscreen device node can be opened only once. Furthermore I doubt that it is necessary to open the touchscreen device node more than one time.

Sounds good, but I want to hear Mickey on this before pushing it as it is his patch.

regards
Stefan Schmidt

Acked-by
#2 lore raw
Quoted 10 lines · Stefan Schmidt

Hello.

Quoted 4 lines · Simon Busch

Removing the fix-ecore-fb-initialization patch as it let ecore open the supplied touchscreen device twice which results in an error on platforms where the touchscreen device node can be opened only once. Furthermore I doubt that it is necessary to open the touchscreen device node more than one time.

Sounds good, but I want to hear Mickey on this before pushing it as it is his patch.

Tested on EFL bump I have in my queue and doesn't break anything on om-gta02, so look OK.

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw
In reply to Stefan Schmidt

Am Freitag, den 13.08.2010, 23:52 +0200 schrieb Stefan Schmidt:

Quoted 10 lines

Hello.

Quoted 4 lines · Simon Busch

Removing the fix-ecore-fb-initialization patch as it let ecore open the supplied touchscreen device twice which results in an error on platforms where the touchscreen device node can be opened only once. Furthermore I doubt that it is necessary to open the touchscreen device node more than one time.

Sounds good, but I want to hear Mickey on this before pushing it as it is his patch.

NACK. Last time I checked, this patch was still necessary to fix touchscreen access using Ecore on pure framebuffer. There may be better approaches to it, but removing it now will break ecore on fb.

Regards,

Signature · 1 line
:M:
#4 lore raw

Am 14.08.2010 21:26, schrieb Michael 'Mickey' Lauer:

Quoted 9 lines

Am Freitag, den 13.08.2010, 23:52 +0200 schrieb Stefan Schmidt:

Quoted 8 lines

Hello.

Quoted 4 lines · Simon Busch

Removing the fix-ecore-fb-initialization patch as it let ecore open the supplied touchscreen device twice which results in an error on platforms where the touchscreen device node can be opened only once. Furthermore I doubt that it is necessary to open the touchscreen device node more than one time.

Quoted 6 lines
Quoted 2 lines

Sounds good, but I want to hear Mickey on this before pushing it as it is his patch.

NACK. Last time I checked, this patch was still necessary to fix touchscreen access using Ecore on pure framebuffer. There may be better approaches to it, but removing it now will break ecore on fb.

For me ecore worked on plain fb without this patch. Touchscreen access was possible and elementary-test worked fine. If it's not the case on other devies than the palm pre we have to find a way around this as it will break usage of ecore_fb for the palm pre!

Will take a look into the code of ecore_fb if there is another way.

regards,
morphis

#5 lore raw
In reply to Michael 'Mickey' Lauer

Am 14.08.2010 21:26, schrieb Michael 'Mickey' Lauer:

Quoted 9 lines

Am Freitag, den 13.08.2010, 23:52 +0200 schrieb Stefan Schmidt:

Quoted 8 lines

Hello.

Quoted 4 lines · Simon Busch

Removing the fix-ecore-fb-initialization patch as it let ecore open the supplied touchscreen device twice which results in an error on platforms where the touchscreen device node can be opened only once. Furthermore I doubt that it is necessary to open the touchscreen device node more than one time.

Quoted 8 lines
Quoted 2 lines

Sounds good, but I want to hear Mickey on this before pushing it as it is his patch.

NACK. Last time I checked, this patch was still necessary to fix touchscreen access using Ecore on pure framebuffer. There may be better approaches to it, but removing it now will break ecore on fb.

Regards,

I think the best solution to work around this is using tsmd: our touchscreen daemon which opens the touchscreen device node and forwards it to a uninput device which can be opened more than on time.

Will write a recipe for it and send it in for integration.

regards,
morphis