Bug 113718

Summary: Control-Alt-Backspacing the X server does not restart it.
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Miguel de Icaza <miguel>
Component: X.OrgAssignee: Gary Ekker <gekker>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P2 - High    
Version: unspecified   
Target Milestone: ---   
Hardware: i686   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Xorg.0.log
xorg.conf
bzip2'ed tarball of all my Xorg logs

Description Miguel de Icaza 2005-08-29 02:19:44 UTC
Am running OpenSUSE 10 Beta 3.

If I Control-Alt-Backspace my session, the X server dies, but it does not restart.

I tried killing `gdm' and hoping that init would restart it, but it doesnt.

The only solution I have found is to type:

/sbin/telinit 3
/sbin/telinit 5
Comment 1 Berthold Gunreben 2005-08-29 09:09:43 UTC
Please select the correct Product for your Bugreports. See also 
http://www.opensuse.org/index.php/Submit_a_bug 
All openSUSE Bugs that are not related to the wiki should go into 
Product SUSE LINUX 10.0, since this uses the same code base. 
 
Comment 2 JP Rosevear 2005-08-31 13:50:11 UTC
Moving to X team because "Zap" is handled there.
Comment 3 Stefan Dirsch 2005-08-31 14:02:41 UTC
Please attach /var/log/Xorg.0.log and /etc/X11/xorg.conf.
Comment 4 Stefan Dirsch 2005-09-06 21:18:38 UTC
One week later and still no feedback --> WONTFIX. 
Comment 5 JP Rosevear 2005-09-12 12:52:46 UTC
*** Bug 115972 has been marked as a duplicate of this bug. ***
Comment 6 JP Rosevear 2005-09-12 12:53:36 UTC
Reopening because of dupe - Mark can you get the information requested in #3?
Comment 7 Mark Gordon 2005-09-12 18:06:48 UTC
Created attachment 49665 [details]
Xorg.0.log
Comment 8 Mark Gordon 2005-09-12 18:07:09 UTC
Created attachment 49666 [details]
xorg.conf
Comment 9 Mark Gordon 2005-09-12 18:09:06 UTC
As requested.  FWIW, I had a gnome-terminal open, just as myself.  If I have
nothing open at all (except nautilus, gnome-panel, metacity, etc.), I can't
reproduce the problem.
Comment 10 Stefan Dirsch 2005-09-12 18:12:20 UTC
Please comment out the "DynamicClocks" option and check whether this makes any
difference.
Comment 11 Mark Gordon 2005-09-12 18:45:39 UTC
Steps:
- xdm stop
- edit xorg.conf
- xdm start
- start gnome-terminal
- ctrl-alt-backspace

Nope, still stuck.  
Comment 12 Stefan Dirsch 2005-09-12 19:22:09 UTC
Some things to try. Sorry, these are all wild guesses. Please make only one 
change at one time. 
 
1) Use xdm as displaymanager, so I can make sure that it is not related to 
   gdm. --> /etc/sysconfig/displaymanager: DISPLAYMANAGER 
2) Terminate your Xsession regularly. We had notebooks in the past, which use 
   Ctrl-Alt-BS as hotkey for power management functions. 
3) Disable "DPMS" option in Monitor section. 
 
Comment 13 Mark Gordon 2005-09-12 21:13:23 UTC
Sorry for the delay in replying.  Running RC2 now.

1) No improvement
2) By "regularly" you mean "by means other than ctrl-alt-backspace"? That's
always worked reliably.
3) No improvement
Comment 14 Stefan Dirsch 2005-09-13 00:48:42 UTC
> 2) By "regularly" you mean "by means other than ctrl-alt-backspace"?  
Yes.  
  
I still don't understand. What happens exactly when you logout from your  
Xsession? 
  
a) Is the xdm/gdm still running and the Xserver couldn't get up again?  
b) Or has the xdm/gdm crashed itself?  
  
Comment 15 Mark Gordon 2005-09-13 14:40:58 UTC
a) gdm still running, Xserver not running, presumably couldn't get up again.

I'll try again with xdm.
Comment 16 Stefan Dirsch 2005-09-13 14:44:30 UTC
If the Xserver can't get up there must exist a logfile /var/log/Xorg.0.log.*, in
which you can see why it can't get up again.
Comment 17 Mark Gordon 2005-09-13 15:22:41 UTC
Update to #15: xdm is in the same position as gdm here: still running, server dead.

I'm not sure it's a matter of the server not being able to restart.  There's
none of the spewage I'm used to seeing from Xservers that die on launch.
Comment 18 Stefan Dirsch 2005-09-13 15:25:09 UTC
Read my comment #16.
Comment 19 Mark Gordon 2005-09-13 17:18:14 UTC
"There must exist a logfile"

True.

"...in which you can see why it can't get up again".

I'm skeptical.

I'll tar up /var/log/Xorg* and attach it.
Comment 20 Mark Gordon 2005-09-13 17:19:09 UTC
Created attachment 49820 [details]
bzip2'ed tarball of all my Xorg logs
Comment 21 Stefan Dirsch 2005-09-13 20:14:28 UTC
Indeed. Maybe you find a hint in /var/log/{xdm,kdm,gdm}* or /var/log/messages.  
I'm running out of ideas. Please reopen, so'll get the reporter. This makes it 
easier for me to use NEEDINFO on you. 
Comment 22 Stefan Dirsch 2005-09-18 16:42:45 UTC
I've meant: "Mark, please reopen, so you'll become the reporter ... 
Comment 23 Mark Gordon 2005-09-19 17:15:16 UTC
as requested.

FWIW, there didn't seem to be anything interesting in /var/log/?dm or
/var/log/messages.  I can attach them if you're interested.
Comment 24 Mark Gordon 2005-09-19 17:15:50 UTC
I'm not sure that worked as intended.
Comment 25 Stefan Dirsch 2005-09-19 21:17:31 UTC
Indeed. It didn't. :-(  
 
I'll try to reproduce ASAP. 
Comment 26 Stefan Dirsch 2005-09-27 14:55:46 UTC
I'm sorry, but I cannot reproduce this problem with 10.0 RC4/final.
Comment 27 Mark Gordon 2005-09-27 19:49:22 UTC
I think there's a hardware-specific component to this; I'm seeing it on a
ThinkPad T42p but not on an R31.  Note also my comments in #9; I can reproduce
this problem if I have a gnome-terminal window open, but I can't if I don't have
such a window open.

Given that Miguel and I have both reported this, I'm not sure we can dismiss
this as an isolated problem.
Comment 28 JP Rosevear 2005-10-27 14:31:33 UTC
This could be http://bugzilla.gnome.org/show_bug.cgi?id=152906, we should patch our gdm.
Comment 29 JP Rosevear 2005-10-27 14:32:30 UTC
Patch is attached to upstream bug.
Comment 30 Gary Ekker 2005-11-02 18:10:19 UTC
Patch submitted for STABLE/PLUS.