]> git.ipfire.org Git - thirdparty/plymouth.git/log
thirdparty/plymouth.git
13 months agoMerge branch 'fixterminal' into 'main'
Ray Strode [Wed, 28 Aug 2024 04:10:37 +0000 (04:10 +0000)] 
Merge branch 'fixterminal' into 'main'

main: Go back to text mode when quitting (if appropriate)

See merge request plymouth/plymouth!334

13 months agomain: Correctly switch back to text mode if the splash is requested, but never shown
nerdopolis [Tue, 20 Aug 2024 22:53:33 +0000 (18:53 -0400)] 
main: Correctly switch back to text mode if the splash is requested, but never shown

Co-authored-by: filip-hejsek
Suggested-by: filip-hejsek
13 months agomain: Go back to text mode when quitting (if appropriate)
Ray Strode [Wed, 1 May 2024 12:23:00 +0000 (08:23 -0400)] 
main: Go back to text mode when quitting (if appropriate)

Since commit 48881ba2ef3d25fd27fd150d4d5957d4df9868e0 plymouth
goes into GRAPHICS mode early on. Unfortunately, there are cases
where it neglects to go back to TEXT mode when quitting. That can
happen if boot finishes before the splash screen is created.

This commit fixes that.

13 months agoMerge branch 'wip/jimmac/libadwaita-spinner' into 'main'
Ray Strode [Mon, 12 Aug 2024 11:02:44 +0000 (11:02 +0000)] 
Merge branch 'wip/jimmac/libadwaita-spinner' into 'main'

spinner: update design

See merge request plymouth/plymouth!324

13 months agospinner: update design
Jakub Steiner [Mon, 12 Aug 2024 11:02:44 +0000 (11:02 +0000)] 
spinner: update design

13 months agoMerge branch 'correctalphavalue' into 'main'
Ray Strode [Fri, 9 Aug 2024 12:51:42 +0000 (12:51 +0000)] 
Merge branch 'correctalphavalue' into 'main'

two-step: Don't try to set use_black_background based on the ConsoleLogTextColor

See merge request plymouth/plymouth!332

13 months agotwo-step: Don't try to set use_black_background based on the ConsoleLogTextColor
nerdopolis [Fri, 9 Aug 2024 11:55:08 +0000 (07:55 -0400)] 
two-step: Don't try to set use_black_background based on the ConsoleLogTextColor

The correct value is 0x000000ff, for full opacity

13 months agoMerge branch 'consoleviewerbackground' into 'main'
Ray Strode [Thu, 8 Aug 2024 23:38:50 +0000 (23:38 +0000)] 
Merge branch 'consoleviewerbackground' into 'main'

Replace ConsoleViewerPreserveBackground with ConsoleLogBackgroundColor

See merge request plymouth/plymouth!330

13 months agoscript: Replace ConsoleViewerPreserveBackground with ConsoleLogBackgroundColor
nerdopolis [Wed, 7 Aug 2024 20:22:47 +0000 (16:22 -0400)] 
script: Replace ConsoleViewerPreserveBackground with ConsoleLogBackgroundColor

13 months agospace-flares: Replace ConsoleViewerPreserveBackground with ConsoleLogBackgroundColor
nerdopolis [Wed, 7 Aug 2024 20:22:23 +0000 (16:22 -0400)] 
space-flares: Replace ConsoleViewerPreserveBackground with ConsoleLogBackgroundColor

13 months agofade-throbber: Replace ConsoleViewerPreserveBackground with ConsoleLogBackgroundColor
nerdopolis [Wed, 7 Aug 2024 20:22:00 +0000 (16:22 -0400)] 
fade-throbber: Replace ConsoleViewerPreserveBackground with ConsoleLogBackgroundColor

13 months agotwo-step: Replace ConsoleViewerPreserveBackground with ConsoleLogBackgroundColor
nerdopolis [Wed, 7 Aug 2024 20:21:24 +0000 (16:21 -0400)] 
two-step: Replace ConsoleViewerPreserveBackground with ConsoleLogBackgroundColor

13 months agoMerge branch 'twostepconsoleviewerbackground' into 'main'
Ray Strode [Wed, 7 Aug 2024 11:50:44 +0000 (11:50 +0000)] 
Merge branch 'twostepconsoleviewerbackground' into 'main'

Support ConsoleViewerPreserveBackground option to keep the background when the console viewer is active

See merge request plymouth/plymouth!328

13 months agolabel-pango: Don't draw a black box around rich text when the background is default
nerdopolis [Wed, 7 Aug 2024 04:12:13 +0000 (00:12 -0400)] 
label-pango: Don't draw a black box around rich text when the background is default

