-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VT's in elogind #5
Comments
This issue should be fixed in the v226.4 release at elogind/elogind, so this issue can be closed. I have run Plasma on Wayland started by sddm using the new version, so I guess Weston should work fine, too. |
I have successfully started a plasma wayland session with intel free drivers and elogind-226 on manjaro. Regarding initial question of VT management, I found, that elogind doesn't manage VTs, most obvious with for example qterminal. Say I run as normal user
in gui session. The terminal will login my account. However, this terminal has no command history and so on. I think this is something to do with elogind not managing VT. Could the new openrc getty service be of any help with elogind? |
Auto-spawning VTs requires systemd in practice. That's why commit 059696a removed that functionality. Virtual-terminals are basically a combination of input devices and a monitor. They can be accessed via VTs are always bound to seat0. So only sessions on this seat can use VTs (which means, classic text-mode is only available on seat0). Text-mode sessions are special in that they are not spawned by a login-session. systemd-logind spawns /bin/agetty right during boot for each VT (you can configure how many of the 63 possible should be started). agetty is running as system daemon and not in a session! However, it is bound to seat0, obviously. agetty initializes the VT and runs /bin/login. login then writes a greeter to the VT and reads username plus password from it. As you might notice, this is problematic as it accesses devices attached to a seat even though it’s not running in a session. But due to the design of VTs, this cannot be easily avoided. On systems not running systemd, the init system spawns agetty. When agetty has confirmed a login, it looks up the initial process in /etc/passwd (let’s assume it is /bin/bash) and runs it. So bash is the controlling process in this session. That means, that elogind is completely out of the way and has no control over the whole thing.
No. If I run pkexec bash, I get a root bash with my last history as it was written to ~/.bash_history |
Yep, its the case in plasma5, but I notice something strange going on with lxqt and qterminal. |
@udeved : I haven't tried it with lxqt and qterminal, yet, but will do during the next days. |
I think that resolved with sddm working properly now. |
Oh, that's great! :-) |
What exactly does this mean?
I'm getting
logind: session not running on a VT
when trying to get weston to work with elogind (on guixsd). The problem seems to be thatsd_session_get_vt
returns -1 inlauncher-elogind.c
.Do you have any advice on how to get it working? Would something have to happen on the elogind side? Or do I have to replace the routine in weston with something guixsd compatible?
The text was updated successfully, but these errors were encountered: