LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Weird shutdown behavior (black screen, system NOT halted) (https://www.linuxquestions.org/questions/linux-software-2/weird-shutdown-behavior-black-screen-system-not-halted-384061/)

rutgerw 11-17-2005 01:35 PM

Weird shutdown behavior (black screen, system NOT halted)
 
Hi all,

When I try to reboot/shutdown my computer from a terminal in X or via a ssh connection, my screen goes black, but the system will not halt. When doing the same from a tty (e.g. crtl-alt F1), even with X in the background, my system behaves normally.
The commands issued are: 'shutdown -r now', and 'reboot', both of which experience the same problem.

Does anyone has an idea?

I'm running Slackware -current.

rutgerw 11-20-2005 04:27 PM

*BUMP*

nukkel 11-20-2005 04:36 PM

Are you using a display manager (gdm/kdm/xdm) ?

Does the screen also go blank when manually killing the X server (by pressing Ctrl+Alt+Backspace) ?

In that case, I may have an idea you can try, so let me know.

rutgerw 11-21-2005 03:43 PM

The screen does indeed go blank when I manually kill the X-server.
I'm running kdm as display manager.

Hope your solution helps..

regards

nukkel 11-22-2005 02:31 AM

I have this problem too here... It's the X server that does not like to be reloaded (video card driver problem, I guess, what card are you using?).
I use gdm and I noticed, when a user logs out, gdm *reloads* the X server (=sort of resetting it without actually killing and restarting it). Then, boom, system crashes.
So I checked the config file (/etc/X11/gdm/gdm.conf) and found that you can ask that the X server be restarted instead of just reloaded:
Code:

# If you are having trouble with using a single server for a long time and
# want gdm to kill/restart the server, turn this on
AlwaysRestartServer=true    # this was false by default.

Restarted my system, and... everything worked just fine!!
KDM will probably have a similar option, but I never used KDM, so I can't tell for sure. Probably the config file or the man page will give more info.

Let me know if it works under KDM too!

If after this the Ctrl+Alt+Bsp still causes a crash, you can disable this key sequence in /etc/X11/XF86Config:
Code:

Section "ServerFlags"
  ...
  Option "DontZap"
  ...
EndSection

Regards,
nukkel

nukkel 11-22-2005 02:41 AM

Just did a quick google, the option exists: in the "kdmrc" file, section "[X-*-Core]":

Code:

TerminateServer

    Whether kdm should restart the local X-Server after session exit instead of resetting it. Use this if the X-Server leaks memory or crashes the system on reset attempts.

    The default is “false”.

Found this at http://docs.kde.org/development/en/k...kdm-files.html

Regards,
nukkel

rutgerw 11-22-2005 07:25 AM

I'm using a ATI radeon 9600 graphics card.

However, the solution you mentioned didn't help. So I'm afraid I'm back where I was again.:cry:

nukkel 11-22-2005 11:20 AM

Damn... must be another problem then...
I'm afraid I can't really help any further, I've no idea what else can cause this...

43r05p4c3 01-06-2006 10:47 AM

Do you have the ATI drivers installed?
If so, this is the cause of the problem. I actually have the opposite problem, where the X-server fails to load properly on boot.

Unfortunately, I haven't figured out how to solve it, but it's definitely some conflict between ATI and the dm's. I haven't checked, but there might be a new driver that solves this problem.

Hopefully this will give you some ideas for what problems to look for,

Steve

superbnerb 01-07-2006 10:16 AM

please do the following:

go to
Code:

/etc/init.d/halt
and using kwrite or kedit callup this file by typing into the konsole
Code:

kedit halt
change the line that says:
Code:

command='sbin/halt -p'
it's probably the first couple of main code chunks, towards the top.

chances are you don't have the -p and don't forget the space. Save then reboot and see what happens. my computer was stuck at the halted system message and this helped it. who knows if it will help you or not.


All times are GMT -5. The time now is 03:15 PM.