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.
Cheers, sebt3
PS : keep me inform on when/which release that will be done so I can add the pnd_run.sh part.
Code looks nice, clean and small, I don't see reason why not.
2011/9/12 Sébastien Huss sebastien.huss@gmail.com:
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.
Cheers, sebt3
PS : keep me inform on when/which release that will be done so I can add the pnd_run.sh part.
Firmware-dev mailing list Firmware-dev@openpandora.org http://openpandora.org/cgi-bin/mailman/listinfo/firmware-dev
Am Mon, 12 Sep 2011 19:15:28 +0300 hat Jari Vetoniemi mailroxas@gmail.com geschrieben:
Sounds good to me :)
Code looks nice, clean and small, I don't see reason why not.
2011/9/12 Sébastien Huss sebastien.huss@gmail.com:
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.
Cheers, sebt3
PS : keep me inform on when/which release that will be done so I can add the pnd_run.sh part.
Firmware-dev mailing list Firmware-dev@openpandora.org http://openpandora.org/cgi-bin/mailman/listinfo/firmware-dev
Firmware-dev mailing list Firmware-dev@openpandora.org http://openpandora.org/cgi-bin/mailman/listinfo/firmware-dev
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/p icorestore.c;h=77f572020b7465ddc4e905bff1fbe7d963f18e8d;hb=HEAD) within the Pandora OS. This way pnd_run.sh could restore the framebuffer state after an SDL app using the hacked SDL crashed.
Cheers, sebt3
PS : keep me inform on when/which release that will be done so I can add the pnd_run.sh part.
Code looks nice, clean and small, I don't see reason why not.
I have no problem including this in the new oe-core based firmware, if someone wanted to patch up one of the recipes to include this and send it over that would also be awesome ;). You all know the drill, patches welcome :).
https://github.com/openpandora/meta-openpandora-vendor/tree/master/recipes-o penpandora/pandora-system
Maybe pandora-misc (*) is the right place for this to live?
Regards,
John
(*) - git://openpandora.org/pandora-misc.git for source and https://github.com/openpandora/meta-openpandora-vendor/blob/master/recipes-o penpandora/pandora-system/pandora-misc.bb for the recipe.
All good by me, but ... could also just call ofbset at the end of pnd_run.sh to forcibly return to our default state? But yeah, nothing wrong with picorestore, and hell, its by notaz :)
jeff
On Mon, 12 Sep 2011, Sébastien Huss 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. # # Cheers, # sebt3 # # PS : keep me inform on when/which release that will be done so I can add the pnd_run.sh part. # #
-- If everyone would put barbecue sauce on their food, there would be no war.
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
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
On Mon, Sep 12, 2011 at 9:45 PM, Scott Smith pickle136@sbcglobal.net wrote:
So instead of running automatically after the app exits the pnd system could include this but only activate it on a special key sequence?
no, look at a script bit I posted. It checks if the scaler (/dev/fb1) is used by any program with lsof, and if not, disables that layer. This can be ran safely after any program exits.
if ! lsof /dev/fb1 > /dev/null; then ofbset -fb /dev/fb1 -mem 0 -size 0 0 -en 0 fi
On Mon, Sep 12, 2011 at 9:28 PM, Grazvydas Ignotas notasas@gmail.com wrote:
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
so Sebt, does this look ok to you? If so, do you want to commit it or should I do that?
Hi,
I was planning to add that and the HOME/REAL_HOME stuff you suggested in an other discution within the weekend. If you want to do it before, be my guest ;)
Cheers sebt3
2011/9/21 Grazvydas Ignotas notasas@gmail.com
On Mon, Sep 12, 2011 at 9:28 PM, Grazvydas Ignotas notasas@gmail.com wrote:
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
so Sebt, does this look ok to you? If so, do you want to commit it or should I do that?
-- Gražvydas
On Wed, Sep 21, 2011 at 6:48 PM, Sébastien Huss sebastien.huss@gmail.com wrote:
I was planning to add that and the HOME/REAL_HOME stuff you suggested in an other discution within the weekend. If you want to do it before, be my guest ;)
I think I'll leave that to you, thanks!
Commited this morning :
539a540,541
export REAL_HOME="$HOME" export HOME="$UNION_MOUNT_DIR/$PND_NAME"
553a556
export HOME="$REAL_HOME"
608a612,616
if ! lsof /dev/fb1 > /dev/null; then PND_BeginTask "Restoring the frame buffer status" ofbset -fb /dev/fb1 -mem 0 -size 0 0 -en 0 PND_EndTask fi
Have a good day ;)
2011/9/22 Grazvydas Ignotas notasas@gmail.com
On Wed, Sep 21, 2011 at 6:48 PM, Sébastien Huss sebastien.huss@gmail.com wrote:
I was planning to add that and the HOME/REAL_HOME stuff you suggested in
an
other discution within the weekend. If you want to do it before, be my guest ;)
I think I'll leave that to you, thanks!
-- Gražvydas