yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
How to recompile 1 library (for example libgralloc) and not recompile whole sources?

---------- Post added at 08:22 PM ---------- Previous post was at 08:09 PM ----------

Found: make gralloc.msm7k :)
[Galaxy Ace S5830 Original Android Development] djsky2011:
u still getting compile errors?..... just had this logcat with my last build

I/SurfaceFlinger( 157): SurfaceFlinger is starting

I/SurfaceFlinger( 157): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...

E/libEGL ( 157): load_driver(/system/lib/egl/libGLES_android.so): Cannot load library: reloc_library[1285]: 103 cannot locate '_ZNK7android13GraphicBuffer17getVerticalStrideEv'...

D/libEGL ( 157): loaded /system/lib/egl/libEGL_adreno200.so

D/libEGL ( 157): loaded /system/lib/egl/libGLESv1_CM_adreno200.so

D/libEGL ( 157): loaded /system/lib/egl/libGLESv2_adreno200.so

E/libEGL ( 157): eglSetSwapRectangleANDROID:1463 error 3008 (EGL_BAD_DISPLAY)
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
I dont know why, but my screen is DUAL :(((
[Galaxy Ace S5830 Original Android Development] slaid480:
dual WTF,you booted???
[Galaxy Ace S5830 Original Android Development] djsky2011:
is it still flickering?
[Galaxy Ace S5830 Original Android Development] slaid480:
no wasting time any more ,we need to port from zte blade then fix
[Galaxy Ace S5830 Original Android Development] djsky2011:
agreed but first we need github, which im doing now. I believe he has dual screen from tweaking the gralloc libs. It will be fine :)
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
I had replaced my libgralloc with libgralloc from ZTE skate.

Dual disappears, flickering is still exist, but touchscreen is working, but badly calibrated...

---------- Post added at 09:36 PM ---------- Previous post was at 09:32 PM ----------

Anybody, who has normal working installed rom, please reboot with adb logcat and tell me your refresh rate!

For example:
[Galaxy Ace S5830 Original Android Development] slaid480:
what about screen refrash rate?
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
How much Hz
[Galaxy Ace S5830 Original Android Development] dragonnn:
On CM 7.2 RC0 i get:

I/cooper.gralloc( 996): refresh rate = 0.34 Hz

Looks the refresh rate are ok.
[Galaxy Ace S5830 Original Android Development] djsky2011:
i think a normal running rom has a refresh rate of about 0.34-.37HZ we need someone (with CM7.1 or 7.2) to do a logcat of their boot process and post it here

---------- Post added at 09:49 PM ---------- Previous post was at 09:45 PM ----------

our current port is producing refresh rate 0.00 Hz which i'm pretty sure is where the flicker comes from. screen not updating itself

I/SurfaceFlinger( 157): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...

E/msm7k.gralloc( 157): We support 2 buffers

I/msm7k.gralloc( 157): using (fd=36)

I/msm7k.gralloc( 157): id = msmfb30_30001

I/msm7k.gralloc( 157): xres = 320 px

I/msm7k.gralloc( 157): yres = 480 px

I/msm7k.gralloc( 157): xres_virtual = 320 px

I/msm7k.gralloc( 157): yres_virtual = 960 px

I/msm7k.gralloc( 157): bpp = 32

I/msm7k.gralloc( 157): r = 24:8

I/msm7k.gralloc( 157): g = 16:8

I/msm7k.gralloc( 157): b = 8:8

I/msm7k.gralloc( 157): width = 51 mm (159.372543 dpi)

I/msm7k.gralloc( 157): height = 76 mm (160.421051 dpi)

I/msm7k.gralloc( 157): refresh rate = 0.00 Hz
[Galaxy Ace S5830 Original Android Development] slaid480:
thx to dragonnn his gives the one from cm7.2
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Refresh rate I had fixed already, value is: 0.34. But now I have error:
[Galaxy Ace S5830 Original Android Development] kevinkrs:
maybe this can help you "EGL_BAD_DISPLAY is generated if display is not an EGL display connection"

Edit:

I found a little more.

if (egl_display_t::is_valid(dpy) == EGL_FALSE)

return setError(EGL_BAD_DISPLAY, EGL_NO_SURFACE);

if (window == 0)

return setError(EGL_BAD_MATCH, EGL_NO_SURFACE);

In frameworks/base/opengl/libagl/egl.cpp
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Not at this case. We got this error at:

egl_surface_t const * const s = get_surface(draw);
if (s->cnx->egl.eglGetRenderBufferANDROID) {
return s->cnx->egl.eglGetRenderBufferANDROID(
dp->disp[s->impl].dpy, s->surface);
}
return setError(EGL_BAD_DISPLAY, (EGLClientBuffer*)0);

This if is not working!
[Galaxy Ace S5830 Original Android Development] djsky2011:
New github

Wayland upload ur source to this github, we can all make changes and compile. I will inbox username and password

https://github.com/ICSACE

Edit: better for us to work on the same kernel than separate kernels, resolves problems faster
[Galaxy Ace S5830 Original Android Development] slaid480:
yeah please wyland upload your sources us fast us you can
[Galaxy Ace S5830 Original Android Development] lagloose:
Sorry Folks, i have very less time during the next days. I will read here from time to time. Obviously still stuck at the touchscreen problem. Wayland_Ace does a very good job. As soon as we have a working screen we all should buy him a beer (or whatever he likes :) ).

Meanwhile i researched a little bit, what the others have done and found this from the Blade port, which i think could be very interesting...

https://github.com/t0mm13b/ics4blade/commits/master

Did you already find this Wayland ?
[Galaxy Ace S5830 Original Android Development] slaid480:
we alreday are working from ZTE BLADE
[Galaxy Ace S5830 Original Android Development] LPFinch:
https://github.com/t0mm13b/ics4blade/commit/454cbe54fc903fabf92721c2e518363a845b4f5a#diff-6

source Initial import for opengl FIX

lagloose

nice men =)
[Galaxy Ace S5830 Original Android Development] djsky2011:
+1 for this, once wayland figures out how to use github it should be smooth sailing :cool:
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Someone, please, step by step tell me, how to import my changed to github. I have no time to learn it :((
[Galaxy Ace S5830 Original Android Development] LPFinch:
http://githowto.com/changes_not_files

its easy

small tutorial u a need 5 mins to read)

Удачи брат)
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Recompiled gralloc.cooper. Next alpha rom.