13 months agoAdd ConsoleViewerPreserveBackground hint to themes to make the option visible for...
nerdopolis [Tue, 6 Aug 2024 12:29:18 +0000 (08:29 -0400)] 
Add ConsoleViewerPreserveBackground hint to themes to make the option visible for theme creators

13 months agoscript: Support ConsoleViewerPreserveBackground option to keep the background when...
nerdopolis [Fri, 2 Aug 2024 18:32:44 +0000 (14:32 -0400)] 
script: Support ConsoleViewerPreserveBackground option to keep the background when the console viewer is active

13 months agospace-flares: Support ConsoleViewerPreserveBackground option to keep the background...
nerdopolis [Fri, 2 Aug 2024 18:32:22 +0000 (14:32 -0400)] 
space-flares: Support ConsoleViewerPreserveBackground option to keep the background when the console viewer is active

13 months agofade-throbber: Support ConsoleViewerPreserveBackground option to keep the background...
nerdopolis [Fri, 2 Aug 2024 18:32:07 +0000 (14:32 -0400)] 
fade-throbber: Support ConsoleViewerPreserveBackground option to keep the background when the console viewer is active

13 months agotwo-step: Support ConsoleViewerPreserveBackground option to keep the background when...
nerdopolis [Fri, 2 Aug 2024 18:31:15 +0000 (14:31 -0400)] 
two-step: Support ConsoleViewerPreserveBackground option to keep the background when the console viewer is active

13 months agoMerge branch 'devttynullsplash' into 'main'
Ray Strode [Tue, 6 Aug 2024 09:37:55 +0000 (09:37 +0000)] 
Merge branch 'devttynullsplash' into 'main'

main: Assume graphical splash when the active kernel console is /dev/ttynull.

See merge request plymouth/plymouth!327

14 months agomain: Assume graphical splash when the active kernel console is /dev/ttynull.
nerdopolis [Fri, 2 Aug 2024 12:00:10 +0000 (08:00 -0400)] 
main: Assume graphical splash when the active kernel console is /dev/ttynull.

14 months agoply-utils: Add ply_get_primary_kernel_console_type ()
nerdopolis [Fri, 2 Aug 2024 11:59:14 +0000 (07:59 -0400)] 
ply-utils: Add ply_get_primary_kernel_console_type ()

14 months agoply-device-manager: Don't log an error when /sys/class/tty/console/active is empty
nerdopolis [Fri, 2 Aug 2024 11:56:28 +0000 (07:56 -0400)] 
ply-device-manager: Don't log an error when /sys/class/tty/console/active is empty

This is possible on some kernels that were built with CONFIG_NULL_TTY enabled, and were booted with console=ttynull
/sys/class/tty/console/active is empty in this case, so the file being empty is not always an error worth logging

14 months agoMerge branch 'fixscriptdraw' into 'main'
Ray Strode [Wed, 31 Jul 2024 10:05:35 +0000 (10:05 +0000)] 
Merge branch 'fixscriptdraw' into 'main'

script: Partially revert 8fb0e1f33443fe24d49660a1b00966def95a8c77 and move...

See merge request plymouth/plymouth!326

14 months agoscript: Add script_lib_update_displays () and call it on state changes
nerdopolis [Tue, 30 Jul 2024 10:55:28 +0000 (06:55 -0400)] 
script: Add script_lib_update_displays () and call it on state changes

14 months agoscript: Partially revert 8fb0e1f33443fe24d49660a1b00966def95a8c77 and move needs_redr...
nerdopolis [Tue, 30 Jul 2024 02:25:10 +0000 (22:25 -0400)] 
script: Partially revert 8fb0e1f33443fe24d49660a1b00966def95a8c77 and move needs_redraw handling back to script_lib_sprite_refresh

14 months agoMerge branch 'weblate-plymouth-master' into 'main'
Marge Bot [Sat, 27 Jul 2024 17:34:31 +0000 (17:34 +0000)] 
Merge branch 'weblate-plymouth-master' into 'main'

Translations update from Fedora Weblate

See merge request plymouth/plymouth!315

14 months agoTranslated using Weblate (Greek)
Giannis Antypas [Sat, 20 Jul 2024 00:38:51 +0000 (02:38 +0200)] 
Translated using Weblate (Greek)

Currently translated at 100.0% (7 of 7 strings)

Added translation using Weblate (Greek)

Co-authored-by: Giannis Antypas <gianni.antypas@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/el/
Translation: plymouth/main
Part-of: <https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/315>

14 months agoTranslated using Weblate (Hindi)
Scrambled 777 [Sat, 20 Jul 2024 00:38:51 +0000 (02:38 +0200)] 
Translated using Weblate (Hindi)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Scrambled 777 <weblate.scrambled777@simplelogin.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/hi/
Translation: plymouth/main
Part-of: <https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/315>

