Changelog
All notable changes to Hermes-KMS are documented in this file.
The format is based on Keep a Changelog, and the project follows Semantic Versioning.
Versioning
The canonical version lives in the driver source as three defines in
kernel/hermes-kms/hermes_kms.c:
#define HERMES_KMS_DRIVER_MAJOR 0
#define HERMES_KMS_DRIVER_MINOR 4
#define HERMES_KMS_DRIVER_PATCH 1
The GET_VERSION ioctl and generated DKMS/package versions read these defines.
The checked-in DKMS and PKGBUILD defaults must be updated with them;
scripts/check-release-version.sh verifies that all three agree. A release is
cut after validation by pushing an annotated git tag vMAJOR.MINOR.PATCH;
the release workflow prepares a draft with packages pinned to that commit.
While the major version is 0, the UAPI and on-disk/ioctl interfaces are still
subject to change between minor releases.
[Unreleased]
Changed
- Refer to Hermes consistently in the EGL/CUDA validation tool and driver test diagnostics.
Fixed
- The module builds on Linux 7.4. That release removed
.resetfromstruct drm_crtc_funcsandstruct drm_plane_funcsin favour of theatomic_create_statecallback added in 7.3, anddrm_mode_config_reset()now builds CRTC and plane state only through the new callback, so DKMS failed on the missing member and helpers (#23, @RealCortana).- The CRTC and both planes use
drm_atomic_helper_crtc_create_state()anddrm_atomic_helper_plane_create_state()where the target kernel has the callback, and keepdrm_atomic_helper_*_reset()where it does not. The connector keeps.reseteverywhere. - Whether each table has the callback is decided by grepping the target
kernel's own
include/drm/drm_crtc.handinclude/drm/drm_plane.hfrom kbuild rather than by comparingLINUX_VERSION_CODE, so a tree that backported it builds too; the version comparison (7.3) is the fallback for when those headers cannot be read. On 7.3, which has both callbacks,drm_mode_config_reset()accepts either and the create-state helpers are the same as in 7.4.
- The CRTC and both planes use
[0.4.1] - 2026-11-02
UAPI remains 14, unchanged from 0.4.0. This is a maintenance release.
Packaging
- Add native Fedora RPM and Ubuntu/Debian DEB packages for the DKMS core driver and optional private-seat broker. Verify their source payloads, dependencies and DKMS lifecycle hooks in CI and attach them to the reviewable release draft with unified SHA-256 checksums.
- Build both Arch/CachyOS split packages in CI, pin release builds to the exact source commit, validate the packaged DKMS source and ship source/recipe artifacts with SHA-256 checksums. A tag produces a draft release only after all CI jobs pass.
Documentation
- Refresh README, architecture, HDR and roadmap for UAPI v14, current read-only capture access, VT-free private brokers, generic configfs display profiles, the current EDID conformity baseline and NVIDIA import limitations. Add a complete configfs attribute reference and links to the upstream APIs.
Fixed
- Fix the 32-bit compat
GET_STATUSpath reading eight bytes beyond the native kernel stack structure. Copy the 48-byte v10 tail beginning atbound_fd_count, preserving the historical layout without a UAPI bump. - Build with the target kernel's
hrtimer_setup()whenhrtimer_init()is unavailable, including Linux 6.17/6.18 without the DRM-owned vblank timer. Older kernels retain the original initialization path (#12, @SOVLOOKUP). - Render-node access is read-only for both active-seat and explicitly assigned
users. Hermes-KMS private ioctls, DMA-BUF export and sync-file export work on
an
O_RDONLYfd, whereas Chromium/Electron discover candidate render GPUs by opening themO_RDWR. Keeping the POSIX ACL mask atr--therefore prevents those applications from selecting this capture-only device without reviving theEACCESfailure from #6. The host node remainsroot:root, logind still selects the active seat user, and the ACL helper now grants assigned private cardsr--rather thanrw-. - The private seat brokers (
hermes-kms-seatd@.service) no longer bind to a virtual terminal. seatd is VT-bound by default, so each broker adopted the VT active on seat0 - the host's - and changed its switching, keyboard and graphics/text mode as isolated sessions opened and closed; a desktop started withstartxon tty1 was switched to text mode under it (Hermes#57). The unit now setsSEATD_VTBOUND=0and dropsCAP_SYS_TTY_CONFIG, which only those VT ioctls needed.
0.4.0 - 2026-09-22
Added
-
huge_gem, an experimental module parameter (default off, load-time only) that backs dumb buffers with ahuge=within_sizetmpfs, so they come in 2 MiB folios where memory allows, on kernels that havedrm_gem_huge_mnt_create(). It exists to test the NVIDIA finding intools/hermes-egl-import-check/README.md: NVIDIA's EGL import of these buffers samples correct pixels only for the first ~2 MiB contiguous run, andhuge_gemmakes those runs cover the buffer. It does not reduce CPU mapping faults: a DMA-BUF mapping is not 2 MiB aligned, so the kernel still maps it one 4 KiB page at a time. -
hermes-sysmem-import-check --verifyreads the whole imported buffer back through the GPU instead of stopping at a successfuleglCreateImage, and reports where the correct prefix ends and which page was read instead.--thpand--hugetlbback the buffer with 2 MiB pages, and--gpupicks the render node, so the same control can tell whether an importer depends on physical contiguity. -
HDR advertisement from the virtual output, behind the new
hdr_enablemodule parameter (default off, load-time only). A compositor needs several signals together before it treats an output as HDR-capable, sohdr_enablegates them as one unit and never a subset: the synthetic EDID gains a CTA-861 extension carrying an HDR Static Metadata Data Block (PQ) and a BT2020 Colorimetry Data Block, and the connector gains theHDR_OUTPUT_METADATAandColorspaceproperties.docs/driver-design.mdexplains why each one is required and how KWin's two-gate chain consumes them.Advertisement does not activate HDR -- that stays the compositor's decision -- and it is only half the path; the colour metadata entry below carries the other half.
tests/edid.ccovers the generated EDID bytes, both block checksums and the published EDID length undermake check. -
Per-frame colour metadata in capture UAPI version 14. The new
ACQUIRE_FRAME2returns the framebuffer and adrm_hermes_kms_frame_colorsnapshot from the same atomic transaction. Its flags distinguish valid colour, committed Type-1 static HDR metadata and full-range RGB. LegacyACQUIRE_FRAMEremains unchanged and binary-compatible, whileHERMES_KMS_CAP_FRAME_COLORadvertises the extended command.Colour-only commits are capture updates: they advance
frame_sequence, wakeWAIT_FRAMEand invalidate damage so consumers reprocess the whole frame under the new transfer function. The driver serializes those commits with primary flips, preventing a nonblocking transaction from pairing one framebuffer with another transaction's colour state. It also rejects malformed metadata, unsupported EOTFs and PQ metadata without BT.2020 RGB. -
tools/hermes-hdr-metadata-testcommits Colorspace andHDR_OUTPUT_METADATAthe way a compositor does, then reads them back throughACQUIRE_FRAME2-- with no GPU and no compositor, so the delivery path is covered rather than inferred from the advertisement. It checks that the committed mastering metadata returns field for field, that the legacy ioctl remains compatible, that a metadata-only change advances the sequence and clears stale HDR, that a descriptor id other than Static Metadata Type 1 is refused at commit time instead of accepted and silently dropped, and that disabling the output clears the latched state.scripts/vm-hdr-test.shruns it as its fourth phase.tests/hdr-capture.cadditionally covers authorization, DMA-BUF and sync-file export,TEST_ONLY, wait semantics, invalid metadata, repeated nonblocking transitions and concurrent framebuffer/colour acquisition. -
hermes-kmsctl hold --control PATHcreates a private FIFO and readsrotateandrevokefrom it, which is the only way the command line can reach those operations: the owner's authorization is the descriptor that claimed the output, so a second invocation opens a differentdrm_fileand getsEACCES.rotaterepublishes--session-fileatomically and leaves running consumers bound;revokedrops every binding and removes the file.hermes_session.hgainshermes_session_replace_file(),hermes_session_refresh_owner_token()andhermes_session_unbind(). -
Per-card render-node access. A card created through configfs can name the uid it belongs to with
access_uid; the driver publishes it as thehermes_kms_access_uidsysfs attribute and the packaged92-hermes-kms-access.ruleskeeps that card root-only while a short-lived udev helper grants only the named account a read/write ACL. The packaged pool grants its configured consumer the same ACL on private render nodes. An unresolvable account remains denied, and no numericOWNERis assigned. -
UAPI v13 session-capability lifecycle.
SESSION_ACCESS(ROTATE_TOKEN)replaces a session's token while every existing binding keeps working, andSESSION_ACCESS(REVOKE_BINDINGS)additionally drops every bound descriptor at once — failing their next protected ioctl and waking blocked waits withEACCES— while ownership, the session ID and the scanout survive. It rotates the token too, since a revocation that left the old one usable would not be one. Previously the only answer to a leaked token was disabling the output, which ends the stream. Announced asHERMES_KMS_CAP_SESSION_LIFECYCLE. -
Binding visibility.
GET_STATUS.bound_fd_countreports how many descriptors are bound to the live session, andGET_METRICSaddsbind_count,bind_reject_count,unbind_countandbinding_revoke_count. An owner that authorized one worker and sees two is looking at a leak. All from reserved slots, so both structures keep their size. -
GET_METRICS.cross_session_buffer_export_countrecords frames exported while the same buffer object was also another session's scanout. Mirroring makes this legitimate, so it is counted rather than refused, but a DMA-BUF fd cannot be recalled and those consumers are therefore not isolated from each other. -
Runtime card creation and removal through configfs.
mkdir /sys/kernel/config/hermes-kms/<name>, setoutputs,roleandsession_index, then writeenabled;cardandrender_nodereport the nodes the card received. Cards no longer have to come from a pool fixed at module load, and a project that only wants a virtual display can create one without writing ioctl code. Announced asHERMES_KMS_CAP_DYNAMIC_DEVICES(UAPI v12, no struct changes): with it set,GET_IDENTITY.device_countis the live count anddevice_indexvalues are neither dense nor stable across a card being recreated. Output names and EDID serials are now allocated module-wide so they stay unique across independently created cards, and removal usesdrm_dev_unplug()so a compositor still holding the card seesENODEVrather than a device being torn down. -
Ten-bit scanout formats. The primary plane now also offers
XRGB2101010,ARGB2101010,XBGR2101010andABGR2101010, the prerequisite for wide gamut and HDR composition. They stay inert untilcolor_depth=raises the depth the synthetic EDID advertises, since a compositor will not drive an output deeper than its sink claims to accept. -
Configurable mode envelope.
min_width,min_height,max_width,max_heightandmax_refresh_hzreplace the compiled-in 640x480..3840x2160 limits, and the default maximum rises to 7680x4320 so ultrawide and 8K clients are no longer rejected outright.GET_CAPSreports the configured values. -
Synthetic EDID is now generated per output from those limits instead of being a fixed blob. It moves to EDID 1.4 and declares a continuous-frequency display, which is what makes
drm_get_monitor_range()publish the refresh range at all, and its range limits descriptor uses 1.4's +255 kHz offset flag so rates above 255 kHz can finally be stated.physical_width_mmandphysical_height_mmoptionally publish a panel size for compositor scaling.tests/edid.ccovers the generated bytes inmake check. -
Scanout modifier pass-through. The primary plane now implements
format_mod_supportedand accepts any DRM format modifier, because the driver only latches and re-exports the compositor's buffer and never samples a pixel. Previously the DRM core's linear-only default rejected a tiled or compressed scanout at atomic check time, forcing the compositor to render into a detiled target. The newscanout_modifiers=module parameter additionally publishes up to 15 extra layouts through the primary plane'sIN_FORMATS, which is what an IN_FORMATS-driven compositor (KWin, wlroots) negotiates from; the default remains linear-only, so behaviour is unchanged until it is set. The cursor plane deliberately stays linear-only. -
UAPI v11 generic session-capability handoff. An output owner obtains a random, opaque 128-bit token and can authorize separate capture fds with an atomic token/session/output bind. Closing or disabling the owner revokes the session. The mechanism is deliberately independent of Hermes, Steam, executable names, UIDs and process relationships so other projects can use the driver unchanged.
-
UAPI v11 separate cursor capture.
HERMES_KMS_CAP_CURSOR_CAPTURE,GET_IDENTITY.cursor_plane_id,WAIT_UPDATE, andACQUIRE_CURSORexpose cursor position, hotspot, clipped destination/source geometry, visibility, image/state sequences, ARGB8888 DMA-BUFs, and explicit sync_file fences without advancing the primary-frame stream on cursor-only motion. -
The cursor probe can bind through the generic session helper and exercise the cursor wait/acquire, fence, DMA-BUF mapping, and cursor-only sequence contract at runtime.
-
vblank_countandvblank_overrun_countare now public UAPI metrics, using previously reserved words without changing the metrics struct size. -
CI builds the kernel module and optional diagnostic tools, checks packaged configuration syntax, and compiles/runs
tests/uapi-abi.cfor native x86-64 and i386 userspace ABIs. -
UAPI v10 host-compatible session pools.
session_devices=Ncreates one seat0 host card plus N private session cards and reports explicit host/session roles and stable private-seat indices without changing the identity struct size. -
hermes-kms-setupconfigures the recommended four-session pool and assigns broker sockets to the Hermes service uid with one privileged invocation. It also removes legacy manual broker enablement and stops instances outside the configured pool. -
scripts/vm-session-pool-test.shvalidates host/private roles, stable indices, udev seat assignment, and automatic systemd broker wants. -
A dedicated polkit action gives the one-click setup a scoped, localized authentication prompt.
-
scripts/vm-setup-helper-test.shvalidates persistent setup, exact broker restarts, and the safe reboot-required upgrade path. -
scripts/vm-systemd-broker-test.shvalidates the actual packaged systemd unit, its hardening, and configured-user socket ownership.
Changed
-
The seat broker unit gains
SystemCallFilter=@system-service @mountandProcSubset=pid, and narrowsRestrictNamespacesfromyestomntfor the launcher's own unshare. -
insecure_legacy_unbound_accessis load-time only (0444) instead of runtime-writable, and logs a warning when set. At0600root could widen every output's capture access on a live system mid-session, with nothing in the log to show for it. -
The default
maketarget builds only the kernel module. Developers can usemake fullto opt into diagnostic tools and their libdrm/VAAPI/GBM/EGL/GL dependencies. -
Active-session status, frame acquisition, waits and metrics now require the owner fd or a fd bound with the generic UAPI v11 session capability. A root-only
insecure_legacy_unbound_access=1migration switch can restore old behavior for diagnostics, but is disabled by default. -
External consumers are documented as a first-class integration path. They validate a candidate node with core
DRM_IOCTL_VERSIONbefore private ioctls, and can install the syscall-note UAPI plus the application-neutral, MIT-licensed session helper without installing Hermes application code. -
The Arch/CachyOS build now splits the DKMS driver from the optional
seatdbroker. The driver defaults to one disconnected host card; configuring the broker creates the requested private pool. No scanout memory is allocated until a client owns a card. -
Role-aware udev rules keep the host card on seat0 and automatically start only the broker instances corresponding to private cards.
-
make dkms-installnow installs module-load/modprobe defaults and core udev rules;INSTALL_BROKER=1also installs the broker units and setup helper. It detects an already-loaded older module and asks for a reboot instead of implying that the new DKMS build is active. -
Private broker sockets can be owned directly by the configured Hermes user, removing the logout/login and supplementary
seatgroup requirement.
Fixed
-
A default DKMS install no longer leaves the host render node inaccessible to Hermes. The root-owned host node gets the active local session's
uaccessACL; private cards remain restricted to the configured consumer. The setup helper and package upgrade remove the old numericOWNERrule, which udev warns is deprecated for non-system accounts. -
hermes-kms-unloaddetaches static cards before tryingmodprobe -r, so desktop processes receive a removal event and can release DRM descriptors held after Hermes exits. If an opener ignores removal, it reports the blocker and leaves the cards detached;hermes-kms-rebindrestores them on request. -
hermes-kmsctlno longer ignores arguments a command does not take. Options have to precede the command, sohold 1280x720@60 --session-file Xheld an output and published nothing, with no sign the flag had been dropped. -
The packaged seat broker could not start at all. Its launcher guarded against a direct host-namespace invocation by comparing
/proc/self/ns/mntwith/proc/1/ns/mnt, and reading another process's namespace link needsPTRACE_MODE_READand thereforeCAP_SYS_PTRACE— which the unit deliberately does not grant, so the check rejected the very service it was written for. The launcher now creates its own private mount namespace instead of verifying one, which removes the check, the capability requirement and the failure together, and makes a direct root invocation safe rather than merely refused. -
The private-seat udev rule no longer has its
TAG-="uaccess"silently undone. systemd's70-uaccess.rulesaddsTAG+="uaccess"to every DRM card and sorts after any70-hermes-*name, so the removal never survived to73-seat-late.rules, which is what runs the uaccess builtin. The file is now72-hermes-kms-session-seats.rules, between the two.make install-runtime-udevremoves the stale70-copy from earlier installs. -
scripts/hermes-export-stress.cno longer counts-ESTALEas a failure.ESTALEis the documented answer when a flip lands between latching frame metadata and installing the fds, and the consumer is expected to retry, which the harness already did. Counting it made a healthy run report roughly twenty failures out of eight million acquires, so the stress test always failed and carried no signal. Stale retries are now reported separately. -
GNOME/Mutter can now use the Hermes cursor plane. The driver no longer sets
DRIVER_CURSOR_HOTSPOT, whose opt-in client capability caused the DRM core to hide the plane from ordinary compositors; cursor coordinates remain standard universal-plane coordinates and the optional hotspot metadata stays invalid unless a future protocol supplies it explicitly. -
Cursor framebuffers smaller than a display mode are no longer rejected by the DRM core.
mode_config.min_width/min_heightdescribe every framebuffer, so setting them to the 640x480 minimum mode made Mutter's 256x256 ARGB cursor fail bothADDFB2and legacyADDFBwith-EINVALbeforefb_create. Framebuffer minima are now 1x1 while connector modes andSET_OUTPUTretain the 640x480 limit; the imported-scanout regression tool pins this exact case. -
Active primary and cursor planes now provide the no-op
atomic_updateandatomic_disablehooks required bydrm_atomic_helper_commit_planes(). A previous bookkeeping refactor left those callable slots NULL and could jump to address zero on the first active commit. -
Capture damage is no longer reused unsafely after a consumer skips a frame. Consecutive new sequences may carry the compositor's clip, re-acquiring the same sequence returns a valid empty rectangle, first/gapped acquisitions fall back to the full frame, and cursor-only atomic commits no longer advance the primary-frame sequence.
-
Primary and cursor state from one atomic commit are latched before a single waiter wake.
WAIT_UPDATEreturns a coherent current snapshot while retaining independent frame and cursor sequence spaces, so consumers never have to infer that unrelated sequence numbers form one transaction ID. -
DMA-BUF and sync_file export revalidates the selected session and buffer generation before installing fds. A replacement race returns
-ESTALEfor a bounded latest-state retry instead of pairing stale metadata with a new fd. -
Frame and dual-stream waits revalidate authorization on timeout and poll paths, so session revocation wins with
-EACCESrather than being mistaken for an ordinary timeout. -
Public structs now use explicitly aligned 64-bit fields and
GET_STATUSreplaces LP64-only implicit padding with a named reserved word. Newly compiled 32-bit and 64-bit userspace therefore uses the same ioctl encodings.
Validated
- Public UAPI sizes, alignment-sensitive offsets, and encoded ioctl values are identical for newly compiled x86-64 and i386 clients under UAPI v11, including the cursor acquire and dual-stream wait structures.
- The existing UAPI v7, multi-output, explicit
devices=N, simultaneous DRM master, DMA-BUF, and two-Weston VM regressions still pass under UAPI v10. - The synthetic EDID is decoded by a real parser, not only by its own test.
make check-edid-conformityrunsedid-decodeover the same bytestests/edid.cgenerates, for all four configurations (base,color_depth=10,hdr_enable=1, and both together), and compares the--checkfindings againsttests/edid-conformity.expected. The EDID does not pass--checkclean anddocs/driver-design.mdrecords why; what this pins is that the set of findings cannot grow silently. Rule coverage varies betweenedid-decodereleases, so only the recording version compares the full set — every other version still enforces that the parser decodes the blocks, that neither checksum is wrong, and that the findings HDR adds are the expected ones. The check SKIPs whenedid-decodeis absent, so it is safe inmake checkon machines and CI images without v4l-utils. scripts/vm-hdr-test.shvalidates the HDR advertisement headlessly, with no GPU and no compositor: that the module loads withhdr_enable=1at all (the property-attach helper changed return type between 7.1 and 7.2), that the published EDID is 128 bytes disabled and 256 enabled, and thatColorspaceandHDR_OUTPUT_METADATAappear on the connector only when enabled.
0.3.2 - 2026-08-22
Fixed
- The module builds again on Linux 7.2. That release renamed
struct drm_atomic_statetostruct drm_atomic_commit— the object was always one commit's worth of state, never the device's entire state — and retyped every atomic helper callback with it. The four CRTC and four plane callbacks here still took the old type, so DKMS failed with 15-Wincompatible-function-pointer-typesand-Wincompatible-pointer-typeserrors and left users on 7.2 with no virtual display at all (Hermes#26).- The callbacks now use the current upstream name, and a compat
#definemaps it back todrm_atomic_stateon older kernels. Nothing else about those callbacks changed between the two spellings. - Which name to use is decided by grepping the target kernel's own
include/drm/drm_atomic.hfrom kbuild rather than by comparingLINUX_VERSION_CODE, so a tree that backported the rename builds too; the version comparison is the fallback for when that header cannot be read. - Verified both ways: against the 7.1 headers the driver builds warning-free as before, and against a copy of them with the rename applied it builds warning-free where the unpatched source produces exactly the 15 reported errors.
- The callbacks now use the current upstream name, and a compat
- Scanning out of a buffer the driver did not allocate no longer produces a
DMA-BUF the consumer cannot import. A compositor that renders on the real GPU
can import that buffer into this device and scan out of it directly rather
than drawing into a dumb buffer we allocated — Mutter does this where KWin
does not.
gem_prime_importthen hands us a shmem object withimport_attachset and no shmem file behind it, andACQUIRE_FRAMEre-exported that object withdrm_gem_prime_export(), producing a DMA-BUF whose pages cannot be pinned.- The consumer only discovered this on attach, far from the cause:
drm_gem_map_attach()→drm_gem_shmem_pin_locked()warns ondrm_gem_is_imported(),drm_gem_get_pages()rejects the NULLfilpwith-EINVAL, and the user seesEGL_BAD_ALLOCout ofeglCreateImage()— a black stream with working audio and input (Hermes#22). - An imported scanout object now hands back the DMA-BUF it was imported from, which is the buffer the GPU already understands.
tools/hermes-imported-scanout-testbuilds the situation without a GPU or a compositor, using udmabuf, and reads the frame back. Before the fix it is killed touching the returned buffer; after it, the data arrives intact.
- The consumer only discovered this on attach, far from the cause:
- Buffers are no longer refused by GPUs that pad a linear surface's height.
An importer recomputes the surface layout from the geometry and rejects a
buffer smaller than that layout needs rather than reading past its end —
radeonsi does this in
si_texture_from_winsys_buffer(), comparing the buffer againstsurface.total_size, whichac_surface.cderives from a padded height (surf_slice_size = pitch * surf_height * bpe). The dumb buffer covered onlypitch x heightrounded to a page, so it imported on hardware that pads by nothing and was rejected on hardware that pads. This stayed invisible because the common resolutions have heights that are already aligned — 720, 1080 and 1440 all are — and surfaced on an unusual one: a client at 1600x1068 fell 24576 bytes short.- The backing height is now padded to 16 rows. The visible height is untouched and only the allocation grows, by at most 15 rows: 60 KiB at 1080p, 230 KiB on a 4K buffer, and nothing at all for the resolutions that were already aligned.
- A stale
/etc/modprobe.d/hermes-kms.confno longer silently keeps virtual outputs connected at boot. The package installs its default to/usr/lib/modprobe.d/hermes-kms.conf, but/etc/modprobe.doverrides/usr/lib/modprobe.d, so aninitial_enabled=1written there by an older package — or by hand, following older setup instructions — masks the shippedinitial_enabled=0, and no upgrade can undo it because the package does not own that file. A connector then comes up connected before Hermes owns it and the compositor extends the desktop onto a virtual output nobody streams to, which the user sees as a black screen in display settings.- The package now reports the offending file on install and upgrade, with the two ways to resolve it.
- The driver logs a
drm_warnat probe wheninitial_enabledis set, naming/etc/modprobe.das the place to look, so the cause shows up indmesginstead of only in display settings.
0.3.1 - 2026-08-04
Fixed
- The synthetic EDID now reaches userspace.
drm_connector_init()attaches the EDID property to every connector type except VIRTUAL and WRITEBACK, and Hermes-KMS uses VIRTUAL, so everydrm_edid_connector_update()failed with-EINVALand the connector's sysfsedidread back empty. The failure is only visible withdrm.debugenabled, so the block had been publishing nothing since it was added — the identity KWin looks for, the range limits and the per-output serial were all inert. - The EDID range limits no longer cap the display at 75 Hz. They stated
23-75 Hz, 15-150 kHz and 300 MHz while the driver accepts up to
HERMES_KMS_MAX_REFRESH_HZ(240), so once the EDID was actually published they would have rejected every mode above 75 Hz, including the 1080p120 the CVT path synthesises correctly. They now state 240 Hz, 255 kHz and 1200 MHz; 255 kHz is the most a 1.3 range descriptor holds without the 1.4 offset flags, which covers up to 1440p144. - The EDID's detailed timing described a 1600x900 mm panel — a 72" display — which skews the DPI a compositor derives from it. It now describes a 24" 1080p panel.
Added
- Support for image-based distributions (Bazzite, Silverblue, SteamOS and other
bootc/ostree systems), where DKMS cannot work: it rebuilds the module on the
installed system whenever the kernel changes, and there
/usris read-only at runtime, so that moment never arrives.packaging/bazzite/Containerfilebuilds the module into the image instead, compiling it against the image's kernel and installing it to/usr/lib/modules/<kver>/extrathe way akmods and the ublue-os kmod images do. It fails the build rather than ship an image whose module cannot be resolved, and takes an optional MOK for signing — Bazzite enforces Secure Boot, which will not load an unsigned out-of-tree module. make modules-installandmake install-configs, the DKMS-free halves of an install: one places a built module and runsdepmod, the other puts the module options, autoload entry, session-seat udev rule and seatd helper under/usrso they survive a read-only root. Both honourDESTDIR.depmodresolves modules throughlib/modules, which only matchesusr/lib/moduleson a merged-/usrroot, so on a stagingDESTDIRit is skipped with a note rather than failing an otherwise complete build.
0.3.0 - 2026-07-29
Added
- UAPI v9 multi-device prototype. The new
devices=module parameter creates up to eight independent Hermes DRM cards, each with its own DRM-master domain andoutputs=pipelines. Identity discovery now reports stabledevice_index/device_count, and capabilities advertiseHERMES_KMS_CAP_MULTI_DEVICE. scripts/vm-multi-device-test.shvalidates two simultaneous DRM masters, different modes, distinct owner/framebuffer/DMA-BUF channels, independent disconnect, and clean teardown in a disposable virtme-ng guest.- Packaged per-device
hermes-kms-seatd@.serviceinstances expose private seatd sockets for independent compositors. A disposable VM test starts two brokers and two Weston DRM sessions concurrently and validates distinct scanout modes.
Changed
- Output names and EDID serials are globally unique across all module-created
devices. Existing
devices=1behavior and UAPI structure sizes remain compatible. - Requested visible widths are no longer rounded down to CVT's eight-pixel character-cell boundary. For example, a requested 854x480 scanout remains 854x480 while its dumb-buffer pitch is padded independently for DMA-BUF and VAAPI import.
- The default single device retains the legacy platform path and host seat.
Packaged multi-device cards receive stable
hermes-kms-1..8udev/libseat assignments for independent compositors and matching virtual input devices. - Packaged module defaults now use
initial_enabled=0, leaving connectors disconnected until a streaming session owns them.
Validated
- Two Weston DRM compositors run concurrently through separate private seat
brokers on two Hermes cards, with independent 854x480 and 1920x1080
scanouts as the unprivileged Hermes user
(
scripts/vm-multi-compositor-test.sh). - The multi-device VM regression drives one card at the non-eight-aligned 854x480 mode and verifies requested, active, and exported frame sizes remain 854x480 while the XRGB8888 pitch is independently padded to 3584 bytes.
Not yet validated
- Running two simultaneous Moonlight clients on the real host.
- Per-session input seats and audio routing; these are Hermes userspace concerns rather than part of the DRM UAPI.
0.2.0 - 2026-07-28
Added
- Prototype support for 1–8 independent virtual outputs on one DRM device
(
outputs=, default 1 for compatibility), each with its own connector, CRTC, planes, software vblank timer, owner session, framebuffer channel, waitqueue, metrics, and DMA-BUF export cache. Multiple outputs remain opt-in until the Hermes host integration manages every connector. - UAPI v8
SELECT_OUTPUTbinding. A new DRM fd remains bound to output 0 for compatibility; updated clients bind one fd per concurrent output. - Stable per-output identities (
HERMES-1,HERMES-2, ...) and distinct EDID serials so compositors can persist each virtual monitor separately. hermes-kmsctl --output Nandhermes-kmsctl outputs.- Disposable virtme-ng tests for concurrent modeset, ownership, DMA-BUF
export, independent disconnect (
scripts/vm-multi-output-test.sh), and compatibility with an unmodified v0.1.2 client (scripts/vm-uapi-v7-compat-test.sh).
Validation
- Builds against CachyOS kernel
7.0.9-1-cachyoswith kbuildW=1. - The control tool builds with
-Wall -Wextra. - Three consecutive virtme-ng runs validated two simultaneous atomic modesets at different resolutions, distinct owner fds and framebuffers, DMA-BUF + sync_file export from both outputs, independent disconnect, clean unload, and no kernel splat.
- The unmodified v0.1.2
hermes-kmsctlbinary was tested against UAPI v8: its existing ioctls still operate onHERMES-1, whileHERMES-2remains independent. - Existing VM regressions pass after the refactor: software vblank pacing at 60/120/144 Hz with zero overruns, plus a 5-second/4-thread export stress (4,652,791 acquires, 299 flips, zero errors/splats, clean unload). The short stress run did not use KASAN or SLUB debug.
- KWin compositor adoption/recovery and real encoder integration are not yet runtime-validated for multiple outputs.
0.1.2 - 2026-06-30
First tagged release. The driver is functional and validated end-to-end on
KWin + VAAPI, but this is still an early 0.x release — expect rough edges,
narrow compositor/encoder coverage, and bugs in untested configurations. See
the warning at the bottom of this entry.
Added
- Out-of-tree DRM/KMS kernel module (
hermes_kms.ko) exposing a virtualHERMES-1connector with a synthetic EDID. - Explicit CRTC/encoder/plane modeset driven by a software vblank timer at 60/120/144 Hz for deterministic frame pacing (lockdep-clean).
- Render node (
DRIVER_RENDER) so a capture consumer can pull frames without taking DRM master; every Hermes ioctl isDRM_RENDER_ALLOW. - Zero-copy frame consumption: DMA-BUF +
sync_fileexport of the tracked scanout framebuffer, with no CPU readback (~8 us/frameACQUIRE_FRAMEon KWin at 720p, constant across resolutions). - Cursor plane and
FB_DAMAGE_CLIPSdamage tracking. - Owner-fd session lifecycle, stable output identity, and strict atomic check.
- DRM ioctl UAPI: version / identity / caps / status / set-output / acquire /
wait / metrics, documented in
include/uapi/drm/hermes_kms_drm.h. - debugfs telemetry for the session and frame pipeline.
- End-to-end zero-copy path validated on VAAPI (XRGB8888, linear).
- DKMS packaging plus Arch/CachyOS PKGBUILD and udev/modprobe integration.
- Reference userspace tools:
hermes-kmsctlandhermes-kms-import-check.
Known limitations
- Only the VAAPI import path is validated end-to-end. NVENC/AMF DMA-BUF import is not yet tested.
- Only RGB scanout (XRGB8888, linear). NV12/P010 and HDR are not implemented; the encoder does RGB→NV12 on the real GPU today.
- Validated primarily on KWin; wlroots/GNOME and other compositors are largely untested.
- Compositor recovery is limited to owner-fd disconnect and hotplug handling.
- No real DRM writeback connector (intentionally out of scope for now).
Early-release warning. This is one of the first releases of Hermes-KMS. Even though it is tagged as a release, the driver is in early development and may contain bugs and unexpected behavior, including on untested compositors, encoders, and kernel versions. It is a kernel module — a crash can take down your graphics session. Do not run it on a machine where you cannot tolerate an unstable display stack, and please report issues you hit.
Source: Hermes-KMS at ba9aeb854d2b · GPL-2.0 license.