Skip to content

Historical: Linux-based prototype

Controllers in games

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 lists connected controllers and counts their use so that the screen does not lock during play. It does not remap, calibrate or configure them. No real controller has been tested.

Games on Linux read controllers directly from the kernel. The desktop’s input path ignores joysticks, so without help a long game played with a gamepad would look like an idle computer and the session would lock.

A small helper solves only that.

  • It runs in the standalone session only, and only while the session is unlocked.
  • It reads controllers without taking control of them, so games still receive every event.
  • A button press counts. Stick movement counts once it is larger than normal drift.
  • It only reports that there was activity. It stores no events or device names.
  • It can postpone the lock. It can never unlock the session.

Settings, under Devices and then Controllers, lists what is connected and follows hot-plug. The page says that Khelforge does not remap controllers, change their lights or update their firmware.

  • Automated tests use synthetic events: presses, releases, repeats, stick drift, triggers and the directional pad.
  • In the disposable VM, a virtual gamepad inside the guest showed that presses keep the session unlocked past the timeout, drift and an idle controller do not, presses never unlock a locked session, and the helper stops while locked or when another session is active.
  • Xbox, DualSense and Switch Pro controllers over USB and Bluetooth are not covered.
  • No battery page, test page, remapping, vibration or gyro support exists.
  • If the helper stops unexpectedly, controller activity is not seen until the next unlock.
  • The nested development session never runs the helper.

A controller list with battery level and a test page are planned, without remapping at first.

When the Steam option is chosen, Arch’s steam-devices package is installed with it. That package contains device access rules and comes from Arch, not from Khelforge.