14 months agoTranslated using Weblate (Slovenian)
Martin Srebotnjak [Sat, 20 Jul 2024 00:38:51 +0000 (02:38 +0200)] 
Translated using Weblate (Slovenian)

Currently translated at 100.0% (7 of 7 strings)

Translated using Weblate (Slovenian)

Currently translated at 85.7% (6 of 7 strings)

Added translation using Weblate (Slovenian)

Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/sl/
Translation: plymouth/main
Part-of: <https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/315>

14 months agoMerge branch 'fixscriptcrash' into 'main'
Ray Strode [Sat, 27 Jul 2024 12:38:13 +0000 (12:38 +0000)] 
Merge branch 'fixscriptcrash' into 'main'

script: Be more tolerant when there's no console viewer

Closes #259

See merge request plymouth/plymouth!325

14 months agoscript: Handle redrawing the console viewer better on display hotplugs
nerdopolis [Thu, 25 Jul 2024 03:12:49 +0000 (23:12 -0400)] 
script: Handle redrawing the console viewer better on display hotplugs

14 months agoscript: remove incomplete code that attempted to make the console viewers scriptable
nerdopolis [Sat, 20 Jul 2024 04:13:20 +0000 (00:13 -0400)] 
script: remove incomplete code that attempted to make the console viewers scriptable

14 months agoscript: Handle adding the console viewer better when hotplugging
nerdopolis [Sat, 20 Jul 2024 03:47:42 +0000 (23:47 -0400)] 
script: Handle adding the console viewer better when hotplugging

14 months agoscript: Be more tolerant when there's no console viewer
nerdopolis [Tue, 16 Jul 2024 15:44:25 +0000 (11:44 -0400)] 
script: Be more tolerant when there's no console viewer

14 months agoFix Debian CI
nerdopolis [Tue, 16 Jul 2024 16:05:09 +0000 (12:05 -0400)] 
Fix Debian CI

15 months agoMerge branch 'simpledrm-early-probe' into 'main'
Hans de Goede [Fri, 7 Jun 2024 18:08:07 +0000 (18:08 +0000)] 
Merge branch 'simpledrm-early-probe' into 'main'

ply-device-manager: Create renderer for simpledrm devices right away

See merge request plymouth/plymouth!323

15 months agoply-device-manager: Make create_devices_for_subsystem () return void
Hans de Goede [Wed, 5 Jun 2024 20:07:32 +0000 (22:07 +0200)] 
ply-device-manager: Make create_devices_for_subsystem () return void

Make create_devices_for_subsystem () return void. Its callers do not care
about the return value and currently the return value is not always correct
since if a device is found, found may later become false again if
a subsequent create_devices_for_udev_device () call fails.

15 months agoply-device-manager: Create renderer for simpledrm devices right away
Hans de Goede [Tue, 4 Jun 2024 21:07:19 +0000 (23:07 +0200)] 
ply-device-manager: Create renderer for simpledrm devices right away

Often when plymouth starts and enumerates udev devices which are already
present at start (coldplug detection), udev is still initializing all
the devices and it reports 0 for udev_device_get_is_initialized ().

It may take a long time for the state of the simpledrm udev device
to change to initialized and for a udev add event to be send.

Especially when the amdgpu kernel module is involved which is very
large for a kernel module and can take op to 7 seconds to load.

In this case it is even possible for plymouth's default DeviceTimeout
of 8 seconds to trigger before the simpledrm device is considered
initialized. See for example these lines extracted from the plymouth-debug
log attached to: https://bugzilla.redhat.com/show_bug.cgi?id=2183743

  00:00:02.909 ../src/libply-splash-core/ply-device-manager.c:498:create_devi: found device /sys/devices/pci0000:00/0000:00:01.0/simple-framebuffer.0/drm/card0
  00:00:02.910 ../src/libply-splash-core/ply-device-manager.c:513:create_devi: it's not initialized
  00:00:10.917 ../src/libply-splash-core/ply-device-manager.c:1237:create_dev: Timeout elapsed, looking for devices from udev
  00:00:10.918 ../src/libply-splash-core/ply-device-manager.c:498:create_devi: found device /sys/devices/pci0000:00/0000:00:01.0/simple-framebuffer.0/drm/card0
  00:00:10.918 ../src/libply-splash-core/ply-device-manager.c:513:create_devi: it's not initialized

This leads to plymouth falling back to the text splash even when
plymouth.use-simpledrm is passed on the kernel commandline.

Add a special case for simpledrm devices and add these during coldboot
even if they are not initialized yet.

15 months agoply-device-manager: Remove simpledrm renderers before adding normal drm renderers
Hans de Goede [Wed, 5 Jun 2024 19:52:19 +0000 (21:52 +0200)] 
ply-device-manager: Remove simpledrm renderers before adding normal drm renderers

udev remove events for simpledrm udev devices may arrive after the udev add
event for a normal drm udev device which is replacing the simpledrm device.

