]> git.ipfire.org Git - thirdparty/plymouth.git/log
thirdparty/plymouth.git
13 years agodrm: add generic driver to drm renderer plugin generic-drm-driver
Dave Airlie [Thu, 26 Apr 2012 19:00:00 +0000 (20:00 +0100)] 
drm: add generic driver to drm renderer plugin

Since around 2.6.39, the kernel has offered a generic ioctl interface
for modesetting (the KMS 'dumb' interface).  This interface is now
provided by most all of the modesetting drivers.

Adding support for this interface means that plymouth will automatically
gain support for new modesetting drivers going forward.

This commit adds that support. Some changes made by Ray Strode.

13 years agomain: corrected error in read_consoles_from_file
Kevin Murphy [Fri, 27 Apr 2012 05:11:14 +0000 (01:11 -0400)] 
main: corrected error in read_consoles_from_file

13 years agomain: fix bug in add_consoles_from_file
Kevin Murphy [Thu, 26 Apr 2012 14:39:36 +0000 (10:39 -0400)] 
main: fix bug in add_consoles_from_file

commit 6baab7a8f889f6b48cb559fd5a62750203f62c3b was the
result of Ray Strode splitting part of a larger patch
out. The splitting and subsequent modifications weren't
completely right.

This commit contains some fixes to address the problems
with those changes.

13 years agomain: add plymouth.ignore-serial-consoles
Ray Strode [Wed, 25 Apr 2012 22:22:00 +0000 (18:22 -0400)] 
main: add plymouth.ignore-serial-consoles

This commit adds plymouth.ignore-serial-consoles kernel command
line for OLPC to use.

Eventually, we'll support multiple plugins at once, and we can
run details on the serial console and e.g. two-step on the main
console and then this argument won't be needed.

13 years agoRevert "main: add way to ignore /sys/class/tty/console/active"
Ray Strode [Wed, 25 Apr 2012 22:17:26 +0000 (18:17 -0400)] 
Revert "main: add way to ignore /sys/class/tty/console/active"

This reverts commit 9e3071520db104b6a87a7f6a011e83319db4b586.

This command line option is sort of awkward. It would be better
to provide a kernel command line escape hatch.

13 years agomain: add default console for default scenarios
Ray Strode [Wed, 25 Apr 2012 22:01:45 +0000 (18:01 -0400)] 
main: add default console for default scenarios

commit e810532e5d2387e121bbded67c1b4cccc01dda4c contained
a function called add_consoles_from_file that was a badly
modified version of add_consoles_from_kernel_command_line
changed to read from /sys/class/tty/console/active instead
of /proc/cmdline.

Previously, if we had console=SOMETHING on the kernel command
line, then we would assume the user is using serial consoles
and force details.  This translated to if add_consoles_from_file
finds any devices in /sys/class/tty/console/active force details.

Of course, /sys/class/tty/console/active contains tty0 even when
the user doesn't specify console=tty0 on the kernel command line,
so this broke show-splash calls.

This commit changes the logic bit.  We now only force details if
there is some console in the list that isn't tty0.

This restores show-splash functionality.

13 years agomain: make add_consoles_from_file more robust
Kevin Murphy [Sun, 22 Apr 2012 06:06:42 +0000 (02:06 -0400)] 
main: make add_consoles_from_file more robust

add_consoles_from_file was a little fast and loose in its parsing.

This commit makes it a little more fault tolerant.

Patch split from larger patch, and modified by Ray Strode.

13 years agoevent-loop: hold reference to ready sources while handling timeouts
James Hunt [Mon, 23 Apr 2012 08:14:40 +0000 (09:14 +0100)] 
event-loop: hold reference to ready sources while handling timeouts

If ply_event_loop_handle_timeouts() is called before the events returned
by epoll_wait() are given references, a timeout handler can prematurely
free an event source by calling ply_event_loop_stop_watching_fd leading
to crashes and other undefined behaviour since
ply_event_loop_process_pending_events() dispatches the event sources
returned by epoll_wait() after the timeouts have been handled.

Thanks to cjwatson for a simpler solution to my original fix.

Minor changes by Ray Strode.

