]> git.ipfire.org Git - thirdparty/plymouth.git/log
thirdparty/plymouth.git
16 years ago[script] Add support for setting the window background color
Charlie Brej [Thu, 2 Jul 2009 14:57:00 +0000 (15:57 +0100)] 
[script] Add support for setting the window background color

Two functions set the color of either the bottom or the top of the screen. If
the two colors are equal a solid colour draw is used. The color is supplied by
three floats specitying red green and blue elements.

16 years ago[script] Add support for getting the window width and height
Charlie Brej [Wed, 1 Jul 2009 19:20:47 +0000 (20:20 +0100)] 
[script] Add support for getting the window width and height

The example script has been updated to use this as well as to use other
features recently committed.

16 years ago[script] Simplify the object operations
Charlie Brej [Wed, 1 Jul 2009 18:53:47 +0000 (19:53 +0100)] 
[script] Simplify the object operations

Using nested switch statements made it easy to decide what to do in each
situation but this is rather verbose and causes -Wextra to complain (a lot).

Also added script_obj_is_[type] to help identify object easier and not repeat
code.

16 years ago[script] Add modify assignments (+=, *= ...)
Charlie Brej [Wed, 1 Jul 2009 15:13:13 +0000 (16:13 +0100)] 
[script] Add modify assignments (+=, *= ...)

Adds the following modify assignments: +=, -=, *=, /=, %=

16 years ago[script] Move object operating functions to script-object to avoid repetition
Charlie Brej [Wed, 1 Jul 2009 14:32:36 +0000 (15:32 +0100)] 
[script] Move object operating functions to script-object to avoid repetition

16 years ago[script] Fix bug of assigning a var to itself (e.g. val = val;)
Charlie Brej [Wed, 1 Jul 2009 09:06:43 +0000 (10:06 +0100)] 
[script] Fix bug of assigning a var to itself (e.g. val = val;)

Problem was that the var is cleared before being re-assigned, which also clears
the value we were about to write into it.

16 years ago[script] Add an example progress bar to the example script
Charlie Brej [Tue, 30 Jun 2009 22:38:16 +0000 (23:38 +0100)] 
[script] Add an example progress bar to the example script

16 years ago[script] Add support for image scale
Charlie Brej [Tue, 30 Jun 2009 22:37:04 +0000 (23:37 +0100)] 
[script] Add support for image scale

16 years ago[script] Implement script based fade_in implementation
Charlie Brej [Tue, 30 Jun 2009 21:13:25 +0000 (22:13 +0100)] 
[script] Implement script based fade_in implementation

The example script now can show a spinfinity or a fade_in behaviour. This is
just to see how easy it is to implement current plugins. In the case of fade_in
it is around 23 lines of script code

16 years ago[script] Add support for 'for'
Charlie Brej [Tue, 30 Jun 2009 20:46:40 +0000 (21:46 +0100)] 
[script] Add support for 'for'

Matches the use in C as "for (first, condition, last)" where first is executed
once, last is executed at the end of each iteration (even when continue is
executed) and condition is tested at the start of every cycle.

16 years ago[script] Add support for an "else" after an "if"
Charlie Brej [Tue, 30 Jun 2009 19:29:16 +0000 (20:29 +0100)] 
[script] Add support for an "else" after an "if"

16 years ago[script] Add support for loading the system logo image
Charlie Brej [Tue, 30 Jun 2009 16:38:48 +0000 (17:38 +0100)] 
[script] Add support for loading the system logo image

This is done specifying the filename is special://logo. Not sure if this is the
best way of implementing but it is expandable to other special files.

16 years ago[script] Add support for the password dialogue in the example script theme
Charlie Brej [Tue, 30 Jun 2009 15:58:39 +0000 (16:58 +0100)] 
[script] Add support for the password dialogue in the example script theme

16 years ago[script] Added a turn float to integer function to the math library
Charlie Brej [Tue, 30 Jun 2009 15:53:21 +0000 (16:53 +0100)] 
[script] Added a turn float to integer function to the math library