When the local_console is managed by a simpledrm renderer and the remove
event for the simpledrm renderer is received after the add event of
the normal drm device, the local_console is left unmanaged breaking legacy
input support.

When this scenario gets hit it breaks entering disk unlock passwords.

Add code to remove simpledrm renderers before adding normal drm renderers
to avoid this.

15 months agoply-device-manager: Move local_console_terminal handling for DRM/FB renderers
Hans de Goede [Wed, 5 Jun 2024 19:38:43 +0000 (21:38 +0200)] 
ply-device-manager: Move local_console_terminal handling for DRM/FB renderers

create_devices_for_terminal_and_renderer_type () only ever gets called with
a NULL terminal parameter when create_devices_for_udev_device () is calling
it to create a DRM or FB renderer.

Move the use of local_console_terminal as terminal for the first DRM / FB
renderer created from create_devices_for_udev_device () to
create_devices_for_terminal_and_renderer_type () with an extra !terminal
check.

This is a preparation patch for fixing an issue where the local_console
is managed by a simpledrm renderer and the remove event for that gets
processed after the add event of the normal drm device which leaves
the local_console unmanaged breaking legacy input support.

15 months agoply-device-manager: Skip /dev/dri/render nodes
Hans de Goede [Wed, 5 Jun 2024 19:31:55 +0000 (21:31 +0200)] 
ply-device-manager: Skip /dev/dri/render nodes

DRM render nodes do not support KMS and trying to probe them just
slows things down, so skip them.

15 months agoply-renderer: Add ply_renderer_get_type ()
Hans de Goede [Tue, 4 Jun 2024 20:05:20 +0000 (22:05 +0200)] 
ply-renderer: Add ply_renderer_get_type ()

Add a ply_renderer_get_type () helper function to get the type of
a renderer.

15 months agoply-renderer: Add new PLY_RENDERER_TYPE_SIMPLEDRM renderer-type
Hans de Goede [Tue, 4 Jun 2024 19:24:22 +0000 (21:24 +0200)] 
ply-renderer: Add new PLY_RENDERER_TYPE_SIMPLEDRM renderer-type

Add a new PLY_RENDERER_TYPE_SIMPLEDRM renderer-type to help differentiate
the simpledrm case from the regular drm device case.

simpledrm devices require some special handling in the device-manager,
this is a preparation patch for improving the simpledrm handling
in ply-device-manager.

15 months agoply-device-manager: Add syspath_is_simpledrm () helper
Hans de Goede [Tue, 4 Jun 2024 19:16:31 +0000 (21:16 +0200)] 
ply-device-manager: Add syspath_is_simpledrm () helper

Add a helper to determine if a udev syspath is a simpledrm device.
This is a preparation patch to for making simpledrm devices their
own renderer-type.

15 months agoply-utils: Add ply_string_has_suffix () helper function
Hans de Goede [Tue, 4 Jun 2024 19:09:00 +0000 (21:09 +0200)] 
ply-utils: Add ply_string_has_suffix () helper function

Add a ply_string_has_suffix () helper function to match the existing
ply_string_has_prefix () helper function.

16 months agoMerge branch 'revert-fallback-to-text-if-no-renderers' into 'main'
Hans de Goede [Wed, 5 Jun 2024 13:00:20 +0000 (13:00 +0000)] 
Merge branch 'revert-fallback-to-text-if-no-renderers' into 'main'

ply-device-manager: Revert "Fall back to text plugin if no renderers installed"

See merge request plymouth/plymouth!319

16 months agoply-device-manager: Revert "Fall back to text plugin if no renderers installed"
Hans de Goede [Tue, 7 May 2024 10:42:10 +0000 (12:42 +0200)] 
ply-device-manager: Revert "Fall back to text plugin if no renderers installed"

The drm renderer may fail to open /dev/dri/card# with -ENOENT when trying
to open/probe a simpledrm registered drm device and the open races with
that drm device being removed to be replaced by a new drm device registered
by the native GPU driver (e.g. i915 / amdgpu).

Switching to text mode immediately when this race gets hit is undesirable,
as it causes text mode on systems where plymouth would run in graphics
mode before. Remove the immediate switch to text mode on -ENOENT.
Delaying the switch to textmode until the timeout as before.

This reverts commit 03842d5201e4486fe62635c7b470eb94696f985d.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2270030
16 months agoMerge branch 'mr256' into 'main'
Ray Strode [Tue, 4 Jun 2024 15:06:13 +0000 (15:06 +0000)] 
Merge branch 'mr256' into 'main'

Issue #256

See merge request plymouth/plymouth!322

16 months agoply-utils: Ensure random ints are big enough
emperor06 [Tue, 4 Jun 2024 14:42:11 +0000 (16:42 +0200)] 
ply-utils: Ensure random ints are big enough

