Commit graph

1644 commits

Author SHA1 Message Date
Ray Strode
d1beb39095 gdm: don't do legacy gdm transition at shutdown 2011-03-29 13:06:44 -04:00
Ray Strode
6e748588cd systemd: change instrumentation points for systemd
We don't want to enable console verbosity until the splash is up,
and we want to disable it as soon as we aren't logging the console
anymore.
2011-03-29 02:18:36 -04:00
Ray Strode
6b4644cb6b configure: s/text/test/
Just a typo from the previous commit
2011-03-29 01:04:31 -04:00
Ray Strode
537c16422c systemd: toggle systemd messages when toggling console redirection
Normally systemd is very mute about messages.  It's important,
though for it to be chatty when plymouth is running so we can
show verbose messages to the user when they hit escape.

This commit adds a new --enable-systemd-integration configure
flag which explicitly tells systemd when to print messages to
the console.

This may get dropped in the future in lieu of init script
changes doing this instead of plymouth directly.
2011-03-28 22:45:48 -04:00
Ray Strode
7f3871b0f5 main: consolidate ply_terminal_session_detach calls
It's called in several places through the code. This commit
moves it into a function and just calls that function instead.
2011-03-28 22:44:31 -04:00
Ray Strode
a116eafc57 client: small leak fix 2011-03-26 01:02:49 -04:00
Ray Strode
7059c91c7a utils: drop some bizarre looking code 2011-03-26 00:56:30 -04:00
Ray Strode
0650fe107b splash: add new spinner theme
This is a very simple theme with a small spinner on a dark background.
2011-03-23 12:06:39 -04:00
Ray Strode
662b580ea3 main: add new --kernel-command-line option
It's really annoying when you're running plymouthd in
debug mode and don't happen to have "splash" on your kernel
command line and then need to reboot.

This commit adds a new debug option to override the kernel
command line for ths system.
2011-03-23 12:04:56 -04:00
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