16 years ago[script] Deref the state to allow local and global to be reassigned
Charlie Brej [Tue, 30 Jun 2009 14:28:31 +0000 (15:28 +0100)] 
[script] Deref the state to allow local and global to be reassigned

This should allow local and global to be assigned to a different vareable.
This is discouriged as it may cause asserts to fail, but may be useful to save
current state and continue the function at a later time.

16 years ago[script] Handle -0 in float comparisons correctly
Charlie Brej [Tue, 30 Jun 2009 14:27:34 +0000 (15:27 +0100)] 
[script] Handle -0 in float comparisons correctly

16 years ago[script] Add simple Math functions (abs, min, max and clamp)
Charlie Brej [Tue, 30 Jun 2009 14:24:57 +0000 (15:24 +0100)] 
[script] Add simple Math functions (abs, min, max and clamp)

16 years ago[script] Remember the width and height of old sprite image for next refresh
Charlie Brej [Mon, 29 Jun 2009 15:46:06 +0000 (16:46 +0100)] 
[script] Remember the width and height of old sprite image for next refresh

When we change the sprite image, the redraw now remembers to refresh the old
area despite any change in the image size.

16 years ago[script] Refresh the part of the screen that a sprite was on when removing
Charlie Brej [Mon, 29 Jun 2009 15:18:36 +0000 (16:18 +0100)] 
[script] Refresh the part of the screen that a sprite was on when removing

When a sprite is destroyed, this should now refresh the area the sprite was
occupying.

16 years ago[script] Creating a string object with a NULL string now returns a NULL object
Charlie Brej [Mon, 29 Jun 2009 13:41:23 +0000 (14:41 +0100)] 
[script] Creating a string object with a NULL string now returns a NULL object

Strings in C are often set to NULL to signify that they have not been set. This
should be carried through to the script system rather than failing at the
conversion.

16 years ago[script] Free the functions, in the script lib plymouth, when library is freed
Charlie Brej [Mon, 29 Jun 2009 13:37:07 +0000 (14:37 +0100)] 
[script] Free the functions, in the script lib plymouth, when library is freed

16 years ago[script] add sprite opacity control
Charlie Brej [Mon, 29 Jun 2009 13:34:06 +0000 (14:34 +0100)] 
[script] add sprite opacity control

SpriteSetOpacity sets the opacity of the sprite. Also a couple fixups to
refresh when the image has been changed.

16 years ago[script] Add cos, sin, tan and square root functions to the script math library
Charlie Brej [Sun, 28 Jun 2009 20:39:19 +0000 (21:39 +0100)] 
[script] Add cos, sin, tan and square root functions to the script math library

16 years ago[script] Allow scripts to attach themselves to plymouth plugin callbacks
Charlie Brej [Thu, 25 Jun 2009 14:49:12 +0000 (15:49 +0100)] 
[script] Allow scripts to attach themselves to plymouth plugin callbacks

The scripts can now attach themselves to the following callbacks: refresh,
boot_progress, root_mounted, keyboard_input, update_status, display_normal,
display_password and display_question.

16 years ago[script] Correctly parse multiple parameter functions and allow dangeling comma
Charlie Brej [Thu, 25 Jun 2009 14:02:55 +0000 (15:02 +0100)] 
[script] Correctly parse multiple parameter functions and allow dangeling comma

Typo was causing parsing errors.

16 years ago[script] Don't error on object unref of NULL
Charlie Brej [Thu, 25 Jun 2009 10:39:01 +0000 (11:39 +0100)] 
[script] Don't error on object unref of NULL

This follows the usage of free with a NULL as well as ply-image etc.

16 years ago[script] Rationalize function calls and callbacks
Charlie Brej [Thu, 25 Jun 2009 10:25:12 +0000 (11:25 +0100)] 
[script] Rationalize function calls and callbacks

Allows script functions to be executed without extracting the body of the
function and executing that. This makes implementing callbacks simpler and
enables passing of parameters.

16 years ago[script] Output error mesages when parsing files
Charlie Brej [Tue, 23 Jun 2009 15:50:36 +0000 (16:50 +0100)] 
[script] Output error mesages when parsing files

