Deleted Added
full compact
vt.4 (273511) vt.4 (274865)
1.\" Copyright (c) 2014 Warren Block
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (c) 2014 Warren Block
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: stable/10/share/man/man4/vt.4 273511 2014-10-23 02:18:23Z emaste $
25.\" $FreeBSD: stable/10/share/man/man4/vt.4 274865 2014-11-22 17:37:51Z dumbbell $
26.\"
27.Dd October 20, 2014
28.Dt "VIRTUAL TERMINALS" 4
29.Os
30.Sh NAME
31.Nm vt
32.Nd virtual terminal console driver
33.Sh SYNOPSIS

--- 6 unchanged lines hidden (view full) ---

40.Cd "options VT_FB_DEFAULT_HEIGHT=Y"
41.Cd "options SC_NO_CUTPASTE"
42.Cd "device vt"
43.Pp
44In
45.Xr loader.conf 5 :
46.Cd hw.vga.textmode=1
47.Cd kern.vty=vt
26.\"
27.Dd October 20, 2014
28.Dt "VIRTUAL TERMINALS" 4
29.Os
30.Sh NAME
31.Nm vt
32.Nd virtual terminal console driver
33.Sh SYNOPSIS

--- 6 unchanged lines hidden (view full) ---

40.Cd "options VT_FB_DEFAULT_HEIGHT=Y"
41.Cd "options SC_NO_CUTPASTE"
42.Cd "device vt"
43.Pp
44In
45.Xr loader.conf 5 :
46.Cd hw.vga.textmode=1
47.Cd kern.vty=vt
48.Cd kern.vt.fb.default_mode="<X>x<Y>"
49.Cd kern.vt.fb.modes.<connector>="<X>x<Y>"
48.Pp
49In
50.Xr loader.conf 5 or
51.Xr sysctl.conf 5 :
52.Cd kern.vt.kbd_halt=1
53.Cd kern.vt.kbd_poweroff=1
54.Cd kern.vt.kbd_reboot=1
55.Cd kern.vt.kbd_debug=1

--- 115 unchanged lines hidden (view full) ---

171If
172.Va hw.vga.textmode
173is set, the system remains in text mode.
174Otherwise,
175.Nm
176switches to 640x480x16 VGA mode using
177.Cm vt_vga .
178If a KMS
50.Pp
51In
52.Xr loader.conf 5 or
53.Xr sysctl.conf 5 :
54.Cd kern.vt.kbd_halt=1
55.Cd kern.vt.kbd_poweroff=1
56.Cd kern.vt.kbd_reboot=1
57.Cd kern.vt.kbd_debug=1

--- 115 unchanged lines hidden (view full) ---

173If
174.Va hw.vga.textmode
175is set, the system remains in text mode.
176Otherwise,
177.Nm
178switches to 640x480x16 VGA mode using
179.Cm vt_vga .
180If a KMS
179.Pq Kernel Mode Switching
181.Pq Kernel Mode Setting
180video driver is available, the display is switched to high resolution
181and the KMS driver takes over.
182When a KMS driver is not available,
183.Cm vt_vga
184remains active.
185.Sh LOADER TUNABLES
186These settings can be entered at the
187.Xr loader 8

--- 10 unchanged lines hidden (view full) ---

198or
199.Ql sc
200to override the default driver used for the system console.
201By default,
202.Xr sc 4
203is used on computers that boot from BIOS, and
204.Nm
205is used on computers that boot from UEFI.
182video driver is available, the display is switched to high resolution
183and the KMS driver takes over.
184When a KMS driver is not available,
185.Cm vt_vga
186remains active.
187.Sh LOADER TUNABLES
188These settings can be entered at the
189.Xr loader 8

--- 10 unchanged lines hidden (view full) ---

200or
201.Ql sc
202to override the default driver used for the system console.
203By default,
204.Xr sc 4
205is used on computers that boot from BIOS, and
206.Nm
207is used on computers that boot from UEFI.
208.It Va kern.vt.fb.default_mode
209Set this value to a graphic mode to override the default mode picked by the
210.Nm
211backend.
212The mode is applied to all output connectors.
213This is currently only supported by the
214.Cm vt_fb
215backend when it's paired with a KMS video driver.
216.It Va kern.vt.fb.modes. Ns Pa connector_name
217Set this value to a graphic mode to override the default mode picked by the
218.Nm
219backend.
220This mode is applied to the output connector
221.Pa connector_name
222only. It has precedence over
223.Va kern.vt.fb.default_mode .
224The names of available connector names can be found in
225.Xr dmesg 8
226after loading the KMS driver.
227It will contain a list of connectors and their associated tunables.
228This is currently only supported by the
229.Cm vt_fb
230backend when it's paired with a KMS video driver.
231.El
206.Sh KEYBOARD SYSCTL TUNABLES
207These settings control whether certain special key combinations are enabled or
208ignored.
209The specific key combinations can be configured by using a
210.Xr keymap 5
211file.
212.Pp
213These settings can be entered at the

--- 36 unchanged lines hidden (view full) ---

250.Xr config 8 .
251.Pp
252.Dl "options TERMINAL_NORM_ATTR=(FG_GREEN|BG_BLACK)"
253.Pp
254This line changes the default color of kernel messages to be bright red
255on a black background, or black on a bright red background when reversed.
256.Pp
257.Dl "options TERMINAL_KERN_ATTR=(FG_LIGHTRED|BG_BLACK)"
232.Sh KEYBOARD SYSCTL TUNABLES
233These settings control whether certain special key combinations are enabled or
234ignored.
235The specific key combinations can be configured by using a
236.Xr keymap 5
237file.
238.Pp
239These settings can be entered at the

--- 36 unchanged lines hidden (view full) ---

276.Xr config 8 .
277.Pp
278.Dl "options TERMINAL_NORM_ATTR=(FG_GREEN|BG_BLACK)"
279.Pp
280This line changes the default color of kernel messages to be bright red
281on a black background, or black on a bright red background when reversed.
282.Pp
283.Dl "options TERMINAL_KERN_ATTR=(FG_LIGHTRED|BG_BLACK)"
284.Pp
285To set a 1024x768 mode on all output connectors, put the following line in
286.Pa /boot/loader.conf :
287.Pp
288.Dl kern.vt.fb.default_mode="1024x768"
289.Pp
290To set a 800x600 only on a laptop builtin screen, use the following line instead:
291.Pp
292.Dl kern.vt.fb.modes.LVDS-1="800x600"
293.Pp
294The connector name was found in
295.Xr dmesg 8 :
296.Pp
297.Dl info: [drm] Connector LVDS-1: get mode from tunables:
298.Dl info: [drm] - kern.vt.fb.modes.LVDS-1
299.Dl info: [drm] - kern.vt.fb.default_mode
258.Sh SEE ALSO
259.Xr kbdcontrol 1 ,
260.Xr login 1 ,
261.Xr vidcontrol 1 ,
262.Xr atkbd 4 ,
263.Xr atkbdc 4 ,
264.Xr keyboard 4 ,
265.Xr screen 4 ,

--- 38 unchanged lines hidden ---
300.Sh SEE ALSO
301.Xr kbdcontrol 1 ,
302.Xr login 1 ,
303.Xr vidcontrol 1 ,
304.Xr atkbd 4 ,
305.Xr atkbdc 4 ,
306.Xr keyboard 4 ,
307.Xr screen 4 ,

--- 38 unchanged lines hidden ---