Commit graph

3038 commits

Author SHA1 Message Date
Remus-Gabriel Chelu
3370aed9ad Translated using Weblate (Romanian)
Currently translated at 100.0% (8 of 8 strings)

Co-authored-by: Remus-Gabriel Chelu <remusgabriel.chelu@disroot.org>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/ro/
Translation: plymouth/main
2025-10-16 19:54:21 +02:00
Ricky Tigg
38707acf4b Translated using Weblate (Finnish)
Currently translated at 100.0% (8 of 8 strings)

Co-authored-by: Ricky Tigg <ricky.tigg@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/fi/
Translation: plymouth/main
2025-10-16 19:54:21 +02:00
Jim Spentzos
7f55d20038 Translated using Weblate (Greek)
Currently translated at 100.0% (8 of 8 strings)

Co-authored-by: Jim Spentzos <jimspentzos2000@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/el/
Translation: plymouth/main
2025-10-16 19:54:21 +02:00
Daniel Rusek
5f2ba2209b Translated using Weblate (Czech)
Currently translated at 100.0% (8 of 8 strings)

Co-authored-by: Daniel Rusek <mail@asciiwolf.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/cs/
Translation: plymouth/main
2025-10-16 19:54:21 +02:00
Anders Jonsson
efa5d880cb Translated using Weblate (Swedish)
Currently translated at 100.0% (8 of 8 strings)

Co-authored-by: Anders Jonsson <anders.jonsson@norsjovallen.se>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/sv/
Translation: plymouth/main
2025-10-16 19:54:21 +02:00
Piotr Drąg
c699cb97d4 Translated using Weblate (Polish)
Currently translated at 100.0% (8 of 8 strings)

Co-authored-by: Piotr Drąg <piotrdrag@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/pl/
Translation: plymouth/main
2025-10-16 19:54:21 +02:00
Ahmed Najmawi
c63c384681 Translated using Weblate (Arabic)
Currently translated at 100.0% (8 of 8 strings)

Co-authored-by: Ahmed Najmawi <iramosu@protonmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/ar/
Translation: plymouth/main
2025-10-16 19:54:21 +02:00
Temuri Doghonadze
d4516564bc Translated using Weblate (Georgian)
Currently translated at 100.0% (8 of 8 strings)

Co-authored-by: Temuri Doghonadze <temuri.doghonadze@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/ka/
Translation: plymouth/main
2025-10-16 19:54:21 +02:00
Yuri Chornoivan
d4355daa78 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (8 of 8 strings)

Co-authored-by: Yuri Chornoivan <yurchor@ukr.net>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/uk/
Translation: plymouth/main
2025-10-16 19:54:21 +02:00
Rafael Fontenelle
fee7cda536 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (8 of 8 strings)

Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/pt_BR/
Translation: plymouth/main
2025-10-16 19:54:21 +02:00
Américo Monteiro
372a4120d9 Translated using Weblate (Portuguese)
Currently translated at 100.0% (8 of 8 strings)

Co-authored-by: Américo Monteiro <a_monteiro@gmx.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/pt/
Translation: plymouth/main
2025-10-16 19:54:20 +02:00
Fco. Javier F. Serrador
ca4a4d67c4 Translated using Weblate (Spanish)
Currently translated at 100.0% (8 of 8 strings)

Co-authored-by: Fco. Javier F. Serrador <fserrador@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/es/
Translation: plymouth/main
2025-10-16 19:54:20 +02:00
Weblate
e8dc246d13 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/main
2025-10-16 19:54:20 +02:00
Léane GRASSER
b7ccf1807a Translated using Weblate (French)
Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Léane GRASSER <leane.grasser@proton.me>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/fr/
Translation: plymouth/main
2025-10-16 19:54:20 +02:00
Hans de Goede
4a3c171df8 Merge branch 'simpledrm-kvm-res' into 'main'
drm: Also exclude SimpleDRM framebuffers with resolution 640x480

See merge request plymouth/plymouth!360
2025-08-31 11:24:40 +02:00
Alessandro Astone
96737ad62d drm: Also exclude SimpleDRM framebuffers with resolution 640x480
I'm getting this low resolution in QEMU/KVM
2025-08-31 11:23:11 +02:00
Hans de Goede
f88457fee3 Merge branch 'fix-translations' into 'main'
Fix POT generation

Closes #306

See merge request plymouth/plymouth!361
2025-08-29 16:56:55 +02:00
Rafael Fontenelle
4aa01ec146 Update POT file 2025-08-11 16:56:31 -03:00
Rafael Fontenelle
c2f297a91c Add keywords needed for BGRT to po/meson.build 2025-08-11 16:56:15 -03:00
Hans de Goede
3466343257 Merge branch 'bind-directory' into 'main'
ply-utils: Create parent directory before binding concrete socket

