]> git.ipfire.org Git - thirdparty/plymouth.git/log
thirdparty/plymouth.git
4 years agomain: Redirect stdio/stderr to null when tracing to a file
Hans de Goede [Sat, 27 Mar 2021 12:20:29 +0000 (13:20 +0100)] 
main: Redirect stdio/stderr to null when tracing to a file

When the user has chosen to enable tracing to a file, so that the terminal
output stays the same as when not tracing, we should still redirect
tdio/stderr to /dev/null as we do when not tracing.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
4 years agoply-logger: Add a ply_is_tracing_to_terminal () helper
Hans de Goede [Sat, 27 Mar 2021 12:07:32 +0000 (13:07 +0100)] 
ply-logger: Add a ply_is_tracing_to_terminal () helper

Track if we are logging to the terminal (or to a file) and add
a new ply_is_tracing_to_terminal () helper.

This will be used in follow-up patches to replace some
ply_is_tracing () checks for things which should only be done
when tracing to a terminal (and not when tracing to a file).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
4 years agoMerge branch 'gportay/plymouth-do-not-close-vt-on-show-hide-splash'
Hans de Goede [Sat, 27 Mar 2021 16:59:43 +0000 (17:59 +0100)] 
Merge branch 'gportay/plymouth-do-not-close-vt-on-show-hide-splash'

main: Retain splash on on_show_splash() and on_hide_splash()

https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/127

4 years agomain: Retain splash on on_show_splash() and on_hide_splash()
Gaël PORTAY [Fri, 18 Dec 2020 11:24:09 +0000 (06:24 -0500)] 
main: Retain splash on on_show_splash() and on_hide_splash()

The function ply_device_manager_activate_keyboard() asserts for positive
file-descriptors.

However, the daemon aborts after the splash screen is shown again after
being hidden; the virtual terminal file-descriptor is -1 (i.e. plymouth
show-splash; plymouth hide-splash; plymouth-show-spash).

The three helpers on_show_splash(), on_hide_splash() and on_quit() share
the same function dump_details_and_quit_splash().

This function calls on_hide() and on_quit(); the later deallocates and
closes the virtual terminal if the flag should_retain_splash is not set.
This is always the case on both on_show_splash() and on_hide_splash().
Only on_quit() has the ability to set that flag. Therefore, the virtual
terminal is always deallocated and closed on on_hide_splash (), and in a
some condition on on_show_splash().

The virtual terminal is allocated by ply_device_manager_new() in the
function main() and it is deallocated in the function quit_program()
(i.e. at the begining and at the end of the daemon). The function
quit_program() is called either by on_quit() or by on_boot_splash_idle()
(on quit only, not on deactivate). The two helpers on_show_splash() and
on_hide_splash() *MUST NOT* dealocates and closes the virtual terminal.

This sets the flag should_retain_splash in both helpers on_show_splash()
and on_hide_splash() to prevent them from deallocation the virtual
terminal.

Fixes:

01:24:16.983 ply-event-loop.c:732:ply_event_loop_watch_fd                  : fd: 9
01:24:16.994 ply-boot-server.c:393:print_connection_process_identity       : connection is from pid 8474 (plymouth show-splash) with parent pid 2137 (-ash)
01:24:16.994 ply-boot-server.c:492:ply_boot_connection_on_request          : got show splash request
01:24:16.994 main.c:832:plymouth_should_ignore_show_splash_calls           : checking if plymouth should be running
01:24:16.994 main.c:933:on_show_splash                                     : at least one display already available, so loading splash
01:24:16.994 main.c:864:plymouth_should_show_default_splash                : checking if plymouth should show default splash
01:24:16.994 main.c:892:plymouth_should_show_default_splash                : using default splash because kernel command line has option "splash"
01:24:16.994 main.c:445:show_default_splash                                : Showing splash screen
01:24:16.994 main.c:459:show_default_splash                                : Trying distribution default splash
01:24:16.994 main.c:1692:load_theme                                        : Loading boot splash theme '/usr/share/plymouth/themes/spinner/spinner.plymouth'
01:24:16.995 ply-key-file.c:175:ply_key_file_load_group                    : trying to load group Plymouth Theme
01:24:16.995 ply-key-file.c:175:ply_key_file_load_group                    : trying to load group two-step
01:24:16.995 ply-key-file.c:175:ply_key_file_load_group                    : trying to load group boot-up
01:24:16.995 ply-key-file.c:175:ply_key_file_load_group                    : trying to load group shutdown
01:24:16.995 ply-key-file.c:175:ply_key_file_load_group                    : trying to load group reboot
01:24:16.995 ply-key-file.c:175:ply_key_file_load_group                    : trying to load group updates
01:24:16.995 ply-key-file.c:175:ply_key_file_load_group                    : trying to load group system-upgrade
01:24:16.996 ply-key-file.c:175:ply_key_file_load_group                    : trying to load group firmware-upgrade
01:24:16.996 ply-key-file.c:262:ply_key_file_load_groups                   : key file has no more groups
01:24:16.996 plugin.c:1030:create_plugin                                   : Using '/usr/share/plymouth/themes/spinner' as working directory
01:24:16.996 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'ProgressBarHorizontalAlignment'
01:24:16.996 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'ProgressBarVerticalAlignment'
01:24:16.996 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'ProgressBarWidth'
01:24:16.996 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'ProgressBarHeight'
01:24:16.996 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'SuppressMessages'
01:24:16.997 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'ProgressBarShowPercentComplete'
01:24:16.997 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'UseProgressBar'
01:24:16.997 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'UseFirmwareBackground'
01:24:16.997 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'Title'
01:24:16.997 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'SubTitle'
01:24:16.997 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'SuppressMessages'
01:24:16.997 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'ProgressBarShowPercentComplete'
01:24:16.997 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'UseProgressBar'
01:24:16.997 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'UseFirmwareBackground'
01:24:17.331 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'Title'
01:24:17.331 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'SubTitle'
01:24:17.331 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'SuppressMessages'
01:24:17.331 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'ProgressBarShowPercentComplete'
01:24:17.331 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'UseProgressBar'
01:24:17.331 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'UseFirmwareBackground'
01:24:17.331 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'Title'
01:24:17.331 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'SubTitle'
01:24:17.331 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'UseFirmwareBackground'
01:24:17.331 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'UseFirmwareBackground'
01:24:17.331 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'UseFirmwareBackground'
01:24:17.332 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'DialogClearsFirmwareBackground'
01:24:17.332 ply-key-file.c:359:ply_key_file_get_raw_value                 : key file does not have entry for key 'ProgressFunction'
01:24:17.332 main.c:1708:load_theme                                        : attaching plugin to event loop
01:24:17.332 main.c:1711:load_theme                                        : attaching progress to plugin
01:24:17.332 ply-boot-splash.c:138:ply_boot_splash_add_pixel_display       : adding 1920x1080 pixel display
01:24:17.332 plugin.c:1563:add_pixel_display                               : adding pixel display to plugin
01:24:17.332 ply-device-manager.c:1028:ply_device_manager_activate_renderer: activating renderers
01:24:17.332 plugin.c:918:activate                                         : taking master and scanning out
01:24:17.332 ply-terminal.c:242:ply_terminal_unlock                        : couldn't unlock terminal settings: Bad file descriptor
01:24:17.332 plugin.c:693:ply_renderer_head_set_scan_out_buffer            : Setting scan out buffer of 1920x1080 head to our buffer
01:24:17.333 plugin.c:1693:flush_head                                      : Needed to reset scan out buffer on 1920x1080 renderer head
01:24:17.334 ply-boot-splash.c:486:ply_boot_splash_show                    : showing splash screen
01:24:17.334 plugin.c:1621:show_splash_screen                              : loading lock image
01:24:17.335 plugin.c:1626:show_splash_screen                              : loading box image
01:24:17.335 plugin.c:1635:show_splash_screen                              : loading corner image
01:24:17.335 plugin.c:1644:show_splash_screen                              : loading header image
01:24:17.335 plugin.c:1653:show_splash_screen                              : loading background tile image
01:24:17.335 plugin.c:1681:show_splash_screen                              : loading watermark image
01:24:17.335 plugin.c:615:view_load                                        : loading entry
01:24:17.340 ply-keymap-icon.c:158:ply_keymap_icon_load                    : loading '/usr/share/plymouth/themes/spinner/keyboard.png': success
01:24:17.495 ply-keymap-icon.c:165:ply_keymap_icon_load                    : loading '/usr/share/plymouth/themes/spinner/keymap-render.png': success
01:24:17.496 plugin.c:625:view_load                                        : loading progress animation
01:24:17.497 ply-progress-animation.c:373:ply_progress_animation_add_frames: could not find any progress animation frames
01:24:17.497 plugin.c:627:view_load                                        : optional progress animation wouldn't load
01:24:17.498 plugin.c:636:view_load                                        : loading throbber
01:24:17.531 plugin.c:1697:show_splash_screen                              : starting boot animations
01:24:17.531 plugin.c:1336:start_progress_animation                        : starting animation
01:24:17.587 ply-terminal.c:242:ply_terminal_unlock                        : couldn't unlock terminal settings: Bad file descriptor
01:24:17.599 ply-terminal.c:242:ply_terminal_unlock                        : couldn't unlock terminal settings: Bad file descriptor
01:24:17.599 ply-device-manager.c:1061:ply_device_manager_activate_keyboard: activating keyboards
Assertion failed: fd >= 0 (ply-event-loop.c: ply_event_loop_watch_fd: 732)
Aborted

