maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Restoring original boot/shutdown splash screens (https://talk.maemo.org/showthread.php?t=21941)

silencer51 2008-07-15 14:01

Restoring original boot/shutdown splash screens
 
Hello everyone, first post here.

I got a N800 tablet a few days ago and I can honestly say I'm impressed.

My previous Linux-based PDA was a Sharp Zaurus, so I have some experience with Linux PDAs :)

One of the first things I did was install Diablo and it really works nicely.

However, yesterday I installed a theme pack (LCARS theme) I found on maemo.org which messed up my shutdown splash screen.

Even after uninstalling everything related to the theme pack I can't seem to be able to get the original Nokia shutdown screen back. The theme's modified shutdown screen remains :/

I searched a little and apparently the splash screens are saved in /usr/share/icons/hicolor/scalable/hildon/

Does anyone know the filename for the shutdown splash screen? Any ideas on this annoying problem?

allnameswereout 2008-07-15 14:33

Re: Restoring original boot/shutdown splash screens
 
Welcome aboard :) I'm a former Zaurus user too, and feel the same way about the NIT.

I had the same experience with LCARS even after uninstalling it all. Try dpkg --purge perhaps? I reflashed my device to Diablo (upgraded from Chinook). This solved the problem.

The splash screen is handled by the package osso-systemui-splashscreen. This contains a library called /usr/lib/systemui/libsystemuiplugin_splashscreen.so at some point this says /system/systemui/splash/bootup_image
/system/systemui/splash/shutdown_image
/system/systemui/splash/window_priority
splashscreen_open
splashscreen_close
/tmp/bar.gif
/tmp/foo.gif
load image failed for %s


So I fired up gconf. Here I find 3 entries which are all 3 found in /usr/share/icons/hicolor/scalable/hildon/

bootup_image=qgn_indi_startup_nokia_logo.png
greeting_image=qgn_indi_nokia_hands.jpg
shutdown_image=qgn_indi_startup_nokia_logo.png

I don't know if LCARS changed these values, or if they replaced the pictures. I hope the former, and the fact it doesn't fix this when the package is removed is a bug IMO, but it might be this bug.

So you may try to grab the original files. I don't know in which package they are, and I don't know how to figure this out (as I lack apt-file and packages.maemo.org doesn't have the option).

Here is a howto how to change your bootup image.

silencer51 2008-07-15 16:44

Re: Restoring original boot/shutdown splash screens
 
Thanks for the reply allnameswereout :)

The weird thing is this - there are 3 files, one is the NOKIA logo, the 2nd is the progress bar at the bottom and the 3rd is the 'Nokia Hands' image.

However, the shutdown image is just the NOKIA logo also used during bootup...

Now since the original images have been restored (they show up fine when booting up) how come the shutdown image, which is the exact same file used in the boot splash, is still the LCARS one???

I mean, in this case its obvious the original files were not overwritten... So why does the wrong file show up during shutdown?

allnameswereout 2008-07-15 17:21

Re: Restoring original boot/shutdown splash screens
 
Type this:
# gconftool-2 -g /system/systemui/splash/shutdown_image

It should return:
qgn_indi_startup_nokia_logo

It probably doesn't...

Therefore:

# gconftool-2 -t string -s /system/systemui/splash/shutdown_image qgn_indi_startup_nokia_logo

And it should be fixed :)

silencer51 2008-07-15 19:26

Re: Restoring original boot/shutdown splash screens
 
Well, gconftool reports that indeed the correct file, qgn_indi_startup_nokia_logo, is used for the shutdown splash image...:confused:

I tried setting shutdown_splash to use qgn_indi_startup_nokia_logo to no avail...

silencer51 2008-07-15 19:50

Re: Restoring original boot/shutdown splash screens
 
I think I got it: I deleted the icon-theme.cache file inside /usr/share/icons/hicolor and rebooted.

On the next boot, the icon cache was rebuilt and the shutdown image is displayed correctly (I replaced the splash screens with custom ones).

ian_ryge 2008-08-28 23:22

Re: Restoring original boot/shutdown splash screens
 
Hi, I made the LCARS themes.

Quote:

Originally Posted by allnameswereout (Post 203186)
I don't know if LCARS changed these values, or if they replaced the pictures. I hope the former

While we could have used gconf settings for certain graphics, it doesn't cover everything we wanted to modify.

Quote:

Originally Posted by allnameswereout (Post 203186)
it might be this bug.

That bug is fixed as of ITOS2008, and is unrelated to the problem silencer51 described. Our extras package uses dpkg-divert to install the override graphics - it appends ".distrib" to the names of the existing files to make room for our replacements. Upon uninstallation of our package, the replacement graphics are removed and the original filenames are restored. dpkg-divert was broken in some releases of ITOS2007, but fortunately it works great in all versions of OS2008.

ian_ryge 2008-08-28 23:26

Re: Restoring original boot/shutdown splash screens
 
Quote:

Originally Posted by silencer51 (Post 203312)
I think I got it: I deleted the icon-theme.cache file inside /usr/share/icons/hicolor and rebooted.

On the next boot, the icon cache was rebuilt and the shutdown image is displayed correctly (I replaced the splash screens with custom ones).

Wow, I can't believe we released with that bug, and took this long to notice.

We didn't realize that icon-theme.cache needs to be updated when changing certain graphics. We'll fix the problem in our next release, by adding the following line to the post-install and post-removal scripts for lcars-extras:

Code:

gtk-update-icon-cache -f /usr/share/icons/hicolor
In the meantime, anyone affected by this issue can update their icon cache (and restore the shutdown image to whatever is currently installed) by running the above command in a root shell. (see https://wiki.maemo.org/Root_access )

silencer51 - Even though you've already solved your own problem by deleting the cache, I'd recommend you run that command to create a new one - theoretically, some things might load a little slower without it.

If you're interested, here's how this bug slipped by us:
When we were testing the lcars-extras package, the normal Nokia graphic always appeared at shutdown, even when the LCARS graphics were installed. Since our replacement graphics showed up during startup but not at shutdown, we simply assumed that the shutdown graphic was stored elsewhere, and was beyond the scope of what we were able to modify. As it turns out, startup/shutdown use the same graphic, but for some reason the cached copy is used only at shutdown. Our replacement graphic wasn't appearing because icon-theme.cache hadn't been updated since the change. Once the cache is updated by some other package (with LCARS already installed) the shutdown graphic switches to the LCARS version. If LCARS is subsequently uninstalled, the cache must be updated again or the shutdown graphic remains. Like I said, it will all be resolved in the next release - sorry for the inconvenience!

qole 2008-09-11 18:37

Re: Restoring original boot/shutdown splash screens
 
Just an additional note: pointing the gconf values at custom image files has no effect, even after rebuilding the cache. The only way seems to be to replace the Nokia image files. Seems weird that you'd go to all the trouble of having gconf values for these things, but then completely ignore them...


All times are GMT. The time now is 06:40.

vBulletin® Version 3.8.8