https://bugs.freedesktop.org/show_bug.cgi?id=28548

13 years agoevent-loop: drop redundant EINTR/EAGAIN check
Ray Strode [Tue, 24 Apr 2012 21:58:18 +0000 (17:58 -0400)] 
event-loop: drop redundant EINTR/EAGAIN check

We check it a couple lines earlier in the code, so
there's no reason to check it again.

13 years agomain: add way to ignore /sys/class/tty/console/active
Ray Strode [Tue, 10 Apr 2012 14:14:30 +0000 (10:14 -0400)] 
main: add way to ignore /sys/class/tty/console/active

Previously OLPC used --kernel-command-line to make plymouth
ignore specific consoles.  That no longer works, now that we
read from /sys/class/tty/console/active

This commit adds an escape hatch, a way to get back to the old
behavior.

13 years agomain: rename remaining_command_line to remaining_file_contents
Ray Strode [Mon, 9 Apr 2012 18:34:46 +0000 (14:34 -0400)] 
main: rename remaining_command_line to remaining_file_contents

add_consoles_from_file suffers from a sever case of
cut-and-paste-itis.  This commit renames its variable
"remaining_command_line" to "remaining_file_contents" so that
the variable name actually makes sense.

13 years agomain: more console fixes
Ray Strode [Mon, 9 Apr 2012 18:33:08 +0000 (14:33 -0400)] 
main: more console fixes

When parsing /sys/class/tty/console/active,
we need to make sure we jump over spaces in
the command line

13 years agomain: only force details if system has non-tty0 console
Ray Strode [Mon, 9 Apr 2012 18:27:44 +0000 (14:27 -0400)] 
main: only force details if system has non-tty0 console

Right now we're unconditionally forcing details mode,
which is clearly wrong.

13 years agopopulate-initrd: add new location for dracut source functions
Ray Strode [Wed, 4 Apr 2012 19:02:53 +0000 (15:02 -0400)] 
populate-initrd: add new location for dracut source functions

13 years agomain: more console fixes
Ray Strode [Wed, 4 Apr 2012 15:41:40 +0000 (11:41 -0400)] 
main: more console fixes

13 years agomain: break out of loop when hitting trailing new line
Ray Strode [Wed, 4 Apr 2012 15:38:45 +0000 (11:38 -0400)] 
main: break out of loop when hitting trailing new line

It's important to ignore chunks of the active tty buffer
that are just whitespace.

13 years agomain: fix inverted conditional in active console reading code
Ray Strode [Wed, 4 Apr 2012 15:28:26 +0000 (11:28 -0400)] 
main: fix inverted conditional in active console reading code

We were failing when read succeeded, not when it failed, so
we were always reverting to fallback.

13 years agomain: strdup default tty
Ray Strode [Wed, 4 Apr 2012 14:42:12 +0000 (10:42 -0400)] 
main: strdup default tty

Just noticed a memory management problem when looking through
the code.

13 years agomain: Also show splash for 'splash=silent' arguments (which is what we use in Mageia) 0.8.4
Colin Guthrie [Thu, 15 Dec 2011 10:35:07 +0000 (10:35 +0000)] 
main: Also show splash for 'splash=silent' arguments (which is what we use in Mageia)

13 years agomain: Fix parsing of plymouth.debug=stream: argument.
Colin Guthrie [Thu, 15 Dec 2011 10:27:51 +0000 (10:27 +0000)] 
main: Fix parsing of plymouth.debug=stream: argument.

It did not terminate at space so the log file to use was not
properly defined and any additional kernel command line args were
added to the end of the file name.

13 years agoulibc: Change the link order + add -ldl
Per Øyvind Karlsen [Fri, 26 Nov 2010 16:24:18 +0000 (16:24 +0000)] 
ulibc: Change the link order + add -ldl

ulibc linking is a bit more particular than regular glibc

13 years agoulibc: Make the /usr/lib substitution less greedy.
Per Øyvind Karlsen [Wed, 9 Dec 2009 06:43:32 +0000 (06:43 +0000)] 
ulibc: Make the /usr/lib substitution less greedy.

