View previous topic :: View next topic |
Author |
Message |
krotuss Apprentice
Joined: 01 Aug 2008 Posts: 239
|
Posted: Sat Sep 07, 2024 12:18 am Post subject: KDE6 upgrade and vt change |
|
|
Hi, first graphical session on my current machine used to run on vt2 ([ctr+]alt+f2), but now it runs on vt7. On vt2 now runs black screen with mouse cursor arrow, is this some sddm stub? I am curios why the change and is it related directly to KDE6 upgrade or switch to wayland? |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3425 Location: Canada
|
Posted: Sat Sep 07, 2024 3:42 am Post subject: Re: KDE6 upgrade and vt change |
|
|
krotuss wrote: | Hi, first graphical session on my current machine used to run on vt2 ([ctr+]alt+f2), but now it runs on vt7. On vt2 now runs black screen with mouse cursor arrow, is this some sddm stub? I am curios why the change and is it related directly to KDE6 upgrade or switch to wayland? |
Display-manager traditionally run on vt7 for like 25 years. The reason is that usually 6 getty's are launched and take over tty2-tty6. Display manager starts on vt2 only if it starts before the gettys. That actually cause some problems If getty is started on tty2 later, as it could grab a keyboard. See the old note in /etc/init.d/display-manager. So it seems that last year or so we were getting the situation with display-manager getting on vt2, and perhaps this was corrected. This is all on display-manager level, kde or wayland is not involved, I think.[/quote] |
|
Back to top |
|
|
Ralphred l33t
Joined: 31 Dec 2013 Posts: 653
|
Posted: Sat Sep 07, 2024 5:12 am Post subject: Re: KDE6 upgrade and vt change |
|
|
dmpogo wrote: | So it seems that last year or so we were getting the situation with display-manager getting on vt2, and perhaps this was corrected. |
I don't know about other set-ups, but sddm had the ability to specify a "minimum VT" removed, and replaced with some other code that didn't (maybe still doesn't?)* work. It basically defaulted to "find the first free vt", and with the default ordering of the ttys in gentoo's inittab meant that it would start on vt2 ('cus the system was still booting on vt1), then on restart would be forced to vt7 because the "respawning" agetty took vt2 in the downtime.
I made a nasty hacky workaround by putting the lines for the getty spawns above the "lx:x:wait:/sbin/openrc [runlevel that will start sddm]" line in inittab - I expected (at the time) to be bitten by this later, but I forgot I'd done it until I read this thread.
*The replacement code meant messing with cmake files, I tried it at that time and it didn't work, so I kicked that "fix" to the curb - might work now though... |
|
Back to top |
|
|
krotuss Apprentice
Joined: 01 Aug 2008 Posts: 239
|
Posted: Sat Sep 07, 2024 9:09 am Post subject: |
|
|
Thanks. I was able to find out what is binding vt2:
Code: | find /proc -lname \*tty2 2>/dev/null
/proc/3346/task/3346/fd/11
/proc/3346/task/3390/fd/11
/proc/3346/task/3391/fd/11
/proc/3346/task/3392/fd/11
/proc/3346/task/3394/fd/11
/proc/3346/fd/11
/proc/3385/task/3385/fd/0
/proc/3385/task/3385/fd/1
/proc/3385/task/3385/fd/2
/proc/3385/fd/0
/proc/3385/fd/1
/proc/3385/fd/2
|
3385 is agetty, based on PID started after 3346:
Code: |
...
├─sddm(3313)─┬─X(3346)─┬─{X}(3390)
│ │ ├─{X}(3391)
│ │ ├─{X}(3392)
│ │ └─{X}(3394)
...
|
It seems, that if I choose to run plasma in X then that vt2 session gets recycled to run KDE, but with wayland new vt is used.
This is what I get when I click 'switch user' and login twice:
Code: |
root 3346 0.0 0.3 539800 62636 ? Ssl ... 0:00 /usr/bin/X -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_hlOYrx -noreset -displayfd 16
root 15469 0.0 0.3 539920 61328 tty8 Ssl+ ... 0:00 /usr/bin/X -nolisten tcp -background none -seat seat0 vt8 -auth /run/sddm/xauth_MKXfpb -noreset -displayfd 20
root 17051 1.7 0.3 539852 62272 tty10 Ssl+ ... 0:00 /usr/bin/X -nolisten tcp -background none -seat seat0 vt10 -auth /run/sddm/xauth_FeFSuX -noreset -displayfd 29
|
So as a side-effect of using wayland, one gets vt consumption twice as high as with X? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|