Page MenuHomeLubuntu Development

Version Number in Plymouth?
Open, NormalPublic

Description

I wonder if we could include a version number alongside the Lubuntu logo with the Plymouth boot screen (installed by our artwork package).

It could definitely add an extra touch for users to know the version of their system.

The questions to answer here would be:

  1. Do we want to commit to doing this for every cycle?
  2. Do we keep the development codename in there prior to the release or just the final version string?

Ubuntu does this for the text-only Plymouth screens, so I don't see why we could do it with the graphical ones.


Updated testing hints:

  1. Create a new virtual machine and install Lubuntu 20.10 (or use real hardware, just for testing purposes, not for daily work)
  2. Add my PPA and install also plymouth-x11
sudo add-apt-repository ppa:apt-ghetto/ppa-test-lubuntu
sudo apt update
sudo apt full-upgrade
sudo apt install plymouth-x11
  1. Create the script ~/bin/startplymouth to start plymouth in the desktop session (with startplymouth or bin/startplymouth). The script automatically sets up plymouth with the default theme in a window. You have to move the mouse or press any keys, because plymouth is waiting for external input. The window disappears after 10 seconds (if you have moved the mouse).
~/bin/startplymouth
#!/bin/bash

sudo plymouthd
sudo plymouth --show-splash

for ((I=0; I<10; I++))
do
  sleep 1
  sudo plymouth --update=test$I
done

sudo plymouth --quit
  1. To make it easier for on-the-fly changes, change the owner of the system directories: sudo chown -R root:$USER /usr/share/plymouth/themes/lubuntu-{logo,text}
  2. There are still some unused files present.
  3. To change the background colour, change the files /usr/share/plymouth/themes/lubuntu-logo/lubuntu-logo.plymouth and /usr/share/plymouth/themes/bgrt/bgrt.plymouth. I am not sure, if both are required or not.
  4. The images used by the plymouth theme are in /usr/share/plymouth/themes/lubuntu-log/spinner.

Related Objects

Event Timeline

tsimonq2 triaged this task as Normal priority.Nov 6 2019, 11:44 AM
tsimonq2 created this task.
tsimonq2 added a parent task: T100: Lubuntu 20.04.
tsimonq2 added a parent task: T123: 20.04 Artwork.
tsimonq2 removed a parent task: T123: 20.04 Artwork.
tsimonq2 edited parent tasks, added: T123: 20.04 Artwork; removed: T100: Lubuntu 20.04.
wxl added a subscriber: wxl.Nov 6 2019, 12:34 PM

I think it would be really great to have an indication that a development release is a development release. I'd like us to have a stock "in construction" wallpaper (this would be a great use for Lenny). For that matter, Plymouth could use the same methodology. For the text-based, we could include the actual codename and/or version. That's my 2¢.

kc2bez added a subscriber: kc2bez.Apr 16 2020, 4:57 PM

It looks like we need to do some work on Plymouth for this bug we can revisit the topic of version number then.

apt-ghetto added subscribers: JacobSawicki, apt-ghetto.

I have started the work to change the plymouth theme and base it on plymouth-theme-spinner, which should resolve also the problem of bug 1872669.

I hope, you can help with the graphical part (colours, images for the spinner, et cetera), @JacobSawicki.

I have created a package in my PPA, which can be used for testing.

Some testing hints:

  1. Create a new virtual machine and install Lubuntu 20.04 (or use real hardware, just for testing purposes, not for daily work)
  2. Add my PPA and install also plymouth-x11
sudo add-apt-repository ppa:apt-ghetto/ppa-test-lubuntu
sudo apt update
sudo apt full-upgrade
sudo apt install plymouth-x11
  1. Create the script ~/bin/startplymouth to start plymouth in the desktop session (with startplymouth or bin/startplymouth). The script automatically sets up plymouth with the default theme in a window. You have to move the mouse or press any keys, because plymouth is waiting for external input. The window disappears after 10 seconds (if you have moved the mouse).