13 years agoulibc: Add header needed when compiling against ulibc
Per Øyvind Karlsen [Sat, 5 Dec 2009 05:46:59 +0000 (05:46 +0000)] 
ulibc: Add header needed when compiling against ulibc

13 years agoframe-buffer: use /dev/fb0 as default device
Daniel Drake [Sat, 17 Mar 2012 06:39:03 +0000 (02:39 -0400)] 
frame-buffer: use /dev/fb0 as default device

The /dev/fb symlink doesn't get created with any recent udev version.
dracut puts it in place "by hand" before starting plymouthd, which is
why things aren't broken in configurations that use dracut's plymouth
module.

Update the default device path so that it works out-of-the-box in
other setups too.

13 years agoply-splash-graphics: ensure link in config file
Daniel Drake [Sat, 17 Mar 2012 06:38:00 +0000 (02:38 -0400)] 
ply-splash-graphics: ensure link in config file

While building a theme externally I found that the link to
libply-splash-graphics was missing, due to an omission in the config
file.

13 years agoplymouth-populate-initrd: Check for new path to dracut-functions
Ray Strode [Thu, 23 Feb 2012 15:04:37 +0000 (10:04 -0500)] 
plymouth-populate-initrd: Check for new path to dracut-functions

13 years agoRevert "Hang around until killed by init at shutdown"
Ray Strode [Thu, 19 Jan 2012 17:32:11 +0000 (12:32 -0500)] 
Revert "Hang around until killed by init at shutdown"

This reverts commit 841068ba125f30fedd52b62490c6a7424b30c768.

That commit made plymouthd hang around until the last round
of slayings by init to keep the splash screen up as long as
possible.

That adds 5 seconds to shut down in some cases, though, so
is wrong.  Instead we need a solution that keeps the splash
around after plymouth exits.

See http://bugzilla.redhat.com/744932

13 years agomain: read consoles from /sys/class/tty/console/active
Ray Strode [Fri, 2 Dec 2011 22:18:41 +0000 (17:18 -0500)] 
main: read consoles from /sys/class/tty/console/active

We currently read the list of available consoles from the
kernel command line.

This isn't the most reliable way to do things.

This commit changes the code to read

/sys/class/tty/console/active

instead.

13 years agomain: close all terminals, not just local console terminal
Ray Strode [Thu, 13 Oct 2011 04:26:54 +0000 (00:26 -0400)] 
main: close all terminals, not just local console terminal

It's important we close all terminals in the shutdown path,
so they all get unlocked and returned to cooked mode.

Previously, we would just close the local console terminal,
which meant other terminals would end up left in a broken state.

13 years agomain: rename state->terminal to state->local_console_terminal
Ray Strode [Thu, 13 Oct 2011 04:01:42 +0000 (00:01 -0400)] 
main: rename state->terminal to state->local_console_terminal

state->terminal is used for VT handling code.  To make it clear
what its role is, rename it to state->local_console_terminal.

13 years agomain: don't overwrite state->terminal if there are multiple consoles
Ray Strode [Thu, 13 Oct 2011 02:38:53 +0000 (22:38 -0400)] 
main: don't overwrite state->terminal if there are multiple consoles

We call the add_display_and_keyboard_for_terminal function for
every console passed into the kernel command line and once for
/dev/tty1 if no console line is passed in. This function
repeatedly, reinitializes state->terminal with whatever
terminal is passed in each time its called.

This commit changes add_display_and_keyboard_for_terminal to not
touch state->terminal and instead makes the callers do it
(if appropriate)

13 years agoboot-splash: deduce terminal from text display
Ray Strode [Thu, 13 Oct 2011 03:32:36 +0000 (23:32 -0400)] 
boot-splash: deduce terminal from text display

Right now we pass a terminal to the constructor of the boot splash
object.  This terminal is used for going to KD_TEXT mode when
ctrl-T is tapped or when hiding the splash.

We only need to do this, though, when:

1) we're running on a local vt
2) we're showing graphics

the boot-splash code has all the knowledge it needs to figure these
two things out on its own, and furtermore it already can figure out
which terminal is the relevant one without being told at construct
time.