The parses should now produce useful error messages of syntax errors in the
parsed files. This is not a 100% coverage but at least it now gives an error
with a line number rather than just an assert and a crash.

16 years ago[scan] Correct character index calculation
Charlie Brej [Tue, 23 Jun 2009 15:35:49 +0000 (16:35 +0100)] 
[scan] Correct character index calculation

Index should point to the coordinate before the character and not after.

16 years ago[scan] Remember the line and column number of tokens
Charlie Brej [Tue, 23 Jun 2009 13:26:07 +0000 (14:26 +0100)] 
[scan] Remember the line and column number of tokens

This is useful for scan and parse error reporting. The first column is zero but
this can be changed. Nedit and Emacs say zero, gedit says 1 and Vi says "0-1".

16 years ago[scan] Add error reporting to the scanner
Charlie Brej [Tue, 23 Jun 2009 13:06:30 +0000 (14:06 +0100)] 
[scan] Add error reporting to the scanner

The canner now returs error tokens when strings or comments are not correctly
terminated.

16 years ago[scan] Add block comments
Charlie Brej [Mon, 22 Jun 2009 22:38:57 +0000 (23:38 +0100)] 
[scan] Add block comments

Treats "/*" and "*/" as block comment markers. Block comments may be nested.
There is a bug where if a comment or a string is not terminated before the end
of a file, the scanner deadlocks. Need to add a way or reporting scanner
errors to the parser.

16 years ago[scan] Add parsing of line comments
Charlie Brej [Mon, 22 Jun 2009 21:59:45 +0000 (22:59 +0100)] 
[scan] Add parsing of line comments

These are currently hard coded to '//' and '#'. The code is there to return
them to the caller but currently they are thrown away.
Should add a skip_comments option and allow customisable markers.

16 years ago[script] Ensure two character operators have no space between characters
Charlie Brej [Mon, 22 Jun 2009 20:51:27 +0000 (21:51 +0100)] 
[script] Ensure two character operators have no space between characters

Checks whitespace before the second token is zero.

16 years ago[scan] Remember white space between tokens
Charlie Brej [Mon, 22 Jun 2009 20:30:09 +0000 (21:30 +0100)] 
[scan] Remember white space between tokens

Tokens now contain the number of white space characters since the last token.
This is useful in situations where white space between symbols changes the
meaning (e.g. a++ vs. a+ +).

16 years ago[script] Add support for script image rotation
Charlie Brej [Mon, 22 Jun 2009 20:20:13 +0000 (21:20 +0100)] 
[script] Add support for script image rotation

An image rotate operation creates a new image with the same dimensions but with
the contents rotated by an angle around the centre of the image. Also added a
script object to float function to allow this.

16 years ago[script] Add support for unary operations (!/+/-/++/--)
Charlie Brej [Mon, 22 Jun 2009 15:48:46 +0000 (16:48 +0100)] 
[script] Add support for unary operations (!/+/-/++/--)

Allows execution of unary operations: Pre/postfix inc/decrement, logical
negation and unary plus/minus.

The writebacks of increment/decrements happen during the execution of the
expression, unlike C where they are executed after the line if executed. This
is the case simply because it is simpler to execute this way.

16 years ago[script] Free the main script after freeing the state
Charlie Brej [Mon, 22 Jun 2009 15:42:02 +0000 (16:42 +0100)] 
[script] Free the main script after freeing the state

There are links from the script state to parsed script data. Destroy the parsed
data after freeing the state.

This should be done properly with more ref counting or moving the freeme var to
the linking structure.

16 years ago[script] Dereference on assign without affecting refcount
Charlie Brej [Mon, 22 Jun 2009 15:37:58 +0000 (16:37 +0100)] 
[script] Dereference on assign without affecting refcount

Assigns were incorrectly dereferencing creating an incorrect refcount.

16 years ago[script] Add support for logical AND and OR
Charlie Brej [Thu, 18 Jun 2009 16:27:32 +0000 (17:27 +0100)] 
[script] Add support for logical AND and OR

Allows the use of "&&" and "||". These are evaluated lazily and return the
evaluated sub-value which completed the operation rather than a bool. It allows
things like:

