So instead of running automatically after the app exits the pnd system could include this but only activate it on a special key sequence? Or the pnd xml has a setting to enable to disable picorestore upon exit of the app.
________________________________ From: Grazvydas Ignotas notasas@gmail.com To: Sébastien Huss sebastien.huss@gmail.com Cc: firmware-dev@openpandora.org Sent: Mon, September 12, 2011 2:28:19 PM Subject: Re: [Firmware-dev] restoring framebuffer state after an app run
On Mon, Sep 12, 2011 at 7:08 PM, Sébastien Huss sebastien.huss@gmail.com wrote:
Hi there,
I'ld like to request the inclusion of picorestore (http://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=gpsp.git;a=blob;f=pandora/picorest...) ) within the Pandora OS. This way pnd_run.sh could restore the framebuffer state after an SDL app using the hacked SDL crashed.
I'd suggest not to use this as you wouldn't want to do what it does on exit of every pnd. For example, if user is playing a video and fires calculator pnd (just an example) and exits it, this would wipe out the video layer.
Like skeezix said you can use ofbset (already in firmware), plus you also have to be smart and do something like:
if ! lsof /dev/fb1 > /dev/null; then ofbset -fb /dev/fb1 -mem 0 -size 0 0 -en 0 fi