Signed-off-by: Gaël PORTAY <gael.portay@collabora.com>
4 years agoMerge branch 'gportay/plymouth-fix-another-bad-assertion'
Hans de Goede [Tue, 23 Mar 2021 10:00:33 +0000 (11:00 +0100)] 
Merge branch 'gportay/plymouth-fix-another-bad-assertion'

ply-device-manager: Fix bad assertion

https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/126

4 years agoply-device-manager: Fix bad assertion
Gaël PORTAY [Fri, 18 Dec 2020 09:19:28 +0000 (04:19 -0500)] 
ply-device-manager: Fix bad assertion

The function watch_for_udev_events() asserts that udev_monitor cannot be
NULL.

This situation is actually possible and it is easy reproductible by
deactivating and reactivating the splash then.

This commit removes that assertion which is not true. Furthermore, the
function allocates a monitor if it is NULL, right after that assertion.

Fixes:

00:12:42.405 ply-boot-server.c:393:print_connection_process_identity       : connection is from pid 2227 (plymouth reactivate) with parent pid 2137 (-ash)
00:12:42.405 ply-boot-server.c:521:ply_boot_connection_on_request          : got reactivate request
00:12:42.405 ply-terminal.c:637:ply_terminal_open                          : trying to open terminal '/dev/tty1'
00:12:42.405 ply-terminal.c:430:ply_terminal_refresh_geometry              : looking up terminal text geometry
00:12:42.405 ply-terminal.c:442:ply_terminal_refresh_geometry              : terminal is now 240x67 text cells
00:12:42.405 ply-device-manager.c:1062:ply_device_manager_activate_keyboard: activating keyboards
00:12:42.405 ply-device-manager.c:1114:ply_device_manager_unpause          : ply_device_manager_unpause() called, resuming watching for udev events
00:12:42.405 ply-device-manager.c:1118:ply_device_manager_unpause          : ply_device_manager_unpause(): timeout elapsed while paused, looking for udev devices
00:12:42.406 ply-device-manager.c:909:create_devices_from_udev             : Timeout elapsed, looking for devices from udev
00:12:42.406 ply-device-manager.c:331:create_devices_for_subsystem         : creating objects for drm devices
00:12:42.407 ply-device-manager.c:351:create_devices_for_subsystem         : found device /sys/devices/platform/soc/soc:gpu/drm/card0
00:12:42.407 ply-device-manager.c:358:create_devices_for_subsystem         : device is initialized
00:12:42.408 ply-device-manager.c:367:create_devices_for_subsystem         : found node /dev/dri/card0
00:12:42.408 ply-device-manager.c:275:create_devices_for_udev_device       : device subsystem is drm
00:12:42.408 ply-device-manager.c:278:create_devices_for_udev_device       : found DRM device /dev/dri/card0
00:12:42.408 ply-device-manager.c:774:create_devices_for_terminal_and_rende: ignoring device /dev/dri/card0 since it's already managed
00:12:42.408 ply-device-manager.c:351:create_devices_for_subsystem         : found device /sys/devices/platform/soc/soc:gpu/drm/card0/card0-Composite-1
00:12:42.408 ply-device-manager.c:358:create_devices_for_subsystem         : device is initialized
00:12:42.409 ply-device-manager.c:351:create_devices_for_subsystem         : found device /sys/devices/platform/soc/soc:gpu/drm/card0/card0-HDMI-A-1
00:12:42.409 ply-device-manager.c:358:create_devices_for_subsystem         : device is initialized
00:12:42.409 ply-device-manager.c:351:create_devices_for_subsystem         : found device /sys/devices/platform/soc/soc:gpu/drm/card0/card0-Writeback-1
00:12:42.410 ply-device-manager.c:358:create_devices_for_subsystem         : device is initialized
00:12:42.410 ply-device-manager.c:351:create_devices_for_subsystem         : found device /sys/devices/platform/soc/soc:gpu/drm/renderD128
00:12:42.410 ply-device-manager.c:358:create_devices_for_subsystem         : device is initialized
00:12:42.410 ply-device-manager.c:371:create_devices_for_subsystem         : device doesn't have a devices tag
00:12:42.410 ply-device-manager.c:331:create_devices_for_subsystem         : creating objects for frame buffer devices
00:12:42.411 ply-device-manager.c:351:create_devices_for_subsystem         : found device /sys/devices/platform/soc/soc:gpu/graphics/fb0
00:12:42.412 ply-device-manager.c:358:create_devices_for_subsystem         : device is initialized
00:12:42.412 ply-device-manager.c:367:create_devices_for_subsystem         : found node /dev/fb0
00:12:42.412 ply-device-manager.c:275:create_devices_for_udev_device       : device subsystem is graphics
00:12:42.412 ply-device-manager.c:281:create_devices_for_udev_device       : found frame buffer device /dev/fb0
00:12:42.412 ply-device-manager.c:231:fb_device_has_drm_device             : trying to find associated drm node for fb device (path: platform-soc:gpu)
00:12:42.418 ply-device-manager.c:285:create_devices_for_udev_device       : ignoring, since there's a DRM device associated with it
00:12:42.418 ply-device-manager.c:351:create_devices_for_subsystem         : found device /sys/devices/virtual/graphics/fbcon
00:12:42.418 ply-device-manager.c:374:create_devices_for_subsystem         : it's not initialized
Assertion failed: manager->udev_monitor == NULL (ply-device-manager.c: watch_for_udev_events: 461)
Aborted

