From a30f1d43315f19d5c49717e06a2c8d92ae3a46c7 Mon Sep 17 00:00:00 2001 From: Bartek G Date: Sat, 13 Dec 2025 13:26:57 +0100 Subject: [PATCH] systemd: default kde-plasma service to tty1 getty@.service starts on tty1 by default, causing tty1 to briefly flash during boot on postmarketOS: https://github.com/systemd/systemd/blob/595d88cdc86afdf40127282d711c5985c85fed9b/units/getty%40.service.in#L65 Use tty1 for the kde-plasma service to avoid this. --- plasma-mobile.service | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plasma-mobile.service b/plasma-mobile.service index 51944625..92945d00 100644 --- a/plasma-mobile.service +++ b/plasma-mobile.service @@ -3,14 +3,14 @@ Description=Open-source user interface for phones, based on Plasma technologies Documentation=https://invent.kde.org/plasma-mobile # replaces the getty -Conflicts=getty@tty7.service -After=getty@tty7.service +Conflicts=getty@tty1.service +After=getty@tty1.service # Needs all the dependencies of the services it's replacing # (currently getty@tty1.service): After=rc-local.service plymouth-quit-wait.service systemd-user-sessions.service -OnFailure=getty@tty7.service +OnFailure=getty@tty1.service # D-Bus is necessary for contacting logind. Logind is required. Wants=dbus.socket @@ -31,7 +31,7 @@ ConditionPathExists=/dev/tty0 [Service] Environment=LANG=C.UTF-8 Environment=XDG_SEAT=seat0 -Environment=XDG_VTNR=tty7 +Environment=XDG_VTNR=tty1 ExecStart=/usr/bin/startplasmamobile TimeoutStartSec=30 User=1000 @@ -41,7 +41,7 @@ Restart=always RestartSec=5s # A virtual terminal is needed. -TTYPath=/dev/tty7 +TTYPath=/dev/tty1 TTYReset=yes TTYVHangup=yes TTYVTDisallocate=yes @@ -52,7 +52,7 @@ StandardOutput=journal StandardError=journal # Log this user with utmp, letting it show up with commands 'w' and 'who'. -UtmpIdentifier=tty7 +UtmpIdentifier=tty1 UtmpMode=user [Install]