Plymouth refresh when switching between text/gfx modes.

LAHAYE Olivier olivier.lahaye at cea.fr
Fri Jun 9 11:23:25 UTC 2017


Argh! bad news.

Is there a callback that could be used to save some data when esc key is pressed?

Cheers,

--
   Olivier LAHAYE

________________________________
De : Charlie Brej
Envoyé : vendredi 9 juin 2017 09:41
À : LAHAYE Olivier
Objet : Re: Plymouth refresh when switching between text/gfx modes.

Hi

Sorry for not replying before. There isn't any way of storing the theme state between restarts. The plugin is completely unloaded and then loaded again.

Charlie

On Fri, Jun 9, 2017 at 8:39 AM, LAHAYE Olivier <olivier.lahaye at cea.fr<mailto:olivier.lahaye at cea.fr>> wrote:
Hi,

After looking at logs using kompar between a normal log and a log where I press ESC twice to switch to text and then back to gfx it looks like plymouth will destroy current theme and load detail theme, then will destroy detail theme and recreate script theme loosing everything that was done previously.

My question:

Is there a way to avoid loosing what was done in script theme previously?
Is there at least some sort of variable/memory that could help redo what was done previously?

Many thanks for any help about this issue.

Cheers,
--
   Olivier LAHAYE

________________________________________
De : plymouth [plymouth-bounces at lists.freedesktop.org<mailto:plymouth-bounces at lists.freedesktop.org>] de la part de LAHAYE Olivier
Envoyé : mercredi 7 juin 2017 10:03
À : plymouth at lists.freedesktop.org<mailto:plymouth at lists.freedesktop.org>
Objet : Plymouth refresh when switching between text/gfx modes.

Hi,

I have a strange issue in my plymouth script theme.
If I switch to text, then I switch back to gfx mode, most of my sprites will disapear (but not all)
Background is Ok
systemImager Logo is ok
All other stuffs will disapear.
http://svn.oscar.openclustergroup.org/pkgs/downloads/sis_plymouth.png

In a previous version, I was using 2 call backs: message call back ans update status callback.
Things drawn in message callback would not disapear
Things drawn in update status callback would disapear.

Now I'm only using update status callback only and everything disapear when cycling from gfx to text to gfx using the ESC key.

Is there any rule for sprite stikyness?
Code is available here:
https://github.com/finley/SystemImager/blob/initrd-from-imageserver-and-dont-package-initrd/lib/dracut/modules.d/51systemimager/plymouth_theme/systemimager.script
banner.sprite is correctly refreshed (and background as well). Everything else disapear.

Is there something I should do to avoid that?
Should I use the global keyword for variables that hosts sprites (they are already global)?

Should I use a refresh callback and redraw everything 50 times per second?

Many thanks for any advise on what I'm doing wrong.

Theme test script is available here:
https://github.com/finley/SystemImager/blob/initrd-from-imageserver-and-dont-package-initrd/lib/dracut/modules.d/51systemimager/plymouth_theme/test_plymouth.sh
and of course theme is available here:
https://github.com/finley/SystemImager/tree/initrd-from-imageserver-and-dont-package-initrd/lib/dracut/modules.d/51systemimager/plymouth_theme

Cheers.

--
   Olivier LAHAYE

_______________________________________________
plymouth mailing list
plymouth at lists.freedesktop.org<mailto:plymouth at lists.freedesktop.org>
https://lists.freedesktop.org/mailman/listinfo/plymouth

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/plymouth/attachments/20170609/48e82aff/attachment.html>


More information about the plymouth mailing list