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
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