Signed-off-by: Gaël PORTAY <gael.portay@collabora.com>
4 years agoMerge branch 'gportay/plymouth-two-step-link-libintl-if-nls'
Hans de Goede [Tue, 23 Mar 2021 09:51:40 +0000 (10:51 +0100)] 
Merge branch 'gportay/plymouth-two-step-link-libintl-if-nls'

two-step: Links against libintl.so if LNS

https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/128

4 years agotwo-step: Links against libintl.so if LNS
Gaël PORTAY [Fri, 18 Dec 2020 17:12:54 +0000 (12:12 -0500)] 
two-step: Links against libintl.so if LNS

The plugin two-step cannot be loaded on a system based on the musl libc
library.

01:25:00.427 ply-utils.c:536:ply_open_module                               : Could not load module "/usr/lib/plymouth/two-step.so": Error relocating /usr/lib/plymouth/two-step.so: libintl_dgettext: symbol not found

The utilities ldd and objdump reports the missing symbol:

# ldd /usr/lib/plymouth/two-step.so
/lib/ld-musl-aarch64.so.1 (0x7fad6c0000)
libply-splash-graphics.so.5 => /usr/lib/libply-splash-graphics.so.5 (0x7fad683000)
libply-splash-core.so.5 => /lib/libply-splash-core.so.5 (0x7fad654000)
libply.so.5 => /lib/libply.so.5 (0x7fad629000)
libc.musl-aarch64.so.1 => /lib/ld-musl-aarch64.so.1 (0x7fad6c0000)
libpng16.so.16 => /usr/lib/libpng16.so.16 (0x7fad5ea000)
libudev.so.1 => /lib/libudev.so.1 (0x7fad5b7000)
libz.so.1 => /lib/libz.so.1 (0x7fad590000)
Error relocating /usr/lib/plymouth/two-step.so: libintl_dgettext: symbol not found

# objdump -T /usr/lib/plymouth/two-step.so | grep gettext
0000000000000000      D  *UND* 0000000000000000 libintl_dgettext

The missing symbol is archived to the library libintl.so (running
plymouthd with the environment LD_PRELOAD=/usr/lib/libintl.so fixes the
issue).

# objdump -T /usr/lib/libintl.so | grep gettext
0000000000005aa0 g    DF .text 0000000000000008 libintl_dngettext
0000000000007134 g    DF .text 0000000000000004 dgettext
0000000000002300 g    DF .text 0000000000000014 libintl_dcgettext
0000000000005aa8 g    DF .text 0000000000000018 libintl_ngettext
0000000000007130 g    DF .text 0000000000000004 gettext
0000000000007140 g    DF .text 0000000000000004 dngettext
0000000000002314 g    DF .text 0000000000000008 libintl_dgettext
000000000000231c g    DF .text 0000000000000010 libintl_gettext
0000000000007138 g    DF .text 0000000000000004 dcgettext
000000000000713c g    DF .text 0000000000000004 ngettext
0000000000005a90 g    DF .text 0000000000000010 libintl_dcngettext
0000000000007144 g    DF .text 0000000000000004 dcngettext

The story is much complicated, however, the autotools does the magic.

The GNU gettext FAQ[1] says explicitly that if the program's final link
command does not contain the option -lintl...

> In this case it's likely a bug in the package you are building: The
package's Makefiles should make sure that “-lintl” is used where needed.

Autoconf sets both variables LIBINTL and LTLIBINTL with the appropriate
link options if NLS is being used. These variables are left empty if the
option --disable-nls is set at the configure step.

LIBINTL = /usr/lib/libintl.so
LTLIBINTL = -L/usr/lib -lintl

This links the plugin two-step to libintl by adding the libtool variable
LTLIBINTL to the list of the plugin's libraries to link with.

Note: The plugin two-step loads fine on a system based on the glibc
library (without this commit). The plugin uses the intermediate symbol
dcgettext which is implemented by the glibc instead of the remapped
symbol libintl_gettext which is implemented by gettext in libintl.

On glibc:

# objdump -T /usr/lib/plymouth/two-step.so | grep gettext
0000000000000000      DF *UND* 0000000000000000  GLIBC_2.2.5 dcgettext

$ objdump -T /usr/lib/libc.so.6 | grep gettext
0000000000037ec0  w   DF .text 0000000000000014  GLIBC_2.2.5 dcngettext
0000000000036630  w   DF .text 0000000000000013  GLIBC_2.2.5 dcgettext
0000000000037ef0  w   DF .text 000000000000001a  GLIBC_2.2.5 ngettext
0000000000036660  w   DF .text 0000000000000013  GLIBC_2.2.5 gettext
0000000000036630 g    DF .text 0000000000000013  GLIBC_2.2.5 __dcgettext
0000000000036650  w   DF .text 000000000000000e  GLIBC_2.2.5 dgettext
0000000000036650 g    DF .text 000000000000000e  GLIBC_2.2.5 __dgettext
0000000000037ee0  w   DF .text 000000000000000f  GLIBC_2.2.5 dngettext

On musl:

# objdump -T /usr/lib/plymouth/two-step.so | grep gettext
0000000000000000      D  *UND* 0000000000000000 libintl_dgettext

# objdump -T /lib/libc.musl-aarch64.so.1 | grep gettext
0000000000025724 g    DF .text 0000000000000010 dcgettext
0000000000027828 g    DF .text 0000000000000014 ngettext
0000000000025734 g    DF .text 0000000000000008 dngettext
000000000002573c g    DF .text 0000000000000010 dgettext
000000000002781c g    DF .text 000000000000000c gettext
0000000000025294 g    DF .text 0000000000000490 dcngettext

# objdump -T /usr/lib/libintl.so | grep libintl_dgettext
0000000000002314 g    DF .text 0000000000000008 libintl_dgettext

However, this commit changes nothing for system based on glibc as the
magic of the Autoconf leaves the LIBINTL and LTLIBINTL empty even if the
NLS is being used.

[1]: https://www.gnu.org/software/gettext/FAQ.html#integrating_undefined

Signed-off-by: Gaël PORTAY <gael.portay@collabora.com>
4 years agoMerge branch 'weblate/plymouth-weblate-plymouth-master'
Hans de Goede [Tue, 23 Mar 2021 09:44:02 +0000 (10:44 +0100)] 
Merge branch 'weblate/plymouth-weblate-plymouth-master'

4 years agoAdded translation using Weblate (Sinhala)
Hela Basa [Wed, 3 Mar 2021 20:47:34 +0000 (21:47 +0100)] 
Added translation using Weblate (Sinhala)

