Commit graph

1980 commits

Author SHA1 Message Date
Ray Strode
1ca333981d fade-throbber: reshow label after changing message
We should call ply_label_show any time we have a message
to show, so that if the root filesystem gets mounted, we
can try to load the label plugin again.

This should prevent weird situations where the text shows up
invisible unless the user hits escape twice.

http://bugs.freedesktop.org/show_bug.cgi?id=55669
2012-10-24 15:44:10 -04:00
Ray Strode
15171685d8 throbgress: reshow label after changing message
We should call ply_label_show any time we have a message
to show, so that if the root filesystem gets mounted, we
can try to load the label plugin again.

This should prevent weird situations where the text shows up
invisible unless the user hits escape twice.

http://bugs.freedesktop.org/show_bug.cgi?id=55669
2012-10-24 15:43:31 -04:00
Ray Strode
370c46d5d4 two-step: reshow label after changing message
We should call ply_label_show any time we have a message
to show, so that if the root filesystem gets mounted, we
can try to load the label plugin again.

This should prevent weird situations where the text shows up
invisible unless the user hits escape twice.

http://bugs.freedesktop.org/show_bug.cgi?id=55669
2012-10-24 15:40:48 -04:00
Ray Strode
4b7fe818d9 boot-splash: avoid crash if plugin doesn't support system updates
Right now if the user hits escape a couple of times they'll get
a crash, since the details plugin doesn't support system updates.

This commit makes ply_boot_splash_system_update a no-op in the
event the splash doesn't support that feature.
2012-10-24 14:52:24 -04:00
Ray Strode
a91db63f11 throbber: stop throbber when freed
It's possible that a throbber could get freed while animating.
In that case, stop the animation right away, so we don't keep
running the animation timeout on freed memory.
2012-10-24 13:13:28 -04:00
Ray Strode
fcf947fe7c animaton: stop animation when freed
It's possible that an animation could get freed before it finishes.
In that case, finish the animation right away, so we don't keep running the
animation timeout on freed memory.
2012-10-24 13:13:28 -04:00
Richard Hughes
2646c1b812 throbgress: support system-update feature
This commit adds support for the system-update command
by updating the throbgress progress bar.
2012-09-26 12:51:05 -04:00
Colin Walters
db203daca0 main: Quiet compiler warning about free(const char *)
Just make a duplicate variable.
2012-09-25 15:08:29 -04:00
Ray Strode
c4ec174150 plymouthd: set default theme to spinner
It's a nicer default than fade-in.
2012-09-21 15:54:47 -04:00
Ray Strode
67c654a702 text: drop unused defines 2012-09-18 14:34:27 -04:00
Cosimo Cecchi
714a08b0c0 service: start plymouthd unconditionally
It's possible to get in a state where plymouthd is
started in the initrd but not displayed.  In the
event this happens, we'll neglect to ever show it,
since it already has a pid file.

plymouthd is now hardened against getting called
multiple times, so we no longer need to protect it
at the systemd level.

This commit drops the

ConditionPathExists=!@plymouthruntimedir@/pid

line from the systemd service file, so we always
call plymouthd from the main fs and always call
plymouth show-splash.
2012-09-10 17:01:51 -04:00
Cosimo Cecchi
5efdca11bd main: silently succeed if plymouthd is started a second time
Make plymouthd idempotent to multiple calls.  This will make
it easier to integrate with boot scripts that start plymouthd
in the initrd and from the main fs.
2012-09-10 17:00:23 -04:00
Cosimo Cecchi
41395810f2 main: Try to own socket before anything else
The first thing plymouthd should do is try to take control
over its server socket.  If it can't do that, then no plymouth
client will be able to communicate with it.  The socket is
also how we can detect if plymouthd is already running.
2012-09-10 16:59:57 -04:00
Cosimo Cecchi
512e3a7846 main: fix debug message
If plymouthd is already running, then a second invocation will
fail with the message:

could not log bootup

This message is misleading, so fix it.
2012-09-10 16:44:23 -04:00
Ray Strode
b56535a592 configure: bump to 0.8.7 2012-08-20 19:25:52 -04:00
Ray Strode
3ee341d941 systemd: start after udev triggers
This fixes the race where udevadm settle finishes too early.
2012-08-20 14:35:34 -04:00
Alban Browaeys
afed1301a0 revert spurious broken changes in master commit 468c53a
https://bugs.freedesktop.org/show_bug.cgi?id=53440
2012-08-13 10:08:48 -04:00
Anisse Astier
468c53a128 script: Add alignment argument to Image.Text
Enables scripts to choose the text alignment they want with a seventh
argument to Image.Text API:

    new_image = Image.Text("Hello\n"
                           "Plymouth aligned world",
                            1, 1, 1, 1,
                           "DejaVu Bold,Italic 18",
                           "center");

