

Cursor keys work weird and something very funny with key board. I need to check key codes again to see how to fix it.
Anyway, this is my implementation of double buffer. Any suggestions to make it better are always welcome.
o pxafb-doublebuffer.patch
I referred this post in a mailing list to get some ideas how to implement a pan function.
o ARM Kernel -- Re: PXA250, SDL_HWSURFACE and SDL_DOUBLEBUF
http://elinux.org/Android_on_OMAP#Screenshots
Glad to know my posts give some help. And congratulations for booting m5-rc14 up on OMAP.
Did you try lowmemorykiller? It may help or may not.
Btw.: Any experience of power management handling of Android and related stuff in kernel?
One user reports on OMAP while Android starts it goes to suspend mode and never wakeup. I saw similar
http://marc.info/?l=linux-omap&m=120474053130361&w=2
but could prevent going to sleep by pressing button from time to time:
android sleep state 0->2 at xxx
-> ressing a button results in a
android_power_wakeup 2->0 at xxx
http://code.google.com/p/android/downloads/list
In .config, say CONFIG_LOW_MEMORY_KILLER=m. Then insmod lowmemorykiller.ko before starting Android.
Regarding power management. I used to see messages similar to yours;
android sleep state 0->2 at xxx
Somehow it's gone. My guess is;
1) Without double buffer support in frame buffer driver, Dalvik fails to finish his job.
2) Initialization doesn't go through.
3) Current Android is configured for the emulator, which means power is always on.
4) In initialization, power is fixed to some value.
5) If initialization fails, power is not set to good state.
6) Android tries to go sleep.
In android-root/qemu-init.sh, there are a couple of setprops for status.battery. It may give some idea. Note that setprop/getprop only works after android-root/init finishes his job.
Cheers,
qemu-init.sh is in android-root/etc, not in root.
http://article.gmane.org/gmane.linux.ports.arm.omap/7347
http://git.android.com/?p=kernel.git;a=shortlog;h=android
I noticed that same technique is used in init.eee_701 of cupcake branch. I guess it should work for any Android devices.