This commit adds those smarts to the boot splash code.

13 years agomain: fix kernel command line parsing
Ray Strode [Wed, 12 Oct 2011 19:50:56 +0000 (15:50 -0400)] 
main: fix kernel command line parsing

check_for_consoles has another bug (surprised?) where it would
jump too many characters forward if the command line has
console=tty0 in it, since tty0 is transparently changed to /dev/tty1.

13 years agomain: plug fd leak
James Hunt [Wed, 12 Oct 2011 02:11:10 +0000 (22:11 -0400)] 
main: plug fd leak

This plugs an fd leak in an error path

13 years agoutils: drop ply_list_directory
Ray Strode [Wed, 12 Oct 2011 02:09:37 +0000 (22:09 -0400)] 
utils: drop ply_list_directory

It's unused code

13 years agoutils: plug dir fd leak
James Hunt [Wed, 12 Oct 2011 02:08:48 +0000 (22:08 -0400)] 
utils: plug dir fd leak

This commit calls closedir() in an error path.

13 years agologger: plug fd leak
James Hunt [Wed, 12 Oct 2011 02:05:54 +0000 (22:05 -0400)] 
logger: plug fd leak

This plugs an fd leak in an error path.

13 years agotext-progress-bar: plug fd leak
James Hunt [Wed, 12 Oct 2011 02:03:08 +0000 (22:03 -0400)] 
text-progress-bar: plug fd leak

This plugs a fd leak in an error path

13 years agoclient: fix fd leak
James Hunt [Wed, 12 Oct 2011 02:01:07 +0000 (22:01 -0400)] 
client: fix fd leak

This plugs an fd leak in an error path

13 years agoREADME: resync from wiki
Ray Strode [Mon, 10 Oct 2011 14:54:00 +0000 (10:54 -0400)] 
README: resync from wiki

walters pointed out the README had some stale information in
it.  I've copy and pasted the wiki text in, now, so there
will be hopefully a small quantity of said stale information.

13 years agoautogen.sh: rework to be more buildsystem friendly
Colin Walters [Sun, 9 Oct 2011 19:54:15 +0000 (15:54 -0400)] 
autogen.sh: rework to be more buildsystem friendly

One of the goals laid out in
http://people.gnome.org/~walters/docs/build-api.txt
is to get projects to have autogen.sh scripts that
don't invoke configure after generating it.

This commit does that along with some other small
modifications designed to help be more confromant
with the Build API referenced in the above url.

https://bugs.freedesktop.org/show_bug.cgi?id=41629

13 years agoevent-loop: use static buffer instead of stack allocation buffer
James Hunt [Fri, 7 Oct 2011 15:32:46 +0000 (16:32 +0100)] 
event-loop: use static buffer instead of stack allocation buffer

alloca() isn't a good idea to use, in general, because it provides
undefined behavior when it fails.

This commit changes the epoll event buffer from being stack allocated
to static to avoid any potentially problems resulting from stack
space exhaustion.

https://bugs.freedesktop.org/show_bug.cgi?id=41562

13 years agoREADME: spelling fix.
Ville Skyttä [Sun, 25 Sep 2011 21:27:17 +0000 (00:27 +0300)] 
README: spelling fix.

This changes the mispelled word analagous to the
word analogous.

https://bugs.freedesktop.org/show_bug.cgi?id=41196

14 years agothrobgress: add plugin decelartion
Ray Strode [Fri, 19 Aug 2011 21:32:36 +0000 (17:32 -0400)] 
throbgress: add plugin decelartion

This should fix the build.

https://bugs.freedesktop.org/show_bug.cgi?id=40240

14 years agothrobgress: make colors configurable
Leho Kraav [Thu, 18 Aug 2011 15:06:17 +0000 (18:06 +0300)] 
throbgress: make colors configurable

This commit makes the background start and
background end colors configurable in throbgress.

14 years agoRevert "Add --nowait option."
Ray Strode [Wed, 3 Aug 2011 18:00:25 +0000 (14:00 -0400)] 
Revert "Add --nowait option."

This reverts commit c926bccd83ed1391df80adfecd1229b0327e1f11.

