http://wiki.webos-internals.org/api.php?action=feedcontributions&user=473x15&feedformat=atom
WebOS Internals - User contributions [en]
2024-03-29T12:52:55Z
User contributions
MediaWiki 1.35.1
http://wiki.webos-internals.org/index.php?title=Patch_webOS_Boot_Themes&diff=5004
Patch webOS Boot Themes
2009-08-31T04:19:27Z
<p>473x15: /* Boot Themes */</p>
<hr />
<div>{{template:patch}}<br />
When the Pre is booting or shutting down, the screen fades between two images - ''/palm-logo.png'' and ''/palm-logo-bright.png'' located in ''/usr/palm/sysmgr/images''. By replacing either or both of these images, the boot logo can be customized. This requires [[Portal:Accessing_Linux | access to the Pre's OS]].<br />
<br />
Works with: 1.0.3, 1.1<br />
<br />
== Replacing the Files==<br />
<br />
'''Step One'''<br />
Log into the phone via ssh and copy the files to the USB drive.<br />
<pre><nowiki><br />
mkdir /media/internal/bootlogo<br />
cp /usr/palm/sysmgr/images/palm-logo* /media/internal/bootlogo<br />
</nowiki></pre><br />
<br />
'''Step Two'''<br />
Modify the files with your favorite editor (Gimp, Photoshop, ImageMagick, MS Paint, etc.)<br />
<br />
'''Step Three'''<br />
Save the new images to the ''bootlogo'' directory on the Pre's USB drive.<br />
<br />
'''Step Four'''<br />
Log into the phone via ssh, remount the root filesystem read-write, backup the existing files, copy the new images into place, and remount the root filesystem read-only.<br />
<pre><nowiki><br />
sudo mount -o rw,remount /<br />
sudo cp -ip /usr/palm/sysmgr/images/palm-logo.png /usr/palm/sysmgr/images/palm-logo.png.orig<br />
sudo cp -ip /usr/palm/sysmgr/images/palm-logo-bright.png /usr/palm/sysmgr/images/palm-logo-bright.png.orig<br />
sudo cp /media/internal/bootlogo/palm-logo.png /usr/palm/sysmgr/images/palm-logo.png<br />
sudo cp /media/internal/bootlogo/palm-logo-bright.png /usr/palm/sysmgr/images/palm-logo-bright.png<br />
sudo mount -o ro,remount /<br />
</nowiki></pre><br />
<br />
'''Step Five'''<br />
Restart Luna and watch your awesome new logo.<br />
<pre><nowiki><br />
pkill LunaSysMgr<br />
</nowiki></pre><br />
<br />
== Taking it to the Next Step==<br />
<br />
With a small bit of scripting, we can have separate boot and shutdown themes. The first thing to do is to create regular and "bright" images for booting and shutting down. Save the new images to the ''bootlogo'' directory on the Pre's USB drive. (Steps 1-3 above).<br />
<br />
'''Step One'''<br />
Log into the phone via ssh, remount the root filesystem read-write, and create a directory in /opt to store the new images. We're using /opt, as the script we'll modify later will copy files, and /usr is mounted read-only.<br />
<pre><nowiki><br />
sudo mount -o rw,remount /<br />
sudo mkdir -p /opt/share/bootimages<br />
</nowiki></pre><br />
<br />
'''Step Two'''<br />
Copy the new images to /opt/share/bootimages, naming them palm-logo-up.png, palm-logo-up-bright.png, palm-logo-down.png and palm-logo-down-bright.png. Additionally, copy the shutdown files to palm-logo.png and palm-logo-bright.png.<br />
<pre><nowiki><br />
cd /opt/share/bootimages/<br />
sudo cp /media/internal/bootlogo/<boot image> palm-logo-up.png<br />
sudo cp /media/internal/bootlogo/<bright boot image> palm-logo-up-bright.png<br />
sudo cp /media/internal/bootlogo/<shutdown image> palm-logo-down.png<br />
sudo cp /media/internal/bootlogo/<bright shutdown image> palm-logo-down-bright.png<br />
sudo cp palm-logo-down.png palm-logo.png<br />
sudo cp palm-logo-down-bright.png palm-logo-bright.png<br />
</nowiki></pre><br />
<br />
'''Step Three'''<br />
Backup the current logo images, if you haven't already.<br />
<pre><nowiki><br />
sudo cp -ip /usr/palm/sysmgr/images/palm-logo.png /usr/palm/sysmgr/images/palm-logo.png.orig<br />
sudo cp -ip /usr/palm/sysmgr/images/palm-logo-bright.png /usr/palm/sysmgr/images/palm-logo-bright.png.orig<br />
</nowiki></pre><br />
<br />
'''Step Four'''<br />
Delete the current logo images and replace them with symlinks to the files in our new directory in /opt<br />
<pre><nowiki><br />
cd /usr/palm/sysmgr/images/<br />
sudo rm palm-logo-bright.png<br />
sudo rm palm-logo.png<br />
sudo ln -s ../../../../../opt/share/bootimages/palm-logo-bright.png palm-logo-bright.png<br />
sudo ln -s ../../../../../opt/share/bootimages/palm-logo.png palm-logo.png<br />
</nowiki></pre><br />
<br />
'''Step Five'''<br />
Back up and edit /etc/init.d/start_animation, adding the switching of the files<br />
<pre><nowiki><br />
sudo cp -ip /etc/init.d/start_animation /etc/init.d/start_animation.orig<br />
sudo -e /etc/init.d/start_animation<br />
</nowiki></pre><br />
Before the line starting with ''if [ -x /usr/bin/luna-send'' add the following:<br />
<pre><nowiki><br />
ok=no<br />
if [ -f /opt/share/bootimages/palm-logo-up.png ] && \<br />
[ -f /opt/share/bootimages/palm-logo-up-bright.png ] && \<br />
[ -f /opt/share/bootimages/palm-logo-down.png ] && \<br />
[ -f /opt/share/bootimages/palm-logo-down-bright.png ] ; then<br />
cp /opt/share/bootimages/palm-logo-down.png /opt/share/bootimages/palm-logo.png<br />
cp /opt/share/bootimages/palm-logo-down-bright.png /opt/share/bootimages/palm-logo-bright.png<br />
ok=yes<br />
fi<br />
</nowiki></pre><br />
At the very end of the file, add the following:<br />
<pre><nowiki><br />
if [ "$ok" = "yes" ] ; then<br />
sleep 5<br />
cp /opt/share/bootimages/palm-logo-up.png /opt/share/bootimages/palm-logo.png<br />
cp /opt/share/bootimages/palm-logo-up-bright.png /opt/share/bootimages/palm-logo-bright.png<br />
fi<br />
</nowiki></pre><br />
<br />
'''Step Six'''<br />
Restart Luna and watch your awesome new logos.<br />
<pre><nowiki><br />
pkill LunaSysMgr<br />
</nowiki></pre><br />
<br />
== Boot Themes==<br />
<br />
'''Title:''' Default Theme<br />
<br />
'''Author:''' Palm<br />
<br />
[[Image:Palm-logo.png]] <br />
[[Image:Palm-logo-bright.png]]<br />
<br />
<br />
'''Title:''' Tux - got root?<br />
<br />
'''Author:''' JackieRipper<br />
<br />
[[Image:Jackieripper-palm-logo.png]] <br />
[[Image:Jackieripper-palm-logo-bright.png]]<br />
<br />
<br />
'''Title:''' Red and Green<br />
<br />
'''Author:''' JackieRipper<br />
<br />
[[Image:Jackieripper2-palm-logo-up.png]] <br />
[[Image:Jackieripper2-palm-logo-up-bright.png]] <br />
[[Image:Jackieripper2-palm-logo-down.png]] <br />
[[Image:Jackieripper2-palm-logo-down-bright.png]]<br />
<br />
<br />
'''Title:''' Blue Tux<br />
<br />
'''Author:''' pEEf<br />
<br />
[[Image:PEEf-palm-logo.png]] <br />
[[Image:PEEf-palm-logo-bright.png]]<br />
<br />
<br />
'''Title:''' Glassy Tux<br />
<br />
'''Author:''' fish199902<br />
<br />
[[Image:Fish109902-palm-logo.png]] <br />
[[Image:Fish109902-palm-logo-bright.png]]<br />
<br />
<br />
'''Title:''' GunTux<br />
<br />
'''Author:''' Xaeonis<br />
<br />
[[Image:Xaeonis-GunTux-palm-logo.png]]<br />
[[Image:Xaeonis-GunTux-palm-logo-bright.png]]<br />
<br />
'''Title:''' bleeding apples<br />
<br />
'''Author:''' predatory1<br />
<br />
[[Image:Apv-palm-logo.png]]<br />
[[Image:Apv-Palm-logo-bright.png ]]<br />
<br />
'''Title:''' Just Pre<br />
<br />
'''Author:''' JP_Money<br />
<br />
[[Image:Just-pre-palm-logo.png]]<br />
[[Image:Just-pre-palm-logo-bright.png]]<br />
<br />
<br />
'''Title:''' Jumpman Pre<br />
<br />
'''Author:''' dave b<br />
<br />
[[Image:daveb-jumpman-pre-palm-logo.png]] <br />
[[Image:daveb-jumpman-pre-palm-logo-bright.png]]<br />
<br />
'''Title:''' Transform<br />
<br />
'''Author:''' Ahabenezer<br />
<br />
[[Image:autobot-palm-logo.png]] <br />
[[Image:decepticon-palm-logo-bright.png]]<br />
<br />
<br />
'''Title:''' Linux<br />
<br />
'''Author:''' 473x15<br />
<br />
[[Image:linux2-palm-logo.png]]<br />
[[Image:Linux-palm-logo-bright.png]]</div>
473x15
http://wiki.webos-internals.org/index.php?title=File:Linux-palm-logo-bright.png&diff=5003
File:Linux-palm-logo-bright.png
2009-08-31T04:09:03Z
<p>473x15: </p>
<hr />
<div></div>
473x15
http://wiki.webos-internals.org/index.php?title=File:Linux2-palm-logo.png&diff=5002
File:Linux2-palm-logo.png
2009-08-31T04:06:23Z
<p>473x15: </p>
<hr />
<div></div>
473x15