Wiki Table of Contents

HELP: MX Boot options

On this page:


Introduction

This MX Tool is designed to make common user start-up choices faster and easier. It is not intended to cover advanced boot options, for which the user should consult this Wiki page instead.

Options

Menu timeout: how long the GRUB screen remains visible until the boot process begins. If you put a zero in, the GRUB screen will simply not show at all (technically, it sets GRUB_TIMEOUT=0 in /etc/default/grub)

Boot To:  Select the grub boot menu entry that will be used as default on next boot.

Enable saving last boot choice:  Instruct grub to use whatever you last selected from the grub boot menu as the new default

Use flat menus:  Instructs grub to create a grub menu with the subcategories merged into the top level grub menu.

Background

Using the choices here, the user can select a background wallpaper for the standard GRUB display (technically, sets GRUB_BACKGROUND=/path/filename).

  • PNG files will be more satisfactory than JPG because it allows more colors,
  • Image should be non-indexed, RGB (GIMP can do this).
  • A size of 800×450 tends to work well.

Complete GRUB themes are also available from the pull-down menu that offer a more polished look.

Splash

It is possible to see a graphical display while the system boots making use of the application Plymouth, originally developed by Fedora.

Enable:  Enable Plymouth.  Plymouth will be installed if necessary.

Theme:  Select a theme for Plymouth to use.

Preview:  Display the Plymouth theme selected.  The splash will be displayed for approximately 5 seconds then return to the mx-boot-options gui.  The preview button may not work upon first install of Plymouth but should work OK after a reboot of the machine.

Messages

Very Detailed:  Removes the “quiet” boot parameter, showing many normally hidden scrolling boot text messages.

Detailed:  The normal default boot message setup, with “quiet” enabled in the boot parameters.  This basically shows warnings and init messages, but not kernel messages.

Limited:  Hides all but error boot messages.

Display Log:  Displays the boot log appropriate for the current boot conditions.

MX Boot Options currently only works on the grub configuration installed with MX Linux.  It is possible, from  live-Media, to use MX Boot Options to configure the grub configurations on other “installed” partitions.

Tips and tricks

  • MX Boot Options currently only works on the grub configuration installed with MX Linux.  It is possible, from  live-Media, to use MX Boot Options to configure the grub configurations on other “installed” partitions.
  • If you use a splash, you can press Esc at any point to return to the boot messages.
  • For advanced boot options that involve cheat codes (kernel parameters), consult this WIki page.

Create your own theme

So, you might be asking yourself: how can I create a splash theme?

Complicated answer: covered by a series of blog posts linked below.

Simpler answer: you use the example plymouth plugin script “script.script” located in /usr/share/plymouth/themes/script/. Example:

  • Dolphin_Oracle created the striking theme mx-linux this way. I ran a diff on the original and his script.script for the new theme, and you can see the small number of changes that he made (first number of each section is the line number):
    1c1
    < # This is an example plymouth plugin script
    ---
    > # mx script theme, modified from debian script theme script.script
    
    6c6
    < logo.image = Image("special://logo");
    ---
    > logo.image = Image("mx_wall_3_night.png");
    
    8c8,10
    < logo.opacity_angle = 0;
    ---
    > logo.opacity_angle =0;
    > mx_logo.image = Image("MX-logo.png");
    > mx_logo.sprite = Sprite(mx_logo.image);
    
    14,18c16,20
    <         logo.opacity_angle += ((2 * 3.14) / 50) * 0.5;  # 0.5 HZ
    <         min_opacity = 0.3;
    <         opacity = (Math.Cos(logo.opacity_angle) + 1) / 2;
    <         opacity *= 1 - min_opacity;
    <         opacity += min_opacity;
    ---
    > #        logo.opacity_angle += ((2 * 3.14) / 50) * 0.5;  # 0.5 HZ
    > #        min_opacity = 0.3;
    > #        opacity = (Math.Cos(logo.opacity_angle) + 1) / 2;
    > #        opacity *= 1 - min_opacity;
    > #        opacity += min_opacity;
    
    21c23,26
    <         logo.sprite.SetOpacity (opacity);
    ---
    > 	logo.z = -10000;
    > 	mx_logo.sprite.SetX (Window.GetX() + Window.GetWidth()  / 2 - mx_logo.image.GetWidth()  / 2);
    >         mx_logo.sprite.SetY (Window.GetY() + Window.GetHeight() / 2 - mx_logo.image.GetHeight() / 2);
    > #       logo.sprite.SetOpacity (opacity);
    

  • image files being used must be placed in the same folder
  • a rewritten plymouth file (here: mx-linux.plymouth) needs to be created with the crucial middle section pointing to locations:
    [Plymouth Theme]
    Name=Script
    Description=Script example plugin.
    ModuleName=script
    
    [script]
    ImageDir=/usr/share/plymouth/themes/mx-linux
    ScriptFile=/usr/share/plymouth/themes/mx-linux/script.script
    
    [script-env-vars]
    example_env_var=example env var value

Simplest answer: you adapt one that already exists and works. This is what we have done to generate some of those in the beta splash theme package. Example:

  • User Gerson first found the beautiful animated theme dandelion, and switched the logo. We then substituted a different logo and deleted the existing Debian one. Ta-dah!

NOTE: if you change any logo or background you must revise the *.plymouth file as indicated above.

Links


v. 20180809

Leave a Comment