Historical: Linux-based prototype
Sessions and locking
This page documents the earlier Linux-based prototype as of 24 November 2026. It does not describe the independent Khelforge OS, and its steps are not instructions for it. See the independent Khelforge OS.
The desktop compositor owns the lock. Only the session owner’s password, checked through PAM, unlocks it. The behaviour below was tested with real systemd, logind, PAM and cage in disposable virtual machines, and with offscreen interface tests. Suspend on real hardware was not tested.
What locks the session
Section titled “What locks the session”| Event | Response |
|---|---|
| Ctrl+Alt+L or the top-bar button | Locks |
loginctl lock-session |
Locks |
| Computer about to sleep | Locks, and lets sleep continue only after the locked frame is on screen |
| Switch to another virtual terminal | Locks |
| No input for the time set in Settings | Locks. The default is 5 minutes, choices are 1 to 30 minutes or Never |
loginctl unlock-session |
Ignored |
A damaged idle setting counts as five minutes, never as “Never”.
While locked
Section titled “While locked”- App windows are not drawn at all. They are not merely covered.
- Desktop shortcuts are off, and keys reach only the lock field.
- The launcher, switcher, power menu and sign-out dialog are closed.
- Apps keep running.
What postpones the idle lock
Section titled “What postpones the idle lock”Only an explicit request from the session’s own user, such as a visible window that asks the desktop to stay awake. Requests from another user or a system service are ignored. Fullscreen alone postpones nothing. If the list of requests cannot be read, the session locks.
Game controller activity also postpones the lock. Only the fact that something moved is used. It never unlocks the session.
Failure behaviour
Section titled “Failure behaviour”| Failure | Result |
|---|---|
| The desktop cannot follow its session at start | It exits. The sign-in screen returns |
| Locking is required but cannot be shown | The session ends |
| The compositor crashes while locked | The session ends and the sign-in screen returns. It cannot fall back to an unlocked desktop |
| Password checking is not available to the lock | Manual locking is refused and the reason is shown, so nobody is trapped |
Sign-out
Section titled “Sign-out”Sign-out asks first, with Cancel focused. Windows are asked to close, and after a short wait the session ends, including apps that stopped responding. A lock cancels the sign-out.
New windows and the keyboard
Section titled “New windows and the keyboard”A window takes the keyboard only if no window has it, if it belongs to the app already in use, or if it was just started from the launcher or dock. Any other new window opens behind. This prevents a background program from taking keystrokes meant for another window.
Known limitations
Section titled “Known limitations”- Real hardware suspend, lid and power-button policy, several seats and remote sessions are not tested.
- Apps that ask the desktop to stay awake through Wayland were tested only in unit tests. No such app was in the test image.
- The encrypted home stays unlocked during suspend: see encryption.