See merge request plymouth/plymouth!359
2025-08-06 15:09:14 +02:00
Alessandro Astone
a0c2e66529 ply-utils: Create parent directory before binding concrete socket
bind()'ing a concrete socket requires that the parent directory exists already.
2025-07-22 09:41:36 +02:00
Hans de Goede
287ae4de45 Merge branch 'fix-keymap-icon-on-second-gpu' into 'main'
Fix keymap and capslock icon on displays on second GPU

See merge request plymouth/plymouth!356
2025-07-14 11:23:05 +02:00
Hans de Goede
29e5112d30 Fix keymap and capslock icon on displays on second GPU
The keymap and capslock code in src/plugins/renderers/drm/plugin.c relies
on the terminal passed to backend_create() to get the keymap and current
capslock state (when not using evdev input because of e.g. no XKBLAYOUT
in /etc/vconsole.conf which is the default in at least Fedora).

When 2 GPUs which both have displays attached are used only the first
one gets passed the local_console_terminal as terminal (it is considered
the terminal owner and e.g. listens for keypresses). This leads to keymap
and capslock icons not being shown on displays attached to the second GPU.

To fix this add a second ply_terminal_t argument to backend_create() called
local_console_terminal, which will pass the local_console_terminal to both
drm plugin instances. And modify the drm plugin capslock and keymap code to
use this instead of the normal terminal argument which will be NULL on
the second GPU.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=2375854
Signed-off-by: Hans de Goede <hansg@kernel.org>
2025-07-14 11:21:48 +02:00
Hans de Goede
177e2468bd Merge branch 'use-simpledrm-no-luks' into 'main'
Add UseSimpledrmNoLuks config file keyword

See merge request plymouth/plymouth!355
2025-07-14 11:20:17 +02:00
Hans de Goede
d7b43158c9 Add UseSimpledrmNoLuks config file keyword
Add a UseSimpledrmNoLuks config file keyword this enables simpledrm use,
like the existing "UseSimpledrm" config file keyword. Except when using
LUKS. Showing the LUKS unlock screen using simpledrm has 2 problems:

1. If the GPU drivers are built into the initrd then typically the
   unlock screen will briefly show and then the screen goes black

2. The i915 driver uses the firmware framebuffer as fallback when
   userspace has not installed a fb to scan out from. This happens
   e.g. on logout between the user-session and the display-manager.
   Drawing the unlock screen on the simpledrm fb results in it briefly
   showing when logging out, which looks quite ugly.

This allows distributions to chose to only enable simpledrm when
LUKS is not used.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=2359283
Signed-off-by: Hans de Goede <hansg@kernel.org>
2025-07-14 10:56:44 +02:00
Hans de Goede
bb99d25eb6 Merge branch 'ply_event_loop_watch_fd-assert-fix' into 'main'
drm: Fix crash when terminal fd is still -1 after reconnect

See merge request plymouth/plymouth!354
2025-07-14 10:52:16 +02:00
Hans de Goede
4f53b52f54 drm: Fix crash when terminal fd is still -1 after reconnect
The drm plugin code installs a fd disconnect handler for the terminal fd
which simply calls open_input_source () again.

This assumes that the ply-terminal code's disconnect handler has run first
(which it should) and that ply_terminal_reopen_device () has successfully
re-opened the terminal. This last condition is not always true, resulting
in open_input_source () calling ply_event_loop_watch_fd () with a -1 fd
triggerig an assert in ply_event_loop_watch_fd ():

5  0x00007f62d39a1c6f in __assert_fail (assertion=<optimized out>, file=<optimized out>, line=<optimized out>, function=<optimized out>) at assert.c:127
6  0x00007f62d3bc22c7 in ply_event_loop_watch_fd (loop=<optimized out>, fd=-1, status=status@entry=PLY_EVENT_LOOP_FD_STATUS_HAS_DATA,
    status_met_handler=status_met_handler@entry=0x7f62d3790870 <on_terminal_key_event>,
    disconnected_handler=disconnected_handler@entry=0x7f62d3790c70 <on_input_source_disconnected>, user_data=user_data@entry=0x5647f7dd9fb8)
    at ../src/libply/ply-event-loop.c:732