reply = cache_lookup(index) || slow_lookup(index);

If cache_lookup returns a false value (NULL, or 0) then slow_lookup is executed
and its result is placed in reply. Otherwise the result from cache_lookup is
used.

16 years ago[script] Add support for floats
Charlie Brej [Tue, 16 Jun 2009 15:33:29 +0000 (16:33 +0100)] 
[script] Add support for floats

Adds parsing and execution support for floats. Some operations upgrade ints to
floats with no way of turning them back to ints.

16 years agoInitial scripted plugin support
Charlie Brej [Fri, 12 Jun 2009 17:04:25 +0000 (18:04 +0100)] 
Initial scripted plugin support

This is an initial support for the scripted plugin. There are _many_ FIXMEs
and the whole code is reather unstable. The formatting is completely incorrect
and will be changed soon. There are scripts which are converted using a perl
to an C embeddable string.

16 years ago[utils] Add utf-8 support functions to determine character and string length
Charlie Brej [Wed, 15 Jul 2009 10:30:19 +0000 (11:30 +0100)] 
[utils] Add utf-8 support functions to determine character and string length

These are used to feed the keyboard input a single character at a time, to
determine the number of bullets in the password dialogue and process backspaes.

16 years ago[frame-buffer] Unroll gradient drawing loop
Charlie Brej [Thu, 18 Jun 2009 14:31:36 +0000 (15:31 +0100)] 
[frame-buffer] Unroll gradient drawing loop

When drawing the gradient, rather than creating each dithered pixel, a block
of 8 pixels is created and copied repeatedly to the target. So long as the
number of noise bits is low and the random number generator is good, no
repetition is visible.

16 years ago[frame-buffer] Use a simpler pseudo-random number generator for gradient noise
Charlie Brej [Thu, 18 Jun 2009 13:55:51 +0000 (14:55 +0100)] 
[frame-buffer] Use a simpler pseudo-random number generator for gradient noise

In some plugins about 80% of time is spent in the random number generation
functions. These are used to create the dithering noise to stop the banding in
the gradient functions.

The simpler version is an adaptation of a linear feedback register which
creates a pseudo random sequence repeating every 4,194,303 generations.

16 years ago[frame-buffer] Make additions to the areas to flush non-overlapping
Charlie Brej [Wed, 17 Jun 2009 14:22:42 +0000 (15:22 +0100)] 
[frame-buffer] Make additions to the areas to flush non-overlapping

When adding areas to be flushed, the algorithm now looks for partial overlap
with existing areas and if found it either: throws away an area as it is fully
overlapped, reduces the area to remove the overlap or breaks the area into two
skirt around the area already in the list.

The algorithm does does not scale particularly well when there are more than 30
areas stacked with each being partly (but not fully) overlapped by others. This
creates a large list of small areas to check against which could eventually
become counter productive.

16 years ago[frame-buffer] Discard overlapping flush areas
Ray Strode [Fri, 12 Jun 2009 03:11:26 +0000 (23:11 -0400)] 
[frame-buffer] Discard overlapping flush areas

One advantage of the previous bounding box approach to flushing
is overlapping flush areas wouldn't get flushed multiple times.

This commit tries to identify overlapping flush areas and eliminate
them. It's not perfect though.

A better approach might be to store a sorted tree of areas to be
flushed, and walk the tree when adding new flush areas to quickly find
overlapping areas. Then we'd split each area into two or more new areas
to avoid overlaps.

16 years ago[frame-buffer] Track multiple flush areas
Ray Strode [Fri, 12 Jun 2009 02:50:07 +0000 (22:50 -0400)] 
[frame-buffer] Track multiple flush areas

Previously we would always aggregate flush areas together even
if they were disjoint and far apart.  That meant that if two
images on opposites sides of the screen were updated in one
frame, then the entire screen would get redrawn.

We now track flush areas in a list, instead of a bounding box.

16 years ago[frame-buffer] Rework flush interface to take area
Ray Strode [Fri, 12 Jun 2009 02:31:11 +0000 (22:31 -0400)] 
[frame-buffer] Rework flush interface to take area

