Author Topic: Splash Screen in OpenBox  (Read 1200 times)

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1483
  • In theory, theory=practice, in practice ???
Splash Screen in OpenBox
« on: October 18, 2011, 11:37:33 AM »
Hi,

What is the easiest way to change the splash
screen in OpenBox Bonsai.   I'm not hitting the
right file for some reason.

THX.
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Splash Screen in OpenBox
« Reply #1 on: October 18, 2011, 12:59:46 PM »
Which splash screen? What have you tried? What were the results of the attempt(s)? Were there any error messages?     
Provide more information, so someone can answer your question.     

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1483
  • In theory, theory=practice, in practice ???
Re: Splash Screen in OpenBox
« Reply #2 on: October 18, 2011, 02:13:30 PM »
Which splash screen? What have you tried? What were the results of the attempt(s)? Were there any error messages?     
Provide more information, so someone can answer your question.     

Hi,

I usually don't use splash=silent but I thought it would be nice to be
able to change the screen.  I went to /usr/share/plymouth/themes/
PCOBOX/background.png     From there I replaced background.png
with another .png file.   The file did not display when I used splash=silent
in menu.lst but a boot screen with a progress bar displayed.   I think that's
because the machine is in vesa mode.   The file I put in is for widescreen.

Is this the best way or place to change the background.png in OpenBox ?
I took out splash=silent for now so it's working as usual.   No error
messages of any kind.

Thanks for the response.

FF
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Splash Screen in OpenBox
« Reply #3 on: October 18, 2011, 02:28:07 PM »
So then you're talking about the plymouth bootsplash theme.
The easiest way to change it is to install a new theme via synaptic.
Or you could create a new theme, add it to /usr/share/plymouth/themes and switch to it using EZSwitch (in repos). You can use your current theme or one from synaptic as a template for creating your personal theme.     
The background you used to replace the original may be replaced with the original in some future update. That is why I recommend the above.     

If all you want to do is replace the background, you need to switch themes, even though technically you are using the same theme. While in /usr/share/plymouth/themes (in root mode), open a terminal and use the command remove-theme. This will clear your boot initrd. Then issue the command switch-themes openbox (or whatever theme name).     

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1483
  • In theory, theory=practice, in practice ???
Re: Splash Screen in OpenBox
« Reply #4 on: October 18, 2011, 03:43:26 PM »
If all you want to do is replace the background, you need to switch themes, even though technically you are using the same theme. While in /usr/share/plymouth/themes (in root mode), open a terminal and use the command remove-theme. This will clear your boot initrd. Then issue the command switch-themes openbox (or whatever theme name).     

Yes, all I want to do is replace one background.png in /usr/share/plymouth/themes/PCOBOX
The remove-theme command doesn't work, says command not found, but switch-themes PCOBOX
does, but with no effect.   I wonder where "remove-theme" is at ?
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12519
Re: Splash Screen in OpenBox
« Reply #5 on: October 18, 2011, 03:51:07 PM »
[root@localhost SPECS]# remove-theme
Removing PCLinuxOS theme

[root@localhost SPECS]# switch-themes PCLinuxOS

[root@localhost SPECS]# rpm -qf /usr/share/bootsplash/scripts/remove-theme
bootsplash-3.3.3-4pclos2011



Thanks to everyone who donates. You keep the servers running.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Splash Screen in OpenBox
« Reply #6 on: October 18, 2011, 04:40:51 PM »
Ferdes Fides,
If you get command not found with that command, reinstall plymouth.     

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1483
  • In theory, theory=practice, in practice ???
Re: Splash Screen in OpenBox
« Reply #7 on: October 18, 2011, 05:04:15 PM »
Code: [Select]
[root@localhost scripts]# ./switch-themes -c
The current theme is: PCOBOX
[root@localhost scripts]# ./remove-theme
Removing PCOBOX theme
remove-boot-splash: initrd in initramfs format
ERROR remove-boot-splash: plymouth not found in /boot/initrd-2.6.38.8-pclos3.bfs.img
remove-boot-splash: initrd in initramfs format
ERROR remove-boot-splash: plymouth not found in /boot/initrd-2.6.38.8-pclos3.img
remove-boot-splash: initrd in initramfs format
ERROR remove-boot-splash: plymouth not found in /boot/initrd.img
remove-boot-splash: initrd in initramfs format
ERROR remove-boot-splash: plymouth not found in /boot/initrd.img
remove-boot-splash: initrd in initramfs format
ERROR remove-boot-splash: plymouth not found in /boot/initrd.img
[root@localhost scripts]#