7  0x00007f62d3790bf6 in open_input_source (backend=0x5647f7dd9f90, input_source=0x5647f7dd9fb8) at ../src/plugins/renderers/drm/plugin.c:1930
8  0x00007f62d3bcbd53 in ply_event_loop_handle_disconnect_for_source (loop=<optimized out>, source=0x5647f7dd69f0) at ../src/libply/ply-event-loop.c:1065
9  ply_event_loop_disconnect_source (loop=<optimized out>, source=0x5647f7dd69f0) at ../src/libply/ply-event-loop.c:1157
10 ply_event_loop_process_pending_events (loop=0x5647f7dd13e0) at ../src/libply/ply-event-loop.c:1277
11 0x00007f62d3bcc068 in ply_event_loop_run (loop=0x5647f7dd13e0) at ../src/libply/ply-event-loop.c:1311
12 0x00005647c99bba48 in main (argc=<optimized out>, argv=<optimized out>) at ../src/main.c:2572

Fix this by checking that the fd >= 0 before calling
ply_event_loop_watch_fd ().

The above backtrace is from the drm plugin, but the same problem exists
in the frame-buffer plugin. So this fix is applied to both.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=2370979
Signed-off-by: Hans de Goede <hansg@kernel.org>
2025-07-14 10:50:57 +02:00
Hans de Goede
d4cbf1fafd Merge branch 'two-step-diskunlockscreen-tweaks' into 'main'
two-step: 2 small disk unlock screen cosmetic tweaks

See merge request plymouth/plymouth!357
2025-07-14 10:49:07 +02:00
Hans de Goede
9f72b7c34d two-step: Add some padding between text-entry field and prompt
Two-step's disk unlock screen shows the prompt text directly below
the text entry field without any padding which looks bad.

Add some padding to make things look better.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=2356893
Signed-off-by: Hans de Goede <hansg@kernel.org>
2025-07-14 10:46:34 +02:00
Hans de Goede
b828874199 two-step: Remove ':' at the end of (passphrase) prompt below text entry field
When asked for e.g. a disk unlock passphrase, plymouth will be passed
a prompt like: "Please enter passphrase for disk $DISK:" the ':' in
the end makes sense when asking for this a text console, but this makes
less sense in the two-step disk unlock screen where the text is below
the passphrase entry field.

Strip any ':' char at the prompt's end on two-step's disk unlock screen.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=2356893
Signed-off-by: Hans de Goede <hansg@kernel.org>
2025-07-14 10:46:34 +02:00
Hans de Goede
5a4bda3de2 Merge branch 'fix-ply-keymap-icon-label-fallback' into 'main'
ply-keymap-icon: Fix falling back to label-plugin when there is no pre-rendered text

See merge request plymouth/plymouth!358
2025-07-14 10:30:42 +02:00
Hans de Goede
98419849ef ply-keymap-icon: Fix falling back to label-plugin when there is no pre-rendered text
In order for the fallback path (keymap_icon->has_prerendered_text == false)
to work properly keymap_icon->keymap_name must be set when no pre-rendered
text is found.

Tested by temporarily removing the "us" entry from ply-keymap-metadata.h.

Signed-off-by: Hans de Goede <hansg@kernel.org>
2025-07-14 10:20:16 +02:00
Hans de Goede
c340ce047b Merge branch 'drm_simpledrm_dpi' into 'main'
drm: Add simpledrm HiDPI display support