Before this commit it would always flush the area_to_flush
area. Now the interface allows flushing arbitrary areas. This
change paves the way for us to flush multiple disjoint areas
at one time.

16 years ago[splash] Add theme source files to EXTRA_DIST
Ray Strode [Wed, 6 May 2009 14:02:40 +0000 (10:02 -0400)] 
[splash] Add theme source files to EXTRA_DIST

They weren't making it into the dist'd tarball

16 years ago[solar] pull trigger right away if idle
Charlie Brej [Wed, 13 May 2009 16:08:35 +0000 (17:08 +0100)] 
[solar] pull trigger right away if idle

The idle_trigger was not being pulled in the solar plugin which causes the
system to deadlock on quit and plymouthd never exits.

16 years ago[two-step] pull trigger right away if already idle
Ray Strode [Mon, 4 May 2009 21:17:36 +0000 (17:17 -0400)] 
[two-step] pull trigger right away if already idle

The trigger always needs to get pulled so that the
daemon knows that it can quit.  Previously, we weren't
pulling it if two-step was already idle.  This meant that
plymouthd never quit.

16 years ago[two-step] Clean up animation when stopping
Ray Strode [Mon, 4 May 2009 04:09:34 +0000 (00:09 -0400)] 
[two-step] Clean up animation when stopping

16 years ago[two-step] Always finish 2nd step before quitting
Ray Strode [Mon, 4 May 2009 01:32:08 +0000 (21:32 -0400)] 
[two-step] Always finish 2nd step before quitting

Previously, we'd cut short in the middle of a very short animation.

16 years ago[daemon] Tell splash to become idle before quitting
Ray Strode [Mon, 4 May 2009 00:55:16 +0000 (20:55 -0400)] 
[daemon] Tell splash to become idle before quitting

This allows it to, e.g., finish up its current round of animations or
fade out the progress bar or whatever.

16 years ago[two-step] Add merge-fade as a progress animation transition type
Charlie Brej [Wed, 13 May 2009 12:11:36 +0000 (13:11 +0100)] 
[two-step] Add merge-fade as a progress animation transition type

The merge fade merges the two frames before drawing them to the framebuffer.
This makes a smooth transition between areas with partly transparent pixels or
areas in later frames becoming trasparent. This is set as the default on the
"glow" theme.

16 years ago[glow] Add fade between frames in glow theme
Ray Strode [Sat, 2 May 2009 05:03:41 +0000 (01:03 -0400)] 
[glow] Add fade between frames in glow theme

16 years ago[two-step] Add fade to progress animation
Ray Strode [Sat, 2 May 2009 04:36:28 +0000 (00:36 -0400)] 
[two-step] Add fade to progress animation

One issue with the two-step plugin is that during the initial boot
progress the frames can be updated several seconds apart from each
other.  This can look jumpy.  We can now optionally fade between
the frames to make the experience be a little smoother.

16 years ago[two-step] Add support for a "corner image"
Ray Strode [Sat, 2 May 2009 03:39:27 +0000 (23:39 -0400)] 
[two-step] Add support for a "corner image"

This is so the OLPC theme can have a
"Powered by blah" logo in the corner of the screen.

16 years ago[two-step] Pull background color from theme
Ray Strode [Sat, 2 May 2009 03:08:09 +0000 (23:08 -0400)] 
[two-step] Pull background color from theme

The OLPC theme looks best when it's white, so we need to be able to
specify the background color from the theme.  If the theme doesn't
specify a background color, we fall back to the old behavior of using
the distro default.

16 years ago[splash] Rename fade-in plugin to fade-throbber
Ray Strode [Thu, 14 May 2009 16:47:49 +0000 (12:47 -0400)] 
[splash] Rename fade-in plugin to fade-throbber

We're trying to keep a distinction between
plugin and theme.

16 years ago[splash] Rename solar plugin to space-flares
Ray Strode [Thu, 14 May 2009 14:10:27 +0000 (10:10 -0400)] 
[splash] Rename solar plugin to space-flares

