KMSCON.CONF(5)
π kmscon.conf β KMSCON.CONF(5), the config file for a KMS/DRM based System Console π
πΈ NAME πΈ
kmscon.conf β the configuration file for a KMS/DRM based System Console. Bestie, this is where you tell kmscon how to act and how to fit your actual system setup. π
π¦ DESCRIPTION π¦
kmscon.conf is the configuration file that controls the behavior of kmscon and adjusts it to your system setup. It lets you remap keyboard-shortcut bindings, define the desired keyboard layout, pick font attributes for text rendering, set hardware-accelerationn, choose the orientation of output, and so much more. β¨
Below is a complete list of all recognized options, what they mean, and their possible values. Thereβs also a typical real-world sample in EXAMPLE to guide you when youβre making your own. π«Ά
β¨ EXAMPLE β¨
Hereβs a real-world example of a typical kmscon.conf file:
### General Options ###
verbose
### Seat Options ###
vt=1
switchvt
### Session Options ###
session-max=6
session-control
### Terminal Options ###
term=kmscon
### Input Options ###
xkb-model=pc102
xkb-layout=de
xkb-repeat-delay=200
xkb-repeat-rate=65
mouse
dpms-timeout=600
### Video Options ###
drm
hwaccel
gpus=all
multi-monitor=clone
rotate=normal
### Font Options ###
font-engine=freetype
font-size=18
font-name=Ubuntu Mono
In any line, every character after a # is ignored and considered to be a comment. Whitespace is ignored at the beginning and end of a line, and around the = when assigning a parameter. π
π OPTIONS π
Below is the complete list of every recognized option, what it means, and its possible values. No skips, bestie β weβre doing all of them. π
verboseβ Makekmsconbe very chatty about what itβs doing. It prints tostdoutunless redirected. Off if not present inkmsconf.confor commented out. (default: off)debugβ Letkmsconbe even more chatty. The text output goes tostdoutor any file it was redirected to. Off if not present inkmsconf.confor commented out. (default: off)silentβ Suppress notices and warnings. (default: off)configdirβ Path to the config directory. (default:/etc/kmscon)vtβ Select which VT to run on. (default: auto)switchvtβ Automatically switch to the VT. (default: on)libseatβ Uselibseatfor seat management. (default: off)session-maxβ Maximum number of sessions. (default: 50)session-controlβ Allow keyboard session-control. (default: off)loginβ Start the given login process instead of the default process; all arguments following--will be parsed asargvto this process. No more options after--will be parsed, so use it at the end of the argument string. (default:/bin/login -p)termβ Value of theTERMenvironment variable for the child process. (default:kmscon)reset-envβ Reset environment before running the child process. (default: on)issueβ Display issue files before the login prompt. Useno-issueto let the login process handle it. (default: on)issue-pathβ Colon-separated list of issue files and directories to read, ordered by precedence. It implements uapi masking, so if there are multiple files with the same name, only the first will be parsed. (default:"/etc/issue:/etc/issue.d:/run/issue:/run/issue.d:/usr/lib/issue:/usr/lib/issue.d")asciicastβ Path to an asciicast animation to play after opening the terminal session. The animation is stopped on keyboard input. (default: unset)asciicast-loopβ Loop the asciicast animation. (default: off)backspace-deleteβ Send delete character when backspace is pressed. (default: on)paletteβ Select the used color palette. (default:default)sb-sizeβ Size of the scrollback buffer in lines. (default: 1000)bellβ Enable bell forwarding to the VT. When enabled, the BEL character (0x07) from applications is forwarded to the underlying VT. (default: off)blinkβ Enable cursor and text blink. When enabled, the cursor will blink on the screen, and text with the blink attribute will blink too. (default: on)xkb-modelβ SetXkbModelfor input devices. (default: unset)xkb-layoutβ SetXkbLayoutfor input devices. (default: unset)xkb-variantβ SetXkbVariantfor input devices. (default: unset)xkb-optionsβ SetXkbOptionsfor input devices. (default: unset)xkb-keymapβ Use a predefined keymap for input devices. (default: unset)xkb-repeat-delayβ Initial delay for key-repeat in ms. (default: 250)xkb-repeat-rateβ Delay between two key-repeats in ms. (default: 50)mouseβ Enable mouse/touchpad/trackpoint inkmscon(default: on). It allows you to select and copy/paste text with a pointing device, and also to scroll with the mouse wheel. Itβs still experimental, and may not work with specific devices. π±οΈnatural-scrollingβ Invert the mouse wheel direction (natural scrolling). When enabled, scrolling up with the wheel scrolls down and vice versa. (default: off)soft-cursorβ Force software cursor if the hardware cursor is not working properly. (default: off)dpms-timeoutβ Set screen timeout in seconds (default: 600 = 10 minutes). When enabled, the screen will automatically turn off (DPMS OFF) after the specified period of keyboard and mouse inactivity. Any keyboard or mouse input will turn the screen back on and reset the timer. This feature is useful for power saving on systems where the screen is not always needed. Set to0to disable. π€grab-scroll-upβ Shortcut to scroll up. (default:<Shift>Up)grab-scroll-downβ Shortcut to scroll down. (default:<Shift>Down)grab-page-upβ Shortcut to scroll page up. (default:<Shift>Prior)grab-page-downβ Shortcut to scroll page down. (default:<Shift>Next)grab-zoom-inβ Shortcut to increase font size. (default:<Ctrl>Plus)grab-zoom-outβ Shortcut to decrease font size. (default:<Ctrl>Minus)grab-session-nextβ Switch to the next session. (default:<Ctrl><Logo>Right)grab-session-prevβ Switch to the previous session. (default:<Ctrl><Logo>Left)grab-session-closeβ Close the current session. (default:<Ctrl><Logo>BackSpace)grab-terminal-newβ Create a new terminal session. (default:<Ctrl><Logo>Return)grab-rotate-cwβ Rotate output clock-wise. (default:<Logo>Plus)grab-rotate-ccwβ Rotate output counter-clock-wise. (default:<Logo>Minus)grab-rebootβ Reboot the system when this keyboard shortcut is pressed. This option is disabled by default. The reboot behavior follows the system-wide setting in/proc/sys/kernel/ctrl-alt-del: when set to0(default), a graceful reboot is performed by sendingSIGINTtoinit(PID 1); when set to a value greater than0, an immediate hard reboot is performed after syncing disk buffers. Example:grab-reboot=<Ctrl><Alt>Delete(default: disabled)
β οΈ heads up bestie, this one literally reboots the system. Keep that energy in mind, okay? π
drmβ Use DRM if available. (default: on)hwaccelβ Use 3D hardware acceleration if available. (default: off)gpusβ GPU selection mode. (default:all)use-original-modeβ Use the original KMS video mode. (default: off)modeβ Set the desired output mode. The given width, rate, and height must match a supported mode exactly for this option to have any effect; if there is no supported mode that matches exactly, or if there is an error when using the desired mode, then the default mode (first valid mode found) will be used. GPU, connector, and rate are optional, but if GPU is specified the connector must also be specified. You can find the name of the GPU and connector by looking atkmsconlogs:
journalctl -u kmsconvt@* | grep display
This parameter can be specified multiple times to set different modes for different GPUs/connectors.
Modesetting is only supported in DRM mode, so this option does nothing with fbdev. However, fbset can still be used to externally set the mode when fbdev is in use.
multi-monitor {clone,largest,scaled}β When there are multiple monitors, this option controls how the monitors are used.clone: All monitors will have the same size. The smallest monitor will be used to determine the size.largest: The largest monitor will be used to determine the size. The other monitors will be disabled. If multiple monitors have the largest size, they will all be used.scaled: All monitors will display the same number of columns and rows based on the smallest monitor, with larger monitors scaling up their font size to fill the screen.- default:
scaled.
screen {gpu}[{connector}]{config}β Select the desired screen configuration.gpuandconnectorare optional.configis one ofnormal,upside-down,left,right, anddisabled. Ifconfigisdisabled,kmsconwonβt use this display, unless it is the only available display. Ifgpu/connectorare not specified, this will apply to all available displays. You can specify multiple screen configurations to set up different configurations for different displays.font-engineβ Font engine to use. (default:freetype)font-sizeβ Font height in pixels.0will auto-detect (default:0)font-nameβ Font name to use. (default:monospace)
π FILES π
- Main configuration file β
/etc/kmscon/kmscon.conf - Seat-specific configuration file β
/etc/kmscon/{seat_name}.kmscon.conf
π SEE ALSO π
kmscon(1)β go say hi π
okay thatβs the whole page, bestie π β kmscon.conf, January 2023, filed under KMSCON.CONF(5). Go make your console cute β¨π
π¦ where this page comes from
- arch rolling: kmscon 10.1.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms