xref: /src/sbin/conscontrol/conscontrol.8 (revision 07d29f9c177e731e4497bedf5fde09176c90b444)
1de2ab11fSAlexander Ziaee.\"-
2*07d29f9cSEd Maste.\" SPDX-License-Identifier: BSD-2-Clause
364ce1efcSJonathan Lemon.\"
464ce1efcSJonathan Lemon.\" Copyright (c) 2001 Jonathan Lemon <jlemon@FreeBSD.org>
564ce1efcSJonathan Lemon.\" All rights reserved.
664ce1efcSJonathan Lemon.\"
764ce1efcSJonathan Lemon.\" Redistribution and use in source and binary forms, with or without
864ce1efcSJonathan Lemon.\" modification, are permitted provided that the following conditions
964ce1efcSJonathan Lemon.\" are met:
1064ce1efcSJonathan Lemon.\" 1. Redistributions of source code must retain the above copyright
1164ce1efcSJonathan Lemon.\"    notice, this list of conditions and the following disclaimer.
1264ce1efcSJonathan Lemon.\" 2. Redistributions in binary form must reproduce the above copyright
1364ce1efcSJonathan Lemon.\"    notice, this list of conditions and the following disclaimer in the
1464ce1efcSJonathan Lemon.\"    documentation and/or other materials provided with the distribution.
1564ce1efcSJonathan Lemon.\"
1664ce1efcSJonathan Lemon.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1764ce1efcSJonathan Lemon.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1864ce1efcSJonathan Lemon.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1964ce1efcSJonathan Lemon.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2064ce1efcSJonathan Lemon.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2164ce1efcSJonathan Lemon.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2264ce1efcSJonathan Lemon.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2364ce1efcSJonathan Lemon.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2464ce1efcSJonathan Lemon.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2564ce1efcSJonathan Lemon.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2664ce1efcSJonathan Lemon.\" SUCH DAMAGE.
2764ce1efcSJonathan Lemon.\"
28de2ab11fSAlexander Ziaee.Dd July 7, 2024
2964ce1efcSJonathan Lemon.Dt CONSCONTROL 8
3064ce1efcSJonathan Lemon.Os
3164ce1efcSJonathan Lemon.Sh NAME
3264ce1efcSJonathan Lemon.Nm conscontrol
33de2ab11fSAlexander Ziaee.Nd control physical system video console devices
3464ce1efcSJonathan Lemon.Sh SYNOPSIS
3564ce1efcSJonathan Lemon.Nm
3606279b53SJonathan Lemon.Op Cm list
3764ce1efcSJonathan Lemon.Nm
3806279b53SJonathan Lemon.Cm mute on | off
3964ce1efcSJonathan Lemon.Nm
4006279b53SJonathan Lemon.Cm add | delete
4164ce1efcSJonathan Lemon.Ar console
428d646af5SRuslan Ermilov.Nm
43576f4008SRuslan Ermilov.Cm set | unset Ar console
4464ce1efcSJonathan Lemon.Sh DESCRIPTION
4506279b53SJonathan LemonThe
4606279b53SJonathan Lemon.Nm
4706279b53SJonathan Lemonutility is used to examine and modify the physical devices which back
48068c21c6SJonathan Lemonthe virtual console devices.
4906279b53SJonathan LemonIf no arguments
5064ce1efcSJonathan Lemon(or only the
5106279b53SJonathan Lemon.Cm list
5206279b53SJonathan Lemoncommand)
5306279b53SJonathan Lemonare specified,
5464ce1efcSJonathan Lemonthe current console settings are shown.
5564ce1efcSJonathan Lemon.Pp
5664ce1efcSJonathan LemonThere are two types of logical consoles; a high level console which
5706279b53SJonathan Lemonis represented by
58068c21c6SJonathan Lemon.Pa /dev/console ,
59068c21c6SJonathan Lemonand a low level console.
6006279b53SJonathan LemonThe low level console is used for kernel
6106279b53SJonathan Lemon.Xr printf 9
6206279b53SJonathan Lemonand
6306279b53SJonathan Lemon.Xr ddb 4
6406279b53SJonathan Lemondebugger support,
6506279b53SJonathan Lemonwhile the high level console is used by user programs like
6606279b53SJonathan Lemon.Xr syslogd 8 .
6706279b53SJonathan LemonMultiple device support is implemented only for the low level console;
6864ce1efcSJonathan Lemonthe high level console is set to the first device in the console list.
6964ce1efcSJonathan Lemon.Pp
7064ce1efcSJonathan LemonMultiple console support may be invoked by passing the kernel the
71068c21c6SJonathan Lemon.Fl D
7264ce1efcSJonathan Lemonflag from the boot loader, or by using
7364ce1efcSJonathan Lemon.Nm
7464ce1efcSJonathan Lemonto change the list of console devices after the system has booted.
7564ce1efcSJonathan Lemon.Pp
7664ce1efcSJonathan LemonThe following options are available:
7764ce1efcSJonathan Lemon.Bl -tag -width indent
7864ce1efcSJonathan Lemon.It Cm add | delete Ar console
7964ce1efcSJonathan LemonAdd or delete a physical device from the logical console.
8064ce1efcSJonathan LemonThe device must support low-level console operations.
8164ce1efcSJonathan LemonAdding a device will place it at the front of the list of console
8264ce1efcSJonathan Lemondevices; the first device is used for the high level console.
83016ce61cSGreg Lehey.Pp
84d04b5dfeSRuslan ErmilovThe
85016ce61cSGreg Lehey.Ar console
86d04b5dfeSRuslan Ermilovargument
87016ce61cSGreg Leheyis the name of a console device in
88016ce61cSGreg Lehey.Pa /dev ;
89016ce61cSGreg Leheythe name of the directory may be omitted.
90068c21c6SJonathan Lemon.It Cm mute on | off
9106279b53SJonathan LemonChange the state of console muting.
92068c21c6SJonathan LemonAll console output is suppressed when console muting is
93068c21c6SJonathan Lemon.Cm on .
94576f4008SRuslan Ermilov.It Cm set | unset Ar console
95916d771dSBrian FeldmanSet or unset the virtual console.
96916d771dSBrian FeldmanWhen unset, output from the system, such as the kernel
97916d771dSBrian Feldman.Xr printf 9 ,
98916d771dSBrian Feldmanalways goes out to the real main console.
992633d91bSBrian FeldmanWhen set, it goes to another.
1002633d91bSBrian FeldmanThis is an interface to the tty ioctl
1012633d91bSBrian Feldman.Dv TIOCCONS .
10264ce1efcSJonathan Lemon.El
10364ce1efcSJonathan Lemon.Sh SEE ALSO
10406279b53SJonathan Lemon.Xr syscons 4 ,
1052633d91bSBrian Feldman.Xr tty 4 ,
10632009854SStefan Eßer.Xr vt 4 ,
10706279b53SJonathan Lemon.Xr boot 8 ,
10806279b53SJonathan Lemon.Xr loader 8
10964ce1efcSJonathan Lemon.Sh HISTORY
11064ce1efcSJonathan LemonThe
11164ce1efcSJonathan Lemon.Nm
112e1205e80SPhilippe Charnierutility first appeared in
11306279b53SJonathan Lemon.Fx 5.0 .
11464ce1efcSJonathan Lemon.Sh AUTHORS
11564ce1efcSJonathan Lemon.An Jonathan Lemon
116