It was an in-progress patch that I carelessly and erroneously
pushed.

14 years agox11: translate enter to new line
Ray Strode [Fri, 29 Jul 2011 19:16:50 +0000 (15:16 -0400)] 
x11: translate enter to new line

commit 4081bd29fb471a93daba746643419d858f06bdfe changed
our keyboard handling code to treat newline instead of
carriage return as the enter key.

That commit fixed up the tty settings to work under these
new assumptions.  It failed to update the X11 code, though.

This commit fixes the X11 renderer plugin so it works in
the same way.

14 years agoAdd --nowait option.
cee1 [Wed, 13 Jul 2011 02:53:01 +0000 (10:53 +0800)] 
Add --nowait option.

With --nowait option, plymouth will not wait for reply from plymouthd.

14 years agoprogress-animation: allow 0 frame animations
cee1 [Sat, 18 Jun 2011 02:11:47 +0000 (10:11 +0800)] 
progress-animation: allow 0 frame animations

Currently ply-progress-animation crashes if you try to pass it
an animation with 0 available frames.

This commit makes it silently succeed.

14 years agotwo-step plugin: free plugin->animation_dir when destroy
cee1 [Wed, 15 Jun 2011 09:18:42 +0000 (17:18 +0800)] 
two-step plugin: free plugin->animation_dir when destroy

14 years agokey-file: minor code shuffle
Ray Strode [Tue, 14 Jun 2011 14:04:25 +0000 (10:04 -0400)] 
key-file: minor code shuffle

Move things around to avoid false positives in coverity.

14 years agomain: fix console=/dev/tty special case
Canek Peláez Valdés [Tue, 31 May 2011 15:39:43 +0000 (11:39 -0400)] 
main: fix console=/dev/tty special case

commit 1d09ad7d51e803e56b52c4e84dd558a7ac4d2e39 contained a mistake
where it checked for "tty" twice instead of "tty" once and "/dev/tty"
once.

This commit fixes that error.

14 years agomain: special case console=tty
Ray Strode [Wed, 25 May 2011 18:28:42 +0000 (14:28 -0400)] 
main: special case console=tty

Some people use console=tty in the same way they'd expect
console=tty0 to work.

This commit makes them behave the same way.

14 years agokeyboard: handle kernel terminal EIO better
Ray Strode [Wed, 11 May 2011 14:28:47 +0000 (10:28 -0400)] 
keyboard: handle kernel terminal EIO better

In commit 89096d735f78fab300248962030d6554f9894011 we added
reopen retries when the kernel returns EIO to ply-terminal.c.

This is because when the kernel is closing a tty down, that
tty is unavailable to userspace to reopen.

Unfortunately, that commit neglected to inform the ply-keyboard
part of the code when the terminal retry was successful.  The
upshot of this, is that if plymouthd needs to retry opening the
tty, then the splash screens lose control over the keyboard.

This commit changes how input notification is sent to the keyboard
handling code, so the tty disconnects are transparent.

14 years agomain: allow log output to be redirected
Ray Strode [Tue, 10 May 2011 19:42:29 +0000 (15:42 -0400)] 
main: allow log output to be redirected

Sometimes putting debug output on the screen has strange side
effects.  This commit adds a new kernel command line option,
e.g:

plymouth.debug=stream:/dev/null

that moves the output "out of the way"

14 years agomain: write pid file and daemonize last
cee1 [Thu, 21 Apr 2011 19:21:19 +0000 (15:21 -0400)] 
main: write pid file and daemonize last

These actions serve to notify plymouthd's readiness.
We should make sure they are run after plymouthd is actually
done starting up.

14 years agomain: write pid file even when not daemonizing
cee1 [Thu, 21 Apr 2011 19:18:13 +0000 (15:18 -0400)] 
main: write pid file even when not daemonizing

This commit moves the pid file writing code to main
from ply_create_daemon, so that it gets run even when we
plymouthd isn't daemonized.

This is more symmetrical, anyway, since unlinking of the pid
file is handled in main.

14 years agotext-progress-bar: Add support for /etc/os-release
cee1 [Mon, 18 Apr 2011 09:15:25 +0000 (17:15 +0800)] 
text-progress-bar: Add support for /etc/os-release