Co-authored-by: Hela Basa <r45xveza@pm.me>
4 years agoTranslated using Weblate (Serbian)
Марко Костић (Marko Kostić) [Wed, 3 Mar 2021 20:47:33 +0000 (21:47 +0100)] 
Translated using Weblate (Serbian)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Марко Костић (Marko Kostić) <marko.m.kostic@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/sr/
Translation: plymouth/master

4 years agoTranslated using Weblate (Dutch)
Geert Warrink [Wed, 3 Mar 2021 20:47:33 +0000 (21:47 +0100)] 
Translated using Weblate (Dutch)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Geert Warrink <geert.warrink@onsnet.nu>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/nl/
Translation: plymouth/master

4 years agoTranslated using Weblate (Basque)
Mikel Olasagasti [Wed, 3 Mar 2021 20:47:33 +0000 (21:47 +0100)] 
Translated using Weblate (Basque)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Mikel Olasagasti <mikel@olasagasti.info>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/eu/
Translation: plymouth/master

4 years agoTranslated using Weblate (Russian)
Igor Gorbounov [Wed, 3 Mar 2021 20:47:33 +0000 (21:47 +0100)] 
Translated using Weblate (Russian)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Igor Gorbounov <igor.gorbounov@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/ru/
Translation: plymouth/master

4 years agoTranslated using Weblate (Hungarian)
Balázs Meskó [Wed, 3 Mar 2021 20:47:32 +0000 (21:47 +0100)] 
Translated using Weblate (Hungarian)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Balázs Meskó <meskobalazs@mailbox.org>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/hu/
Translation: plymouth/master

4 years agoTranslated using Weblate (Hebrew)
Yaron Shahrabani [Wed, 3 Mar 2021 20:47:32 +0000 (21:47 +0100)] 
Translated using Weblate (Hebrew)

Currently translated at 100.0% (7 of 7 strings)

Added translation using Weblate (Hebrew)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/he/
Translation: plymouth/master

4 years agoTranslated using Weblate (Chinese (Simplified) (zh_CN))
玉堂白鹤 [Wed, 3 Mar 2021 20:47:32 +0000 (21:47 +0100)] 
Translated using Weblate (Chinese (Simplified) (zh_CN))

Currently translated at 85.7% (6 of 7 strings)

Co-authored-by: 玉堂白鹤 <yjwork@qq.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/zh_CN/
Translation: plymouth/master

4 years agoTranslated using Weblate (Esperanto)
Carmen Bianca Bakker [Wed, 3 Mar 2021 20:47:32 +0000 (21:47 +0100)] 
Translated using Weblate (Esperanto)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Carmen Bianca Bakker <carmen@carmenbianca.eu>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/eo/
Translation: plymouth/master

4 years agoTranslated using Weblate (Malay)
Robbi Nespu [Wed, 3 Mar 2021 20:47:31 +0000 (21:47 +0100)] 
Translated using Weblate (Malay)

Currently translated at 100.0% (7 of 7 strings)

Translated using Weblate (Malay)

Currently translated at 100.0% (7 of 7 strings)

Added translation using Weblate (Malay)

Co-authored-by: Robbi Nespu <robbinespu@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/ms/
Translation: plymouth/master

4 years agoTranslated using Weblate (Punjabi)
A S Alam [Wed, 3 Mar 2021 20:47:31 +0000 (21:47 +0100)] 
Translated using Weblate (Punjabi)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: A S Alam <amanpreet.alam@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/pa/
Translation: plymouth/master

4 years agoTranslated using Weblate (Indonesian)
Andika Triwidada [Wed, 3 Mar 2021 20:47:31 +0000 (21:47 +0100)] 
Translated using Weblate (Indonesian)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Andika Triwidada <andika@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/id/
Translation: plymouth/master

4 years agoTranslated using Weblate (Danish)
scootergrisen [Wed, 3 Mar 2021 20:47:30 +0000 (21:47 +0100)] 
Translated using Weblate (Danish)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: scootergrisen <scootergrisen@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/da/
Translation: plymouth/master

4 years agoTranslated using Weblate (French)
Julien Humbert [Wed, 3 Mar 2021 20:47:30 +0000 (21:47 +0100)] 
Translated using Weblate (French)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Julien Humbert <julroy67@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/fr/
Translation: plymouth/master

4 years agoTranslated using Weblate (Swedish)
Göran Uddeborg [Wed, 3 Mar 2021 20:47:30 +0000 (21:47 +0100)] 
Translated using Weblate (Swedish)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Göran Uddeborg <goeran@uddeborg.se>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/sv/
Translation: plymouth/master

4 years agoTranslated using Weblate (Italian)
Milo Casagrande [Wed, 3 Mar 2021 20:47:30 +0000 (21:47 +0100)] 
Translated using Weblate (Italian)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Milo Casagrande <milo@milo.name>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/it/
Translation: plymouth/master

4 years agoTranslated using Weblate (French)
Jean-Baptiste Holcroft [Wed, 3 Mar 2021 20:47:29 +0000 (21:47 +0100)] 
Translated using Weblate (French)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Jean-Baptiste Holcroft <jean-baptiste@holcroft.fr>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/fr/
Translation: plymouth/master

4 years agoTranslated using Weblate (German)
Tobias Weise [Wed, 3 Mar 2021 20:47:29 +0000 (21:47 +0100)] 
Translated using Weblate (German)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Tobias Weise <tobias.weise@web.de>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/de/
Translation: plymouth/master

4 years agoMerge branch 'fix-compile-gettext-mismatch' into 'master'
Ray Strode [Tue, 9 Mar 2021 12:16:39 +0000 (12:16 +0000)] 
Merge branch 'fix-compile-gettext-mismatch' into 'master'

Fix compilation when system has mismatching gettext

See merge request plymouth/plymouth!135

4 years agoThe use of AM_GNU_GETTEXT_VERSION in configure.ac instructs autopoint to
Wolfgang Haupt [Wed, 3 Mar 2021 15:06:37 +0000 (16:06 +0100)] 
The use of AM_GNU_GETTEXT_VERSION in configure.ac instructs autopoint to
copy po/Makefile.in.in from the exact gettext version. It is fine if the
version of gettext installed on the system has the same minor version
number with the requested version, but it fails if you have a newer
version of gettext because of the mismatch between autoconf macros and
Makefile.in.in.

  *** error: gettext infrastructure mismatch: using a Makefile.in.in
  from gettext version 0.19 but the autoconf macros are from gettext
  version 0.20

Instead of specifying the exact version with AM_GNU_GETTEXT_VERSION, we
can use AM_GNU_GETTEXT_REQUIRE_VERSION to ask autopoint to simply use
the gettext version installed on the system to prevent the mismatch.

4 years agoMerge branch 'drm_probe_speedup' into 'master'
Hans de Goede [Tue, 9 Mar 2021 11:25:31 +0000 (11:25 +0000)] 
Merge branch 'drm_probe_speedup' into 'master'

Speed up DRM-connector probing

See merge request plymouth/plymouth!133

4 years agoply-device-manager: Speed up DRM-connector probing
Hans de Goede [Fri, 5 Mar 2021 11:25:36 +0000 (12:25 +0100)] 
ply-device-manager: Speed up DRM-connector probing

During the initial monitor/connector enumeration on boot the kernel
fires a large number of change events. If we process these 1 by 1,
we spend a lot of time probing the DRM-connectors. So instead we
collect them all and then coalescence them so that if there are multiple
change events pending for a single card, we only re-probe the card once.

Here are some numbers of the probing times before / after this patch:

1. Lenovo X1 carbon 8th gen connected to a Lenovo Thunderbolt dock gen 2
   with 2 FullHD monitors connected:
Before: add event card0: 00:00:02.543 last change complete at: 00:00:04.250,
   12 change events processed, 13 probes done!
After: add event card0: 00:00:02.548 last change complete at: 00:00:04.049
   1 change event processed, 2 probes done!

2. Intel skylake CPU + iGPU based desktop with 2 FullHD monitors connected:
Before: add event card0: 00:00:02.394 last change complete at: 00:00:05.024,
   5 change events processed, 6 probes done!
After: add event card0: 00:00:02.343 last change complete at: 00:00:03.744,
   1 change event processed, 2 probes done!

In the Thunderbolt dock case we probe the DRM-connectors 2 times instead
of 13 times after this change. This does not lead to a big speed-up though
because the dock caches the monitors EDID info and the DP aux channel to
the dock is quite fast.

In the desktop case we only reduce the amount of probes from 6 to 2, so
less then in the Thunderbolt dock case, but since we don't have the EDID
caching happening there this does reduce the time which it takes to probe
the DRM-connectors from 2.6 seconds to 1.4 seconds which is a huge
improvement.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
4 years agoply-device-manager: add a verify_add_or_change() helper
Hans de Goede [Fri, 5 Mar 2021 11:20:52 +0000 (12:20 +0100)] 
ply-device-manager: add a verify_add_or_change() helper

Add a verify_add_or_change() helper function. This is a preparation
patch for coalescing multiple change events on the same card together
to speed up probing of the drm connectors.

Note this causes the action == "add" || action == "change" check to
be done twice. This double checking goes away in the next patch.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
4 years agoply-device-manager: push udev_device_get_devnode call up into on_udev_event
Hans de Goede [Mon, 28 Sep 2020 13:04:11 +0000 (15:04 +0200)] 
ply-device-manager: push udev_device_get_devnode call up into on_udev_event

on_udev_event calls either on_drm_udev_add_or_change; or
free_devices_for_udev_device. Both of these functions call
udev_device_get_devnode and are a no-op if that returns NULL.

Cleanup things by directly calling udev_device_get_devnode from
on_udev_event and exit eary if the udev_device does not have
an associated devnode.

With the udev_device_get_devnode call handled by on_udev_event,
all that is left of free_devices_for_udev_device is a single
line calling free_devices_from_device_path. So drop
free_devices_for_udev_device and directly call
free_devices_from_device_path from on_udev_event.

Note this also fixes a theoretical udev_device reference leak
in the action == NULL early-exit path. In practice action never
is NULL, so this was not really a problem. But in the refactored
code we now also do the early-exit on dev_path == NULL which does
actually happen.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
4 years agotwo-step: Fix unused variable compiler warning
Hans de Goede [Sat, 6 Mar 2021 09:54:31 +0000 (10:54 +0100)] 
two-step: Fix unused variable compiler warning

Fix the following:

plugin.c: In function ‘show_splash_screen’:
plugin.c:1645:13: warning: unused variable ‘i’ [-Wunused-variable]
 1645 |         int i;
      |

Compiler warning which I introduced in:

https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/132/

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
4 years agoMerge branch 'remove_new_object_sh' into 'master'
Hans de Goede [Sat, 6 Mar 2021 09:53:53 +0000 (09:53 +0000)] 
Merge branch 'remove_new_object_sh' into 'master'

scripts: Remove new-object.sh

See merge request plymouth/plymouth!134

4 years agoscripts: Remove new-object.sh
Hans de Goede [Sat, 6 Mar 2021 09:35:01 +0000 (10:35 +0100)] 
scripts: Remove new-object.sh

Remove new-object.sh. As discussed in:

https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/113

It is not used (and may very well have never been used?).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
4 years agoMerge branch 'bgrt_fallback_image_fixes' into 'master'
Hans de Goede [Fri, 5 Mar 2021 14:51:55 +0000 (14:51 +0000)] 
Merge branch 'bgrt_fallback_image_fixes' into 'master'

BGRT fallback image fixes

See merge request plymouth/plymouth!132

4 years agotwo-step: Only create background_bgrt_fallback_image if use_firmware_background is set
Hans de Goede [Fri, 5 Mar 2021 11:02:21 +0000 (12:02 +0100)] 
two-step: Only create background_bgrt_fallback_image if use_firmware_background is set

We should not create (and try to use) the background_bgrt_fallback_image
when the config file has not requested use of the firmware-background.

Otherwise we will end up using bgrt-fallback.png if present even when the
config file has not requested usage of the firmware-background.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
4 years agotwo-step: Always load the BGRT fallback image
Hans de Goede [Fri, 5 Mar 2021 10:57:53 +0000 (11:57 +0100)] 
two-step: Always load the BGRT fallback image

view_set_bgrt_background() can fail even if the BGRT image was loaded
successfully. So we may need the fallback image even though the
BGRT image was loaded successfully.

This commit also fixes plugin->background_bgrt_fallback_image not being
free-ed and set to NULL when loading the fallback image fails.

Note this also drops the clearing of the use_firmware_background flagss
when we fail to load both the BGRT and the fallback images. Clearing
these flags is not necessary. They are only checked if
plugin->background_bgrt_image or plugin->background_bgrt_fallback_image
are non NULL; and if the loading of both images failed then both
are NULL.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
4 years agoMerge branch 'fix-bgrt-fallback' into 'master'
Hans de Goede [Fri, 5 Mar 2021 10:41:06 +0000 (10:41 +0000)] 
Merge branch 'fix-bgrt-fallback' into 'master'

Fix BGRT fallback rendering

Closes #142

See merge request plymouth/plymouth!131

4 years agoFix BGRT fallback rendering
Adrian Vovk [Tue, 2 Mar 2021 21:13:23 +0000 (16:13 -0500)] 
Fix BGRT fallback rendering

4 years agoMerge branch 'kill-mode-change' into 'master'
Ray Strode [Mon, 22 Feb 2021 12:49:19 +0000 (12:49 +0000)] 
Merge branch 'kill-mode-change' into 'master'

systemd: switch to KillMode=mixed

See merge request plymouth/plymouth!122

4 years agosystemd: switch to KillMode=mixed
Ray Strode [Tue, 25 Aug 2020 14:49:11 +0000 (10:49 -0400)] 
systemd: switch to KillMode=mixed

KillMode=none is deprecated, so we need to stop using it.

For now, use `KillMode=mixed` and `IgnoreOnIsolate=true` instead.

In the future, we should change plymouth to be able to exit and
start again without restarting the active animation, but that's
going to require some effort.

https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/123