Touchscreen fixed! Still no HW accel

http://cs.fill.ee/ics/cm_fix_touch.zip

P.S Dont forget to click "Thanks"
[Galaxy Ace S5830 Original Android Development] djsky2011:
I have an idea, instead of setting up github, why not zip your source with changes and i will push to github?
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
But better to learn it. :)
[Galaxy Ace S5830 Original Android Development] slaid480:
yep, but you tell us you don't have time to learn:D
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Step by step :)
[Galaxy Ace S5830 Original Android Development] kevinkrs:
Notice that hardware acceleration does not work?

Can you feel it at the performance?
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Yes, it does not work. It very ugly and slowly becouse screen still flickering and no accel yet.
[Galaxy Ace S5830 Original Android Development] djsky2011:
take your time and learn it its not that complicated :D
[Galaxy Ace S5830 Original Android Development] kevinkrs:
Ah, so the flickering screen is because the hwa
[Galaxy Ace S5830 Original Android Development] Martin4os:
I found this, maybe it will help! Its taken from an optimus one developer (a great one) https://github.com/andy572/android_frameworks_base/commit/4133181ba5c3777a719253134d38140491dba783
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
It was a shortbreak... well, next alpha release. Now with working audio:

http://cs.fill.ee/ics/cm_fix_audio.zip (touch working, audio working)

