systemd: default kde-plasma service to tty1

getty@.service starts on tty1 by default, causing tty1 to briefly flash
during boot on postmarketOS:
595d88cdc8/units/getty%40.service.in (L65)

Use tty1 for the kde-plasma service to avoid this.
This commit is contained in:
Bartek G 2025-12-13 13:26:57 +01:00 committed by Devin Lin
parent 7119dc4948
commit a30f1d4331

View file

@ -3,14 +3,14 @@ Description=Open-source user interface for phones, based on Plasma technologies
Documentation=https://invent.kde.org/plasma-mobile Documentation=https://invent.kde.org/plasma-mobile
# replaces the getty # replaces the getty
Conflicts=getty@tty7.service Conflicts=getty@tty1.service
After=getty@tty7.service After=getty@tty1.service
# Needs all the dependencies of the services it's replacing # Needs all the dependencies of the services it's replacing
# (currently getty@tty1.service): # (currently getty@tty1.service):
After=rc-local.service plymouth-quit-wait.service systemd-user-sessions.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. # D-Bus is necessary for contacting logind. Logind is required.
Wants=dbus.socket Wants=dbus.socket
@ -31,7 +31,7 @@ ConditionPathExists=/dev/tty0
[Service] [Service]
Environment=LANG=C.UTF-8 Environment=LANG=C.UTF-8
Environment=XDG_SEAT=seat0 Environment=XDG_SEAT=seat0
Environment=XDG_VTNR=tty7 Environment=XDG_VTNR=tty1
ExecStart=/usr/bin/startplasmamobile ExecStart=/usr/bin/startplasmamobile
TimeoutStartSec=30 TimeoutStartSec=30
User=1000 User=1000
@ -41,7 +41,7 @@ Restart=always
RestartSec=5s RestartSec=5s
# A virtual terminal is needed. # A virtual terminal is needed.
TTYPath=/dev/tty7 TTYPath=/dev/tty1
TTYReset=yes TTYReset=yes
TTYVHangup=yes TTYVHangup=yes
TTYVTDisallocate=yes TTYVTDisallocate=yes
@ -52,7 +52,7 @@ StandardOutput=journal
StandardError=journal StandardError=journal
# Log this user with utmp, letting it show up with commands 'w' and 'who'. # Log this user with utmp, letting it show up with commands 'w' and 'who'.
UtmpIdentifier=tty7 UtmpIdentifier=tty1
UtmpMode=user UtmpMode=user
[Install] [Install]