4 years agoMerge branch 'use-fallback-image-if-bgrt-is-not-supported' into 'master'
Ray Strode [Mon, 7 Dec 2020 22:39:07 +0000 (22:39 +0000)] 
Merge branch 'use-fallback-image-if-bgrt-is-not-supported' into 'master'

Use fallback image if BGRT is not supported

See merge request plymouth/plymouth!125

4 years agoUse fallback image if BGRT is not supported
Marius Meisenzahl [Mon, 7 Dec 2020 22:39:07 +0000 (22:39 +0000)] 
Use fallback image if BGRT is not supported

5 years agoclient: Don't wait forever for a ping reply
Brian Murray [Mon, 26 Oct 2020 19:13:20 +0000 (20:13 +0100)] 
client: Don't wait forever for a ping reply

In the event that plymouthd is not responding the plymouth client will
wait forever when sending a ping to the daemon.

This commit introduces a timeout of 30 seconds to better cope with a
hung plymouthd process.

(Some small changes to original patch by Ray Strode)

https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/130

5 years agoRevert "Don't wait forever for a ping reply."
Ray Strode [Wed, 28 Oct 2020 14:00:22 +0000 (14:00 +0000)] 
Revert "Don't wait forever for a ping reply."

This reverts commit 55902ceddef767907e744df72f0d0c93b8f3dcb0

5 years agoMerge branch 'timeout-on-pings' into 'master'
Ray Strode [Mon, 26 Oct 2020 19:54:16 +0000 (19:54 +0000)] 
Merge branch 'timeout-on-pings' into 'master'

Don't wait forever for a ping reply.

See merge request plymouth/plymouth!124

5 years agoDon't wait forever for a ping reply.
Brian Murray [Mon, 26 Oct 2020 19:13:20 +0000 (20:13 +0100)] 
Don't wait forever for a ping reply.

In the event that plymouthd is not responding the plymouth client will wait
forever when sending a ping to the daemon. Instead of waiting forever timeout
after a while.

https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/130

5 years agoTranslated using Weblate (Portuguese (Brazil))
Rafael Fontenelle [Fri, 25 Sep 2020 11:29:46 +0000 (13:29 +0200)] 
Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/pt_BR/
Translation: plymouth/master

5 years agoTranslated using Weblate (Chinese (Simplified))
Charles Lee [Fri, 25 Sep 2020 11:29:43 +0000 (13:29 +0200)] 
Translated using Weblate (Chinese (Simplified))

Currently translated at 71.4% (5 of 7 strings)

Co-authored-by: Charles Lee <lchopn@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/zh_CN/
Translation: plymouth/master

5 years agoTranslated using Weblate (Ukrainian)
Yuri Chornoivan [Fri, 25 Sep 2020 11:29:39 +0000 (13:29 +0200)] 
Translated using Weblate (Ukrainian)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Yuri Chornoivan <yurchor@ukr.net>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/uk/
Translation: plymouth/master

5 years agoTranslated using Weblate (Polish)
Piotr Drąg [Fri, 25 Sep 2020 11:29:36 +0000 (13:29 +0200)] 
Translated using Weblate (Polish)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Piotr Drąg <piotrdrag@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/pl/
Translation: plymouth/master

5 years agoTranslated using Weblate (Turkish)
Oğuz Ersen [Fri, 25 Sep 2020 11:29:33 +0000 (13:29 +0200)] 
Translated using Weblate (Turkish)

