Skip to content

Historical: Linux-based prototype

Power

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.

Partly implementedRecorded statusLast verified

Khelforge has a power menu for leaving or pausing the session, and a Settings page that reads battery information. The menu is implemented and tested with a stand-in for the system session service and in the disposable VM. Sleep has been tested only in a virtual machine. Nothing here changes power profiles, charge limits or brightness.

Open it with the power button in the top bar.

Entry What it does Needs
Sleep Locks first, then puts the computer to sleep Permission from the system
Lock Locks the session A password service
Hibernate Locks first, then hibernates Swap set up for it, and permission
Sign out Asks first, then closes windows Nothing more
Restart Asks first, then restarts Permission from the system
Shut down Asks first, then shuts down Permission from the system

Entries that cannot be used stay visible and give a reason:

Reason Text shown
Needs authentication Needs an administrator password
No Not allowed on this computer
Not available Not supported on this computer
Nested session Only in a signed-in Khelforge session

Khelforge has no dialog for entering an administrator password here, so it never starts an action that would need one. If the system refuses anyway, a message shows the reason for a few seconds.

Sign out, restart and shut down ask, with Cancel focused. Confirming asks every app to close and waits a short time. A button skips the wait. Locking the screen cancels it.

Settings, Power and Battery shows charge, health, and mains or battery state where the computer reports them. Nothing is guessed. See Settings.

  • Unit tests cover the possible answers and refused actions. The visual test drives the menu and the confirmation.
  • A check in a virtual machine opens the menu, checks that unavailable entries are skipped, locks, restarts and shuts down from it.
  • Sleep and wake were run in a VM. In the virtual machine preview, Sleep is turned off and shown as Not allowed on this computer, because the virtual machine resets soon after waking.
  • Sleep on a real computer is not tested. Hibernate has no successful test.
  • Lid close, power button and battery-low behaviour have no Khelforge settings. They follow whatever logind does by default.
  • No power profiles, charge limits, fan controls or brightness control.
  • The encrypted home stays unlocked during sleep.

Power profiles, battery saver and charge limits are planned, the last only on documented models. See power and thermals.