We're trying to keep a distinction between
plugin and theme.

16 years ago[splash] Rename spinfinity plugin to throbgress
Ray Strode [Thu, 14 May 2009 14:10:27 +0000 (10:10 -0400)] 
[splash] Rename spinfinity plugin to throbgress

It's the theme that makes it spinfinity,
not the plugin.  The plugin is more generic.

16 years ago[splash] Rename glow plugin to two-step
Ray Strode [Fri, 1 May 2009 20:57:27 +0000 (16:57 -0400)] 
[splash] Rename glow plugin to two-step

Now the "glow" theme is just one possible manifestation of the
"two-step" plugin.

16 years ago[splash] Drop pulser plugin
Ray Strode [Thu, 14 May 2009 14:29:32 +0000 (10:29 -0400)] 
[splash] Drop pulser plugin

It's ugly and doesn't pass the quality sniff test.

16 years ago[splash] Split splashes into plugins and themes
Ray Strode [Wed, 29 Apr 2009 18:25:02 +0000 (14:25 -0400)] 
[splash] Split splashes into plugins and themes

Some of the plugins (well, the glow plugin) would be a lot more
versatile if they could be reused for multiple splashes with different
images.

This commit splits boot splashes into two parts, the plugin engine which
does all the dirty work, and the theme which says which plugin to use
and optionally how the plugin should work (using plugin specific
key/value pairs)

16 years ago[key-file] Use hashtables instead of lists
Charlie Brej [Wed, 13 May 2009 10:54:30 +0000 (11:54 +0100)] 
[key-file] Use hashtables instead of lists

Not really any performance advantage but it makes the code a little simpler.

16 years ago[libply] Add new keyfile class
Ray Strode [Thu, 30 Apr 2009 03:23:12 +0000 (23:23 -0400)] 
[libply] Add new keyfile class

This is a very lame keyfile parser.  We'll be able to use it to load
some metadata about the plugins.

The idea is that plugins will shift to being engines that can be
leveraged from multiple splash themes.  This way, for instance, the glow
plugin (which will be renamed) can be used to implement several
splashes.

16 years ago[window] Don't force text mode if debugging is on
Ray Strode [Tue, 5 May 2009 17:48:05 +0000 (13:48 -0400)] 
[window] Don't force text mode if debugging is on

It's not that much more work to hit ctrl-t, and now
that we log messages to plymouth-crash.log it's a lot
less useful to see them on screen.

16 years ago[daemon] Update tests to include compile correctly
Charlie Brej [Wed, 13 May 2009 09:31:44 +0000 (10:31 +0100)] 
[daemon] Update tests to include compile correctly

Adds ply-list.c/h to all tests automake files which use ply-logger.c.
Adds PLYMOUTH_TIME_DIRECTORY/PLUGIN/THEME_PATH when ply-boot-splash.c is used.
Adds PLY_BOOT_SPLASH_MODE_BOOT_UP to the ply_boot_splash_show call.

16 years ago[daemon] Free the debug buffer only after printing the last trace message
Charlie Brej [Wed, 13 May 2009 17:03:43 +0000 (18:03 +0100)] 
[daemon] Free the debug buffer only after printing the last trace message

Was segfaulting or printing failed assertios just before exitting.

16 years ago[daemon] Dump log to plymouth-crash.log on crash
Ray Strode [Tue, 5 May 2009 14:59:57 +0000 (10:59 -0400)] 
[daemon] Dump log to plymouth-crash.log on crash

This will be useful for debug purposes.

It's implemented by adding the concept of
"filters" to the logger code.  Each time a message
is logged it is passed through all registered
filter handlers and then the output of the filters
are what is actually logged.

In this case, we pass the messages through verbatim,
but also redirect them to a debug buffer.

We only do this redirection when plymouth:debug is
used.

16 years ago[throbber] Fix call to remove_frames
Ray Strode [Mon, 4 May 2009 01:22:44 +0000 (21:22 -0400)] 
[throbber] Fix call to remove_frames

ply-throbber was passing in the frames directly
instead of the throbber object

