Commit graph

1635 commits

Author SHA1 Message Date
Ray Strode
6e76f71ca4 progress-animation: fail load if there are no frames
If there are no progress animation frames we need to
fail from the load function so plugins can deal with it
gracefully..
2011-03-23 12:04:05 -04:00
Ray Strode
4c233ce2cb two-step: make progress animation optional 2011-03-23 11:32:14 -04:00
Colin Watson
61e5859672 upstart-bridge: add new helper program
This commit adds a new program, plymouth-upstart-bridge,
the listens for upstart state changes and sends them to plymouth,
or prints them out as appropriate.
2011-03-12 17:54:53 -05:00
Colin Watson
852c016e0d client: allow reply handlers to be optional.
This commit lightens the hard requirement that every
client request has to have a function handling the reply.

There's really no reason to be so strict, and it makes
life easier for none /bin/plymouth clients this way.
2011-03-12 16:37:52 -05:00
Ray Strode
32ad92adf5 drm: don't light up unlit monitors
If a monitor is dark when plymouth is started, we shouldn't
try to light it up.  There are rules on which outputs can be
attached to which controllers and we're very likely to break
those rules just assigning things willy-nilly.

The kernel should set us up in the way it thinks is best anyway.
There's no reason to second guess the kernel here.
2011-03-09 17:22:03 -05:00
Ray Strode
89096d735f terminal: Keep retrying to reopen tty on EIO after hang up
If the tty hangs up on us, the kernel will return EIO while it's
closing down.  As far as I know, there's no way to get notified
when it's back up again, so just keep retrying in a loop over
the course of a second or so.  Eventually give up, though.

This is really suboptimal and suggests we should get away from
using ttys for input at some point.
2011-03-04 14:57:52 -05:00
Andrey Borzenkov
32a214337b client: do not wait forever if daemon is not started
Currently plymouth --wait will wait forever if daemon is not
started. This does not look right - we were asked to wait for
daemon to stop and daemon is obviously stopped. So make it
exit right away in this case.

This avoids timeouts during systemd boot if plymouth happened to be
stopped (or never started) before plymouth-quit-wait had chance to
start.

Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
2011-03-02 20:51:32 -05:00
Ray Strode
502d5951aa terminal: apply terminal settings immediately 2011-03-01 17:26:16 -05:00
Ray Strode
b6b10b1cbc utils: don't depend on PAGE_SIZE
It's not defined for all architectures.

We don't really need the page size anyway, we just need a reasonably
large value.
2011-02-28 13:01:39 -05:00
Ray Strode
98e9c3ea5b main: convert tab to spaces 2011-02-25 13:59:16 -05:00
Ray Strode
77e29359bc tests: don't run during make check
They aren't unit tests so running them in make check is wrong.

Eventually, I'd like them to be unit tests, though, and not
just little scratch programs.
2011-02-19 17:10:34 -05:00
Ray Strode
bb3be6b60f terminal: unlock tty before mucking with it
It seems that sometimes when the tty is stolen from us
it remains locked when we get it back.  That would be okay
if the attributes were still kosher, but they aren't.

This commit unlocks the tty before trying to reinitialize
the terminal with suitable attributes.

Debugged by Andrey Borzenkov <arvidjaar@gmail.com>
2011-02-18 13:45:55 -05:00
Ray Strode
005699a6f5 client: clean up warnings 2011-02-09 15:28:00 -05:00
Ray Strode
b81cc2682a drm: clean up warnings 2011-02-09 15:27:21 -05:00
Ray Strode
515e9cef13 frame-buffer: clean up warnings 2011-02-09 15:26:21 -05:00
Ray Strode
e935a62fe8 two-step: fix warnings 2011-02-09 15:07:14 -05:00
Ray Strode
061e290d2d space-flares: clean up warning 2011-02-09 15:07:14 -05:00
Ray Strode
ff0e00a5cc text: clean up warning 2011-02-09 15:07:14 -05:00
Ray Strode
e8ffc98635 fade-throbber: clean up warnings 2011-02-09 15:07:14 -05:00
Ray Strode
711ef9a22c throbgress: clean up warnings 2011-02-09 15:07:14 -05:00
Ray Strode
8b05b8fb49 label: clean up warnings 2011-02-09 15:07:14 -05:00
Ray Strode
d279fec316 main: detach from terminal session on failure 2011-02-09 15:07:14 -05:00
Ray Strode
34178f4e30 main: make duplicate plymouthd's a silent error 2011-02-09 15:07:14 -05:00
Ray Strode
fc131db314 main: clean up warnings 2011-02-09 15:07:14 -05:00
Ray Strode
25e2afde47 image: clean up warning 2011-02-09 15:07:14 -05:00
Ray Strode
6b4cd4a989 text-progress-bar: clean up warnings 2011-02-09 15:07:14 -05:00
Ray Strode
e5b97bdc85 region: clean up some warnings 2011-02-09 15:07:14 -05:00
Ray Strode
3fd95f5be1 array: clean up a warning 2011-02-09 15:07:14 -05:00
Ray Strode
bc2ca39595 event-loop: clean up some warnings 2011-02-09 15:07:14 -05:00
Ray Strode
9f197b58e2 animation: add debug spew 2011-02-09 15:07:14 -05:00
Ray Strode
94ba93b24e two-step: Add more debug spew 2011-02-09 15:07:14 -05:00
Ray Strode
ffd593a75b boot-server: improve debug output
We've written "could not write bytes" in many different
places.  This changes the error message to be more domain
specific.
2011-02-03 15:28:05 -05:00
Ray Strode
4849879228 boot-server: fix debug output when message is from init
We were always trying to show the parent process name,
but init doesn't have a parent.

