Gentoo Archives: gentoo-user

From: Alexander Puchmayr <alexander.puchmayr@×××××××.at>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] After upgrade no login screen anymore
Date: Sun, 12 Mar 2023 15:08:41
Message-Id: 4723730.PYKUYFuaPT@zeus
In Reply to: [gentoo-user] After upgrade no login screen anymore by Alexander Puchmayr
1 On Samstag, 11. März 2023, 13:03:41 CET Alexander Puchmayr wrote:
2 > Hi there,
3 >
4 > After having done a world update, neither sddm nor lightdm do start an
5 > Xserver anymore. The X server itself runs fine, I can start it from the
6 > console and I after setting DISPLAY properly can even start programs using
7 > it, but the login managers do not start X for some reason.
8 >
9 > No hint so far in the logs, and no ideas where I should looking.
10 >
11 > The system is running inside a virtualbox VM, with Win10 as host operating
12 > system.
13 >
14
15 Its even getting more strange, the very same image copied from the windows
16 laptop to a linux box and started with kvm/libvirt works fine, but in windows/
17 virtualbox it doesn't.
18
19 Now I have two completely identical systems which only differn in the
20 hypervisor they're started with, named "virtualbox" and "libvirt". On both
21 systems, I start lightdm from the command line with -d option, and compare the
22 results.
23
24 Intrestingly the "libvirt" system writes "New seat added from logind: seat0",
25 the "virtualbox" system does not, which seems to be the relevant difference
26 (see log output below)
27
28 Further, I found the following command in another forum:
29
30 Gdbus introspect --system --dest org.freedesktop.login1 --object-path /org/
31 freedesktop/login1/seat/seat0
32
33 And the relevant difference here is in the org.freedesktop.login1.Seat
34 properties section
35
36 ...
37 readonly b CanGraphical = false;
38 ...
39
40 on virtualbox. The same command on "libvirt" machine shows "true" here.
41
42 So, what is required for a login seat to be treated as "graphical"?
43
44 Thanks
45 Alex
46
47
48 [virtualbox] # lightdm -d
49 [+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
50 [+0.00s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=867
51 [+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/
52 lightdm.conf.d
53 [+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/
54 lightdm.conf.d
55 [+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
56 [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
57 [+0.00s] DEBUG: Registered seat module local
58 [+0.00s] DEBUG: Registered seat module xremote
59 [+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
60 [+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local
61 (GLocalVfs) for ?gio-vfs?
62 [+0.01s] DEBUG: Using cross-namespace EXTERNAL authentication (this will
63 deadlock if server is GDBus < 2.73.3)
64 [+0.02s] DEBUG: Monitoring logind for seats
65 [+0.02s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
66 [+0.02s] DEBUG: Could not run plymouth --ping: Failed to execute child process
67 ?plymouth? (No such file or directory)
68 [+0.02s] DEBUG: Loading users from org.freedesktop.Accounts
69 [+0.02s] DEBUG: User /org/freedesktop/Accounts/User2001 added
70 [+0.02s] DEBUG: User /org/freedesktop/Accounts/User1001 added
71 [+0.09s] DEBUG: User /org/freedesktop/Accounts/User2002 added
72 ...waiting for ctrl-C and no login screen ...
73
74 [libvirt] # lightdm -d
75 [+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
76 [+0.00s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=793
77 [+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/
78 lightdm.conf.d
79 [+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/
80 lightdm.conf.d
81 [+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
82 [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
83 [+0.00s] DEBUG: Registered seat module local
84 [+0.00s] DEBUG: Registered seat module xremote
85 [+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
86 [+0.00s] DEBUG: Using cross-namespace EXTERNAL authentication (this will
87 deadlock if server is GDBus < 2.73.3)
88 [+0.00s] DEBUG: _g_io_module_get_default: Found default implementation local
89 (GLocalVfs) for ?gio-vfs?
90 [+0.01s] DEBUG: Monitoring logind for seats
91 [+0.01s] DEBUG: New seat added from logind: seat0
92 [+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
93 [+0.01s] DEBUG: Seat seat0 has property CanMultiSession=no
94 [+0.01s] DEBUG: Seat seat0: Starting
95 [+0.01s] DEBUG: Seat seat0: Creating greeter session
96 [+0.01s] DEBUG: Seat seat0: Creating display server of type x
97 [+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process
98 ?plymouth? (No such file or directory)
99 [+0.01s] DEBUG: Using VT 7
100 [+0.01s] DEBUG: Seat seat0: Starting local X display on VT 7
101 [+0.01s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
102 [+0.01s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/
103 root/:0
104 [+0.01s] DEBUG: XServer 0: Launching X Server
105 [+0.01s] DEBUG: Launching process 799: /usr/bin/X :0 -seat seat0 -auth /var/
106 run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
107 [+0.01s] DEBUG: XServer 0: Waiting for ready signal from X server :0
108 [+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
109 [+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/
110 DisplayManager/Seat0
111 [+0.01s] DEBUG: Loading users from org.freedesktop.Accounts
112 [+0.01s] DEBUG: User /org/freedesktop/Accounts/User2001 added
113 [+0.02s] DEBUG: User /org/freedesktop/Accounts/User1001 added
114 [+0.18s] DEBUG: User /org/freedesktop/Accounts/User2002 added
115 [+0.40s] DEBUG: Got signal 10 from process 799
116 [+0.40s] DEBUG: XServer 0: Got signal from X server :0
117 [+0.40s] DEBUG: XServer 0: Connecting to XServer :0
118 [+0.40s] DEBUG: Seat seat0: Display server ready, starting session
119 authentication
120 [+0.40s] DEBUG: Session pid=815: Started with service 'lightdm-greeter',
121 username 'root'
122 [+0.55s] DEBUG: Session pid=815: Authentication complete with return value 0:
123 Success
124 [+0.55s] DEBUG: Seat seat0: Session authenticated, running command
125 [+0.55s] DEBUG: Session pid=815: Running command /usr/sbin/lightdm-gtk-greeter
126 [+0.55s] DEBUG: Creating shared data directory /var/lib/lightdm-data/root
127 [+0.55s] DEBUG: Session pid=815: Logging to /var/log/lightdm/seat0-greeter.log
128 [+0.55s] DEBUG: Activating VT 7
129 [+0.81s] DEBUG: Greeter connected version=1.32.0 api=1 resettable=false
130 [+1.40s] DEBUG: Greeter start authentication for alex
131 [+1.40s] DEBUG: Session pid=855: Started with service 'lightdm', username
132 'alex'
133 [+1.41s] DEBUG: Session pid=855: Got 1 message(s) from PAM
134 [+1.41s] DEBUG: Prompt greeter with 1 message(s)