Bug 37174 - Missing -novtswitch option
Summary: Missing -novtswitch option
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.6 (2010.12)
Hardware: Other FreeBSD
: medium minor
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
Depends on:
Reported: 2011-05-13 04:58 UTC by Josselin Mouette
Modified: 2018-03-24 06:41 UTC (History)
1 user (show)

See Also:
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.



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.