Graphical interface on tty1

I don’t get this, my graphical interface is on tty1 and not tty7 as it is on every other SuSE/openSUSE box I’ve ever built (and I’m going back to SuSE 4 at least).

It’s a UEFI dual boot system with Windoze 10 and openSUSE Leap 42.3 and an NVidia GTX 970 graphics card.
I had real problems trying to install Leap 42.3 as it kept hanging at ‘starting udev’ and ended up installing 42.2 which worked and then updating to 42.3 via zypper dup.

I’ve got another PC set up as UEFI dual boot Windoze 10 and openSUSE Leap 42.3 which installed without a hitch (without the GTX 970) and that has the graphical interface on tty7

Have I managed to change some configuration setting by accident and how do I put it back?

Hmmm…just an idea (so apologies if I’m on the wrong track here)…how is ‘NAutoVTs=’ configured in /etc/systemd/logind.conf?

From ‘man logind.conf’

NAutoVTs=
Takes a positive integer. Configures how many virtual terminals (VTs) to allocate by default that, when switched to and are
previously unused, “autovt” services are automatically spawned on. These services are instantiated from the template unit
autovt@.service for the respective VT TTY name, for example, autovt@tty4.service. By default, autovt@.service is linked to
getty@.service. In other words, login prompts are started dynamically as the user switches to unused virtual terminals.
Hence, this parameter controls how many login “gettys” are available on the VTs. If a VT is already used by some other
subsystem (for example, a graphical login), this kind of activation will not be attempted. Note that the VT configured in
ReserveVT= is always subject to this kind of activation, even if it is not one of the VTs configured with the NAutoVTs=
directive. Defaults to 6. When set to 0, automatic spawning of “autovt” services is disabled.

Can you show us output of the following please?

ps aux|grep /usr/bin/[X]

What DM are you using?

It looks like NAutoVTs is set to the default (6)

~> cat /etc/systemd/logind.conf
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6

However …

~> ps aux|grep /usr/bin/[X]
root      3770  8.3  0.4 208660 79644 ?        Ss   09:24   0:16 /usr/bin/X -nolisten tcp -auth /run/sddm/{5e598f7b-cbd5-40ef-9089-d3e05ba89a98} -background none -noreset -displayfd 21 vt1

DM? Sorry, you’ll need to translate that :frowning:

If you mean device mapper, I’ve got /boot on an ext4 partition and everything else (/ and swap) on LVM except /home on ntfs if that helps

However …

~> ps aux|grep /usr/bin/[X]
root      3770  8.3  0.4 208660 79644 ?        Ss   09:24   0:16 /usr/bin/X -nolisten tcp -auth /run/sddm/{5e598f7b-cbd5-40ef-9089-d3e05ba89a98} -background none -noreset -displayfd 21 vt1

Please show us

cat /etc/sddm.conf

No, he meant display manager, and the output already answers that: sddm

I assume that you’re missing the ‘MinimumVT=’ option. The default is 1. Refer ‘man sddm.conf’ for more info.

For reference, I have

MinimumVT=7

Interesting … What I have for sddm.conf is

[Theme]

[XDisplay]

but I do have sddm.conf.rpmnew which looks like this

[Theme]
Current=
CursorTheme=breeze_cursors

[XDisplay]
ServerPath=/usr/bin/X
SessionCommand=/etc/X11/xdm/Xsession
DisplayCommand=/etc/X11/xdm/Xsetup
MinimumVT=7

I’ve added MinimumVT=7, rebooted and that’s sorted it - thanks.

Looking at a couple of other machines …
One, which was an upgrade from 42.2, has an empty sddm.conf and another which was an install of 42.3 has sddm.conf as the sddm.conf.rpmnew above.

I’ll try setting sddm.conf.rpmnew as sddm.conf later and try a reboot with that.

I can’t think of anything I did during the build to change sddm.conf (at least not directly) - do think I should report this as a bug?

