Show different Plymouth screen on boot vs. shutdown

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
I am working on a project which has a custom Plymouth boot screen. I wanted to make the progress bar out of text (so the text slides from grey to white/color), but then it would show "nekOS 7 is starting up" on the shutdown screen. Especially in those random instances where it takes a long time to shut down, that would probably confuse the end-user.
So, what I am wondering is if there is a relatively easy way (or any way at all, as treacherous as it may be, hopefully aside from redoing code in the Plymouth splash screen) to have a separate boot screen for shutdown compared to the one at startup?
Thanks for any help in advance!
boot shutdown startup plymouth
add a comment |Â
up vote
0
down vote
favorite
I am working on a project which has a custom Plymouth boot screen. I wanted to make the progress bar out of text (so the text slides from grey to white/color), but then it would show "nekOS 7 is starting up" on the shutdown screen. Especially in those random instances where it takes a long time to shut down, that would probably confuse the end-user.
So, what I am wondering is if there is a relatively easy way (or any way at all, as treacherous as it may be, hopefully aside from redoing code in the Plymouth splash screen) to have a separate boot screen for shutdown compared to the one at startup?
Thanks for any help in advance!
boot shutdown startup plymouth
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am working on a project which has a custom Plymouth boot screen. I wanted to make the progress bar out of text (so the text slides from grey to white/color), but then it would show "nekOS 7 is starting up" on the shutdown screen. Especially in those random instances where it takes a long time to shut down, that would probably confuse the end-user.
So, what I am wondering is if there is a relatively easy way (or any way at all, as treacherous as it may be, hopefully aside from redoing code in the Plymouth splash screen) to have a separate boot screen for shutdown compared to the one at startup?
Thanks for any help in advance!
boot shutdown startup plymouth
I am working on a project which has a custom Plymouth boot screen. I wanted to make the progress bar out of text (so the text slides from grey to white/color), but then it would show "nekOS 7 is starting up" on the shutdown screen. Especially in those random instances where it takes a long time to shut down, that would probably confuse the end-user.
So, what I am wondering is if there is a relatively easy way (or any way at all, as treacherous as it may be, hopefully aside from redoing code in the Plymouth splash screen) to have a separate boot screen for shutdown compared to the one at startup?
Thanks for any help in advance!
boot shutdown startup plymouth
asked May 4 at 16:07
Brenden McFarling
4611
4611
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
In the script for your custom theme use Plymouth.GetMode() and compare against "boot", "shutdown", "suspend" or "resume".
I.e
if (Plymouth.GetMode () == "suspend")
ShowSuspendBackground();
See: https://www.freedesktop.org/wiki/Software/Plymouth/Scripts/
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
In the script for your custom theme use Plymouth.GetMode() and compare against "boot", "shutdown", "suspend" or "resume".
I.e
if (Plymouth.GetMode () == "suspend")
ShowSuspendBackground();
See: https://www.freedesktop.org/wiki/Software/Plymouth/Scripts/
add a comment |Â
up vote
1
down vote
In the script for your custom theme use Plymouth.GetMode() and compare against "boot", "shutdown", "suspend" or "resume".
I.e
if (Plymouth.GetMode () == "suspend")
ShowSuspendBackground();
See: https://www.freedesktop.org/wiki/Software/Plymouth/Scripts/
add a comment |Â
up vote
1
down vote
up vote
1
down vote
In the script for your custom theme use Plymouth.GetMode() and compare against "boot", "shutdown", "suspend" or "resume".
I.e
if (Plymouth.GetMode () == "suspend")
ShowSuspendBackground();
See: https://www.freedesktop.org/wiki/Software/Plymouth/Scripts/
In the script for your custom theme use Plymouth.GetMode() and compare against "boot", "shutdown", "suspend" or "resume".
I.e
if (Plymouth.GetMode () == "suspend")
ShowSuspendBackground();
See: https://www.freedesktop.org/wiki/Software/Plymouth/Scripts/
answered May 30 at 12:07
Anthony Myatt
111
111
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1032059%2fshow-different-plymouth-screen-on-boot-vs-shutdown%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password