This argument can be ignored, the default being left aligned.
Possible values are "left", "center", or "right".

http://lists.freedesktop.org/archives/plymouth/2012-August/000676.html
2012-08-08 15:52:45 -04:00
Jan Engelhardt
96d8d38698 ply-text-progress-bar: strip quotes if present
The syntax for sysconfig-style files allows for quotes.
2012-07-30 16:14:55 -04:00
Jan Engelhardt
3b7cfc997b build: fix typo in configure.ac
s/reelase/release/
2012-07-30 16:12:14 -04:00
Jan Engelhardt
52198a5f98 ply-terminal: remove pointless casts
The target variables are already of the desired type.
2012-07-30 16:11:02 -04:00
Ray Strode
c8e548d5e4 systemd: don't run read-write service from initrd
the initrd hits the local-fs.target as part of its normal
boot process.  We used to use local-fs.target as a way of
knowing the system / is read-write.  This no longer is a
valid mechanism.

This commit:

1) Stops installing plymouth-read-write service in the initrd
2) Makes it so if it does end up in the initrd it won't be
used

Related to fedora bug 830482
2012-07-26 13:05:22 -04:00
Ray Strode
d7b7e378e6 throbgress: s/TRUE/true/
I introduced a compilation error in Ian's patch when changing it
slightly.
2012-07-23 22:49:24 -04:00
Ian Pilcher
7122700e8b throgress: pull trigger right away if already idle
commit eed536ba54 introduced
a fix for hangs in the two-step plugin. This is a comparable
commit for throbgress.

https://bugzilla.redhat.com/show_bug.cgi?id=704658
2012-07-23 18:05:28 -04:00
Ray Strode
da1dcbb634 configure: bump to 0.8.6.2 2012-07-23 17:38:37 -04:00
Ray Strode
ca2f604c3b populate-initrd: copy service files to initrd
Since we're in charge of the systemd service files now,
we should probably be in charge of copying them to the initrd.
2012-07-23 17:37:03 -04:00
Ray Strode
63737f30c8 systemd: add plymouth-switch-root.service
This service file is needed by systemdized dracut to ensure we properly
transition from the initrd to the root file system
2012-07-23 17:37:03 -04:00
Ray Strode
88c2e7dcf8 systemd: more updates to start service
The dashes next to the semi-colons seem to confuse systemd so drop them.
2012-07-23 17:37:03 -04:00
Frederic Crozat
edde4e0f2b systemd: create missing links various targets 2012-07-21 03:22:37 -04:00
Ray Strode
906477ce30 systemd: make sure plymouth-start never gets killed
systemd tries to bring down the world when going from
the initramfs to /

commit 9e5a276f32 tried
to prevent plymouthd from getting killed by settings
argv[0][0] to @

This isn't seemingly sufficient.  Throw some lines into
the plymouth-start service file that should hopefully help.
2012-07-17 17:12:03 -04:00
Ray Strode
6fac021e66 populate-initrd: put plymouthd in /sbin not /bin
This matches what we do post-boot better
2012-07-17 17:09:43 -04:00
Ray Strode
570f722106 configure: bump to 0.8.6.1 2012-07-10 10:18:13 -04:00
Ray Strode
d7aa800c39 systemd: unfoul up Makefile
The previous systemd commit introduced a file named

systemd-ask-password-plymouth.path.in

The makefile was only looking for .service.in files
when stripping the .in suffix, so it got installed
incorrectly.

This commit fixes up the Makefile.
2012-07-10 10:17:50 -04:00
Ray Strode
5039ab6866 configure: bump to 0.8.6 2012-07-10 10:16:13 -04:00
Ray Strode
76d0db51c2 systemd: add two more files
When plymouth service files were moved from systemd to plymouth
two files got lost in the shuffle.

This commit adds them.

http://bugzilla.freedesktop.org/51573
2012-07-09 11:59:59 -04:00
David Herrmann
72b7e73490 frame-buffer: fix flush_area fast-path
plymouth uses a shadow framebuffer to cache screen contents for
quick compositing.  This shadow framebuffer may or may not have
the same memory layout as the hardware framebuffer.  In cases
where the size and layout of pixels are the same between the shadow
framebuffer and the hardware framebuffer we can memcpy()
the pixels line-by-line to the hardware.  If the width of area being
flushed is the same number of bytes as the width of the hardware buffer,
then we can memcpy() the entire flush area in one call to memcpy.

The check for this latter fast-path has a miscalculation that tests
the number of pixels in the flush area width to number of bytes in the
buffer width. This commit adds the * 4 multiplier to correctly compare
bytes with bytes instead of pixels with bytes.

