Bug 36557 - server regeneration messes up console with -novtswitch
Summary: server regeneration messes up console with -novtswitch
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.5 (2009.10)
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2011-04-24 19:42 UTC by Bryan Henderson
Modified: 2018-06-12 18:43 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
A fix (424 bytes, patch)
2011-04-24 19:43 UTC, Bryan Henderson
no flags Details | Splinter Review

Description Bryan Henderson 2011-04-24 19:42:05 UTC
On a Linux system with the -novtswitch server option, if I regenerate the server (i.e. end one generation and start the next by disconnecting the last client) while the X virtual console (VT) is not in the foreground, it messes up the console by displaying the X screen.

There is code in lnx_init.c to switch to the X VT as the server generation starts, but for some reason it is conditioned on -novtswitch _not_ being specified.  This doesn't make sense; -novtswitch means that when the whole server (not just generation) shuts down, it leaves the virtual console selection alone, whereas without -novtswitch, the server would switch to the foreground whatever VT was there back when the server was started.
Comment 1 Bryan Henderson 2011-04-24 19:43:08 UTC
Created attachment 46036 [details] [review]
A fix
Comment 2 Julien Cristau 2011-04-27 01:40:10 UTC
Please send a git formatted patch against git master to xorg-devel@lists.x.org for review (per http://www.x.org/wiki/Development/Documentation/SubmittingPatches)
Comment 3 Bryan Henderson 2011-04-27 19:25:04 UTC
(In reply to comment #2)
> Please send a git formatted patch against git master to xorg-devel@lists.x.org
> for review (per
> http://www.x.org/wiki/Development/Documentation/SubmittingPatches)

Sorry, I don't have one.  Nor can I make one -- I don't even know git.

(I didn't mean to submit a patch, just to report the bug, in case another user was having the problem or a developer wanted to fix it).
Comment 4 Adam Jackson 2018-06-12 18:43:43 UTC
Mass closure: This bug has been untouched for more than six years, and is not obviously still valid. Please file a new report if you continue to experience issues with a current server.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.