Hi Tung, thanks for your answer,
You were right, i was using the msm7k gralloc and it was allocation
the memory on GPU, i simply changed the name of /system/libs/hw/
gralloc.msm7k.so lib to force HAL to search for the
gralloc.default.so, and now i can use any resolution.
Now i have another issue, the colors of the screen aren't right. I've
been looking in ./libhardware/modules/gralloc/framebuffer.cpp, and i
see i don't need to set colour information on VFB because it is set on
"int mapFrameBufferLocked(struct private_module_t* module)"
Something like:
/*
* Explicitly request 5/6/5
*/
info.bits_per_pixel = 16;
info.red.offset = 11;
info.red.length = 5;
info.green.offset = 5;
info.green.length = 6;
info.blue.offset = 0;
info.blue.length = 5;
info.transp.offset = 0;
info.transp.length = 0;
However using the VNC server (i'm guessing it isnt a VNC issue) the
colors are wrong... I've attached a pic so you can see what's wrong...
http://zeluispereira.no.sapo.pt/vfb.png
I/gralloc ( 123): using (fd=25)
I/gralloc ( 123): id = Virtual FB
I/gralloc ( 123): xres = 1024 px
I/gralloc ( 123): yres = 768 px
I/gralloc ( 123): xres_virtual = 1024 px
I/gralloc ( 123): yres_virtual = 1536 px
I/gralloc ( 123): bpp = 16
I/gralloc ( 123): r = 0:5
I/gralloc ( 123): g = 5:6
I/gralloc ( 123): b = 11:5
I/gralloc ( 123): width = 163 mm (159.568100 dpi)
I/gralloc ( 123): height = 122 mm (159.895081 dpi)
I/gralloc ( 123): refresh rate = 25.43 Hz
Thanks
> > -->
unsubscribe:android-porti...@googlegroups.com<android-porting%2Bunsubscribe@
googlegroups.com>
> > website:
http://groups.google.com/group/android-porting