black screen of death every tine i log out as root!
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
black screen of death every tine i log out as root!
I have debian sarge installed, on the whole it is stable, runs for days without any issues, but when i log out as root, and after confirming logout, the screen turns black and the mouse pointer freezes, the only way to recover the system is by turning off the power.
this only happens when logging out as root, logging out as a user works without a problem.
any ideas on how to overcome this problem, or any suggestions about which logfiles to look at to get me on the right path to solving this problem? i'm aware that it is not a good idea to log in as root, however i will be happier, and also understand linux better when i can fix this.
any helpful suggestions are much appreciated.
no, i used net install, everything is still basically as it arrived, dos'ent seem to be a hardware problem either, my guess is it could be connected somehow to kde, but that is just a guess, really i do not have a clue where to begin.
It's either KDE or your X server... I really don't think it would be an issue with the Kernel. I've actually used quite a few stock kernels, and aside from tending to be a litle bloated and not supporting cpu throttling for my laptop, they have always been quite good. After all, all they really do is add patches (and too many distros these days are coming without the full kernel-source or even kernel-headers).
Do you use XOrg or XFree86? Can you post the config files?
im using xfree86, not sure which config file would prove helpful, anyway here is the file XF86Config-4, this is the only config file i have edited, the 1024x768 were added by me.
# XF86Config-4 (XFree86 X Window System server configuration file)
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
# cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
# md5sum /etc/X11/XF86Config-4 >/var/lib/xfree86/XF86Config-4.md5sum
# dpkg-reconfigure xserver-xfree86
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
when you get a black screen, can you switch to a console using ctrl-alt-F1 (or F2, F3, etc.)? are you using a login manager (KDM, XDM, etc)? if so, does logout work if you run at runlevel 3 (non-gui login) instead?
hmmm. sounds like it may be related to either logging out of kde, or redisplaying the GDM screen upon logout from kde.
maybe you can narrow it further by not using GDM/KDM/XDM - you can change the runlevel by editing /etc/inittab - the runlevel line should be close to the top, maybe the first line of the file - change "5" to "3" - that will make init use runlevel 3, (ie, not start a login manager automatically). then you can login and start X with "startx" - if the kde logout still fails you'll know that's the culprit.
note, there may be some debian-specific way to do things, like setting the window manager/DE run when startx is used? you should be able to select by listing it in .xinitrc, but check with the debian forum on that... same for using KDM instead of GDM, which should be trivial, but may have a debian-specific "right" way to do it
good to hear. I'm not sure what services/daemons etc. are run in runlevel 2 in Debian - it will vary by distro, and of course you can customize it however you like... anyway, maybe try using KDM or XDM, if you have them installed, or GDM in runlevel 5 instead?
I can't remember how to switch login managers in debian (in Slackware it's just a matter of commenting a couple of lines) - I remember something about using /etc/alternatives? err.... I'll leave it for a knowlegeable Debian user