Please, "Thanks" as usual

---------- Post added at 01:55 AM ---------- Previous post was at 01:54 AM ----------

This patches already done...
[Galaxy Ace S5830 Original Android Development] evil_penguin:
Screenshots please if it's possible?

Anyways ,awesome work done by developers.

Special thanks goes to Wayland_ACE for his awesome work .
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
screenshot programm works, but screen flicks and screenshots are sucks...
[Galaxy Ace S5830 Original Android Development] evil_penguin:
Oh ok no problem....anyways thanks :-)

I have an idea may be its dumb but good for the ppl in XDA -

whenever you want to take a break from your work ..can u post video showing ppl launcher ,ics etc or u can take images n post it .

Sorry for troubling :)

I cant resist myself ;( sorry
[Galaxy Ace S5830 Original Android Development] Toxina:
I just wanted to thank you guys for all your hard work! :)
[Galaxy Ace S5830 Original Android Development] elspanish88:
I second that!! Fantastic work by genius devs

Sorry... just wanted to say thanks 2 all.
[Galaxy Ace S5830 Original Android Development] evil_penguin:
STOP IT just press thanks button ...this is only for developers !!!!

Keep the thread clean !!
[Galaxy Ace S5830 Original Android Development] Toxina:
if i press thanks for the first post, im only thanking one person, so instead of giving one thanks to one person, i made a post to thank them all.
[Galaxy Ace S5830 Original Android Development] CallMeVentus:
You don't have 5 thanks per day for nothing

Keep . The . Thread . Clean .

Okay , back on topic , has the hwcomposer problem been fixed ? What are the fixes that had been tried ?
[Galaxy Ace S5830 Original Android Development] djsky2011:
went away for a few hours and found audio working, well done wayland. As soon as u push the source to the github, we can expect that little flicky problem to go away. Send me a PM when u need help with the commit. :)
[Galaxy Ace S5830 Original Android Development] KeiranFTW:
When you make a repo it tells you how to push files.

After you set up the repo, to add and update files do(cd into your repo dir):

git add .

git commit -m "commit msg"

git push origin master

First create a new repo and follow githubs instructions, also set up your ssh key with github first also.
[Galaxy Ace S5830 Original Android Development] kevinkrs:
How is the booting of the phone?

Can you boot into ics? Or are you stuck on the android logo?
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Yes, I can boot into ics. But it not useable
[Galaxy Ace S5830 Original Android Development] kevinkrs:
Because it dont have hwa
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
It look likes, that adreno 200 drivers loaded successfully with no errors (EGL_BAD_DISPLAY, EGL_BAD_MISMATCH etc):

But still having error:

E/Adreno200-EGL( 179): egliSwapWindowSurface: unable to dequeue native
[Galaxy Ace S5830 Original Android Development] djsky2011:
Here is a photo taken of my Ace with ICS... Now this photo wasn't easy to take with all the screen flicker, work still in progress so please click "Thanks" if I eased ur minds ;)
[Galaxy Ace S5830 Original Android Development] kevinkrs:
Lol when I'm booting I see the android logo en the ics flickering xD
[Galaxy Ace S5830 Original Android Development] Martin4os:
looks like everyone have this problem, simply the drivers for the adreno 200 are too old for ICS. Until qualcomm release the source code for the drivers (close-source sucks!) we won't have a fully-working HW acceleration. And it came to this https://developer.qualcomm.com/forum/qdevnet-forums/graphics-optimization-adreno%E2%84%A2/8081

But, HTC desire (and some other devices) have managed to hack HWa, maybe there is something in their github (i'll try to search for that)

But, you alreade know this :)
[Galaxy Ace S5830 Original Android Development] daredj:
In fact, in my last post i put links of ics dev for HTC desire and for nexus one, they have a "hacked" graphics acceleration.

Maybe it can be "merged" with the ZTE driver.

