Project

General

Profile

Actions

Feature #46

closed

Feature #81: Improve CD boot and shutdown

Add a graphical boot splash

Added by Jean-Michel Philippe almost 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Category:
System
Target version:
Start date:
05/02/2011
Due date:
05/23/2011
% Done:

100%

Estimated time:
3:00 h
Spent time:

Description

Now that the CD is correctly working, it is time to remove the text flowing on screen during the CD boot process. On Debian Lenny we can use splashy. This may of course increase the CD boot time… Optionally we can create a drawing instead of reusing the current DDL boot screen.


Related issues 1 (1 open0 closed)

Related to DoudouLinux CD - Feature #148: start-stop-msg has to use an alternative shutdown image on CD'sNew03/28/201209/30/2012

Actions
Actions #1

Updated by Jean-Michel Philippe almost 13 years ago

  • Status changed from New to In Progress

A first build with splashy was successfully achieved. We now need to write a DDL package for a splashy theme.

Actions #2

Updated by Jean-Michel Philippe almost 13 years ago

  • % Done changed from 0 to 50
Actions #3

Updated by Jean-Michel Philippe almost 13 years ago

We need to add a text in the shutdown splash image because the console texts are not visible anymore when the shutdown splash is displayed. The text says that you have to remove the CD and should then only be displayed when DDL is booting from CD. It should also be translated into the CD language.

Actions #4

Updated by Jean-Michel Philippe almost 13 years ago

  • Category set to System
  • Parent task set to #81
Actions #5

Updated by Jean-Michel Philippe almost 13 years ago

Looking at the source code of splashy, the file HACKING is telling the following:

When talking to the Splashy server you can use the following commands:
[…]
  print         <string>  Print <string> in the text box.
  scroll        <string>  Print <string> in the text box and scroll down.
  repaint                 Redraw the background image.
  TEXT          <string>  Same as "print". For compatibility with usplash.
  SCROLL        <string>  Same as "scroll".
[…]
Sending commands to the Splashy server is then as simple as:

splashy_update exit

or

splashy_update getpass "Type your resume password" 

These commands will not block. Commands that expect answer will output the
string to stdout.

So it seems that our shutdown script, which is now playing audio messages to inform about taking the CD, could send a splashy command to tell this on screen too.

Actions #6

Updated by Jean-Michel Philippe almost 13 years ago

  • Estimated time changed from 2:00 h to 3:00 h

A new package splashy-themes-doudoulinux is available.

Concerning the shutdown text, the Debian bug report #487414 explains that splashy cannot show the text box without user action (key F2). A patch is available but too many texts are flowing into it while shutting down. This is not a good option.

As a result the only solution is to insert a translated message directly in the shutdown image at CD build, and only for CD's. This will cause difficulties when we'll use isohybrid disk images. A ticket is required for this issue.

Actions #7

Updated by Jean-Michel Philippe almost 13 years ago

Oops! I forgot to write the Debian bug URL:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487414

Actions #8

Updated by Jean-Michel Philippe almost 13 years ago

Note that the script /etc/init.d/live-initramfs is containing commands usplash_write to put the message “remove CD then press enter”. Maybe we could try to replace these commands with splashy_update.

Actions #9

Updated by Jean-Michel Philippe almost 13 years ago

  • Status changed from In Progress to Ready for test
  • % Done changed from 50 to 100

Finally the only solution that is working is to use ImageMagick to insert text in images. We now have a script that translates texts then put them in the images using a template image. Note that we may still have difficulties with the font to be found while running the script.

Actions #10

Updated by Jean-Michel Philippe over 12 years ago

  • Status changed from Ready for test to Closed

The final solution consists in temporary installing the package splashy-themes-doudoulinux during CD build, in a chroot script. Finally the most difficult thing was not to get the font file but to get the translation texts. Locales are likely not set in the chrooted environment during build, which means that it is impossible to use gettext. We had to ship the package with prebuilt translation texts in small shell scripts as a workaround.

Actions

Also available in: Atom PDF