16 years ago[animation] Fix call to remove_frames
Ray Strode [Mon, 4 May 2009 01:22:44 +0000 (21:22 -0400)] 
[animation] Fix call to remove_frames

ply-animation was passing in the frames directly
instead of the animation object

16 years ago[progress-animation] Fix call to remove_frames
Ray Strode [Sat, 2 May 2009 04:34:52 +0000 (00:34 -0400)] 
[progress-animation] Fix call to remove_frames

ply-progress-animation was passing in the frames directly instead of the
progress object

16 years ago[event-loop] Don't crash by running removed timeouts
Ray Strode [Tue, 5 May 2009 15:57:21 +0000 (11:57 -0400)] 
[event-loop] Don't crash by running removed timeouts

We used to run and remove timeouts in a loop.  This
breaks the case where the dispatched timeout handler
removes the timeout itself.

We fix it by making timeout handling a two pass thing.
First we find which handlers need to be dispatched,
and move them to their own list.  Then we run through
the new list and dispatch the handlers.

16 years agoSwitch to tty 63 on shutdown
Ray Strode [Fri, 8 May 2009 03:43:46 +0000 (23:43 -0400)] 
Switch to tty 63 on shutdown

This is less than ideal, but side-steps weird interactions
between init, X, and plymouth.

16 years agoHang around until killed by init at shutdown
Ray Strode [Thu, 7 May 2009 18:46:03 +0000 (14:46 -0400)] 
Hang around until killed by init at shutdown

init does two rounds of killing at shutdown:
a round of SIGTERMs and a round of SIGKILLs.

We want to stay alive until the SIGKILL round
so we ignore the SIGTERM signal.

16 years agoPass the mode plymouthd is running to splashes
Ray Strode [Thu, 7 May 2009 18:38:50 +0000 (14:38 -0400)] 
Pass the mode plymouthd is running to splashes

We don't want to show progress bars and things for
shutdown, so pass the mode to the plugins so they can
just do a static image.

16 years agoAdd stub INSTALL file
Ray Strode [Sat, 2 May 2009 05:10:19 +0000 (01:10 -0400)] 
Add stub INSTALL file

16 years agoPause progress by default on password and question queries
Charlie Brej [Tue, 31 Mar 2009 21:13:20 +0000 (22:13 +0100)] 
Pause progress by default on password and question queries

Plymouth client ask-for-password and ask-question commands have their option
"--pause-progress" changed to "--dont-pause-progress". By default progress is
paused and "--dont-pause-progress" has to be supplied to not pause.

16 years agoMake sure to clean up ptm when detaching
Ray Strode [Thu, 19 Mar 2009 13:37:28 +0000 (09:37 -0400)] 
Make sure to clean up ptm when detaching

Otherwise we hit an assert next time we attach

16 years agodon't create a new splash every time show is called
William Jon McCann [Wed, 18 Mar 2009 22:54:56 +0000 (18:54 -0400)] 
don't create a new splash every time show is called

Reuse the existing splash.

16 years agoFix build when ENABLE_FADE_OUT is defined in spinfinity
Jonathan Greig [Mon, 16 Mar 2009 15:00:31 +0000 (11:00 -0400)] 
Fix build when ENABLE_FADE_OUT is defined in spinfinity

The variable "i" wasn't be declared, but was being used to
loop.

16 years agoSupport "splash" in addition to "rhgb" on kernel command line
Ray Strode [Fri, 13 Mar 2009 14:08:15 +0000 (10:08 -0400)] 
Support "splash" in addition to "rhgb" on kernel command line

We used "rhgb" because that's what Fedora users were used to
instinctively removing when graphical boot messes up.  This
isn't a very intuitive (or very upstream-y) name though.

Now we check for "rhgb" or "splash"

16 years agoWhen setting term to buffered without an attributes_saved, use generated ones.
Charlie Brej [Wed, 11 Mar 2009 11:04:49 +0000 (11:04 +0000)] 
When setting term to buffered without an attributes_saved, use generated ones.

A local term_attributes was constructed but not used.