Did you install sddm 0.17.0 from KDE:Frameworks5 at some point?
Then the empty sddm.conf would be normal as the default config is now in /usr/lib/sddm/sddm.conf.d/.

The .rpmnew file is normal too, and caused by the way the default config is generated (pre 0.17). But an sddm < 0.17 should not overwrite/cripple your sddm.conf.

I thought it supports sddm.conf.d precisely to avoid such issues?

Yes, but only since 0.17.0.

And if you update to 0.17.0, the package will remove the default options from /etc/sddm.conf, which will result in exactly the file that has been posted, unless you explicitly added other options.
Should not matter, because those options are set in /usr/lib/sddm/sddm.conf.d/. But if you would downgrade again (42.3 comes with 0.14.0), the sddm.conf will not be replaced (because it is a config file), so you will miss those options then.

No idea if that’s the case here, but it would be one possible explanation.

Installed version is 0.14.0 from the main OSS repository

> rpm -qi sddm
Name        : sddm
Version     : 0.14.0
Release     : 5.1
Architecture: x86_64
Install Date: Thu 11 Jan 2018 11:32:13 GMT
Group       : System/GUI/KDE
Size        : 4367555
License     : GPL-2.0+
Signature   : RSA/SHA256, Tue 11 Jul 2017 15:21:15 BST, Key ID b88b2fd43dbdc284
Source RPM  : sddm-0.14.0-5.1.src.rpm
Build Date  : Tue 11 Jul 2017 15:20:55 BST
Build Host  : lamb11
Relocations : (not relocatable)
Packager    : http://bugs.opensuse.org
Vendor      : openSUSE
URL         : https://github.com/sddm/sddm

I am/was intending to upgrade to Frameworks 5 (with sddm 0.17.0) once I was happy with the basic install.

Yes, I expected that.
But you wrote that these affected system are upgraded from 42.2.
Did you maybe use KDE:Frameworks5 (sddm 0.17.0) on 42.2, and then upgraded with only the standard repos (which would downgrade sddm to 0.14.0)?

That’s actually the only way your problem can happen IMHO.

I’m pretty sure there’s no bug in this regard when upgrading from 42.2 to 42.3.

I am/was intending to upgrade to Frameworks 5 (with sddm 0.17.0) once I was happy with the basic install.

This will fix your “problem” as well, as sddm.conf is not necessary anymore. (the shipped default config is in /usr/lib/sddm/sddm.conf.d/ and does set MinimumVT=7)

It was a basic install of 42.2 then set up the repositories for 42.3, adding Frameworks5 and Qt5 repos then zypper dup. I don’t think I even ran an update on the original 42.2 install, going straight on to the upgrade.

I’d had a couple of days failing to get 42.3 to install - hanging at ‘starting udev’ - so I decided to try installing 42.2 (which worked), and then immediately upgraded to 42.3

This can’t be true, or you must have done something wrong then, because you have sddm 0.14.0 installed.

I would suggest to do a full switch to the Frameworks5 and Qt5 repos now, to make sure you have the latest versions from there and no mixture of different package versions.
https://en.opensuse.org/SDB:Vendor_change_update#Full_repository_Vendor_change
That should also fix the “Graphical interface on tty1” problem without having to modify sddm.conf, as already explained.

I assure that that’s what I did - I’ve no idea how things went awry, the main thing is they seem to be sorted now - so I’m happy to stop there :slight_smile:

:\OK - one weirdo. While building the workstation it ended up sat on the floor of my (crowded) study as I was also building/configuring another workstation for my other half (who needs Windoze for work). While it was booting, I accidentally nudged it and the boot screen went from it’s usual friendly green to a virulent red as did the user login. I assumed I’d just moved the HDMI a bit because the system was fine once logged in. It was only after that that I noticed the tty problem but, then again, I hadn’t checked on it previously. Surely something like that couldn’t have had an impact.