Bug 37174

Summary: Missing -novtswitch option
Product: xorg Reporter: Josselin Mouette <joss>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: minor    
Priority: medium CC: kibi
Version: 7.6 (2010.12)   
Hardware: Other   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:

Description Josselin Mouette 2011-05-13 04:58:16 UTC
Under FreeBSD (or kFreeBSD for that matter) there is, like with Linux, some code to switch back to the VT from which the X server was launched. It’s at hw/xfree86/os-support/bsd/bsd_init.c:683:

	if (initialVT != -1)
		ioctl(xf86Info.consoleFd, VT_ACTIVATE, initialVT);

This code is useful when you start X from a console, but it becomes obnoxious when run from a display manager, causing unwanted and uncontrolled VT switches when you change users.

Under Linux it can be disabled using the -novtswitch option, but it is not implemented with FreeBSD. It would be nice to be able to rely on a sane VT switching behavior on FreeBSD too (and I guess that would fix the other BSDs as well).
Comment 1 Cyril Brulebois 2011-05-13 07:58:23 UTC
Patch crafted against 1.10.2rc1, tested on a GNU/kFreeBSD VM, sent to xorg-devel@ for review:
| Subject: [PATCH] bsd: Add support for -novtswitch.

http://lists.x.org/archives/xorg-devel/2011-May/thread.html

Mraw,
KiBi.

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.