~/bin/startplymouth
#!/bin/bash

sudo plymouthd
sudo plymouth --show-splash

for ((I=0; I<10; I++))
do
  sleep 1
  sudo plymouth --update=test$I
done

sudo plymouth --quit
  1. To make it easier for on-the-fly changes, change the owner of the system directories: sudo chown -R root:$USER /usr/share/plymouth/themes/lubuntu-{logo,text}
  2. There are still some unused files present.
  3. To change the background colour, change the files /usr/share/plymouth/themes/lubuntu-logo/lubuntu-logo.plymouth and /usr/share/plymouth/themes/bgrt/bgrt.plymouth. I am not sure, if both are required or not.
  4. The images used by the plymouth theme are in /usr/share/plymouth/themes/lubuntu-log/spinner. I think, if you (@JacobSawicki) replace the animation* and throbber* images with the version from the forum, then it should look quite good.

Ok, thank you very much for the instructions :-) I'm already on it. I'll send the results when I'm done :-)

OK, I did it. :-)
It works and it looks great. :-)

There's one problem with the weight of these pictures, because everything weighs 600mb. (all animations + all throbbers)

I need to compress these photos. I'll probably finish it tomorrow. :-)

Hi @JacobSawicki

Welcome and thank you for your work!

You don't need to hurry, we have the next 4-5 months to finish this.

If you have any problems, please don't hesitate to ask here. Or in our development channel, which is bridged to IRC, Telegram and Matrix => links <=.

And if you have other ideas, you can also create a task and describe them.

JacobSawicki added a comment.EditedApr 20 2020, 7:54 PM

Okay, that's how it looks https://youtu.be/XuZVdgdxkrs :-)

This is 400 images. Together they weigh 80mb after compression.

I have to work a little bit more with this, because these images do not have the lighting like in this film. https://youtu.be/479XC26xhwc :-)

I have a question because the images are too fast. Probably the images are displayed in 60 frames per second.
I prepared 30 images per second for optimization.
Is it possible to reduce the speed of the frames displayed in scripts? :-)

Okay, that's how it looks https://youtu.be/XuZVdgdxkrs :-)

The video is private. Maybe you can upload a screenshot here?

This is 400 images. Together they weigh 80mb after compression.

Are you sure, that we need 400 images? Isn't it enough to replace the ~ 70 images? And 80 MB is definitively too much. We should remain under 200 KB.

I have a question because the images are too fast. Probably the images are displayed in 60 frames per second.
I prepared 30 images per second for optimization.
Is it possible to reduce the speed of the frames displayed in scripts? :-)

I am also new to plymouth themes. And I found only old documentation from 2010 around. The most useful might be this blog.

At the moment, I can't give you good answers. I guess, the value is around 50 frames per second.

It is a lot of trial and error development. And the plymouth theme depends also a lot on the device (screen resolution, background logo of the vendor). The theme in a virtual machine behaves differently from my test and develop laptop.

OK, I'm working on the optimal loading screen.
Thank you very much for your help. :-)

Okay, that's how it looks https://youtu.be/XuZVdgdxkrs :-)

video is now public https://youtu.be/XuZVdgdxkrs :-)

I found something interesting in the script. Maybe this will help me change the frame rate.

Transition=none
TransitionDuration=0.0

https://www.freedesktop.org/wiki/Software/Plymouth/Scripts/

Plymouth Callbacks

Calling Plymouth.SetRefreshFunction with a function will set that function to be called up to 50 times every second, e.g.

fun refresh_callback ()
{
time++;
}
Plymouth.SetRefreshFunction (refresh_callback);

Hi @JacobSawicki

I saw the video and it looks really great. Unfortunately, the size of the logo is too great. Please have a look at GNOME wiki, where the idea of the plymouth theme is explained better.

