# wsconsctl keyboard.encoding=ukRemap
[Caps Lock]to be
[Control L], the left control key:
# wsconsctl keyboard.map+="keysym Caps_Lock = Control_L"To make changes permanent, use the wsconsctl.conf(5) file.
/dev/ttyC5. You can switch between them using
[F6]. The virtual terminal
ttyC4is reserved for use by the X Window system.
[SHIFT]+[PGDN]. The number of pages that you can move up and view is 8. Switching consoles will clear the scrollback buffer. Due to space limitations, the install kernels do not have this feature.
ttyC7and above. For example:
# wsconscfg -t 80x25 6 # this will not work on systems using drm(4)This will create a virtual terminal for
ttyC6, accessed by
[CTRL]+[ALT]+[F7]. To get a
login:prompt on the newly created virtual console, you need to set it to
onin ttys(5), and either reboot or send init(8) a HUP signal using kill(1). Add this command to rc.local(8) if you want the extra screen the next time you boot the computer.
wsfontload -h 8 -e ibm /usr/share/misc/pcvtfonts/vt220l.808 # load 8x8 font wsconscfg -dF 5 # delete screen 5 accessed by [CTRL]+[ALT]+[F6] wsconscfg -t 80x50 5 # add screen 5 with 50 lines of 80 charactersIf you wish to modify other screens, simply repeat the delete and add screen steps for whichever screens you want running at the 80x50 resolution. It is not possible to change the resolution of the primary console device
[CTRL]+[ALT]+[F1]. Avoid changing screen 4 which is used by X as a graphical screen.
display.screen_offdetermines the blanking time in milliseconds.
display.kbdactif set to
on, keyboard activity will unblank the screen.
display.msactif set to
on, console mouse activity will unblank the screen.
display.outactif set to
on, screen output will unblank the screen.
display.vblankif set to
onwill disable the vertical sync pulse. This will cause many monitors to go into an energy saver mode.
# wsconsctl display.screen_off=60000 display.screen_off -> 60000Set them permanently by editing wsconsctl.conf(5). The blanker is activated when either
display.outactis set to
on. Note that one of those two must be
There are two parts to getting a fully functional serial console on an OpenBSD system:
/etc/ttysto get a login prompt
login:prompt at a device, it has to be enabled in
/etc/ttys. The serial terminal is disabled by default on platforms which typically have a keyboard and screen attached. We'll use the amd64 platform as an example. In this case, you must edit the line that reads:
tty00 "/usr/libexec/getty std.9600" unknown offto read something like:
tty00 "/usr/libexec/getty std.9600" vt220 on secureHere,
tty00is the serial port we are using as a console and
vt220is the termcap(5) entry that matches your terminal. Other likely options might include
xterm, etc. The
onbit enables the login prompt by activating getty(8) for that serial port. The
securebit permits a
rootlogin at this console. The
9600bit is the terminal baud rate.
Note that you can use a serial console for install without doing this step, as
the system is running in single user mode, and not using
On some platforms and some configurations, you must bring the system up in single user mode to make this change if a serial console is all you have available.
set tty com0This file is put on your boot drive, which could also be your install media. Use the
sttyoption if you need a baud rate other than 9600bps.
Some systems may be able to operate without a video card in the machine, but certainly not all -- many consider this an error condition. Others are capable of redirecting all BIOS keyboard and screen activity to a serial port through a configuration option, so the machine can be completely maintained through the serial port. Your results may vary. When using this feature, some BIOS implementations may prevent the boot loader from seeing the serial port, thus the kernel will not be told to use it. There may be a BIOS option "Continue Console Redirection after POST." This should be set to OFF, so the boot loader and the kernel can handle their own console.
To use the machine in multi-user mode, you will need to edit
/etc/ttys as explained above.
On some systems, the serial ports are labeled
It is not necessary to make any changes to
/etc/ttys to use a
serial console in multi-user mode.
Some sparc64 systems interpret a BREAK signal on the console port to be the same as a STOP-A command. This kicks the system back to the Forth prompt, stopping any application and operating system at that point. This is handy when desired, but unfortunately, some serial terminals at power-down and some RS-232 switching devices send something the computer interprets as a break signal, halting the machine. Test before you go into production.
If you have a keyboard and monitor attached, you can still force the
serial console to be used instead by using the following commands at the
ok setenv input-device ttya ok setenv output-device ttya ok resetIf
ttyC0is active in
/etc/ttys, as explained above, you can use the keyboard and monitor in X.
ok setenv output-device scca ok setenv input-device scca ok reset-allSet your serial console to 57600bps, 8N1.
Unfortunately, serial console is not directly possible on most MacPPCs. While most of these machines do have serial hardware, it isn't accessible outside the machine. Fortunately, a few companies offer add-on devices for several Macintosh models which will make this port available for use as a serial console.
You will have to change
on and set the speed to 57600 instead of the default of 9600 as
detailed above in single user mode before booting
multi-user and having the serial console functional.
/dev/cuaXXfor connections initiated from the OpenBSD system. The
/dev/ttyXXdevices are intended only for terminal or dial-in usage. Refer to the cua(4) manual for more details.