Plymouth refresh when switching between text/gfx modes.
LAHAYE Olivier
olivier.lahaye at cea.fr
Wed Jun 7 08:03:54 UTC 2017
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
CEA DRT/LIST/DIR
More information about the plymouth
mailing list