Let's hope if they release source of adreno200...
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
These libraries compiled for another processor
[Galaxy Ace S5830 Original Android Development] hackdima:
adreno200

iv found something in google to source of adreno200 ;)

i hope that is a helpful info here
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Kernel driver already exists...
[Galaxy Ace S5830 Original Android Development] Martin4os:
Yes i know, i searched both the threads and their github, and tried to find something on google, but i coudn't find what they actually have done. It's clearly beyond my knowledge.

Although i did find that they are compiling kernel 3.0, and there is genuine hope that the kernel will solve this particular problem.
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
So, another try, but gsl_memory_free is not defined (probably we need refresh proprietary libgsl.so)

---------- Post added at 02:06 PM ---------- Previous post was at 01:54 PM ----------

A little bit later will try upload my changes to github

---------- Post added at 02:26 PM ---------- Previous post was at 02:06 PM ----------

Device configs: https://github.com/ICSACE/device_samsung_cooper

frameworks base: https://github.com/ICSACE/android_frameworks_base

kernel sources with proper config: https://github.com/ICSACE/android_kernel_msm

hardware msm7k: https://github.com/ICSACE/android_hardware_msm7k

libhardware: https://github.com/ICSACE/android_hardware_libhardware
[Galaxy Ace S5830 Original Android Development] LPFinch:
Can't load because in folder /system/lib/egl/ have no libEGL_adreno200.so

have just 2 files:

libGLES_android.so

egl.cfg
[Galaxy Ace S5830 Original Android Development] hackdima:
libEGL_adreno200.so

thereis something about libEGL_adreno200.so
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
It's not a proper libEGL_adreno200.so file. It's not binary
[Galaxy Ace S5830 Original Android Development] LPFinch:
it's asm file

Wayland_ACE

give me libEGL_adreno200.so file plz

need make some experiment
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
U can get it from any GB rom

---------- Post added at 03:22 PM ---------- Previous post was at 03:15 PM ----------

Did u saw ASM code?

For example:

I think it's just libegl_adreno200.so file DUMP
[Galaxy Ace S5830 Original Android Development] djsky2011:
hey wayland thanks for uploading the files to github, is that everything? i'm trying to locate frameworks directory

edit: found it

edit2: have u already patched these files for display:

BootAnimation.cpp, GraphicBufferAllocator.cpp, GraphicBufferMapper.cpp, SoftwareRenderer.cpp, glext.h, gl2ext.h, state.cpp, eglApi.cpp, DisplayHardware.cpp, Layer.cpp
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
From which patchset? I had made a lot of changes :)
[Galaxy Ace S5830 Original Android Development] djsky2011:
here https://github.com/ICSACE/android_frameworks_base I know, the github has reached the limit :eek:
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Limit :eek: ?
[Galaxy Ace S5830 Original Android Development] djsky2011:
ok right, ur latest build produced these errors on my device, lets look into what could be causing them

E/libEGL ( 588): eglMakeCurrent:630 error 3009 (EGL_BAD_MATCH)

E/SurfaceFlinger( 588): Couldn't create a working GLES context. check logs. exiting...

Further research shows :

Errors

EGL_FALSE is returned on failure,

EGL_TRUE otherwise. If EGL_FALSE

is returned, the previously current rendering context and

surfaces (if any) remain unchanged.

EGL_BAD_DISPLAY is generated if

display is not an EGL display connection.

EGL_NOT_INITIALIZED is generated if

display has not been initialized.

EGL_BAD_SURFACE is generated if

draw or read is not an

EGL surface.

EGL_BAD_CONTEXT is generated if

context is not an EGL rendering context.

EGL_BAD_MATCH is generated if

draw or

read

are not compatible with

context, or if

context is set to

EGL_NO_CONTEXT and

draw or

read

are not set to

EGL_NO_SURFACE, or if

draw or

read are set to

EGL_NO_SURFACE and

context is not set to

