From b126b84acf2d4952bf8f88c4594a7130891d4b96 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: May 08 2009 15:15:34 +0000 Subject: - Don't slow down progress updating at the end of boot --- diff --git a/plymouth-0.7.0-lose-power-function.patch b/plymouth-0.7.0-lose-power-function.patch new file mode 100644 index 0000000..d6b3069 --- /dev/null +++ b/plymouth-0.7.0-lose-power-function.patch @@ -0,0 +1,15 @@ +diff -up plymouth-0.7.0/src/plugins/splash/two-step/plugin.c.lose-power-function plymouth-0.7.0/src/plugins/splash/two-step/plugin.c +--- plymouth-0.7.0/src/plugins/splash/two-step/plugin.c.lose-power-function 2009-05-08 11:13:16.136880758 -0400 ++++ plymouth-0.7.0/src/plugins/splash/two-step/plugin.c 2009-05-08 11:13:30.095874516 -0400 +@@ -599,9 +599,11 @@ on_boot_progress (ply_boot_splash_plugin + percent_done *= (1 / SHOW_ANIMATION_PERCENT); + total_duration = duration / percent_done; + ++#if 0 + /* Fun made-up smoothing function to make the growth asymptotic: + * fraction(time,estimate)=1-2^(-(time^1.45)/estimate) */ + percent_done = 1.0 - pow (2.0, -pow (duration, 1.45) / total_duration) * (1.0 - percent_done); ++#endif + + ply_progress_animation_set_percent_done (plugin->progress_animation, + percent_done); diff --git a/plymouth.spec b/plymouth.spec index f5cb1b4..397daa0 100644 --- a/plymouth.spec +++ b/plymouth.spec @@ -5,7 +5,7 @@ Summary: Graphical Boot Animation and Logger Name: plymouth Version: 0.7.0 -Release: 0.2009.05.06.3%{?dist} +Release: 0.2009.05.06.4%{?dist} License: GPLv2+ Group: System Environment/Base Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2 @@ -21,6 +21,8 @@ Requires: initscripts >= 8.83-1 Obsoletes: plymouth-text-and-details-only < %{version}-%{release} +Patch0: plymouth-0.7.0-lose-power-function.patch + %description Plymouth provides an attractive graphical boot animation in place of the text messages that normally get shown. Text @@ -215,6 +217,7 @@ and finally burst into into full form. %prep %setup -q +%patch0 -p1 -b .loser-power-function %build %configure --enable-tracing --disable-tests --without-boot-entry \ @@ -431,6 +434,9 @@ fi %defattr(-, root, root) %changelog +* Fri May 08 2009 Ray Strode 0.7.0-0.2009.05.06.4 +- Don't slow down progress updating at the end of boot + * Thu May 07 2009 Ray Strode 0.7.0-0.2009.05.06.3 - Change colors to transition better to gdm