Files
RedBear-OS/local/recipes/system/redbear-accessibility
vasilito cb424d7448 build: static patch-sanity linter (shift-left the malformed-patch class)
verify-patch-sanity.py validates every active recipe .patch has internally-
consistent hunk line counts — catching the 'malformed patch at line N' failure
at commit/CI/preflight time instead of hours into a cook. This cycle hit that
class three times (qtwaylandscanner, sddm, xwayland), each only discovered when
cookbook tried to apply the patch.

Running it across the repo found 29 latent malformed patches (validated against
GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22').
They were harmless only because they sit in vendored recipes (baked, not re-
applied) — but would fail on any version-bump re-derivation. --fix recounts the
hunk headers (body untouched) and repaired all 29.

Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test
(test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats
(empty placeholders, bare-@@ git hunks).
2026-08-01 05:13:02 +03:00
..

redbear-accessibility

Accessibility scheme daemon — sticky keys, slow keys, bounce keys, and keyboard repeat control.

Status: FEATURE-INCOMPLETE Category: system Build: ./local/scripts/build-redbear.sh redbear-full (via redbear-full.toml)

Purpose

Provides accessibility features traditionally found in desktop environments (XKB AccessX / GNOME a11y settings), implemented as a Redox userspace scheme daemon. It filters keyboard input events through configurable rules — sticky modifier keys, key debouncing, slow-key acceptance windows, and repeat-rate controls — before the filtered events reach the application.

Interface

  • Scheme: accessibility — path convention: accessibility:/config, accessibility:/status, accessibility:/sticky-keys
  • Init service: /usr/lib/init.d/13_redbear-accessibility.service
  • Configuration: Read/write via the scheme file accessibility:/config (key=value lines: sticky_keys=true, slow_key_delay_ms=300, etc.)

Architecture

File Purpose
src/main.rs Daemon entry point — creates Socket, registers scheme:accessibility, runs event loop
src/scheme.rs AccessibilityScheme — implements SchemeSync with openat/read/write/fstat; owns filter_key() logic + sticky modifier state machine

Dependencies: redox-scheme, redox_syscall (path deps to local forks).

Consumers

  • evdevd (potential integration point for real-time key filtering)
  • Desktop compositors that read accessibility state for on-screen indicators
  • The init service 10_evdevd.service is listed as requires_weak, making this daemon available after the input event layer is up

Status Notes

  • Compiles against the current relibc/kernel forks.
  • Scheme interface is implementedopen, read, write, fstat all wired.
  • Filtering state machine (sticky keys latch/lock cycle, bounce key rejection, slow key timing) is present but not yet integrated into the input pipeline — the scheme currently serves its config/status as a filesystem-like view without actively intercepting evdev events.
  • No runtime validation on bare metal or QEMU. The filter_key() method exists but has no upstream caller in the input path.
  • No compositor/indicator integration — sticky modifier states are queryable via the scheme but no UI feedback loop exists yet.