Skip to content

LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.

Login screen: follow DRM uevents (hw without the bus), so a monitor plugged in after boot shows it

Federico Pereira681e1fa51969
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8637799..823b551 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,9 @@ of the matching [GitHub release](https://github.com/lordbasex/LordOS/releases),
### Fixed
+- A monitor plugged in after boot now shows the login screen. The login screen never listened for the
+ kernel's display events, so a board booted without HDMI (a Raspberry Pi 5) stayed without video until
+ it was restarted. It now follows them like a session does, without the system bus.
- The Store's package engine could not download packages with a `+` in their name (`kms++-utils`,
`libkms++0`) from lordos.org: the CDN reads a bare `+` as a space and answered 404. It now sends
`%2B`, as apt does, so Settings → Board firmware can install the bootloader tools from the LordOS
diff --git a/docs/RASPBERRY.md b/docs/RASPBERRY.md
index 35bd1eb..96ca542 100644
--- a/docs/RASPBERRY.md
+++ b/docs/RASPBERRY.md
@@ -815,7 +815,7 @@ on the development machine.
| NEON (`build/canvas-test`) | ✅ "NEON matches C". blit 9.90 → 4.33 ms/screen, mask 11.09 → 5.49 ms/screen (2.0–2.3×) |
| `make -C server test-full` | ⚠️ media-test probe/wave/sandbox ✅. `doc_evil.sh` 20/25: the 5 failures are the filesystem confinement checks (`~/.ssh`, home, `/tmp`), because **the Raspberry Pi kernel has no Landlock** (`# CONFIG_SECURITY_LANDLOCK is not set`, `/sys/kernel/security/lsm` = `capability`). seccomp works on aarch64 (`seccomp=1(tsync)`, no sockets, no fork). `sandbox-test` skipped for the same reason |
| arm64 `.deb` (`DEB_ARCH=arm64 tools/iso/mkdeb.sh`) | ✅ 5.0 MB; dependencies resolve on Raspberry Pi OS (its `+rpt` FFmpeg keeps the Debian package names) |
-| lordos.service | ✅ `lord-sessiond: display: /dev/dri/card1` (vc4; v3d is card0, `drmcard.h` picks the right one). With nothing connected the login screen stays headless (`kms: no monitor connected`) instead of crash-looping. lord-server now keeps the lent card and retries on the next DRM uevent (`main.c`, parked fds): **compiled, not yet tried with a monitor** |
+| lordos.service | ✅ `lord-sessiond: display: /dev/dri/card1` (vc4; v3d is card0, `drmcard.h` picks the right one). With nothing connected the login screen stays headless (`kms: no monitor connected`) instead of crash-looping. lord-server keeps the lent card and retries on the next DRM uevent (`main.c`, parked fds). Until 0.8.5 the login screen never opened the uevent socket (`hw_start` ran only in sessions), so a monitor plugged in after boot stayed black until a restart; the login screen now starts `hw` without the bus. Retry checked on the board with `echo change > /sys/class/drm/card1/uevent` (the greeter tries the card again) |
| Idle (login screen, headless) | lord-server 36 MB RSS, 0.6 % CPU; lord-sessiond 4.4 + 2.5 MB; system total 450 MB used of 16 GB; 38–43 °C, `throttled=0x0`, 2.4 GHz |
| EGL/GBM | `V3D 7.1.10.2`, OpenGL ES 3.1 (`eglinfo -p gbm`). LordOS's GPU path on screen not exercised (no monitor) |
| Video (FFmpeg CLI) | HEVC 1080p30 through `rpi-hevc-dec` (`/dev/video19`, `-hwaccel drm -hwaccel_output_format drm_prime`): 300 frames in 0.54 s with 0.12 s of CPU. Software, 4 threads: HEVC 1080p 251 fps, H.264 1080p ~420 fps (synthetic `testsrc2` clip: real content is heavier). lord-media only knows VA-API, so inside LordOS HEVC is software for now |
diff --git a/server/src/main.c b/server/src/main.c
index 9c9e650..2d4acac 100644
--- a/server/src/main.c
+++ b/server/src/main.c
@@ -1656,7 +1656,9 @@ int main(int argc, char **argv) {
/* Settings' hardware pages: displays, uevents, Bluetooth, power profiles (src/hw) */
kms_set_picker(display_pick);
hw_server = &s;
- if (ok && !s.greeter) hw_start(&hw_host, 1);
+ /* the login screen too, without the bus: its DRM uevents bring a monitor plugged in after boot
+ * (a card parked by display_attach) and the other displays */
+ if (ok) hw_start(&hw_host, !s.greeter);
if (ok && !s.headless) { display_take_resync(); outputs_apply(&s); } /* every display, the GPU if it can */
{
struct stat st;