16 years agoInitialise state->showing_details at show_splash
Charlie Brej [Wed, 11 Mar 2009 10:53:07 +0000 (10:53 +0000)] 
Initialise state->showing_details at show_splash

Only effects us when running without rhgb in the kernel line, by having to
press Esc twice to get the default splash.

16 years agoReset to text mode anytime we're about to print text
Ray Strode [Tue, 10 Mar 2009 18:46:59 +0000 (14:46 -0400)] 
Reset to text mode anytime we're about to print text

If we don't then someone during boot up may change
out from raw when we aren't looking.

Maybe we should use TIOCSLCKTRMIOS to prevent that
from happening? Or maybe we should bypass the tty
for input entirely and use evdev?

16 years agoRemove event handlers on destroy in plugins
Ray Strode [Mon, 9 Mar 2009 16:18:56 +0000 (12:18 -0400)] 
Remove event handlers on destroy in plugins

This is because we can end up in scenarios
where a plugin gets destroyed, and readded
without getting hidden in between.

16 years agoFactor handler registration code out into separate functions in plugins
Ray Strode [Mon, 9 Mar 2009 16:16:10 +0000 (12:16 -0400)] 
Factor handler registration code out into separate functions in plugins

This will make it easier to unregister the handlers from both
hide and destroy

16 years agoFix password entry dialogue in fade-in plugin.
Charlie Brej [Mon, 9 Mar 2009 14:51:08 +0000 (14:51 +0000)] 
Fix password entry dialogue in fade-in plugin.

Previously ply-entry was crashing with an assertion "entry->loop == NULL"
whenever the entry was updated. The change is basicly a copy of the working
version from spinfinity.

16 years agoexit plymouth-set-default-plugin cleanly when --rebuild-initrd isn't given
Ray Strode [Fri, 6 Mar 2009 23:03:28 +0000 (18:03 -0500)] 
exit plymouth-set-default-plugin cleanly when --rebuild-initrd isn't given

16 years agoDon't average the previous boot time with current boot time
Ray Strode [Fri, 6 Mar 2009 22:06:16 +0000 (17:06 -0500)] 
Don't average the previous boot time with current boot time

It's not always an improvement and it will always be worse
the second boot of a persistent live image.

16 years agoAlways allocate our own pty master when attaching
Ray Strode [Thu, 5 Mar 2009 19:39:37 +0000 (14:39 -0500)] 
Always allocate our own pty master when attaching

Previously, we'd let the caller pass one in, but
I don't think there's much point in allowing that.

16 years agoAllow -1 to get passed to ply-terminal-session
Ray Strode [Thu, 5 Mar 2009 19:38:28 +0000 (14:38 -0500)] 
Allow -1 to get passed to ply-terminal-session

This is coming from the drop-nash branch.  It lets
the caller of plymouth not have to create a pty master.

16 years agomake the glow plugin use its own icons
William Jon McCann [Wed, 4 Mar 2009 22:27:04 +0000 (17:27 -0500)] 
make the glow plugin use its own icons

Since the plugins may be packaged separately it isn't
kosher to share another plugins icons.

16 years agofix the help text for the color stops
William Jon McCann [Wed, 4 Mar 2009 22:10:57 +0000 (17:10 -0500)] 
fix the help text for the color stops

Make the help text use the proper argument name.

16 years agoadd a glow plugin
William Jon McCann [Wed, 4 Mar 2009 20:07:11 +0000 (15:07 -0500)] 
add a glow plugin

This plugin will progress through a sequence of images until
the progress reaches 90% complete.  At that point it will run
an animation sequence.

16 years agoadd a simple progress sequence helper
William Jon McCann [Wed, 4 Mar 2009 21:30:55 +0000 (16:30 -0500)] 
add a simple progress sequence helper

This is similar to the progress bar except that it uses a
sequence of images for the stages of the progress.

16 years agoadd simple one time animation helper
William Jon McCann [Wed, 4 Mar 2009 21:20:35 +0000 (16:20 -0500)] 
add simple one time animation helper

This will play a sequence of images from beginning to end at
a fixed frame rate.  It differs from the throbber in that it starts
at the 0th image and does not repeat.