Using Math.Random() in a theme script practically always returns zero.
This is because ply_get_random_number uses mrand48 which, while
returning a 64-bit long, restricts the range of its return value
to be no more than 32-bit, and so gets improperly normalized.

This commit addresses the problem by calling mrand48() twice, once for
each 32-bits of the returned value.

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

17 months agoMerge branch 'fixmeson' into 'main'
Ray Strode [Tue, 30 Apr 2024 01:19:15 +0000 (01:19 +0000)] 
Merge branch 'fixmeson' into 'main'

Bump required Meson version

See merge request plymouth/plymouth!314

17 months agoBump required Meson version
nerdopolis [Sun, 21 Apr 2024 20:09:53 +0000 (16:09 -0400)] 
Bump required Meson version

17 months agoMerge branch 'xkbcommon-dep' into 'main'
Ray Strode [Wed, 24 Apr 2024 18:47:30 +0000 (18:47 +0000)] 
Merge branch 'xkbcommon-dep' into 'main'

ply-splash-core: Add xkbcommon dep to pkgconfig file

See merge request plymouth/plymouth!316

17 months agoply-splash-core: Add xkbcommon dep to pkgconfig file
Ray Strode [Wed, 24 Apr 2024 18:44:07 +0000 (14:44 -0400)] 
ply-splash-core: Add xkbcommon dep to pkgconfig file

This addresses a build blip.

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

18 months agoMerge branch 'weblate-plymouth-master' into 'main'
Ray Strode [Sun, 17 Mar 2024 18:45:12 +0000 (18:45 +0000)] 
Merge branch 'weblate-plymouth-master' into 'main'

Translations update from Fedora Weblate

See merge request plymouth/plymouth!312

18 months agoTranslated using Weblate (Kazakh)
Baurzhan Muftakhidinov [Sun, 10 Mar 2024 09:36:09 +0000 (10:36 +0100)] 
Translated using Weblate (Kazakh)

Currently translated at 100.0% (7 of 7 strings)

Added translation using Weblate (Kazakh)

Co-authored-by: Baurzhan Muftakhidinov <baurthefirst@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/kk/
Translation: plymouth/main

18 months agoTranslated using Weblate (Kabyle)
ButterflyOfFire [Sun, 10 Mar 2024 09:36:08 +0000 (10:36 +0100)] 
Translated using Weblate (Kabyle)

Currently translated at 57.1% (4 of 7 strings)

Added translation using Weblate (Kabyle)

Co-authored-by: ButterflyOfFire <butterflyoffire@protonmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/kab/
Translation: plymouth/main

18 months agoMerge branch 'scriptparsekmsg' into 'main'
Ray Strode [Fri, 8 Mar 2024 16:31:25 +0000 (16:31 +0000)] 
Merge branch 'scriptparsekmsg' into 'main'

script: Get the messages from the console and ply-kmsg-reader, and use...

See merge request plymouth/plymouth!277

18 months agoscript: Get the messages from the console and ply-kmsg-reader, and use ply-terminal...
nerdopolis [Tue, 26 Dec 2023 23:19:52 +0000 (18:19 -0500)] 
script: Get the messages from the console and ply-kmsg-reader, and use ply-terminal-emulator and ply-console-viewer to the display messages

18 months agoMerge branch 'fix-no-unused-warning' into 'main'
Ray Strode [Thu, 7 Mar 2024 20:22:29 +0000 (20:22 +0000)] 
Merge branch 'fix-no-unused-warning' into 'main'

ply-buffer: Fix unused-value warning

Closes #246

See merge request plymouth/plymouth!309

18 months agoply-buffer: Fix unused-value warning
Ray Strode [Thu, 7 Mar 2024 20:09:44 +0000 (15:09 -0500)] 
ply-buffer: Fix unused-value warning

We currently get warnings during the build like

```
../src/libply/ply-buffer.h:60:20: warning: value computed is not
used [-Wunused-value]
60 |              !_ran && (*bytes = (char *) ply_buffer_get_bytes(buffer),
   |                    ^~
```

This commit changes the macro to use a GCC statement expression with
an if statement to work around the warning.

Closes: https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/246
19 months agoMerge branch 'bias-scale-downward' into 'main'
Ray Strode [Wed, 6 Mar 2024 14:33:11 +0000 (14:33 +0000)] 
Merge branch 'bias-scale-downward' into 'main'

ply-utils: Only choose scale 2 when the perfect scale would be >= 1.75

See merge request plymouth/plymouth!308

19 months agoply-utils: Only choose scale 2 when the perfect scale would be >= 1.75
Daniel van Vugt [Tue, 5 Mar 2024 09:51:11 +0000 (17:51 +0800)] 
ply-utils: Only choose scale 2 when the perfect scale would be >= 1.75