This commit special cases init, since it's a special case.
2011-02-03 14:40:43 -05:00
Lucian Muresan
22a1273bb2 drm: reduce minimum build requirements
This patch adds the respective configure options to make it possible to
disable libdrm_intel, libdrm_radeon, libdrm_nouveau, and libkms
independently from each other.

https://bugs.freedesktop.org/show_bug.cgi?id=29804
2011-02-01 14:33:23 -05:00
Martin Pitt
f8874cb4b0 pixel-buffer: Fix overflow in blend_two_pixel_values
It was using 16bit types to hold the intermiediate
results of the blend, but for high intensity,
low opacity input values it could need up to
17 bits to prevent overflow.

https://bugs.freedesktop.org/show_bug.cgi?id=33129
2011-01-14 18:32:10 -05:00
Ray Strode
e5a78dd8bb main: remove tty0 from list of fallback ttys
It's not a valid fallback tty since writing to
it would create a feedback loop (since it's
redirected with /dev/console)
2010-11-19 19:35:52 -05:00
Ray Strode
cd0b866222 main: Always translate tty0 to tty1
Another bug in check_for_consoles...

We can't ever write to tty0 directly, because
it is redirected (just like /dev/console).  Previously
we would translate the call to tty1, but commit

c40fd792b6

broke that.  This commit fixes it again.
2010-11-19 19:33:34 -05:00
Ray Strode
ba5054cc77 terminal: don't rely on strlen(bytes) for write size
We're printing stuff to the terminal.  This may include
NUL bytes once in a while.  We shouldn't rely on strlen()
to determine how many bytes to write.
2010-11-19 15:27:12 -05:00
Andrey Borzenkov
a4c7cbafd3 boot-client: fix fallback socket support
Commit 3ec007a482 did not
properly check for success when connecting to the fallback
socket path and instead always failed.

This commit fixes the code to properly check for success and
proceed.

Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
2010-11-19 10:33:49 -05:00
Andrey Borzenkov
d29722b34a utils: if concrete/abstract socket selection
Commit 9de731ed29 caused
plymouth to erroneously drop the leading '\0' on the old
abstract socket making fallback socket support not work.
As result new clients (after update) can no longer communicate
with old running daemons (such as from the initrd).

This commit restores the leading '\0' for both
abstract sockets, trimmed and non-trimmed.

Commit 3ec007a482 did not
check for success with old socket path and failed
always. Properly check for success and proceed.

Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
2010-11-19 10:32:49 -05:00
Ray Strode
48f04ad193 main: don't pause on crash
plymouthd would previously pause() when crashing if debug
mode was enabled so that it could be attached to with a debugger.

pausing indefinitely during boot up is often a bad idea though.

This commit changes it to sleep 30 seconds instead.
2010-11-15 14:01:50 -05:00
Ray Strode
aba7c7b89f terminal: Don't set ISTRIP in terminal attributes
In certain error paths plymouth would erroneously set
ISTRIP on the terminal.  This is bogus in the same way
the changes fixed by commit ea394383c5
were bogus.
2010-11-15 13:56:01 -05:00
Ray Strode
b204e25c87 configure: move with_gdm_autostart_file=no to else clause
doing it unconditionally seems to confuse autogoo.
2010-11-02 16:05:39 -04:00
Ray Strode
44e5308dee viewer: always dist desktop file
Even if we aren't installing it, we still want it to get shipped
when doing "make dist"
2010-11-02 15:23:06 -04:00
Ray Strode
871dbcbcce boot-server: don't print error when client goes away
Right now, anytime the server is unable to respond to a
client it puts an ugly message on the screen:

"could not write bytes: Broken pipe"

or some such.  That message isn't really useful unless you're
debugging your distribution, so change it from a ply_error to
ply_trace.
2010-10-20 10:04:24 -04:00
Ray Strode
0f1b124a2b populate-initrd: pre-expand logofile variable
The logofile by default is $datadir/plymouth.png

$datadir contains a reference to $datarootdir, so
we need to preexpand the variable in configure, for
the right value to get written to plymouth-populate-initrd.
2010-10-13 08:26:42 -04:00
Brett Witherspoon
d7f59d9dc2 populate-initrd: don't hardcode client and daemon path
When not installing in system root, the populate initrd script would not
install the client or daemon due to the paths being hardcoded.
Environmental variables are also now available to override the defaults.
2010-10-13 08:20:44 -04:00
Brett Witherspoon
07329b7268 image: replace deprecated libpng function
The png_set_gray_1_2_4_to_8 function is deprecated and has been removed
from libpng14. Now png_set_expand_gray_1_2_4_to_8 is used instead which
is compatible with libpng-1.2.9 and greater.
2010-10-13 08:20:10 -04:00
Ray Strode
34c6f34c6d viewer: don't build viewer by default
The viewer is useful for seeing boot messages after boot up.
It does this by showing a notification icon in the event there
is a problem during boot.

Notification icons aren't as en vogue as they once were, however.

Ideally, we would have a more structured and semantically aware
way to deal with specific boot problems.

This commit turns the icon off by default.  It can still be built
with a --with-log-viewer

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=30724
Reported By: William Jon McCann <william.jon.mccann@gmail.com>
2010-10-11 10:33:37 -04:00
Ray Strode
2ca39dacab boot-server: make update handling asyncrhonous
This call needs to be cheap since some distros
do a ton of updates.
2010-10-07 15:42:49 -04:00