I actually hadn’t checked that and found that there were a LOT of patches to install (~370). It even contained a different kernel version which is a bit odd…I must have gotten a “non-final” version of the openSuse 12.3 …completely unexpected for me.
Anyway I’ve installed all the patches (had to do a repartition along the way since I made a 100MB /boot partition…yeah:) ), but the situation is exactly the same.
The correct sequence to kill graphics mode in openSUSE is:
su -
init 3
And going to the 7th terminal after graphics mode has been killed, and
back, has worked as far as I remember, but I have never tried under
virtualbox. Under vmware player, those keys sometimes are problematic:
instead of going to the guest they go to the host.
Under VBox, there’s a configurable host key that sends the “Ctrl+Alt” to the guest machine. So the action of switching through ttys is virtually the same. This is not at all random/confusing. It works.
I don’t know the details, but for me both
sudo /sbin/telinit 3
and
sudo /sbin/init 3
change to runlevel 3 on my machine. But they both fail to stop the gnome processes.
ps -Alwf | grep gdm
4 S root 2439 1 0 80 0 - 9493 ? 17:59 ? 00:00:00 /usr/lib/gdm/gdm-simple-slave --display-id /org/gnome/DisplayManager/Displays/_0
4 S root 2444 2439 10 80 0 - 39328 ? 17:59 tty7 00:00:15 /usr/bin/Xorg :0 -background none -verbose -auth /run/gdm/auth-for-gdm-Lm2UcO/database -seat seat0 -nolisten tcp vt7
4 S root 2616 2439 0 80 0 - 7165 ? 17:59 ? 00:00:00 gdm-session-worker [pam/gdm-password]
0 S dan 3177 2180 0 80 0 - 1063 pipe_w 18:01 tty1 00:00:00 grep --color=auto gdm
ps -Alwf | grep gnome
4 S root 2439 1 0 80 0 - 9493 ? 17:59 ? 00:00:00 /usr/lib/gdm/gdm-simple-slave --display-id /org/gnome/DisplayManager/Displays/_0
1 S dan 2620 1 0 80 0 - 15727 - 17:59 ? 00:00:00 /usr/bin/gnome-keyring-daemon --daemonize --login
4 S dan 2623 2616 0 80 0 - 18058 - 17:59 ? 00:00:00 /usr/bin/gnome-session
0 S dan 2738 1 0 80 0 - 4328 - 17:59 ? 00:00:00 /usr/lib/at-spi2/at-spi2-registryd --use-gnome-session
0 S dan 2759 2623 0 80 0 - 40536 - 17:59 ? 00:00:00 /usr/lib/gnome-settings-daemon-3.0/gnome-settings-daemon
0 S dan 2807 2623 9 80 0 - 144633 - 17:59 ? 00:00:16 /usr/bin/gnome-shell
0 S dan 2813 1 0 80 0 - 18026 - 17:59 ? 00:00:00 /usr/lib/gnome-settings-daemon-3.0/gsd-printer
0 S dan 2933 1 0 80 0 - 13444 - 17:59 ? 00:00:00 /usr/lib/gnome-shell/gnome-shell-calendar-server
0 S dan 3184 2180 0 80 0 - 1063 pipe_w 18:02 tty1 00:00:00 grep --color=auto gnome
After closely looking at the processes, the gdm processes, while in graphic mode, look like this
4 S root **2437** 1 0 80 0 - 6705 ? 18:41 ? 00:00:00 /usr/sbin/gdm
4 S root 2439 **2437** 0 80 0 - 9493 ? 18:41 ? 00:00:00 /usr/lib/gdm/gdm-simple-slave --display-id /org/gnome/DisplayManager/Displays/_0
4 S root 2444 2439 14 80 0 - 41776 ? 18:41 tty7 00:00:03 /usr/bin/Xorg :0 -background none -verbose -auth /run/gdm/auth-for-gdm-QRAwiz/database -seat seat0 -nolisten tcp vt7
4 S root 2616 2439 0 80 0 - 7165 ? 18:41 ? 00:00:00 gdm-session-worker [pam/gdm-password]
0 S dan 10567 10543 0 80 0 - 1063 pipe_w 18:41 pts/0 00:00:00 grep --color=auto gdm
so the parent for /usr/lib/gdm/gdm-simple-slave is /usr/sbin/gdm. So telinit 3 kills the /usr/sbin/gdm process, but not the child and its children
I’ve found that killing the /usr/lib/gdm/gdm-simple-slave process after going to runlevel 3, so in this case
sudo kill 2439
also teminates the gnome processes and solves my problem. I can switch between virtual consoles after checking the graphical one.
Thanks all for your input!