Systemd uses '/etc/os-release' as release file, see
http://0pointer.de/public/systemd-man/os-release.html

14 years agomain: force frame-buffer plugin at shutdown
Ray Strode [Thu, 31 Mar 2011 03:22:09 +0000 (23:22 -0400)] 
main: force frame-buffer plugin at shutdown

This way we hopefully won't get kicked out of KD_GRAPHICS
mode when we're SIGKILLed causing the splash to disappear
prematurely.

14 years agomain: fix ply_mode_t/ply_boot_splash_mode_t confusion
Ray Strode [Thu, 31 Mar 2011 03:21:00 +0000 (23:21 -0400)] 
main: fix ply_mode_t/ply_boot_splash_mode_t confusion

They're very similar enums and I was using the wrong one,
which caused a harmless compiler warning.

14 years agorenderer: provide way to override renderer plugin
Ray Strode [Thu, 31 Mar 2011 03:14:05 +0000 (23:14 -0400)] 
renderer: provide way to override renderer plugin

This will allow us to force e.g. frame-buffer even
if drm would work.

14 years agomain: create runtime directory if it doesn't exist already
Ray Strode [Thu, 31 Mar 2011 02:51:27 +0000 (22:51 -0400)] 
main: create runtime directory if it doesn't exist already

This makes sure there is a convenient place to put pid files.

14 years agogdm: don't do legacy gdm transition at shutdown
Ray Strode [Tue, 29 Mar 2011 17:06:28 +0000 (13:06 -0400)] 
gdm: don't do legacy gdm transition at shutdown

14 years agosystemd: change instrumentation points for systemd
Ray Strode [Tue, 29 Mar 2011 06:18:36 +0000 (02:18 -0400)] 
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.

14 years agoconfigure: s/text/test/
Ray Strode [Tue, 29 Mar 2011 05:04:31 +0000 (01:04 -0400)] 
configure: s/text/test/

Just a typo from the previous commit

14 years agosystemd: toggle systemd messages when toggling console redirection
Ray Strode [Tue, 29 Mar 2011 02:14:34 +0000 (22:14 -0400)] 
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.

14 years agomain: consolidate ply_terminal_session_detach calls
Ray Strode [Tue, 29 Mar 2011 02:36:39 +0000 (22:36 -0400)] 
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.

14 years agoclient: small leak fix
Ray Strode [Sat, 26 Mar 2011 05:02:49 +0000 (01:02 -0400)] 
client: small leak fix

14 years agoutils: drop some bizarre looking code
Ray Strode [Sat, 26 Mar 2011 04:56:30 +0000 (00:56 -0400)] 
utils: drop some bizarre looking code

14 years agosplash: add new spinner theme
Ray Strode [Wed, 23 Mar 2011 16:06:39 +0000 (12:06 -0400)] 
splash: add new spinner theme

This is a very simple theme with a small spinner on a dark background.

14 years agomain: add new --kernel-command-line option
Ray Strode [Wed, 23 Mar 2011 16:04:56 +0000 (12:04 -0400)] 
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.

14 years agoprogress-animation: fail load if there are no frames
Ray Strode [Wed, 23 Mar 2011 16:04:05 +0000 (12:04 -0400)] 
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..

14 years agotwo-step: make progress animation optional
Ray Strode [Wed, 23 Mar 2011 15:32:14 +0000 (11:32 -0400)] 
two-step: make progress animation optional

14 years agoupstart-bridge: add new helper program
Colin Watson [Sat, 12 Mar 2011 21:31:15 +0000 (16:31 -0500)] 
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.

14 years agoclient: allow reply handlers to be optional.
Colin Watson [Sat, 12 Mar 2011 21:31:15 +0000 (16:31 -0500)] 
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.

14 years agodrm: don't light up unlit monitors
Ray Strode [Wed, 9 Mar 2011 22:22:03 +0000 (17:22 -0500)] 
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.

14 years agoterminal: Keep retrying to reopen tty on EIO after hang up
Ray Strode [Fri, 4 Mar 2011 19:57:52 +0000 (14:57 -0500)] 
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.