This is the intended design documented in:
https://gitlab.gnome.org/GNOME/mutter/-/commit/d03dce43786d

And discussed in:
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3616

19 months agoMerge branch 'match-mutter-default-scale' into 'main'
Ray Strode [Tue, 27 Feb 2024 08:07:23 +0000 (08:07 +0000)] 
Merge branch 'match-mutter-default-scale' into 'main'

ply-utils: Match mutter's default device scale choice

See merge request plymouth/plymouth!307

19 months agoply-utils: Match mutter's default device scale choice
Daniel van Vugt [Tue, 27 Feb 2024 06:47:59 +0000 (14:47 +0800)] 
ply-utils: Match mutter's default device scale choice

Until now, laptops with a DPI between 192 and 202 would be given a
default scale of 2 by Plymouth, and 1 by Mutter for the login screen.
That made the visual transition a bit ugly so let's match Mutter's
default scale selection. This means the threshold for laptops is now
1.5 x 135 = 202 DPI instead of 192 DPI. And for desktop monitors it's
now 1.5 x 110 = 165 DPI instead of 192 DPI.

Closes: https://bugs.launchpad.net/bugs/2054769
19 months agoMerge branch 'weblate-plymouth-master' into 'main'
Ray Strode [Mon, 26 Feb 2024 14:50:25 +0000 (14:50 +0000)] 
Merge branch 'weblate-plymouth-master' into 'main'

Translations update from Fedora Weblate

See merge request plymouth/plymouth!306

19 months agoTranslated using Weblate (Turkish)
Sabri Ünal [Mon, 26 Feb 2024 01:36:08 +0000 (02:36 +0100)] 
Translated using Weblate (Turkish)

Currently translated at 100.0% (5 of 5 strings)

Co-authored-by: Sabri Ünal <libreajans@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/tr/
Translation: plymouth/main

19 months agoMerge branch 'fix240' into 'main'
n3rdopolis [Wed, 7 Feb 2024 01:29:18 +0000 (01:29 +0000)] 
Merge branch 'fix240' into 'main'

ply-boot-splash: Set unbuffered input when creating a text display

Closes #240

See merge request plymouth/plymouth!303

19 months agoply-boot-splash: Set unbuffered input when creating a text display
n3rdopolis [Tue, 6 Feb 2024 23:52:25 +0000 (18:52 -0500)] 
ply-boot-splash: Set unbuffered input when creating a text display

20 months agoMerge branch 'ev_led_not_needed' into 'main'
Ray Strode [Thu, 1 Feb 2024 10:39:17 +0000 (10:39 +0000)] 
Merge branch 'ev_led_not_needed' into 'main'

xkb_state_led_name_is_active does not appear to require devices to have EV_LED

See merge request plymouth/plymouth!305

20 months agoxkb_state_led_name_is_active does not appear to require devices to have EV_LED
n3rdopolis [Thu, 1 Feb 2024 05:10:47 +0000 (00:10 -0500)] 
xkb_state_led_name_is_active does not appear to require devices to have EV_LED

This allows the on-screen caps lock indicator to work on HyperV keyboards, and HyperV has one keyboard

20 months agoMerge branch 'fix245' into 'main'
Ray Strode [Wed, 31 Jan 2024 16:14:08 +0000 (16:14 +0000)] 
Merge branch 'fix245' into 'main'

renderers: Do not assume all keyboards have LEDs

Closes #245

See merge request plymouth/plymouth!304

20 months agorenderers: Do not assume all keyboards have LEDs
n3rdopolis [Wed, 31 Jan 2024 13:38:38 +0000 (08:38 -0500)] 
renderers: Do not assume all keyboards have LEDs

This is an attempt to fix #245

20 months agoMerge branch 'fix-freetype-fallback' into 'main'
Ray Strode [Tue, 16 Jan 2024 02:06:59 +0000 (02:06 +0000)] 
Merge branch 'fix-freetype-fallback' into 'main'

label-freetype: fix fallback not working when fc-match isn't available

Closes #239

See merge request plymouth/plymouth!302

20 months agolabel-freetype: fix fallback not working when fc-match isn't available
Ferdinand Bachmann [Tue, 16 Jan 2024 00:52:11 +0000 (01:52 +0100)] 
label-freetype: fix fallback not working when fc-match isn't available

The new font loading functions introduced in
544e62ac41a490f04d8e6b4e85f8b9fa1171b0cc assume that popen() returns
NULL when fc-match is unavailable or fails. This is incorrect, since
popen() will always start a shell to run the passed command and return a
stream to that shell's stdin and stdout.

This results in an non-null but empty font name being passed to
FT_New_Face(), which fails.

This commit fixes this by also using the fallback font when the font
path read from the popen() stream is empty.