I thought this would be easy.   Here's what's happening.   switch-themes PCOBOX
doesn't appear to update initrd, as shown by remove-theme.   The original
background.png doesn't show at boot.   It wouldn't use my background.png so I used the
original again.   switch-themes PCOBOX appears to have installed it but it isn't per above.
switch-themes -c says PCOBOX is there, but remove-theme says plymouth not found in initrd.img's.

So, one more question before I leave this alone.   How can I get the original PCOBOX theme with
the original background.png back into the initrd.img files ?


THX
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Splash Screen in OpenBox
« Reply #8 on: October 18, 2011, 11:26:56 PM »
You can safely ignore that 'not found' message. As for your background image, did you use an image of the same width and height (like 1920x1440) as the original? Did you check that it had the same permissions as the original? Did you name it background.png or try to use a different name?     

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1483
  • In theory, theory=practice, in practice ???
Re: Splash Screen in OpenBox
« Reply #9 on: October 19, 2011, 01:55:51 PM »
You can safely ignore that 'not found' message. As for your background image, did you use an image of the same width and height (like 1920x1440) as the original? Did you check that it had the same permissions as the original? Did you name it background.png or try to use a different name?     

Hi Neal,

And thanks very much for your response.

The file in question is 1200x750, I did change the permissions and made it executable,
like the original background.png.  Used the same name "background.png".
switch-themes PCOBOX wouldn't register it at all.   Replacing that with the original
"background.png" file had a little trouble registering also, when I tried to
restore the theme in initrd later, as per my previous message.   The
initrd files are all shrunk in size at that point.

I can make the file 1920x1440, change permissions accordingly, and try
switch-themes PCOBOX again.   After invoking remove-theme.
Is this what you recommend ?

One last hurdle 'till smooth sailing on this sounds like.   I think I'm
registering what you're driving at.   It's not possible I rewrite the
theme, you know, I don't have the Syntax.   They don't teach
Linux up here in northern Illinois in the colleges.   Wish they did kinda.

So, maybe I'll get a new novel splash screen for a novel purpose
eventually.

FF
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Splash Screen in OpenBox
« Reply #10 on: October 19, 2011, 02:38:31 PM »
Try without the remove-theme command this time.     

Re creating your own:     
Mostly it is just creating the graphics, when you base on another theme. Just make sure the resolutions, names and file types match. After that, change the name of the .script file, .plymouth file and the theme folder to your new theme name and edit the .plymouth file to change the name in it (several places). Easier to do than to tell.     

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1483
  • In theory, theory=practice, in practice ???
Re: Splash Screen in OpenBox
« Reply #11 on: October 19, 2011, 05:32:50 PM »
Try without the remove-theme command this time.     

Re creating your own:     
Mostly it is just creating the graphics, when you base on another theme. Just make sure the resolutions, names and file types match. After that, change the name of the .script file, .plymouth file and the theme folder to your new theme name and edit the .plymouth file to change the name in it (several places). Easier to do than to tell.     


http://i51.tinypic.com/abo953.j

When I get the above done, I'll need one for vesa mode.
Do you think it's worth it ?   Seen better, seen worse ? 
Nothing that can't stay the same, of courses.
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Splash Screen in OpenBox
« Reply #12 on: October 19, 2011, 10:05:30 PM »
Try without the remove-theme command this time.     

Re creating your own:     
Mostly it is just creating the graphics, when you base on another theme. Just make sure the resolutions, names and file types match. After that, change the name of the .script file, .plymouth file and the theme folder to your new theme name and edit the .plymouth file to change the name in it (several places). Easier to do than to tell.     


http://i51.tinypic.com/abo953.j

When I get the above done, I'll need one for vesa mode.
Do you think it's worth it ?   Seen better, seen worse ? 
Nothing that can't stay the same, of courses.
     
For vesa mode? Vesa is a video driver, like nouveau (for nvidia cards). Booting in vesa mode is quite simply put booting with the vesa driver in use. Vesa has its limitations, which will not be over come by creating a "separate" plymouth theme for it.