Currently translated at 100.0% (5 of 5 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/tr/
Translation: plymouth/master

5 years agoMerge remote-tracking branch 'weblate/master' into master
Hans de Goede [Mon, 21 Sep 2020 13:30:28 +0000 (15:30 +0200)] 
Merge remote-tracking branch 'weblate/master' into master

Merge weblate updated/generated .po files from:
https://translate.fedoraproject.org/projects/plymouth/master/
into master

5 years agoUpdate translation files
Weblate [Sun, 20 Sep 2020 12:53:12 +0000 (14:53 +0200)] 
Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/
Translation: plymouth/master

5 years agoMerge branch 'wip/fix-client-disconnect-crash' into 'master'
Ray Strode [Fri, 18 Sep 2020 20:53:01 +0000 (20:53 +0000)] 
Merge branch 'wip/fix-client-disconnect-crash' into 'master'

boot-server: Handle client disconnecting while trigger pending

See merge request plymouth/plymouth!123

5 years agoboot-server: Handle client disconnecting while trigger pending
Ray Strode [Wed, 2 Sep 2020 17:44:37 +0000 (13:44 -0400)] 
boot-server: Handle client disconnecting while trigger pending

At the moment if a client disconnects while the daemon is completely
an asynchronous request, the daemon crashes trying to access a freed
connection object.

This commit changes the boot server code to keep the connection object
alive after the client disconnects, if there's pending work to do.

https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/125

5 years agoboot-server: Ref count the connections
Ray Strode [Wed, 2 Sep 2020 17:34:51 +0000 (13:34 -0400)] 
boot-server: Ref count the connections

This commit adds reference counting to ply_boot_connection_t.

This will be needed by a subsequent commit to fix a crasher bug.

5 years agoMerge branch 'update-l10n' into 'master'
Ray Strode [Wed, 16 Sep 2020 17:16:23 +0000 (17:16 +0000)] 
Merge branch 'update-l10n' into 'master'

Update translations

Closes #87

See merge request plymouth/plymouth!85

5 years agoUpdate translations from Zanata
Rafael Fontenelle [Sat, 30 Nov 2019 11:20:25 +0000 (08:20 -0300)] 
Update translations from Zanata

Download latest translations from Fedora Zanata

5 years agoMerge branch 'drm-usermode' into 'master'
Hans de Goede [Wed, 16 Sep 2020 16:57:41 +0000 (16:57 +0000)] 
Merge branch 'drm-usermode' into 'master'

drm: Honor modes selected by the user through video= kernel cmdline argument

See merge request plymouth/plymouth!84

5 years agoNL translation update
Hans de Goede [Thu, 6 Aug 2020 17:51:06 +0000 (19:51 +0200)] 
NL translation update

5 years agodrm: Honor modes selected by the user through video= kernel cmdline argument
Hans de Goede [Sun, 10 Nov 2019 17:23:27 +0000 (18:23 +0100)] 
drm: Honor modes selected by the user through video= kernel cmdline argument

Before this commit we would skip preferred-mode selection if a video=
kernel cmdline is argument, instead relying on the kernel to have activated
all the outputs and then we would inherit those modes.

But this relies on fbcon having initialized the outputs, which it does not
do when deferred-fbcon-takeover is used. Deferred-fbcon-takeover is
necessary for flickerfree boot, so this is now the default in many distros.

Instead of relying on the kernel having setup everything for us, honor
the video= mode selection by checking for modes with a DRM_MODE_TYPE_USERDEF
flag before checking for modes with a DRM_MODE_TYPE_PREFERRED flag.

Note that the DRM_MODE_TYPE_USERDEF flag is only ever set based on a
video= argument. So on systems without a video= argument on the kernel
cmdline nothing changes.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
5 years agoMerge branch 'patch-mismatched-monitors' into 'master'
Ray Strode [Mon, 24 Aug 2020 14:51:52 +0000 (14:51 +0000)] 
Merge branch 'patch-mismatched-monitors' into 'master'

use resolution of higher res monitor for window size

Closes #122

See merge request plymouth/plymouth!121

5 years agouse resolution of higher res monitor for window size
Kayran Schmidt [Sun, 23 Aug 2020 11:24:48 +0000 (11:24 +0000)] 
use resolution of higher res monitor for window size

5 years agoMerge branch 'translations-set-locale' into 'master'
Hans de Goede [Sat, 8 Aug 2020 09:27:35 +0000 (09:27 +0000)] 
Merge branch 'translations-set-locale' into 'master'

Enable translations by having the init calling setlocale

See merge request plymouth/plymouth!120

5 years agoInitialize the translations on start if they are available
Sebastien [Thu, 6 Aug 2020 11:52:01 +0000 (11:52 +0000)] 
Initialize the translations on start if they are available

setlocale was already called on filesystem mounting but that's not enough
to cover all the cases. The call needs to be conditional because doing it
at a time where the locales are not available (in the initrd) would
result in translations to not be working.

5 years agoMerge branch 'master' into 'master'
Ray Strode [Sat, 1 Aug 2020 00:47:24 +0000 (00:47 +0000)] 
Merge branch 'master' into 'master'

Use the correct key name for title and subtitle

See merge request plymouth/plymouth!119

5 years agoUse the correct key name for title and subtitle
Sebastien [Fri, 31 Jul 2020 14:45:46 +0000 (14:45 +0000)] 
Use the correct key name for title and subtitle

The '_' was removed in the conversion to use gettext

5 years agoautogoo: use /proc/self/fd/0 instead of /dev/stdin
Ray Strode [Thu, 9 Jul 2020 13:34:36 +0000 (09:34 -0400)] 
autogoo: use /proc/self/fd/0 instead of /dev/stdin

The symlink isn't available in some sandboxes:

https://gitlab.gnome.org/GNOME/gnome-build-meta/-/commit/99bf64efdc5a2d5c5fdedb627967b931d02be3d0#note_860312

5 years agoconfigure: bump to 0.9.6
Ray Strode [Wed, 8 Jul 2020 20:48:19 +0000 (16:48 -0400)] 
configure: bump to 0.9.6

5 years agoMerge branch 'ci' into 'master' 0.9.5
Ray Strode [Wed, 8 Jul 2020 20:01:28 +0000 (20:01 +0000)] 
Merge branch 'ci' into 'master'

Add CI pipeline for Plymouth

See merge request plymouth/plymouth!48

5 years agoApply suggestion to .gitlab-ci.yml
Emmanuele Bassi [Tue, 16 Jul 2019 15:19:54 +0000 (15:19 +0000)] 
Apply suggestion to .gitlab-ci.yml

5 years agoci: Add a `distcheck` step
Emmanuele Bassi [Tue, 16 Jul 2019 15:18:40 +0000 (16:18 +0100)] 
ci: Add a `distcheck` step

We want to ensure that the CI is "release ready".

5 years agoAdd CI pipeline for Plymouth
Emmanuele Bassi [Tue, 16 Jul 2019 14:34:32 +0000 (15:34 +0100)] 
Add CI pipeline for Plymouth

We can use GitLab's CI/CD support to run a build.

5 years agoMerge branch 'drop-intltool' into 'master'
Ray Strode [Wed, 8 Jul 2020 19:20:30 +0000 (19:20 +0000)] 
Merge branch 'drop-intltool' into 'master'

Drop intltool

See merge request plymouth/plymouth!117

5 years agoconfigure: quiet a warning
Ray Strode [Wed, 8 Jul 2020 19:14:40 +0000 (15:14 -0400)] 
configure: quiet a warning

I really don't like autogoo

5 years agopo: drop intltool usage
Ray Strode [Wed, 8 Jul 2020 19:12:54 +0000 (15:12 -0400)] 
po: drop intltool usage

gettext can do most everything intltool can do anyway, so just
drop intltool.

5 years agoMerge branch 'docs-man-page-xref' into 'master'
Ray Strode [Sat, 30 May 2020 13:07:50 +0000 (13:07 +0000)] 
Merge branch 'docs-man-page-xref' into 'master'

docs: fix man page cross-reference

See merge request plymouth/plymouth!116

5 years agodocs: fix man page cross-reference
Jan Pokorný [Sat, 30 May 2020 11:40:52 +0000 (13:40 +0200)] 
docs: fix man page cross-reference

5 years agoMerge branch 'not-a-percentage' into 'master'
Ray Strode [Fri, 1 May 2020 15:29:49 +0000 (15:29 +0000)] 
Merge branch 'not-a-percentage' into 'master'

Rename 'percent_done' to 'fraction_done'

See merge request plymouth/plymouth!111

5 years agoRename 'percent_done' to 'fraction_done'
Daniel van Vugt [Tue, 21 Apr 2020 05:38:21 +0000 (13:38 +0800)] 
Rename 'percent_done' to 'fraction_done'

Because they are not percentages but fractional values in the range [0,1]

5 years agoMerge branch 'optional-theme' into 'master'
Ray Strode [Sat, 18 Apr 2020 12:40:50 +0000 (12:40 +0000)] 
Merge branch 'optional-theme' into 'master'

main: Don't bail out of load_settings if "Theme" is missing

See merge request plymouth/plymouth!109

5 years agomain: Don't bail out of load_settings if "Theme" is missing
Daniel van Vugt [Fri, 17 Apr 2020 09:27:12 +0000 (17:27 +0800)] 
main: Don't bail out of load_settings if "Theme" is missing

Because on some systems (like Ubuntu with its alternatives) the "Theme="
line will be missing from plymouthd.defaults. And bailing out early was
causing other settings like DeviceTimeout to never be loaded, which would
then cause the graphics renderers to fail.

5 years agoMerge branch 'wip/close-the-log' into 'master'
Ray Strode [Tue, 7 Apr 2020 13:28:48 +0000 (13:28 +0000)] 
Merge branch 'wip/close-the-log' into 'master'

main: switch log file when switching mode

See merge request plymouth/plymouth!102

5 years agomain: fix mode changing before splash is shown
Laurent Bigonville [Tue, 7 Apr 2020 13:22:02 +0000 (09:22 -0400)] 
main: fix mode changing before splash is shown

At the moment switching modes affects two aspects of how plymouth
runs.

1) What log file is opened (i.e., boot.log or no log file at all)
2) What type of splash gets shown (the details of which are relegated
   to the individual splash plugins)

The mode change handler has a check in place to avoid changing the
type of splash getting shown in the event no splash is supposed to
be shown yet.  This check just makes the function return without
doing anything.

Unfortunately, the check is placed at the top of the function, so
it runs before the log file is changed.

This commit moves the check lower down, so the log file gets properly
updated when the mode is changed.

5 years agomain: switch log file when switching mode
Ray Strode [Thu, 26 Mar 2020 18:11:50 +0000 (14:11 -0400)] 
main: switch log file when switching mode

plymouthd can be run in various modes, for, e.g., boot up,
shutdown, and software upgrades.

The mode plymouthd is using can be changed at runtime.