Fixes #239
Fixes regression caused by 544e62ac41a490f04d8e6b4e85f8b9fa1171b0cc

20 months agoMerge branch 'inibash' into 'main'
n3rdopolis [Sat, 13 Jan 2024 00:33:26 +0000 (00:33 +0000)] 
Merge branch 'inibash' into 'main'

plymouth-set-default-theme: Use a more targeted bash ini-parser function...

Closes #238

See merge request plymouth/plymouth!300

20 months agoplymouth-set-default-theme: Use a more targeted bash ini-parser function instead...
nerdopolis [Wed, 10 Jan 2024 03:02:14 +0000 (22:02 -0500)] 
plymouth-set-default-theme: Use a more targeted bash ini-parser function instead of sed to handle the config file

20 months agoMerge branch 'fixinigroup' into 'main'
Ray Strode [Wed, 10 Jan 2024 19:46:10 +0000 (19:46 +0000)] 
Merge branch 'fixinigroup' into 'main'

splash plugins: Fix wrong group being used for console viewer settings in...

See merge request plymouth/plymouth!301

20 months agosplash plugins: Fix wrong group being used for console viewer settings in space-flare...
nerdopolis [Wed, 10 Jan 2024 12:20:02 +0000 (07:20 -0500)] 
splash plugins: Fix wrong group being used for console viewer settings in space-flares and fade-throbber

21 months agoMerge branch 'fixinputwarnings' into 'main'
Ray Strode [Fri, 5 Jan 2024 15:42:39 +0000 (15:42 +0000)] 
Merge branch 'fixinputwarnings' into 'main'

ply-input-device: Fix 'may be used uninitialized' warnings

See merge request plymouth/plymouth!299

21 months agoply-input-device: Fix 'may be used uninitialized' warnings
n3rdopolis [Fri, 5 Jan 2024 15:42:39 +0000 (15:42 +0000)] 
ply-input-device: Fix 'may be used uninitialized' warnings

If libevdev gave plymouth an event with an out of range key event type then plymouth would end up using uninitialized variables.

This commit fixes the compiler warning introduced from that unlikely scenario.

21 months agoMerge branch 'fixvtlesscrash' into 'main'
Ray Strode [Fri, 5 Jan 2024 10:20:26 +0000 (10:20 +0000)] 
Merge branch 'fixvtlesscrash' into 'main'

ply-terminal: Fix crash on vt-less kernels when checking the enabled state

See merge request plymouth/plymouth!298

21 months agorenderers: Only call ply_terminal_set_unbuffered_input when there is a terminal
nerdopolis [Fri, 5 Jan 2024 02:42:28 +0000 (21:42 -0500)] 
renderers: Only call ply_terminal_set_unbuffered_input when there is a terminal

21 months agoply-terminal: Fix crash on vt-less kernels when checking the enabled state
nerdopolis [Fri, 5 Jan 2024 02:06:50 +0000 (21:06 -0500)] 
ply-terminal: Fix crash on vt-less kernels when checking the enabled state

21 months agoMerge branch 'fix-hidpi-on-freetype' into 'main' 24.004.60
Ray Strode [Thu, 4 Jan 2024 21:08:14 +0000 (21:08 +0000)] 
Merge branch 'fix-hidpi-on-freetype' into 'main'

label-freetype: Fix rowstride bug with hidpi displays

See merge request plymouth/plymouth!297

21 months agolabel-freetype: Force resize calculation when moving control
Ray Strode [Thu, 4 Jan 2024 21:05:40 +0000 (16:05 -0500)] 
label-freetype: Force resize calculation when moving control

When moving the label around we need to do a full recalculation
of the metrics, because the position is part of the computation.

21 months agolabel-freetype: Fix rowstride bug with hidpi displays
Ray Strode [Wed, 3 Jan 2024 21:24:50 +0000 (16:24 -0500)] 
label-freetype: Fix rowstride bug with hidpi displays

The freetype plugin correctly doubles the DPI on hidpi displays,
but fails to account for the doubled pixels in display's pixel buffer.

This commit adds a factor of 2 to the size and positioncomputations,
to hopefully fix a row stride and a positioning bug.

21 months agoMerge branch 'weblate-plymouth-master' into 'main'
Ray Strode [Thu, 4 Jan 2024 09:25:55 +0000 (09:25 +0000)] 
Merge branch 'weblate-plymouth-master' into 'main'

Translations update from Fedora Weblate

See merge request plymouth/plymouth!234

21 months agoTranslated using Weblate (Welsh)
Diogyn D [Fri, 13 Oct 2023 14:36:11 +0000 (16:36 +0200)] 
Translated using Weblate (Welsh)

Currently translated at 100.0% (7 of 7 strings)

Added translation using Weblate (Welsh)

Co-authored-by: Diogyn D <diogyn@tutanota.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/cy/
Translation: plymouth/main