EGL_NO_CONTEXT.
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Wrong EGL libraries, disable them in egl.cfg
[Galaxy Ace S5830 Original Android Development] djsky2011:
Also found our display fix HERE and HERE

Make note of the December 06 changes
[Galaxy Ace S5830 Original Android Development] CallMeVentus:
Did you try applying the fixes ?

I can't because of my (currently) tight schedule
[Galaxy Ace S5830 Original Android Development] djsky2011:
I can apply fixes but not compile because of system. Wayland has a 8 core 16gb ram linux system :cool:
[Galaxy Ace S5830 Original Android Development] CallMeVentus:
I only have a quad core laptop :/
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
This patches I was added a long time ago :)))

What value we need?

From another topic in XDA. Who can tell me a value?

---------- Post added at 07:17 PM ---------- Previous post was at 07:05 PM ----------

I shall update the CM code and fully recompile it.
[Galaxy Ace S5830 Original Android Development] Mardon:
adreno 200

Vielleicht hilft euch das ja weiter neu vom dezember 2011

https://developer.qualcomm.com/download/adreno-sdk.zip

Updated 09 Dec 11

und das hier

https://developer.qualcomm.com/download/mostcommonshadersv1.zip

oder der shader developer bereich(registrierung erforderlich)

https://developer.qualcomm.com/file/6154

Wünsche euch weiterhin vier Erfolg beim ICS Basteln
[Galaxy Ace S5830 Original Android Development] kevinkrs:
TRANSLATE

-----

Maybe this helps you even further by the new december 2011

https://developer.qualcomm.com/download/adreno-sdk.zip

Updated 09 Dec 11

and here

https://developer.qualcomm.com/download/mostcommonshadersv1.zip

or the shader developer area (registration required)

https://developer.qualcomm.com/file/6154

I wish you continued success in four ICS crafts
[Galaxy Ace S5830 Original Android Development] kushdeck:
can somebody please explain how they fixed:

error: 'struct hwc_layer' has no member named 'alpha'

thanks

-deck
[Galaxy Ace S5830 Original Android Development] djsky2011:
Be more specific, what are u compiling?
[Galaxy Ace S5830 Original Android Development] kushdeck:
well im compiling ics 4.0.1r1 for supersonic, shooter, and inc. i have made all the changes to framework and etc... this is the last error i receive. alpha isnt being defined, tho i clearly see it being defined here.

https://github.com/TwistedUmbrella/...mmit/303c1729eb068f814ac397643c40bbc8becf2218

-deck
[Galaxy Ace S5830 Original Android Development] djsky2011:
try this

void Layer::setGeometry(hwc_layer_t* hwcl)
{
LayerBaseClient::setGeometry(hwcl);

hwcl->flags &= ~HWC_SKIP_LAYER;

// we can't do alpha-fade with the hwc HAL
const State& s(drawingState());
if (s.alpha < 0xFF) {
hwcl->flags = HWC_SKIP_LAYER;
}
[Galaxy Ace S5830 Original Android Development] kushdeck:
nm, my bad. a little tired :) ill report back, thanks.

-deck
[Galaxy Ace S5830 Original Android Development] djsky2011:
yes, remember to check the includes.... that alpha was being used before it was defined anyhow

edit: do u have display problems on ur port?
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
https://github.com/ICSACE/android_hardware_libhardware/blob/master/include/hardware/hwcomposer.h

Update struct data

---------- Post added at 09:26 PM ---------- Previous post was at 09:13 PM ----------

Rom build update:

http://cs.fill.ee/ics/cm_update.zip

This rom include updated CM libraries including apps, refreshed kernel and graphical libs patched (EGL old blobs patch). adreno 200 drivers not included.
[Galaxy Ace S5830 Original Android Development] kushdeck:
this fixed my error :) thank you sir

my display on the evo4g and inc is a bit glitchy but has been working quite well with some cheap hacks, and i cant get any kind of accel on my shooter yet.