The "boot" mode keeps a log of the console messages that
happen during boot up.  At the moment, when changing from
the "boot" mode to any other mode, the log file is kept
open.

That open file can cause problems during shutdown.

This commit makes sure the log file is properly closed when
the mode is changed from boot to another mode.

https://gitlab.freedesktop.org/plymouth/plymouth/issues/88

5 years agoMerge branch 'fix-99' into 'master'
Ray Strode [Mon, 6 Apr 2020 18:23:46 +0000 (18:23 +0000)] 
Merge branch 'fix-99' into 'master'

two-step: Center message text within labels if labels are centered

Closes #99

See merge request plymouth/plymouth!103

5 years agotwo-step: Center message text within labels if labels are centered
Daniel van Vugt [Mon, 30 Mar 2020 10:52:39 +0000 (18:52 +0800)] 
two-step: Center message text within labels if labels are centered

This makes a difference when you start rendering multiple lines in
a single label. For a single line label you won't see any difference.

Closes: https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/99
5 years agoMerge branch 'master' into 'master'
Ray Strode [Mon, 6 Apr 2020 18:20:51 +0000 (18:20 +0000)] 
Merge branch 'master' into 'master'

Added Indonesian translation

See merge request plymouth/plymouth!107

5 years agopo: add Indonesian translation
Andika Triwidada [Mon, 6 Apr 2020 18:20:51 +0000 (18:20 +0000)] 
po: add Indonesian translation

5 years agoMerge branch 'drm-probe-speedups' into 'master'
Hans de Goede [Wed, 25 Mar 2020 19:27:11 +0000 (19:27 +0000)] 
Merge branch 'drm-probe-speedups' into 'master'

drm/kms probe speedups

See merge request plymouth/plymouth!101

5 years agodrm: Do not unnecessarily get output info twice
Hans de Goede [Tue, 24 Mar 2020 22:17:42 +0000 (23:17 +0100)] 
drm: Do not unnecessarily get output info twice

When a kernel-mode-setting driver loads it will trigger an add udev event
for /dev/dri/card0, followed by one udev change event per connector on the
card. This means that after our initial probe of the card,
create_heads_for_active_connectors is called a number of times for all the
udev change events.

After the initial enum our outputs array will contain active entries for
all connected displays. Meaning that the first loop in
create_heads_for_active_connectors would call get_output_info for
these outputs. Under the hood this does a number of ioctls and especially
the drmModeGetConnector call can be quite expensive.

Then in the second loop create_heads_for_active_connectors would call
get_output_info for all connectors, including for the once which were
checked in the first loop.

There is no reason why we cannot check if active connectors in the
old outputs array have changed when we are calling get_output_info for
all connectors to build the new array. This avoids unnecessarily making
the expensive get_output_info call twice for active connectors in the
old outputs array.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
5 years agoply-device-manager: Only consume one udev event at a time
Hans de Goede [Mon, 23 Mar 2020 16:38:18 +0000 (17:38 +0100)] 
ply-device-manager: Only consume one udev event at a time

Commit f9e376797a91 ("ply-device-manager: Consume all events in one go")
changed ply-device-manager to consume all pending udev events in one go
instead of consuming only 1 and then returning back to the mainloop.

The idea here was to avoid the overhead of returning back to the mainloop,
doing the poll again, seeing more events were pending and then re-enter
ply-device-manager.

In retrospect this is not a good idea. Systemd waits for oneshot units
like plymouth-switch-root.service to finish and this can block the boot.
Specifically plymouth-switch-root.service must complete before systemd in
the initrd will exec the systemd from the real rootfs. This means that
systemd inside the initrd waits for the:

ExecStart=-/usr/bin/plymouth update-root-fs --new-root-dir=/sysroot

Command to complete, if this command runs while we are consuming udev
events from the graphics card (which sends a change event per probed
connector during the initial probe), then plymouth will not send the ack
to the plymouth boot-client (completing the ExecStart) until all udev
events are consumed.

On my main workstation with i915 graphics and 2 HDMI connected FHD monitors,
this delays the actual switching of the root by 1.9 - 2.1 seconds,
because the re-enumaration of the connectors in the drm plugin takes
about 0.4 seconds per run.

Other upcoming changes will greatly reduce that 0.4 seconds, but still
returning to the main-loop after a single udev event so that we can
answer any waiting boot-clients ASAP is a good idea.

This reverts commit f9e376797a91ad5fbc1f8e8e4aea778f4f22397c.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
5 years agoMerge branch 'two-step-end-animation-fix' into 'master'
Hans de Goede [Tue, 24 Mar 2020 18:29:37 +0000 (18:29 +0000)] 
Merge branch 'two-step-end-animation-fix' into 'master'

two-step: Do not jump to end-animation on halt/reboot if it is disabled

See merge request plymouth/plymouth!100

5 years agotwo-step: Do not jump to end-animation on halt/reboot if it is disabled
Hans de Goede [Mon, 23 Mar 2020 16:20:03 +0000 (17:20 +0100)] 
two-step: Do not jump to end-animation on halt/reboot if it is disabled

If the end-animation is disabled then directly becoming idle on halt /
reboot leads to no animation at all being shown.

Fix this by not jumping to the end-animation on halt/reboot if the
end-animation is disabled.

Fixes: 50c619ed41ca ("two-step: Add UseEndAnimation setting")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
5 years agoMerge branch 'systemd-RemainAfterExit' into 'master'
Hans de Goede [Mon, 23 Mar 2020 19:15:41 +0000 (19:15 +0000)] 
Merge branch 'systemd-RemainAfterExit' into 'master'

Add RemainAfterExit=yes to plymouth's systemd service files

See merge request plymouth/plymouth!99

5 years agoAdd RemainAfterExit=yes to plymouth's systemd service files
Hans de Goede [Mon, 23 Mar 2020 14:59:24 +0000 (15:59 +0100)] 
Add RemainAfterExit=yes to plymouth's systemd service files

All plymouth's systemd unit files are meant to only run once, either during
boot or during shutdown/restart.

Certain events cause systemd to recheck the dependency try between systemd
units. Systemd had a bug before the 245 release which caused this check to
sometimes not restart exited services for which the dependencies are met.

Systemd 245 fixes this, this is causing problems with plymouth.
When the conditions are met for systemd to recheck the dependencies;
and the plymouthd started by plymouth-start.service has exited;
then systemd will restart the plymouth-start unit, causing plymouthd to
take over tty1 after boot. This is causing various problems, also see:

https://bugzilla.redhat.com/show_bug.cgi?id=1803293

Since all plymouth's systemd units are intended to run only once, they
all should be marked as remaining after exit by adding:
"RemainAfterExit=yes" to them. This causes systemd to still consider them
running after e.g. plymouthd has exited, as long as they have started
successfully. This fixes systemd restarting plymouth's units when it
should not do so.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1803293
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1807771
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
5 years agoMerge branch 'twostep-end-animation' into 'master'
Hans de Goede [Wed, 11 Mar 2020 19:23:44 +0000 (19:23 +0000)] 
Merge branch 'twostep-end-animation' into 'master'

two-step: Add UseEndAnimation setting

See merge request plymouth/plymouth!94