Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

354.11. kscreen-6.8.2

Plasma display settings: the Display Configuration page, the output-switching OSD and applet, kscreenctl and the HDR calibrator

6.8.2-1 · (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND GPL-2.0-or-later AND CC0-1.0 AND LGPL-2.0-or-later AND BSD-3-Clause · 2.3 SBU · 3.9 MiB, 18 files · 50_desktop, 34 of 92 · ports/core/kde/kscreen

Homepage: https://invent.kde.org/plasma/kscreen

Why it is in KDOS. The comment above it in script/phases/50_desktop/packages.txt:

Display configuration: the settings page, the output-switching OSD and kscreenctl.

KScreen is the user side of display configuration in Plasma. Its Display Configuration page in System Settings arranges the outputs and sets each one’s mode, scale, rotation, refresh rate, brightness, colour profile and HDR; kwin applies the change, and libkscreen is the library the page talks to KWin through. The port also installs the switch-display OSD that Meta+P opens, kscreen_osd_service; the Display Configuration applet, with presentation mode and the layout picker, which the system tray lists under Hardware; kscreenctl, which lists and sets outputs from a shell, with fish and zsh completions; kscreen-console, which prints the configuration for debugging; and hdrcalibrator, which the page and kscreenctl start to measure an HDR monitor’s brightness range.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtwayland, wayland-protocols, kconfig, kdbusaddons, ki18n, kcmutils, ksvg, kxmlgui, kcrash, kcoreaddons, kwindowsystem, kitemmodels, kirigami, kimageformats, libkscreen, libplasma, layer-shell-qt, plasma5support, dbus.

Required by (1): kde-plasma.

Sources: kscreen-6.8.2.tar.xz (1.7 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/50_desktop/phase.env && kpkg install kscreen'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6WaylandClient=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
rm -rf "$PKG/usr/lib/systemd"

Programs: hdrcalibrator, kscreen-console, kscreenctl.

Directories: /usr/share/licenses/kscreen.

The OSD service is started by D-Bus activation and quits when it has been idle. The install writes /usr/share/dbus-1/services/org.kde.kscreen.osdService.service, whose Exec= line names /usr/lib/libexec/kscreen_osd_service; its SystemdService= line is read only by a bus that systemd starts. The install also puts the systemd user unit that line names, plasma-kscreen-osd.service, under /usr/lib/systemd; build.sh removes the directory, since KDOS has no systemd (see No systemd). The Meta+P shortcut is a desktop entry in /usr/share/kglobalaccel whose action runs dbus-send from dbus to wake the service.

The configure requires two QML modules to be installed: org.kde.kitemmodels from kitemmodels for the page, and org.kde.plasma.plasma5support from plasma5support for the applet, whose presentation mode and list of what is keeping the screen awake come from its powermanagement data engine. The page and the applet also import org.kde.kirigami from kirigami at run time, and the calibrator’s test picture is an AVIF file, which Qt reads through the AVIF plugin of kimageformats.