14 years agoclient: do not wait forever if daemon is not started
Andrey Borzenkov [Thu, 3 Mar 2011 01:51:32 +0000 (20:51 -0500)] 
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>
14 years agoterminal: apply terminal settings immediately
Ray Strode [Tue, 1 Mar 2011 22:26:16 +0000 (17:26 -0500)] 
terminal: apply terminal settings immediately

14 years agoutils: don't depend on PAGE_SIZE
Ray Strode [Mon, 28 Feb 2011 18:01:39 +0000 (13:01 -0500)] 
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.

14 years agomain: convert tab to spaces
Ray Strode [Fri, 25 Feb 2011 18:59:16 +0000 (13:59 -0500)] 
main: convert tab to spaces

14 years agotests: don't run during make check
Ray Strode [Sat, 19 Feb 2011 22:10:34 +0000 (17:10 -0500)] 
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.

14 years agoterminal: unlock tty before mucking with it
Ray Strode [Fri, 18 Feb 2011 18:45:55 +0000 (13:45 -0500)] 
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>

14 years agoclient: clean up warnings
Ray Strode [Wed, 9 Feb 2011 20:28:00 +0000 (15:28 -0500)] 
client: clean up warnings

14 years agodrm: clean up warnings
Ray Strode [Wed, 9 Feb 2011 20:26:59 +0000 (15:26 -0500)] 
drm: clean up warnings

14 years agoframe-buffer: clean up warnings
Ray Strode [Wed, 9 Feb 2011 20:26:21 +0000 (15:26 -0500)] 
frame-buffer: clean up warnings

14 years agotwo-step: fix warnings
Ray Strode [Wed, 9 Feb 2011 20:07:03 +0000 (15:07 -0500)] 
two-step: fix warnings

14 years agospace-flares: clean up warning
Ray Strode [Wed, 9 Feb 2011 20:03:43 +0000 (15:03 -0500)] 
space-flares: clean up warning

14 years agotext: clean up warning
Ray Strode [Wed, 9 Feb 2011 20:00:31 +0000 (15:00 -0500)] 
text: clean up warning

14 years agofade-throbber: clean up warnings
Ray Strode [Wed, 9 Feb 2011 19:59:45 +0000 (14:59 -0500)] 
fade-throbber: clean up warnings

14 years agothrobgress: clean up warnings
Ray Strode [Wed, 9 Feb 2011 19:58:33 +0000 (14:58 -0500)] 
throbgress: clean up warnings

14 years agolabel: clean up warnings
Ray Strode [Wed, 9 Feb 2011 19:56:58 +0000 (14:56 -0500)] 
label: clean up warnings

14 years agomain: detach from terminal session on failure
Ray Strode [Wed, 9 Feb 2011 19:54:06 +0000 (14:54 -0500)] 
main: detach from terminal session on failure

14 years agomain: make duplicate plymouthd's a silent error
Ray Strode [Wed, 9 Feb 2011 19:47:54 +0000 (14:47 -0500)] 
main: make duplicate plymouthd's a silent error

14 years agomain: clean up warnings
Ray Strode [Wed, 9 Feb 2011 19:44:56 +0000 (14:44 -0500)] 
main: clean up warnings

14 years agoimage: clean up warning
Ray Strode [Wed, 9 Feb 2011 19:40:20 +0000 (14:40 -0500)] 
image: clean up warning

14 years agotext-progress-bar: clean up warnings
Ray Strode [Wed, 9 Feb 2011 19:39:10 +0000 (14:39 -0500)] 
text-progress-bar: clean up warnings

14 years agoregion: clean up some warnings
Ray Strode [Wed, 9 Feb 2011 19:34:52 +0000 (14:34 -0500)] 
region: clean up some warnings

14 years agoarray: clean up a warning
Ray Strode [Wed, 9 Feb 2011 19:32:43 +0000 (14:32 -0500)] 
array: clean up a warning

14 years agoevent-loop: clean up some warnings
Ray Strode [Wed, 9 Feb 2011 19:31:01 +0000 (14:31 -0500)] 
event-loop: clean up some warnings