[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#91314: marked as done (xserver-xfree86: [core server] want X server command-line option to disable VT switch on server startup and exit)



Your message dated Sat, 12 Aug 2006 22:50:45 +0300
with message-id <20060812195045.GF5396@fooishbar.org>
and subject line fixed upstream
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: xserver-xfree86
Version: 4.0.2-11
Severity: wishlist

This patch adds a new switch to Xserver command line options: -novtswitch.
The switch disables automatic switching to and back from virtual terminal
used by Xserver.

The switch is useful when using another VT to configure the server.
Incorrectly set up server launched from /etc/inittab won't render the
system unusable.

-Topi

diff -ru xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c.orig 
xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c
--- xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c.orig	Fri 
Dec  1 22:26:03 2000
+++ xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c	Fri Dec  1 
22:36:33 2000
@@ -42,6 +42,7 @@
 #endif
 
 static Bool KeepTty = FALSE;
+static Bool NoVTSwitch = FALSE;
 static int VTnum = -1;
 static int activeVT = -1;
 
@@ -159,10 +160,12 @@
 	/*
 	 * now get the VT
 	 */
-	SYSCALL(result = ioctl(xf86Info.consoleFd, VT_ACTIVATE, xf86Info.vtno));
-	if (result != 0)
-	{
-	    xf86Msg(X_WARNING, "xf86OpenConsole: VT_ACTIVATE failed\n");
+	if (!NoVTSwitch) {
+	    SYSCALL(result = ioctl(xf86Info.consoleFd, VT_ACTIVATE, 
xf86Info.vtno));
+	    if (result != 0)
+	    {
+		xf86Msg(X_WARNING, "xf86OpenConsole: VT_ACTIVATE failed\n");
+	    }
 	}
 	SYSCALL(result =
 		  ioctl(xf86Info.consoleFd, VT_WAITACTIVE, xf86Info.vtno));
@@ -208,10 +211,12 @@
 	/*
 	 * now get the VT
 	 */
-	SYSCALL(result = ioctl(xf86Info.consoleFd, VT_ACTIVATE, xf86Info.vtno));
-	if (result != 0)
-	{
-	    xf86Msg(X_WARNING, "xf86OpenConsole: VT_ACTIVATE failed\n");
+	if (!NoVTSwitch) {
+	    SYSCALL(result = ioctl(xf86Info.consoleFd, VT_ACTIVATE, 
xf86Info.vtno));
+	    if (result != 0)
+	    {
+		xf86Msg(X_WARNING, "xf86OpenConsole: VT_ACTIVATE failed\n");
+	    }
 	}
 	SYSCALL(result =
 		ioctl(xf86Info.consoleFd, VT_WAITACTIVE, xf86Info.vtno));
@@ -272,6 +277,11 @@
 		}
 		return(1);
 	}
+	if (!strcmp(argv[i], "-novtswitch"))
+	{
+		NoVTSwitch = TRUE;
+		return(1);
+	}
 	return(0);
 }
 
@@ -281,5 +291,6 @@
 	ErrorF("vtXX                   use the specified VT number\n");
 	ErrorF("-keeptty               ");
 	ErrorF("don't detach controlling tty (for debugging only)\n");
+	ErrorF("-novtswitch            don't switch VT's\n");
 	return;
 }




--- End Message ---
--- Begin Message ---
You can now use -novtswitch.

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply to: