Forgive me for sending a third message, but I've just spent the better
part of the night trying to figure out how to get usplash to work when
the computer resumes from hibernation.
The workaround proposed above allows the computer to boot, but it
disables usplash at the very beginning of the boot process and leaves
the user with a splashless splash screen. What's the fun in that?
Here's what I have figured out.
One, you only need to place the "/sbin/usplash_write QUIT" command in
your "/usr/share/initramfs-tools/scripts/local-premount/resume" file.
Two, the best place to place that command is just before the "resume"
command and you can restart usplash after the resume command. For
example, this works (a little bit):
[ -e /sbin/usplash_write ] && /sbin/usplash_write QUIT
if [ -n "${resume_offset}" ]; then
/bin/resume ${resume} ${resume_offset}
else
/bin/resume ${resume}
fi
[ -e /sbin/usplash ] && /sbin/usplash
Although that last line restarts usplash, it starts a crippled version
of usplash. After restarting there are no messages or throbber and
usplash quits when the initial ramdisk completes its task. For
comparison, if you do not have to restart usplash, then it will run
almost all the way up to the point when X starts.
I've tried adding the lines below, running "update-initramfs -u" and
restarting/resuming my computer, but I have not had much luck.
[ -e /sbin/usplash ] && /sbin/usplash -v
[ -e /sbin/usplash_write ] && /sbin/usplash_write PULSATE
[ -e /sbin/usplash_write ] && /sbin/usplash_write VERBOSE true
Cheers,
- Eric