21 months agoTranslated using Weblate (Galician)
Fran Diéguez [Fri, 13 Oct 2023 14:36:11 +0000 (16:36 +0200)] 
Translated using Weblate (Galician)

Currently translated at 100.0% (7 of 7 strings)

Added translation using Weblate (Galician)

Co-authored-by: Fran Diéguez <frandieguez@gnome.org>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/gl/
Translation: plymouth/main

21 months agoTranslated using Weblate (Dutch)
Philip Goto [Fri, 13 Oct 2023 14:36:11 +0000 (16:36 +0200)] 
Translated using Weblate (Dutch)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Philip Goto <philip.goto@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/nl/
Translation: plymouth/main

21 months agoTranslated using Weblate (Czech)
Pavel Borecki [Fri, 13 Oct 2023 14:36:11 +0000 (16:36 +0200)] 
Translated using Weblate (Czech)

Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Pavel Borecki <pavel.borecki@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/cs/
Translation: plymouth/main

21 months agoMerge branch 'fix-freetype-loading-bug' into 'main'
Ray Strode [Wed, 3 Jan 2024 21:24:44 +0000 (21:24 +0000)] 
Merge branch 'fix-freetype-loading-bug' into 'main'

label-freetype: Rework font loading

See merge request plymouth/plymouth!296

21 months agolabel-freetype: Rework font loading
Ray Strode [Wed, 3 Jan 2024 20:37:08 +0000 (15:37 -0500)] 
label-freetype: Rework font loading

There's currently this function, set_font_with_fallback, that
almost always gets called with a NULL first argument in the
initramfs, forcing the _with_fallback part of the function to
run.

It's a little strange to have a function with a chunk of code that
hardly ever runs. Furthermore there's a bug where the error variable
is left uninitialized in this case leading to the freetype plugin
sporadically failing to load the fallback font.

This commit reworks things to drop set_font_with_fallback, and just
call FT_New_Face directly in the caller. Fallbacks are handled
at the point where the font path is determined
(previously called query_fc_match, now called find_default_font_path.

21 months agoMerge branch 'fix-pango-hex-box-removal' into 'main'
Ray Strode [Wed, 3 Jan 2024 16:29:51 +0000 (16:29 +0000)] 
Merge branch 'fix-pango-hex-box-removal' into 'main'

label-pango: Try to fix up remove_hexboxes_from_pango_layout

See merge request plymouth/plymouth!295

21 months agolabel-pango: Try to fix up remove_hexboxes_from_pango_layout
Ray Strode [Tue, 2 Jan 2024 22:04:26 +0000 (17:04 -0500)] 
label-pango: Try to fix up remove_hexboxes_from_pango_layout

There are a few issues with the remove_hexboxes_from_pango_layout
function, where it's getting offsets wrong and things like that.

This commit changes the approach entirely. Rather than modifying
the text to remove characters without font converage, it just
changes out the glyphs for those characters to be white boxes.

21 months agoply-utils: Make ply_utf8_character_get_byte_type detect invalid bytes
Ray Strode [Wed, 3 Jan 2024 14:53:50 +0000 (09:53 -0500)] 
ply-utils: Make ply_utf8_character_get_byte_type detect invalid bytes

Somehow I neglected to make ply_utf8_character_get_byte_type
differentiate between valid and invalid utf-8.

This commit fixes that.

21 months agoMerge branch 'dont-set-keyboard-mode-so-much' into 'main'
Ray Strode [Wed, 3 Jan 2024 00:56:21 +0000 (00:56 +0000)] 
Merge branch 'dont-set-keyboard-mode-so-much' into 'main'

ply-terminal: Only set keyboard mode when changing it

See merge request plymouth/plymouth!294

21 months agoply-terminal: Only set keyboard mode when changing it
Ray Strode [Tue, 2 Jan 2024 03:04:21 +0000 (22:04 -0500)] 
ply-terminal: Only set keyboard mode when changing it

Setting the console keyboard mode is not entirely idempotent.
The kernel may flush the input buffer leading to lost
key strokes. We currently set the mode explicitly on graphics
updates as part of our more general "fix things up in case
something during boot screws with the terminal settings" code.

That leads to keystrokes getting eaten.

This commit makes the terminal more careful about setting the
keyboard mode. It now only changes it when plymouth thinks its
necessary to do so.

In the future we could query the keyboard mode and reset it
when it's wrong, but I think we should hold off on doing that
until shown we need to.

21 months agoMerge branch 'more-keyboard-debugging' into 'main'
Ray Strode [Tue, 2 Jan 2024 03:24:26 +0000 (03:24 +0000)] 
Merge branch 'more-keyboard-debugging' into 'main'

ply-keyboard: Add a little mode debug logging

See merge request plymouth/plymouth!293