The grey part with the "VENDOR LOGO" is the place, where the logo of the firmware vendor is placed (in case of UEFI, with BIOS there is no picture, as far as I know). The picture comes directly from the firmware, so we have no control over the size or colours. If there is a vendor logo, then the background colour is hardcoded to black. If the Lubuntu logo has this size, then either it is hiding the vendor logo or the vendor logo hides the Lubuntu logo.

At the very bottom of the screen, there is the grey field "OS LOGO", which is the "watermark.png". This is the logo of the operating system, in our case, from Lubuntu. If you like, you can propose also other watermark logos.

The spinning part in the middle is a graphical way to indicate, that the system is working in the background. If you can resize the picture and use a transparent background, then the size should automatically decrease.

The goal of the plymouth theme is to have a flickerfree boot screen, so that there aren't any resolution changes during the boot.

The theme was originally developed by Red Hat. It is used by Fedora and is more or less the same as in Ubuntu. So, if we are able to change the theme, this is a real nice distinction from all the other distributions.

Okay, I understand. :-)

I'll reduce the images.

I'll make a watermark.png

Hi @JacobSawicki
Looks very good. Can you please upload the files here as .zip or .tar archive?

I can then create a new package in my PPA for Lubuntu 20.10 Groovy Gorilla.

Download link https://drive.google.com/file/d/1N3AyOY4lA5RmFHUTIUy3AHyefAhI4zFS/view?usp=sharing :-)

I changed one value in the script lubuntu-logo.plymouth

WatermarkVerticalAlignment=1

Hi @JacobSawicki

The link is not public. But you can simply upload here

Ohh, I'm sorry.
So much has changed to Google Drive lately.

apt-ghetto updated the task description. (Show Details)Sun, May 17, 11:16 AM

Hi @JacobSawicki

I have uploaded packages for 20.04 and 20.10 to my PPA with your artwork.

Although it looks good, we really need to reduce the size of the files.

That is how it looks on my UEFI test machine

As you see, the animated logo is too big. It is hiding the watermark logo and might hide also the vendor logo.

Resizing the spinner and throbber logo, will decrease also the file size. And you have provided around 200 pictures. Maybe you can delete every second image and it will still look good?

apt show plymouth-theme-lubuntu-logo shows an installed size of 87 kB versus 26 MB. I don't say, that we need to remain under 100 kB, but less than 2 MB should be the goal.

Another thing is the entry in the changelog of the package. The artwork is a result of your hard work and of course you should get all the credits for it.

lubuntu-artwork (20.10.1ppa1) groovy; urgency=medium

  [ Jacob Sawicki ]
  * Create artwork for the Lubuntu spinner theme.

  [ apt-ghetto ]
  * Change the Lubuntu plymouth theme
    - Changed plymouth-theme-lubuntu-logo to use the Ubuntu spinner theme
    - Updated plymouth-theme-lubuntu-text to print actual release version

 -- apt-ghetto <apt-ghetto@lubuntu.me>  Sun, 17 May 2020 17:58:12 +0200
  • Can I use Jacob Sawicki? Or do you prefer something else?
  • Do you want to add something to the changelog entry? (I wrote the changelog entry without thinking much, so don't hesitate to propose changes)

In general I find your artwork very good and I hope you enjoy the work also. Thank you so far!

PS: I had to download the zip file from the google drive link, because I could not download the zip from here (it is not your fault). That is also the reason, why I did not respond earlier. If you upload another file, you can use google drive, because it works better.

PPS: I will not have much time in the next few weeks. I expect to have more time in July and August.

This comment was removed by JacobSawicki.
JacobSawicki added a comment.EditedFri, May 29, 4:32 PM

EDIT - New link: https://drive.google.com/file/d/1i4VFWzR46TBtpdunXsgTlj2Zd-6kZePw/view?usp=sharing

I'm sorry to take so long.

The images have been reduced from 300x300 to 200x200 px.

I used the most effective way to compress the images without losing their quality. Now everything together weighs ~3 MB.