Skip to content
blog.fossasia.org
  • Home
  • Projects
    • Contribute
  • Events
    • Eventyay Platform
    • Event Sponsorships
    • Event Calendar
    • FOSSASIA Summit
    • OpenTechSummit China
    • OpenTechSummit Thailand
    • OpenTechSummit Vietnam
    • Jugaad Fest India
    • Past Events
      • FOSSASIA Summit 2022
      • FOSSASIA Summit 2021
      • FOSSASIA Summit 2020
      • FOSSASIA Summit 2019
      • FOSSASIA Summit 2018
      • FOSSASIA Summit 2017
      • FOSSASIA Summit 2016
      • FOSSASIA Summit 2015
      • FOSSASIA Summit 2014
      • FOSSASIA Summit 2012
      • FOSSASIA Summit 2011
      • FOSSASIA Summit 2010
      • GNOME.Asia 2009
      • MiniDebConf Vietnam 2010
      • Sciencehack.Asia
      • Science Hack India
  • Programs
    • Programs and Opportunities
    • Jobs Opportunities
    • Program Guidelines
    • Codeheat Contest
    • University Internship Program
    • University Student Coding Programs
    • High School Student Program
    • Advanced Developer Program
    • Become a Mentor
      • Become A University Student Mentor
      • Become A High School Student Mentor
  • Shop
  • Blog
  • About
    • Jobs
    • Membership
    • Activities
    • Background & Mission
    • Best Practices
    • Licenses
    • Team
    • Code of Conduct
  • Donate
Menu Close
  • Home
  • Projects
    • Contribute
  • Events
    • Eventyay Platform
    • Event Sponsorships
    • Event Calendar
    • FOSSASIA Summit
    • OpenTechSummit China
    • OpenTechSummit Thailand
    • OpenTechSummit Vietnam
    • Jugaad Fest India
    • Past Events
      • FOSSASIA Summit 2022
      • FOSSASIA Summit 2021
      • FOSSASIA Summit 2020
      • FOSSASIA Summit 2019
      • FOSSASIA Summit 2018
      • FOSSASIA Summit 2017
      • FOSSASIA Summit 2016
      • FOSSASIA Summit 2015
      • FOSSASIA Summit 2014
      • FOSSASIA Summit 2012
      • FOSSASIA Summit 2011
      • FOSSASIA Summit 2010
      • GNOME.Asia 2009
      • MiniDebConf Vietnam 2010
      • Sciencehack.Asia
      • Science Hack India
  • Programs
    • Programs and Opportunities
    • Jobs Opportunities
    • Program Guidelines
    • Codeheat Contest
    • University Internship Program
    • University Student Coding Programs
    • High School Student Program
    • Advanced Developer Program
    • Become a Mentor
      • Become A University Student Mentor
      • Become A High School Student Mentor
  • Shop
  • Blog
  • About
    • Jobs
    • Membership
    • Activities
    • Background & Mission
    • Best Practices
    • Licenses
    • Team
    • Code of Conduct
  • Donate

Testing Plymouth

Read more about the article Plymouth theme for Meilix

Plymouth theme for Meilix

  • Post author:xeon-zolt
  • Post published:August 27, 2017
  • Post category:FOSSASIA
  • Post comments:0 Comments

Plymouth is an application that runs right on time within the boot procedure (even before the root filesystem is mounted!) that gives a graphical boot animation whereas the boot procedure occurs in the background. Plymouth is a project from Fedora. It depends on kernel mode setting (KMS) and the frame buffer to set resolution of the display as early as possible, to show a boot screen.

Plymouth comes with two binaries: /sbin/plymouthd and /bin/plymouth. The first one is plymouthd and it do all the heavy work like logging the session and showing the splash screen. The second one is /bin/plymouth it controls the interface of plymouthd. It supports things like plymouth show-splash, plymouth ask-for-password.

For Meilix start by creating a theme directory inside the /usr/share/plymouth.We create two type of themes one with logo and one with text.The theme configuration file that is read by plymouthd is the name of the theme with a .plymouth extension. In this case it is meilix-logo.plymouth.

[Plymouth Theme]
Name=meilix
Description=A theme that features a blank background with a logo.
ModuleName=script

[script]
ImageDir=/usr/share/plymouth/themes/meilix-logo
ScriptFile=/usr/share/plymouth/themes/meilix-logo/meilix-logo.script

 

This theme calls the script plugin to do the actual work of displaying the theme. The script plugin expects image files with specific names. Various directives can be passed to plugin’s.Script plugin supports two basic objects, Image, and Sprite

Meilix logo Plymouth theme files and script link

For Plymouth text version we only need to make a single file using ubuntu-text plugin like this.

[Plymouth Theme]
Name=Meilix Text
Description=Text mode theme based on kubuntu-logo theme
ModuleName=meilix-text

[ubuntu-text]
title=Meilix
black=0x0078C2
white=0xffffff
brown=0x009DFD
blue=0x00182C

 

How do Plymouth know when to quit? actually it does not know when to quit so It just keeps on going until it receives a quit message. In the case of Meilix, the /etc/init.d/plymouth script sends the quit message.

start on runlevel S
start on stopping rc2
start on stopping rc3
start on stopping rc4
script
         /usr/bin/plymouth quit || :
end script

Testing Plymouth theme without rebooting

plymouthd
plymouth --show-splash
plymouth quit

Resource

  • Arch Linux wiki on Plymouth
  • Charlie Brej four part series on Plymouth theming
Continue ReadingPlymouth theme for Meilix
  • FOSSASIA
  • Blog
  • GitHub
  • Projects
  • Code of Conduct
  • About
  • Contact
Copyright - OceanWP Theme by OceanWP
 

Loading Comments...
 

You must be logged in to post a comment.