From owner-svn-src-head@FreeBSD.ORG Mon Nov 3 14:57:42 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 77D8DF7F; Mon, 3 Nov 2014 14:57:42 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 58A1DB91; Mon, 3 Nov 2014 14:57:42 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sA3Evgll044005; Mon, 3 Nov 2014 14:57:42 GMT (envelope-from dumbbell@FreeBSD.org) Received: (from dumbbell@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sA3EvgCJ044004; Mon, 3 Nov 2014 14:57:42 GMT (envelope-from dumbbell@FreeBSD.org) Message-Id: <201411031457.sA3EvgCJ044004@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: dumbbell set sender to dumbbell@FreeBSD.org using -f From: Jean-Sebastien Pedron Date: Mon, 3 Nov 2014 14:57:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r274050 - head/share/man/man4 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2014 14:57:42 -0000 Author: dumbbell Date: Mon Nov 3 14:57:41 2014 New Revision: 274050 URL: https://svnweb.freebsd.org/changeset/base/274050 Log: vt(4): Document kern.vt.fb.default_mode and kern.vt.fb.modes.* Those tunables are used to set a specific mode in vt(4) instead of using the default mode. Differential Revision: https://reviews.freebsd.org/D1098 Reviewed by: ak@, emaste@, kwm@ MFC after: 1 week Modified: head/share/man/man4/vt.4 Modified: head/share/man/man4/vt.4 ============================================================================== --- head/share/man/man4/vt.4 Mon Nov 3 14:35:07 2014 (r274049) +++ head/share/man/man4/vt.4 Mon Nov 3 14:57:41 2014 (r274050) @@ -45,6 +45,8 @@ In .Xr loader.conf 5 : .Cd hw.vga.textmode=1 .Cd kern.vty=vt +.Cd kern.vt.fb.default_mode="x" +.Cd kern.vt.fb.modes.="x" .Pp In .Xr loader.conf 5 or @@ -176,7 +178,7 @@ Otherwise, switches to 640x480x16 VGA mode using .Cm vt_vga . If a KMS -.Pq Kernel Mode Switching +.Pq Kernel Mode Setting video driver is available, the display is switched to high resolution and the KMS driver takes over. When a KMS driver is not available, @@ -203,6 +205,28 @@ By default, is used on computers that boot from BIOS, and .Nm is used on computers that boot from UEFI. +.It Va kern.vt.fb.default_mode +Set this value to a graphic mode to override the default mode picked by the +.Nm +backend. The mode is applied to all output connectors. This is currently +only supported by the +.Cm vt_fb +backend when it's paired with a KMS video driver. +.It Va kern.vt.fb.modes. Ns Pa connector_name +Set this value to a graphic mode to override the default mode picked by the +.Nm +backend. This mode is applied to the output connector +.Pa connector_name +only. It has precedence over +.Va kern.vt.fb.default_mode . +To know the list of available connectors, load the KMS driver and look +at +.Xr dmesg 8 : +it'll contain a list of connectors and their associated tunables. This +is currently only supported by the +.Cm vt_fb +backend when it's paired with a KMS video driver. +.El .Sh KEYBOARD SYSCTL TUNABLES These settings control whether certain special key combinations are enabled or ignored. @@ -255,6 +279,22 @@ This line changes the default color of k on a black background, or black on a bright red background when reversed. .Pp .Dl "options TERMINAL_KERN_ATTR=(FG_LIGHTRED|BG_BLACK)" +.Pp +To set a 1024x768 mode on all output connectors, put the following line in +.Pa /boot/loader.conf : +.Pp +.Dl kern.vt.fb.default_mode="1024x768" +.Pp +To set a 800x600 only on a laptop builtin screen, use the following line instead: +.Pp +.Dl kern.vt.fb.modes.LVDS-1="800x600" +.Pp +The connector name was found in +.Xr dmesg 8 : +.Pp +.Dl info: [drm] Connector LVDS-1: get mode from tunables: +.Dl info: [drm] - kern.vt.fb.modes.LVDS-1 +.Dl info: [drm] - kern.vt.fb.default_mode .Sh SEE ALSO .Xr kbdcontrol 1 , .Xr login 1 ,