You are not logged in.

#1 2009-04-20 07:55:46

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

[GNOME] How to logout back to a shell login promt?

I don't use a login manager, preferring to login directly from the shell (for aesthetic and efficiency reasons as well as those below), then using "exec ck-launch-session gnome-session" in my ~/.xinitrc file to automatically launch a GNOME session. I find this helps if there are problems with the xserver or other system config files and it allows easier root access to the shell to fix problems / reinstall NVIDIA drivers manually etc.

The Problem:

When I logout from GNOME however, it drops back to a flashing cursor in the top left corner, and needs a Ctrl+ALT+F1 to exit the X-server to get back to the shell login prompt.

The Question:

How can I logout from GNOME, preferably using the proper GNOME logout menu command, and drop directly back to the shell login prompt without the additional step of stopping the xserver?

Thanks in advance!

Last edited by sultanoswing (2009-04-20 08:00:17)


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#2 2009-04-20 13:59:08

s3kt0r
Member
Registered: 2009-01-20
Posts: 208

Re: [GNOME] How to logout back to a shell login promt?

I have Gnome installed in another machine, and it logs out just fine (to cli), without stopping xorg. Do you get the options for shutdown functions in Gnome's menu?


box1: Arch (linux-3.17-rc5)
box2: Gentoo (linux-3.17-rc5)
wm: subtle

Offline

#3 2009-04-21 10:53:32

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: [GNOME] How to logout back to a shell login promt?

s3kt0r wrote:

I have Gnome installed in another machine, and it logs out just fine (to cli), without stopping xorg. Do you get the options for shutdown functions in Gnome's menu?

Yep - functions present and accounted for! Hmmm - Perhaps the gnome menu logout IS stopping the xserver, but the flashing cursor in the top left isn't quite dropping all the way back to the shell prompt.


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#4 2009-04-21 11:48:12

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [GNOME] How to logout back to a shell login promt?

Check whether ck-launch-session is still running. It might be that quitting gnome quits gnome-session, but leaves ck-launch-session still hanging there, and that's why you don't get back to the command line.

Offline

#5 2009-04-23 06:40:00

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: [GNOME] How to logout back to a shell login promt?

Good thought....how can I check to see if it's still running? ...and assuming it is, any suggestions as to how to best kill it when logging out of GNOME?


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#6 2009-04-23 08:08:33

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [GNOME] How to logout back to a shell login promt?

Well you can switch to another tty (ctrl+alt+F<somenumber>), log in and do 'ps fx' - that should give you a list of running processes. If ck-launch-session is there, you could 'kill <pid_of_ck-launch-session_process>' to see if that gives you back to the terminal on the tty that you launched xorg in the first place.

But now that I think about it some more, I think that ck-launch-session should end when gnome-session ends... so the problem might be also with the gnome-session itself. Anyway, that 'ps fx' would reveal what processes are running. We can try to take it from there.

Offline

#7 2009-04-23 22:26:44

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: [GNOME] How to logout back to a shell login promt?

bender02 wrote:

Well you can switch to another tty (ctrl+alt+F<somenumber>), log in and do 'ps fx' - that should give you a list of running processes. If ck-launch-session is there, you could 'kill <pid_of_ck-launch-session_process>' to see if that gives you back to the terminal on the tty that you launched xorg in the first place.

But now that I think about it some more, I think that ck-launch-session should end when gnome-session ends... so the problem might be also with the gnome-session itself. Anyway, that 'ps fx' would reveal what processes are running. We can try to take it from there.

Thanks. I logged out of GNOME (to the flashing cursor), switched to tty2 (ATRL+ALT+F2), logged in and ran ps fx, and didn't see any processes running on tty1, and no ck-launch-session.

CTRL+ALT+F1 back to tty1 gave me the shell login prompt.

I'm stumped with this one! It's no biggie, but it isn't as slick as it could be!


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

Board footer

Powered by FluxBB