<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Argh! bad news.<br>
<br>
Is there a callback that could be used to save some data when esc key is pressed?<br>
<div><br>
Cheers,<br>
<br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font face="Tahoma">-- <br>
   Olivier LAHAYE<br>
</font><br>
</div>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF129760" style="direction: ltr;"><font size="2" color="#000000" face="Tahoma"><b>De :</b> Charlie Brej<br>
<b>Envoyé :</b> vendredi 9 juin 2017 09:41<br>
<b>À :</b> LAHAYE Olivier<br>
<b>Objet :</b> Re: Plymouth refresh when switching between text/gfx modes.<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div>
<div>Hi<br>
<br>
</div>
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.<br>
<br>
</div>
Charlie<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Jun 9, 2017 at 8:39 AM, LAHAYE Olivier <span dir="ltr">
<<a href="mailto:olivier.lahaye@cea.fr" target="_blank">olivier.lahaye@cea.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Hi,<br>
<br>
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.<br>
<br>
My question:<br>
<br>
Is there a way to avoid loosing what was done in script theme previously?<br>
Is there at least some sort of variable/memory that could help redo what was done previously?<br>
<br>
Many thanks for any help about this issue.<br>
<br>
Cheers,<br>
--<br>
   Olivier LAHAYE<br>
<br>
______________________________<wbr>__________<br>
De : plymouth [<a href="mailto:plymouth-bounces@lists.freedesktop.org" target="_blank">plymouth-bounces@lists.<wbr>freedesktop.org</a>] de la part de LAHAYE Olivier<br>
Envoyé : mercredi 7 juin 2017 10:03<br>
À : <a href="mailto:plymouth@lists.freedesktop.org" target="_blank">plymouth@lists.freedesktop.org</a><br>
Objet : Plymouth refresh when switching between text/gfx modes.<br>
<div class="HOEnZb">
<div class="h5"><br>
Hi,<br>
<br>
I have a strange issue in my plymouth script theme.<br>
If I switch to text, then I switch back to gfx mode, most of my sprites will disapear (but not all)<br>
Background is Ok<br>
systemImager Logo is ok<br>
All other stuffs will disapear.<br>
<a href="http://svn.oscar.openclustergroup.org/pkgs/downloads/sis_plymouth.png" rel="noreferrer" target="_blank">http://svn.oscar.<wbr>openclustergroup.org/pkgs/<wbr>downloads/sis_plymouth.png</a><br>
<br>
In a previous version, I was using 2 call backs: message call back ans update status callback.<br>
Things drawn in message callback would not disapear<br>
Things drawn in update status callback would disapear.<br>
<br>
Now I'm only using update status callback only and everything disapear when cycling from gfx to text to gfx using the ESC key.<br>
<br>
Is there any rule for sprite stikyness?<br>
Code is available here:<br>
<a href="https://github.com/finley/SystemImager/blob/initrd-from-imageserver-and-dont-package-initrd/lib/dracut/modules.d/51systemimager/plymouth_theme/systemimager.script" rel="noreferrer" target="_blank">https://github.com/finley/<wbr>SystemImager/blob/initrd-from-<wbr>imageserver-and-dont-package-<wbr>initrd/lib/dracut/modules.d/<wbr>51systemimager/plymouth_theme/<wbr>systemimager.script</a><br>
banner.sprite is correctly refreshed (and background as well). Everything else disapear.<br>
<br>
Is there something I should do to avoid that?<br>
Should I use the global keyword for variables that hosts sprites (they are already global)?<br>
<br>
Should I use a refresh callback and redraw everything 50 times per second?<br>
<br>
Many thanks for any advise on what I'm doing wrong.<br>
<br>
Theme test script is available here:<br>
<a href="https://github.com/finley/SystemImager/blob/initrd-from-imageserver-and-dont-package-initrd/lib/dracut/modules.d/51systemimager/plymouth_theme/test_plymouth.sh" rel="noreferrer" target="_blank">https://github.com/finley/<wbr>SystemImager/blob/initrd-from-<wbr>imageserver-and-dont-package-<wbr>initrd/lib/dracut/modules.d/<wbr>51systemimager/plymouth_theme/<wbr>test_plymouth.sh</a><br>
and of course theme is available here:<br>
<a href="https://github.com/finley/SystemImager/tree/initrd-from-imageserver-and-dont-package-initrd/lib/dracut/modules.d/51systemimager/plymouth_theme" rel="noreferrer" target="_blank">https://github.com/finley/<wbr>SystemImager/tree/initrd-from-<wbr>imageserver-and-dont-package-<wbr>initrd/lib/dracut/modules.d/<wbr>51systemimager/plymouth_theme</a><br>
<br>
Cheers.<br>
<br>
--<br>
   Olivier LAHAYE<br>
<br>
</div>
</div>
<div class="HOEnZb">
<div class="h5">______________________________<wbr>_________________<br>
plymouth mailing list<br>
<a href="mailto:plymouth@lists.freedesktop.org" target="_blank">plymouth@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/plymouth" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/plymouth</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>