LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-17-2005, 01:35 PM   #1
rutgerw
Member
 
Registered: Jun 2004
Location: Leiden, The Netherlands
Distribution: Slackware 10.2, SmoothWall Express v3, Kubuntu 7.04, Mac OS X.4
Posts: 69

Rep: Reputation: 15
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.
 
Old 11-20-2005, 04:27 PM   #2
rutgerw
Member
 
Registered: Jun 2004
Location: Leiden, The Netherlands
Distribution: Slackware 10.2, SmoothWall Express v3, Kubuntu 7.04, Mac OS X.4
Posts: 69

Original Poster
Rep: Reputation: 15
*BUMP*
 
Old 11-20-2005, 04:36 PM   #3
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
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.
 
Old 11-21-2005, 03:43 PM   #4
rutgerw
Member
 
Registered: Jun 2004
Location: Leiden, The Netherlands
Distribution: Slackware 10.2, SmoothWall Express v3, Kubuntu 7.04, Mac OS X.4
Posts: 69

Original Poster
Rep: Reputation: 15
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
 
Old 11-22-2005, 02:31 AM   #5
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
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

Last edited by nukkel; 11-22-2005 at 02:36 AM.
 
Old 11-22-2005, 02:41 AM   #6
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
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
 
Old 11-22-2005, 07:25 AM   #7
rutgerw
Member
 
Registered: Jun 2004
Location: Leiden, The Netherlands
Distribution: Slackware 10.2, SmoothWall Express v3, Kubuntu 7.04, Mac OS X.4
Posts: 69

Original Poster
Rep: Reputation: 15
Angry

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.
 
Old 11-22-2005, 11:20 AM   #8
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
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...
 
Old 01-06-2006, 10:47 AM   #9
43r05p4c3
Member
 
Registered: Mar 2005
Location: Ontario, Canada
Distribution: Mandrake 10.0/XP Dual Boot Desktop & Gentoo 2005.1 Laptop
Posts: 79

Rep: Reputation: 15
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
 
Old 01-07-2006, 10:16 AM   #10
superbnerb
Member
 
Registered: Jul 2005
Location: about town
Distribution: Kanotix64
Posts: 71

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutdown problem system halted suse 10.0 stork SUSE / openSUSE 16 11-16-2005 07:56 PM
Black Screen on Shutdown => help huykhoi Linux - Newbie 5 11-14-2005 05:08 AM
Black screen after X server shutdown zralog Linux - Hardware 2 07-09-2004 11:48 AM
X Windows shutdown causes black screen Muzzy Linux - General 6 04-09-2004 06:06 PM
Weird...Riva TNT2 Black Screen Nvidia Drivers... Skorpyo Linux - Newbie 2 01-30-2004 06:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration