Bug 54285 - shutdown fails when there are multiple X displays, some unactivated
Summary: shutdown fails when there are multiple X displays, some unactivated
Status: RESOLVED FIXED
Alias: None
Product: kdm
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdm bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-08 10:03 UTC by Andrew Schulman
Modified: 2008-05-19 17:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Schulman 2003-02-08 10:03:03 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Debian stable Packages
OS:          Linux

I have kdm configured to start X displays on three different vt's.  In /etc/kde3/kdm/Xservers, I have:

:0 local@tty1 /usr/X11R6/bin/X :0 vt7 -dpi 100 -nolisten tcp
:1 local@tty2 /usr/X11R6/bin/X :1 vt8 -dpi 100 -nolisten tcp
:2 local@tty3 /usr/X11R6/bin/X :2 vt9 -dpi 100 -nolisten tcp

This works fine.  It's useful for sharing a single console among several users.

The problem comes with the Shutdown command, at the kdm login screen.  When Shutdown is issued, the X server on that vt (e.g. vt7) shuts down.  But the OS does NOT shut down, if the other vt's (e.g. vt8 and vt9) have not been visited since boot time.  In order to make the shutdown command execute, one has to first change to each of the other vt's one time.  As soon as every one of kdm's vt's has been visited at least once, shutdown proceeds as usual and the OS does shut down.
Comment 1 Oswald Buddenhagen 2003-02-08 11:47:48 UTC
yes, its a problem with the X-servers: they don't complete initialization if they are 
switched away. and as long as they have not finished init, they cannot be killed. 
 
gdm works this around by making a short delay between starting xservers - i think 
i'll do the same. 
 
for now, you may want to have a look at demand-loaded xservers - see 
http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdebase/kdm/README?rev=2.17&content-type=text/x-cvsweb-markup 
 
Comment 2 Oswald Buddenhagen 2003-12-15 03:13:17 UTC
fixed for kde 3.2