Difference between revisions of "Patch webOS Boot Themes"

From WebOS Internals
Jump to navigation Jump to search
Line 8: Line 8:
===In webOS 1.x the boot images are named ''palm''-logo.png and ''palm''-logo-bright.png.===
===In webOS 1.x the boot images are named ''palm''-logo.png and ''palm''-logo-bright.png.===
===In webOS 2.x and 3.x, the boot images are named ''hp''-logo.png and ''hp''-logo-bright.png.===
===In webOS 2.x and 3.x, the boot images are named ''hp''-logo.png and ''hp''-logo-bright.png.===

Revision as of 04:07, 23 September 2011

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 access to the Pre's OS if you follow the method outlined below "Replacing the Files". However, boot logos can now be installed via Quick Install...read the next paragraph to find out how.

The easiest way to install a boot theme onto your phone is to use WebOS Quick Install, which can be found at http://forums.precentral.net/homebrew-apps/206905-webos-quick-install-v2-7-beyond.html. You can download any set of boot logos, and then install them with Quick Install via the Change Boot Logo tweak. Alternatively, if you use the website PreThemer, you can download the IPKG files and install them directly through Quick Install. To do this, simply download the IPK file from the website to wherever you want on your computer, and then drag it into the main field of Quick Install and hit Install. If you had a boot log installed previous to webOS 1.2 (or 1.2.1), it is recommended that you uninstall the old ones first with Quick Install if you want to install via that program. To do this, go to Tools > Device Management and then look over your installed applications. You should see the name of your installed boot logo on that list. You can uninstall it by checking its box and then clicking uninstall.

Works with: 1.0.3, 1.1


In webOS 1.x the boot images are named palm-logo.png and palm-logo-bright.png.

In webOS 2.x and 3.x, the boot images are named hp-logo.png and hp-logo-bright.png.

The Pre 3 uses slightly larger images located in the /usr/palm/sysmgr/images/1.5/ directory.

Make the necessary adjustments to file paths in your commands when following the steps below.

Replacing the Files using Internalz

  1. Install Internalz (by Canuck Software) from Preware or WOSQI.
  2. Turn on "Master Mode" in the preferences menu of Internalz. (You can bork your phone messing around with this mode, so don't wander from the path. Pay attention to the pop-up warning when you enable Master Mode.)
  3. Place your desired boot images in your phone's USB partition and name them palm-logo.png and palm-logo-bright.png.
  4. Navigate to /usr/palm/sysmgr/images/ and find palm-logo.png and palm-logo-bright.png. Rename them by adding ".orig" (without the quotes) to the end of the file name. (Example: palm-logo-bright.png.orig) You rename a file in Internalz by tapping the file, selecting "Info" from the menu, and then editing the name at the top of the screen.
  5. Navigate back to the folder where you placed your new images and copy each one individually to /usr/palm/sysmgr/images/.
  6. Restart luna and see your new boot logo.

Replacing the Files using Linux Commands

1. Backup existing images

Plug your device into your computer and select 'just charge'. Gain root access to the device (novaterm, ssh, WOSQI, etc.) and backup the original files to the USB drive.

mkdir /media/internal/bootlogo
cp /usr/palm/sysmgr/images/hp-logo.png /media/internal/bootlogo/orig-hp-logo.png
cp /usr/palm/sysmgr/images/hp-logo-bright.png /media/internal/bootlogo/orig-hp-logo-bright.png

Note: This step is optional, these files are available below, and can also be obtained from the webOS doctor.

2. Copy new images to USB drive

Select USB drive from the device to gain normal access to the USB drive. Copy and paste the images you want to use to the bootlogo directory. Make sure to name them 'hp-logo.png' and 'hp-logo-bright.png'. Safely eject the device from your computer, but leave it plugged in (in 'just charging' mode).

3. Replace boot images

Gain root access to the device again and copy the new images into place.

cp /media/internal/bootlogo/hp-logo.png /usr/palm/sysmgr/images/hp-logo.png
cp /media/internal/bootlogo/hp-logo-bright.png /usr/palm/sysmgr/images/hp-logo-bright.png

4. Restart Luna to take effect Restart Luna and watch your awesome new logo. You can do this with Preware, WOSQI, through a power menu patch, or from the command line.

pkill LunaSysMgr

Taking it to the Next Step

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).

Step One 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.

sudo mount -o rw,remount /
sudo mkdir -p /opt/share/bootimages

Step Two 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.

cd /opt/share/bootimages/
sudo cp /media/internal/bootlogo/<boot image> palm-logo-up.png
sudo cp /media/internal/bootlogo/<bright boot image> palm-logo-up-bright.png
sudo cp /media/internal/bootlogo/<shutdown image> palm-logo-down.png
sudo cp /media/internal/bootlogo/<bright shutdown image> palm-logo-down-bright.png
sudo cp palm-logo-down.png palm-logo.png
sudo cp palm-logo-down-bright.png palm-logo-bright.png

Step Three Backup the current logo images, if you haven't already.

sudo cp -ip /usr/palm/sysmgr/images/palm-logo.png /usr/palm/sysmgr/images/palm-logo.png.orig
sudo cp -ip /usr/palm/sysmgr/images/palm-logo-bright.png /usr/palm/sysmgr/images/palm-logo-bright.png.orig

Step Four Delete the current logo images and replace them with symlinks to the files in our new directory in /opt

cd /usr/palm/sysmgr/images/
sudo rm palm-logo-bright.png
sudo rm palm-logo.png
sudo ln -s ../../../../../opt/share/bootimages/palm-logo-bright.png palm-logo-bright.png
sudo ln -s ../../../../../opt/share/bootimages/palm-logo.png palm-logo.png

Step Five Back up and edit /etc/init.d/start_animation, adding the switching of the files

sudo cp -ip /etc/init.d/start_animation /etc/init.d/start_animation.orig
sudo -e /etc/init.d/start_animation

Before the line starting with if [ -x /usr/bin/luna-send add the following:

if [ -f /opt/share/bootimages/palm-logo-up.png ] && \
   [ -f /opt/share/bootimages/palm-logo-up-bright.png ] && \
   [ -f /opt/share/bootimages/palm-logo-down.png ] && \
   [ -f /opt/share/bootimages/palm-logo-down-bright.png ] ; then
        cp /opt/share/bootimages/palm-logo-down.png /opt/share/bootimages/palm-logo.png
        cp /opt/share/bootimages/palm-logo-down-bright.png /opt/share/bootimages/palm-logo-bright.png

At the very end of the file, add the following:

if [ "$ok" = "yes" ] ; then
        sleep 5
        cp /opt/share/bootimages/palm-logo-up.png /opt/share/bootimages/palm-logo.png
        cp /opt/share/bootimages/palm-logo-up-bright.png /opt/share/bootimages/palm-logo-bright.png

Step Six Restart Luna and watch your awesome new logos.

pkill LunaSysMgr

Boot Themes

You can find more boot themes at http://www.prethemer.com/logos.

Title: Old Default Theme

Author: Palm

Palm-logo.png Palm-logo-bright.png

Title: New Default Theme

Author: HP

(note: second set are the scaled up images from the Pre 3)

Hp-logo.png Hp-logo-bright.png 1.5-hp-logo.png 1.5-hp-logo-bright.png

Title: HP-Palm Theme

Author: cwgtex, credit to Palm and HP for original images

Hpalm-logo.png Hpalm-logo-bright.png

Title: webOS Theme

Author: mhous33

Webos-hp-logo.png Webos-hp-logo-bright.png

Title: Simple Tux

Author: mhous33

Tux-hp-logo.png Tux-hp-logo-bright.png

Title: Linux Inside Tux bright Edition

Author: MmO

Linux-Inside.png Linux-Inside-Bright.png

Title: Tux - got root?

Author: JackieRipper

Jackieripper-palm-logo.png Jackieripper-palm-logo-bright.png

Title: Red and Green

Author: JackieRipper

Jackieripper2-palm-logo-up.png Jackieripper2-palm-logo-up-bright.png Jackieripper2-palm-logo-down.png Jackieripper2-palm-logo-down-bright.png

Title: Blue Tux

Author: pEEf

PEEf-palm-logo.png PEEf-palm-logo-bright.png

Title: Glassy Tux

Author: fish199902

Fish109902-palm-logo.png Fish109902-palm-logo-bright.png

Title: GunTux

Author: Xaeonis

Xaeonis-GunTux-palm-logo.png Xaeonis-GunTux-palm-logo-bright.png

Title: bleeding apples

Author: predatory1

Apv-palm-logo.png Apv-Palm-logo-bright.png

Title: Just Pre

Author: JP_Money

Just-pre-palm-logo.png Just-pre-palm-logo-bright.png

Title: Jumpman Pre

Author: dave b

Daveb-jumpman-pre-palm-logo.png Daveb-jumpman-pre-palm-logo-bright.png

Title: Transform

Author: Ahabenezer

Autobot-palm-logo.png Decepticon-palm-logo-bright.png

Title: Linux

Author: 473x15

Linux2-palm-logo.png Linux-palm-logo-bright.png

Title: Zombie Palm

Author: Steel Shadow

Zombie-palm-logo.png Zombie-palm-logo-bright.png

Title: Serenity (Firefly)

Author: HelloNNNewman

Serenity 4-4.png Serenity 5-5.png

Title: Serenity (Firefly)

Author: HelloNNNewman

Firefly 1.png Firefly 2 fire.png

Title: Shodan (SS2)

Author: osat3ch

Palm-logo shodan.png Palm-logo-bright shodan.png