This commit also adds a sanity check to make sure the byte size of the
hardware framebuffer width is equal to the advertised row stride.
2012-06-25 11:32:56 -04:00
Ray Strode
675553481d systemd: more udev clean ups
The udev trigger calls that are there, are actually
spurious.  udev will coldplug those subsystems at
start up anyway, so doing it explicitly is wrong.

This commit drops those trigger calls.

What does matter is the udevadm settle call. It's
what makes things block until the graphics driver
is loaded.

udevadm settle is a big sledgehammer, though. It blocks
until all the triggered events (even stuff unrelated to
graphics) are finished.

This commit adds a --exit-if-exists argument to udevadm settle,
so it will bail early as soon as the graphics devices
are up.
2012-06-20 11:57:06 -04:00
Ray Strode
b8031858cd systemd: drop weird udev trigger --attr-match=class=0x030000
plymouth-start.service does this sort of hacky
"udevadm trigger" stuff before doing plymouth show-splash,
to ensure plymouth show-splash is called after the
graphcis subsystem is up.

It actually does two calls:

- one call that triggers any pci devices with the class
0x030000 (which is "vga compatible display device")
- another call that triggers the gpu subsystem

The first call is borrowed from dracut:

http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut/dracut;a=commitdiff;h=2c02c8318

and I can't find any historical context on why its needed.  As I
understand things, the latter should be a superset of the former.
Furthermore, the first trigger is missing a --subsystem-match=pci call
so it's matching the "class" attribute in every subsystem, which is slow.

I'm going to drop the first trigger until I start hitting problems
and need to add it back.
2012-06-20 11:19:05 -04:00
Ray Strode
0fd2406991 Revert "systemd: add --subsystem=pci to udevadm trigger call"
This reverts commit cf90d3c7fa.

It was wrong. I misunderstood what Kay told me.
2012-06-20 11:01:07 -04:00
Ray Strode
cf90d3c7fa systemd: add --subsystem=pci to udevadm trigger call
plymouth-start.service does this sort of hacky
"udevadm trigger" call before doing plymouth show-splash,
to ensure plymouth show-splash is called after the
graphcis subsystem is up.  Because this udev trigger call
only passes --subsystem-match calls with no corresponding
--subsystem call, it will trawl through all subsystems in
/sys rather than just the pci subsystem (where all the matches
are guaranteed to be).

This commit adds --subsystem=pci to stop doing that extra work.

All of this will eventually be replaced with plymouthd either
listening for the udev  events itself (or potentially logind,
if logind gains a way to tag a "graphics" capability on a seat).
2012-06-20 10:48:26 -04:00
Ray Strode
57fab85b26 text-progress-bar: Initial os-string to "" when can't be read
get_os_string either returns a string describing the distribution,
or NULL on error.

This NULL later causes problems since we run strlen on it.

This commit makes get_os_string return "" instead of NULL for error
cases.

Spotted by Andreas Henriksson.
2012-06-13 06:58:40 -04:00
Richard Hughes
59e76062da two-step: implement the system-update command
https://bugs.freedesktop.org/show_bug.cgi?id=50876
2012-06-08 18:47:41 -04:00
Richard Hughes
cef67c3f5d main: add a system-update command that can pass update progress to the daemon
https://bugs.freedesktop.org/show_bug.cgi?id=50876
2012-06-08 18:47:41 -04:00
Richard Hughes
0880f04eab main: add a change-mode command to be able to switch the splash mode at runtime
https://bugs.freedesktop.org/show_bug.cgi?id=50847
2012-06-08 18:14:40 -04:00
Richard Hughes
d5ad5d3db8 main: add an 'updates' mode for installing offline updates
https://bugs.freedesktop.org/show_bug.cgi?id=50847
2012-06-08 18:14:39 -04:00
Richard Hughes
02c5967577 libply: remove the unused SPLASH_MODE_SUSPEND and SPLASH_MODE_RESUME
https://bugs.freedesktop.org/show_bug.cgi?id=50847
2012-06-08 18:14:38 -04:00
Richard Hughes
5437420a2e main: show the correct trace message if a message is supressed
https://bugs.freedesktop.org/show_bug.cgi?id=50845
2012-06-08 18:12:14 -04:00
Richard Hughes
e4a1a05e3c throbgress plugin: show messages in the top left corner
https://bugs.freedesktop.org/show_bug.cgi?id=50845
2012-06-08 18:12:13 -04:00
Richard Hughes
3c72dd09f2 space-flares plugin: show messages in the top left corner
https://bugs.freedesktop.org/show_bug.cgi?id=50845
2012-06-08 18:12:11 -04:00
Richard Hughes
b659612249 fade-throbber plugin: show messages in the top left corner
https://bugs.freedesktop.org/show_bug.cgi?id=50845
2012-06-08 18:12:07 -04:00