Init 4: Logging out of KDE causes black screen, freeze with GDM, KDM and XDM
SlackwareThis Forum is for the discussion of Slackware 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.
Init 4: Logging out of KDE causes black screen, freeze with GDM, KDM and XDM
Hello everybody.
I've got a problem: Whenever I try to "end current session" with KDE with KDM login manager, it boots me back to tty1, but doesn't let me type anything. ttys 2-5 don't work either, while I'm in KDE, or after logging-out. tty6 will allow me to shut down smoothly. With GDM I get a black screen and freeze while trying to log in (don't know what would happen logging out, obviously), and XDM will show the login screen after ending the session, but the colors are inversed and I can't type anything or switch to another tty.
I recently made some changes to get even one tty to work (with KDM). In /opt/kde/share/config/Xservers, I've changed the line:
Code:
:0 local@tty1 /usr/X11R6/bin/X
to
Code:
:0 local /usr/X11R6/bin/X vt7 -terminate -nolisten tcp
For XDM, in order to get even a frozen and inversed image (as opposed to frozen and a blank screen) I changed the following line in /etc/X11/xdm/Xservers:
Code:
:0 local /usr/X11R6/bin/X
to
Code:
:0 local /usr/X11R6/bin/X vt7 -terminate -nolisten tcp
The web site that directed me to do this is here. I modified the lines slightly because the ones they gave me didn't work at all.
To boot into init 4 instead of 3, I changed line in /etc/inittab from
Code:
id:3:initdefault:
to
Code:
id:4:initdefault:
Can anybody help me fix this? I appreciate your help.
OK, I'll try that. I must say, though, that I'm concerned that I'll have the "blank-screen-while-in-terminal" problem; also bootsplash (I believe) requires a framebuffer.
I followed your suggestion and recompiled the kernel without the frame buffer. The result was a blank screen while starting up and a nasty green one while logging out/shutting down.
well...rereading your first post i have.
a little time ago there was also a thread about unusable tty, and IIRC correct,
you should add an option in the graph " server " section of xorg.conf.
smth like : option <see next post>
( this is probably not correct )
if i can find it on this forum i'll post it ( if still needed )
I tried what you suggested and added those lines to my /etc/X11/xorg.conf, but it didn't change anything other than the text resolution in the ttys. I'm beginning to think that it might be a problem with the configuration files, such as inittab or the rc.x files, or perhaps xorg.conf. What really puzzles me is:
1) Why are there only two ttys active: tty1 and tty6 (and tty7 if you count the GUI)? I found something in inittab mentioning this problem, but I can't really make heads or tails of it.
2) Why is it kicking me out to tty1 at all, when I would expect it just to stay in tty7?
Sorry for not warning you about the vga=normal thing. Slipped my mine. And was a way from my comp for couple of days.
Are you starting up in runlevel 3 or 4? By default, if you are using runlevel 4, there is only tty1 and tty6. But if you are using runlevel 3, you should have tty1 to 6 or more (not sure).
I normally boot into init 3, but recently, in order to find ways to make Slackware easier for non-Linux people, I've been experimenting with init 4 so that I can have a graphical login.
Pretty much what I want to is
1) Have a pretty GUI login so people won't freak out at having to type "startx".
2) Have tty1-6 working in case something goes wrong. (Not essential, but definately nice,)
I figure that if Mandrake can do it, I should be able to do it with Slackware, right?
# These are the standard console login getties in multiuser mode:
52 c1:1235:respawn:/sbin/agetty 38400 tty1 linux
53 c2:1235:respawn:/sbin/agetty 38400 tty2 linux
54 c3:1235:respawn:/sbin/agetty 38400 tty3 linux
55 c4:1235:respawn:/sbin/agetty 38400 tty4 linux
56 c5:1235:respawn:/sbin/agetty 38400 tty5 linux
57 c6:12345:respawn:/sbin/agetty 38400 tty6 linux
to this:
Code:
# These are the standard console login getties in multiuser mode:
52 c1:12345:respawn:/sbin/agetty 38400 tty1 linux
53 c2:12345:respawn:/sbin/agetty 38400 tty2 linux
54 c3:12345:respawn:/sbin/agetty 38400 tty3 linux
55 c4:12345:respawn:/sbin/agetty 38400 tty4 linux
56 c5:12345:respawn:/sbin/agetty 38400 tty5 linux
57 c6:12345:respawn:/sbin/agetty 38400 tty6 linux
All the ttys work now, and when I logout, instead of getting an unusable prompt, I get a usable one. Still not what I'm going for, but I think it's a step in the right direction.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.