Logging out... But can't get back to GUI without rebooting
ArchThis Forum is for the discussion of Arch Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, it's actually slim that I'm using - not gdm. However, regardless, the problem lies within Xorg somewhere. Here are some details of the problem:
I log out of the GUI and, instead of bringing up SLIM again, it leaves me to login at the command prompt:
Code:
Fatal Error: no screens found
xinit: giving up
xinit: unable to connect to x server: Connection refused
xinit: Server Error
------------------
kris@localhost$ sudo rc.d restart slim
Stopping Simple Login Manager [FAILED] (probably because it is already stopped
Starting Simple Login Mangaer [DONE]
------------------
startx then fails again (or sudo rc.d start slim as well) and I get the same errors as listed above.
edit /etc/inittab and comment out the line for runlevel 3 and uncomment the line for runlevel 5
Code:
#id:3:initdefault:
id:5:initdefault:
and also uncomment the line to start Slim
Code:
x:5:respawn:/usr/bin/slim >& /dev/null
Yep. Tried those too. Just tried them again and had no luck. I typically ignore the /etc/inittab file during setup and just ad slim to the DAEMONS array in /etc/rc.conf. I wonder if this could be a bug in X?
Sorry for the long delay. I went camping for the weekend in the mountains.
Anyway, I have the runlevel 3 option uncommented (and slim commented out below) in the /etc/inittab file. I also have slim listed as the last to load in the daemons array.
I wonder if it could be some kind of bug with video drivers or something. It's as if X doesn't properly shut down. Even if I run pkill x or other commands.
Anyway, I have the runlevel 3 option uncommented (and slim commented out below) in the /etc/inittab file. I also have slim listed as the last to load in the daemons array
If you speak of the daemons array in the /etc/rc.conf file, you cannot use together the inittab file and the rc.conf file to start slim at boot. You need to choose one or the other, but not both of them.
Update: I believe this might be an error with the Nvidia drivers. I decided to play with Archbang the other day and had the exact same issue. Even now, with stock Arch on here and no login manager, it still happens. Runlevel 3 is the only thing not commented in the /etc/inittab file and startx is my command for starting x. When I logout, I always have to reboot before I can log back into a GUI environment.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.