See merge request plymouth/plymouth!348
2025-07-14 09:29:42 +02:00
Janne Grunau
6780124665 drm: Add simpledrm HiDPI display support
For devicetree based systems simpledrm might know the actual physical
display dimensions. Test if the reported connector width and height
result in a pixel density larger than 96 DPI. If that's the case
calculate the device scale instead of guessing it based on the
resolution.
This restores HiDPI scaling on 13-inch Apple silicon Macbooks with a
resolution of 2560x1600 (224 - 227 DPI) after commit 1421a9f6
("ply-utils: Increase threshold for guessed hiDPI scaling
to >= 2880x1620").

Signed-off-by: Janne Grunau <j@jannau.net>
2025-07-13 22:55:17 +02:00
Hans de Goede
992870da8a Merge branch 'lower_hidpi_cutoff_value' into 'main'
ply-utils: Adjust HiDPI cut-off value to 1.625f

See merge request plymouth/plymouth!349
2025-07-03 15:09:58 +02:00
Janne Grunau
7e3b8330c9 ply-utils: Adjust HiDPI cut-off value to 1.625f
This matches mutter's behaviour before
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3616 was merged.
It first rounded to the newest fractional scale factor (in 0.25 steps)
and then rounded N.25 and N.5 down to N and N.75 up to N+1.

Commit 3b8e9184 ("ply-utils: Only choose scale 2 when the perfect scale
would be >= 1.75") interprets the mentioned difference of at most 0.25
for rounding up very literal. A differnt ionterpretation of
d03dce4378
intend is that it's desireable to round N.5 down.

This change has unexpected side effect of using a device scale of 1 for
most of Apple's Retina displays in Macbooks (221 - 227 DPI). Raised as
https://gitlab.gnome.org/GNOME/mutter/-/issues/4110 in mutter.

Using 1.75f cut-off value requires a pixel density of 236.25 for HiDPI
while 1.625f requires only 219.375 DPI.

Mutter use the same calculation with
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4490 merged.

Signed-off-by: Janne Grunau <j@jannau.net>
2025-07-03 15:04:17 +02:00
n3rdopolis
38f7ff25b8 Merge branch 'weblate-plymouth-master' into 'main'
Translations update from Fedora Weblate

See merge request plymouth/plymouth!350
2025-06-24 15:08:05 +00:00
David Medina
d103d155b8 Translated using Weblate (Catalan)
Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: David Medina <dmedinacpnl@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/ca/
Translation: plymouth/main
2025-06-24 15:02:32 +00:00
Américo Monteiro
a56423c41a Translated using Weblate (Portuguese)
Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: Américo Monteiro <a_monteiro@gmx.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/pt/
Translation: plymouth/main
2025-06-24 15:02:32 +00:00
hsu zangmen
c9f380661b Translated using Weblate (Chinese (Traditional) (zh_TW))
Currently translated at 100.0% (7 of 7 strings)

Co-authored-by: hsu zangmen <chzang55@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/plymouth/master/zh_TW/
Translation: plymouth/main
2025-06-24 15:02:32 +00:00
n3rdopolis
04d94e52aa Merge branch 'fix-288-frame-buffer' into 'main'
frame-buffer: Check for NULL terminal in watch_input_device

See merge request plymouth/plymouth!353
2025-06-24 13:13:28 +00:00
n3rdopolis
fb802b9ab1 frame-buffer: Check for NULL terminal in watch_input_device
Match the drm backend
2025-06-20 12:44:36 -04:00
Hans de Goede
78f73d5281 Merge branch 'fix-issue-288' into 'main'
drm: Check for NULL terminal in watch_input_device

Closes #288

See merge request plymouth/plymouth!344
2025-06-19 21:15:37 +00:00
Daniel van Vugt
d20b1be527 drm: Check for NULL terminal in watch_input_device
It's allowed to be NULL and the rest of the source file checks for NULL.
Seems the check was just forgotten here.

Closes: https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/288
2025-06-19 20:42:32 +00:00
n3rdopolis
87105eb500 Merge branch 'double-underline-fix' into 'main'
Fix doubly underlined text output and incorrect SGR attribute handling

See merge request plymouth/plymouth!346
2025-06-18 17:18:35 +00:00
Tomita Moeko
11e889ef2f ply-terminal-emulator: Fix incorrect SGR attribute handling
According to ECMA-48 [1], Select Graphic Rendition (SGR) attribute 21
is for "doubly underlined", not "disabling bold" in current plymouth
implementation.

Additionally, SGR 22 is for "normal colour or normal intensity (neither
bold nor faint)", both bold and dim should be disabled with it.

[1] 8.3.117, https://www.ecma-international.org/wp-content/uploads/ECMA-48_5th_edition_june_1991.pdf

Signed-off-by: Tomita Moeko <tomitamoeko@gmail.com>
2025-06-18 15:14:25 +00:00
Tomita Moeko
1e35656625 ply-kmsg-reader: Fix doubly underlined text output
Currently plymouth applies Select Graphic Rendition (SGR) attribute 21
to disable bold text. However, per ECMA-48 [1], this attribute is for
doubly underlined text, not for disabling bold, resulting unintended
doubly underlined output on boot. Fix it by conditionally applying
standard bold attribute (SGR 1) on bold text.

[1] 8.3.117, https://www.ecma-international.org/wp-content/uploads/ECMA-48_5th_edition_june_1991.pdf

Signed-off-by: Tomita Moeko <tomitamoeko@gmail.com>
2025-06-18 15:14:25 +00:00
n3rdopolis
184b7dc2ab Merge branch 'fix-handle-kmsg-reader-crash' into 'main'
kmsg-reader: handle multipart messages

Closes #303

See merge request plymouth/plymouth!352
2025-06-16 00:39:39 +00:00
Cedric Hombourger
8014c505ce kmsg-reader: handle multipart messages
handle_ksmg_message wrongly assumed that all messages are terminated
with a trailing line feed: kernel messages emitted by pr_cont() may
not. At any rate, the return value of the strchr() call ought to be
checked to avoid crashing when parsing incoming messages.

Closes #303
2025-06-16 00:38:00 +00:00
n3rdopolis
6890432b2a Merge branch 'ctrl_alt_delete' into 'main'
ply-input-device: Reboot when users press Ctrl+Alt+Delete

See merge request plymouth/plymouth!351
2025-06-14 01:10:37 +00:00