kmscon /kmscon

Linux KMS/DRM based virtual Console Emulator

★ 1,001⑂ 154👁 40⑃ 349● 287▤ 17
CNOASSERTIONCreated 2011-11-19www.freedesktop.org/wiki/Software/kmscon
Download: v10.1.2v10.1.2 ↓10.1.22026-11-16
+1
Daily
+11
Weekly
1,001
stars
154
forks
40
watchers
349
prs
287
issues
17
releases

README

KMSCON

!Build Status

Kmscon is a simple terminal emulator based on linux kernel mode setting (KMS).
It is an attempt to replace the in-kernel VT implementation with a userspace
console. See kmscon(1) man-page for usage information.

 Requirements
 Mandatory dependencies
Kmscon requires the following software to run:
  - libudev: providing input, video, etc. device hotplug support (=v172)
  - libxkbcommon: providing internationalized keyboard handling
  - linux-headers: linux kernel headers for ABI definitions

 Optional dependencies
 Video

For video output at least one of the following is required:
- libdrm: graphics access to DRM/KMS subsystemDRM: For unaccelerated drm output the "libdrm" library must be installed and accessible via pkg-config.
- OpenGLES2: For accelerated video output via OpenGLESv2 the following must be installed: libdrm, libgbm, egl, glesv2 (i.e., mesa)
- fbdev: For framebuffer video output the kernel headers must be installed and located in the default include path, and the kernel built with fbdev device support (which is disabled on some distributions).

 Fonts
For font handling the following is required:
- 8x16: static built-in font which does not require external dependencies.
- psf: bitmap font backend, this requires no external dependencies, but you need to provide a path to a psf file that kmscon can read.
- unifont: embed unifont in kmscon, this requires no external dependencies.
- freetype: lightweight font rendering, using only freetype2 and fontconfig.
- pango: drawing text with Pango requires: glib, pango, fontconfig, freetype2 and more

 Seats
- libseat: Kmscon can take a seat with libseat . In this case you must have either systemd-logind, elogind, or seatd configured. It allows to run kmscon as a regular user, and configure which GPU/input device are allowed for kmscon. The drawback is that kmscon-launch-gui won't work to launch another GUI that uses libseat, as the seat is already in use.
- If libseat is not present, kmscon will use its own VT handling, or a fake backend if VT is disabled in the kernel.

 Terminfo
 - ncurses You need the tic executable from ncurses, to build kmscon.ti into a binary terminfo definition.

 Setup

On Debian-based system, to install the systemd service files in the right location, you need to install systemd-dev.
bash
sudo apt install systemd-dev


To build with manpages and documentation, the following is required:
 - xsltproc (packaged as libxslt in Fedora, or xsltproc in Ubuntu/Debian)
 - docbook stylesheets (packaged as docbook-style-xsl in Fedora, or docbook-xsl in Ubuntu/Debian)

 Download

Released tarballs can be found at: https://github.com/kmscon/kmscon/releases

 Install

 Compile dependencies
To build kmscon, you will need:
- meson
- gcc or clang toolchain
- cargo and a rust compiler for the Rust parts (kmscon-rs, including libtsm)

To compile the kmscon binary, run the standard meson commands:
bash
meson setup build


By default this will install into /usr/local, y

Top issues

Latest release

v10.1.2 v10.1.2 2026-11-16
What's Changed
 mailmap: deduplicate contributors with multiple email addresses by @1ace in https://github.com/kmscon/kmscon/pull/615
 font_freetype: fix heap corruption from per-font fontconfig setup by @tagoh in https://github.com/kmscon/kmscon/pull/618
 Handle F13-F24 keys, and allow to switch to next/previous VT by @kdj0c in https://github.com/kmscon/kmscon/pull/619
 input: share the XKB state between all keyboard devices by @pandhedge in https://github.com/kmscon/kmscon/pull/617
 uterm: Align VT switching shortcut to fbcon. by @kdj0c in https://github.com/kmscon/kmscon/pull/620
 Pre

Snapshot: 2026-11-27T22:26:53Z · Data license Apache-2.0 · JSON