Historical: Linux-based prototype
Lock screen
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 lock screen hides the session until the account’s password is entered. Application windows are not shown behind it. It is implemented and tested in unit tests, visual tests and the disposable VM. It is not tested on real hardware.
What triggers a lock
Section titled “What triggers a lock”- Ctrl+Alt+L, or Meta+L.
- The lock button in the top bar, or Lock in the power menu.
- A lock request from the system.
- The system preparing to sleep.
- Switching to another virtual terminal.
- The idle timer.
The session cannot be locked if the password service or the account cannot be found. The button then gives the reason.
Diagram as text
- You to Lock screen: lock
- Lock screen: hide windows
- You to Lock screen: password
- Lock screen to System: check password
- System to Lock screen: accepted
- Lock screen to You: show desktop
What the lock screen protects
Section titled “What the lock screen protects”- Applications cannot draw over it, and no key reaches them while locked.
- Shortcuts such as Alt+Tab, the launcher and sign out do nothing.
- Only the password unlocks.
- An expired password still unlocks, so you are not shut out. A locked or expired account does not.
If the lock screen cannot be shown, or the compositor crashes, the session ends. Your work may be lost, but the desktop is never left open. See session and lock security.
Automatic lock
Section titled “Automatic lock”Settings, Account, Screen lock offers 1, 2, 5, 10, 15 or 30 minutes, or Never. Five minutes is the default. A damaged setting falls back to five minutes, never to Never. The running session follows a change at once.
The timer waits when:
- A visible window asks to inhibit idle through Wayland, for example a video.
- A program of the signed-in account asks the system not to go idle. Requests from other accounts do not count.
- A game controller is in use. Controller use only counts as activity and never unlocks anything.
How it was tested
Section titled “How it was tested”Unit tests cover the lock, the idle timer and controller activity. The VM suite sets one minute in Settings, waits for the lock, unlocks, and checks controller activity with a simulated gamepad.
Known limitations
Section titled “Known limitations”- A real Wayland application using idle inhibit has not been tested.
- Real game controllers have not been tested.
- The encrypted home stays unlocked in memory during sleep.
- No fingerprint, face or smart card login.
- Each lock shows the time, date, account name and keyboard layout. It shows no notifications, because none exist.