You are not logged in.
I more or less successfully migrated to systemd and updated the system, but now I cannot switch back and forth between the console session and an X session (managed with tmux) using C-M-F1 and M-F7 anymore, because C-M-F1 does nothing when I'm in the X11 session, and goes back to the X11 session when I used C-M-F2(-6) before. Otherwise, tmux works as usual, so I'm not sure what is the problem here.
Any hints would be appreciated.
Last edited by 4on6 (2012-12-20 00:12:46)
Offline
systemd starts only one console by default, and then starts X in that console (tty1) instead of tty6 or 7. when you press ctrl-alt-F2, another tty is created, and ctrl-alt-F1 switches you back to console 1 (where X is now running -- that's why ctrl-alt-F1 from X apparently does nothing; you're already in console 1).
Note: As of systemd 30, only one getty will be launched by default. If you switch to another tty, a getty will be launched there (socket-activation style). You can still force additional agetty processes to start using the above methods.
https://wiki.archlinux.org/index.php/Sy … default.3F
Last edited by 2ManyDogs (2012-12-19 21:04:34)
Offline
systemd starts only one console by default, and then starts X in that console (tty1) instead of tty6 or 7. when you press ctrl-alt-F2, another tty is created, and ctrl-alt-F1 switches you back to console 1 (where X is now running -- that's why ctrl-alt-F1 from X apparently does nothing; you're already in console 1).
Note: As of systemd 30, only one getty will be launched by default. If you switch to another tty, a getty will be launched there (socket-activation style). You can still force additional agetty processes to start using the above methods.
I don't really understand how and where tmux enters here. Before changing to systemd, I started tmux after booting, and then could open several windows in that console session. Then I created a new tmux session with 'new -s X', and in the window of that second session I called 'startx'. Then, I could always go back from the X11 session to the console session with C-M-F1.
I don't know if this is more a tmux question or a Archlinux question, but the problem is associated with systemd. Since tmux can handle multiple sessions, the original console session is still running when I'm working under X11, and there should be a way to access it?
Does this same problem occur with gnu screen and systemd?
Offline
tmux has nothing to do with this. You're mixing up tmux sessions and virtual consoles. Before, you logged into console one (tty1) and ran tmux. When you created a new session, you were still in console one (all tmux sessions run in one virtual console -- that's what it does, and why it's called terminal multiplexer). When you started X, it started on console six (or seven), and you could switch back to console one with ctrl-alt-F1. Now. systemd starts only one console. You log into it (console one), and start tmux. When you start a new session you are still in console one. When you start X, it starts in tty one. There is nothing to go "back" to (you're still in tty1, but in X and not tmux), so ctrl-alt-F1 seems to fail. When you exit X, you're back in tmux, because you're still on tty1. If you want your old behavior, log in to console one, and start tmux there. Then create console two (ctrl-alt-f2) and start X from there. You can then switch back to your tmux session with ctrl-alt-F1, and back into X with ctrl-alt-F2.
Last edited by 2ManyDogs (2012-12-20 00:14:37)
Offline
Ok, thanks, now I understand, I did not really get the message of your first post because I thought tmux is actually in control of both sessions (or rather both virtual consoles, which I confused with the tmux sessions).
Last edited by 4on6 (2012-12-20 00:15:13)
Offline
You're welcome. I was afraid I would not be able to explain it well enough. It can be confusing. Thanks for marking your thread [SOLVED].
Offline