1 .\" Copyright (c) 2017, Joyent, Inc.
2 .\" Copyright (c) 2008 Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the
4 .\" Common Development and Distribution License (the "License").
5 .\" You may not use this file except in compliance with the License.
6 .\"
7 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8 .\" or http://www.opensolaris.org/os/licensing.
9 .\" See the License for the specific language governing permissions
10 .\" and limitations under the License.
11 .\"
12 .\" When distributing Covered Code, include this CDDL HEADER in each
13 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14 .\" If applicable, add the following below this CDDL HEADER, with the
15 .\" fields enclosed by brackets "[]" replaced with your own identifying
16 .\" information: Portions Copyright [yyyy] [name of copyright owner]
17 .Dd October 29, 2017
18 .Dt VT 7I
19 .Os
20 .Sh NAME
21 .Nm vt
22 .Nd Solaris virtual console interface
23 .Sh SYNOPSIS
24 .In sys/kd.h
25 .In sys/vt.h
26 .Sh DESCRIPTION
27 The virtual console device driver \(em also known as virtual terminal
28 .Pq Sy VT
29 \(em is a layer of management functions that provides facilities to
30 support and switch between multiple screen faces on a single physical device.
31 .Pp
32 VT's are accessed in the same way as other devices.
33 The
34 .Xr open 2
35 system
36 call is used to open the virtual console and
37 .Xr read 2 ,
38 .Xr write 2
39 and
40 .Xr ioctl 2
41 are used in the normal way and support the functionality of the
42 underlying device.
302 (where "#" represents 2 to 6) in addition to the system
303 console running on
304 .Pa /dev/console .
305 Normally Xorg uses the seventh virtual console
306 .Pq Pa /dev/vt/7 .
307 To switch from consoles to Xserver (which normally
308 picks up the first available virtual console), use [ Ctrl + ] Alt + F7 .
309 .Bd -literal -offset indent
310 # svcs | grep login
311 online 17:49:11 svc:/system/console-login:default
312 online 17:49:11 svc:/system/console-login:vt2
313 online 17:49:11 svc:/system/console-login:vt3
314 online 17:49:11 svc:/system/console-login:vt4
315 online 17:49:11 svc:/system/console-login:vt5
316 online 17:49:11 svc:/system/console-login:vt6
317 .Ed
318 .Pp
319 .Sy console-login:default
320 is for the system console, others for virtual consoles.
321 .Pp
322 You can modify properties/disable/enable and remove/add virtual consoles using
323 .Xr smf 5 :
324 .Bd -literal -offset indent
325 # svccfg -s console-login add vt8
326 # svccfg -s console-login:vt8 setprop \e
327 ttymon/device=astring: "/dev/vt/8"
328 # svcadm enable console-login:vt8
329 .Ed
|
1 .\" Copyright 2020 Peter Tribble.
2 .\" Copyright (c) 2017, Joyent, Inc.
3 .\" Copyright (c) 2008 Sun Microsystems, Inc. All Rights Reserved.
4 .\" The contents of this file are subject to the terms of the
5 .\" Common Development and Distribution License (the "License").
6 .\" You may not use this file except in compliance with the License.
7 .\"
8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 .\" or http://www.opensolaris.org/os/licensing.
10 .\" See the License for the specific language governing permissions
11 .\" and limitations under the License.
12 .\"
13 .\" When distributing Covered Code, include this CDDL HEADER in each
14 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 .\" If applicable, add the following below this CDDL HEADER, with the
16 .\" fields enclosed by brackets "[]" replaced with your own identifying
17 .\" information: Portions Copyright [yyyy] [name of copyright owner]
18 .Dd February 17, 2020
19 .Dt VT 7I
20 .Os
21 .Sh NAME
22 .Nm vt
23 .Nd illumos virtual console interface
24 .Sh SYNOPSIS
25 .In sys/kd.h
26 .In sys/vt.h
27 .Sh DESCRIPTION
28 The virtual console device driver \(em also known as virtual terminal
29 .Pq Sy VT
30 \(em is a layer of management functions that provides facilities to
31 support and switch between multiple screen faces on a single physical device.
32 .Pp
33 VT's are accessed in the same way as other devices.
34 The
35 .Xr open 2
36 system
37 call is used to open the virtual console and
38 .Xr read 2 ,
39 .Xr write 2
40 and
41 .Xr ioctl 2
42 are used in the normal way and support the functionality of the
43 underlying device.
303 (where "#" represents 2 to 6) in addition to the system
304 console running on
305 .Pa /dev/console .
306 Normally Xorg uses the seventh virtual console
307 .Pq Pa /dev/vt/7 .
308 To switch from consoles to Xserver (which normally
309 picks up the first available virtual console), use [ Ctrl + ] Alt + F7 .
310 .Bd -literal -offset indent
311 # svcs | grep login
312 online 17:49:11 svc:/system/console-login:default
313 online 17:49:11 svc:/system/console-login:vt2
314 online 17:49:11 svc:/system/console-login:vt3
315 online 17:49:11 svc:/system/console-login:vt4
316 online 17:49:11 svc:/system/console-login:vt5
317 online 17:49:11 svc:/system/console-login:vt6
318 .Ed
319 .Pp
320 .Sy console-login:default
321 is for the system console, others for virtual consoles.
322 .Pp
323 You can manage virtual consoles using the service management facility,
324 .Xr smf 5 :
325 .Bd -literal -offset indent
326 # svccfg -s console-login add vt8
327 # svccfg -s console-login:vt8 setprop \e
328 ttymon/device=astring: "/dev/vt/8"
329 # svcadm enable console-login:vt8
330 .Ed
|