trying this next, i appreciate the help you guys. kudos! ill report back on this one as well.

-deck
[Galaxy Ace S5830 Original Android Development] djsky2011:
still flicker?
[Galaxy Ace S5830 Original Android Development] slaid480:
you still have flicker??
[Galaxy Ace S5830 Original Android Development] djsky2011:
still flicker but the libs and apps are updated to match CM

THANKS WAYLAND
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
OMG. Probably HW accel works!!! (I cant see HW errors), but screen still flickering...

---------- Post added at 10:48 PM ---------- Previous post was at 10:47 PM ----------

http://cs.fill.ee/ics/boot.txt
[Galaxy Ace S5830 Original Android Development] kevinkrs:
good news dude!!!
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
I had losed libraries with success HW run... fck... :))) Will mix agaaain...
[Galaxy Ace S5830 Original Android Development] slaid480:
touch screen working apps working??
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Already yesterday
[Galaxy Ace S5830 Original Android Development] kevinkrs:
/me crying.
[Galaxy Ace S5830 Original Android Development] djsky2011:
This flicker is so annoying, i have reviewed your source and everything seems to be in order :confused:
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Have u got HW graphic errors in logcat?

---------- Post added at 11:33 PM ---------- Previous post was at 11:32 PM ----------

For example E/Adreno200-EGL( 179): egliSwapWindowSurface: unable to dequeue native buffer
[Galaxy Ace S5830 Original Android Development] djsky2011:
no adreno errors here mate
[Galaxy Ace S5830 Original Android Development] djsky2011:
My Logcat, no errors

edit:

E/libEGL ( 159): called unimplemented OpenGL ES API

E/libEGL ( 159): called unimplemented OpenGL ES API

E/libEGL ( 159): called unimplemented OpenGL ES API
[Galaxy Ace S5830 Original Android Development] kevinkrs:
"This is not an error, but a statement. It simply tells you that your target doesn't support OpenGL ES version 2.0."
[Galaxy Ace S5830 Original Android Development] slaid480:
Your right dude that I was thinking too
[Galaxy Ace S5830 Original Android Development] djsky2011:
I know but thought it was worth noting as EGL drivers are a bit fussy when something isnt right.

No HW errors because adreno drivers are not included in package and software rendering enabled
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
How u did that? What libraries u used? Have u did wipe?
[Galaxy Ace S5830 Original Android Development] djsky2011:
I flashed the last cm_update u posted. I'll flash again
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Yes, but it was without adreno driver
[Galaxy Ace S5830 Original Android Development] slaid480:
what is your work statu,sorry i can't help today I'm getting sec,sorry dude!!!
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Did u mean "state"? HW accel && screen flickering - this problems I want to fix first. audio and touch already works (other things very hard to check (screen is annoying...))
[Galaxy Ace S5830 Original Android Development] slaid480:
hm ,great work your closer I will help you this weekend to have a fixed version,and what about lunching apps,did you get it??

---------- Post added at 12:33 AM ---------- Previous post was at 12:32 AM ----------

can you upload your lastest flashable zip us I will see if I can help please
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Yes, I even can listen music from sdcard. I'll test next rom version and will upload them
[Galaxy Ace S5830 Original Android Development] djsky2011:
Wayland I reflashed and no EGL errors, screen still flickers which is bad news because we dont have any errors to debug??
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
Oh... about HW accel. I was wrong, I did not loaded drivers yet :( Sorry

---------- Post added at 12:42 AM ---------- Previous post was at 12:41 AM ----------

No adreno drivers is loaded. Maybe therefore screen is still flickering...
[Galaxy Ace S5830 Original Android Development] KeiranFTW:
Go into settings in ICS and toggle "force gpu rendering", this might help.

Also, the refresh rate might be causing the flickering, try it at a lower Hz
[Galaxy Ace S5830 Original Android Development] Wayland_ACE:
So, I dont know how to solve it... will try, but...