Skip to content
venatrix-ritzPublic

About

Decky plugin and input driver that turns the AYN Thor's bottom screen into a trackpad, keyboard and quick-settings surface (Armada OS). Formerly Touch Master.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Ratatoskr

Developed with AI assistance, then hand-edited, reviewed and tested.

The squirrel that runs messages up and down Yggdrasil: Ratatoskr carries your touches from the bottom screen to the game on the top one. Formerly Touch Master (renamed 2026-10-07). The service, config folder, socket and install paths still use the old touch-master / thor-input names so existing installs keep working.

A Decky Loader plugin and virtual input driver for the AYN Thor (dual-screen handheld, Armada OS). It turns the lower 3.92" AMOLED screen into a trackpad, a keyboard, a split of both, or a quick-settings and hardware monitor for games on the main screen, with no launcher in the way.

Honest status. Written and run on one Thor (Armada 20261006.9c7dd3e, kernel 7.2.6). The trackpad, keyboard, quick controls, Pen mode, the Decky panel and the idle-dim mirror have all been run on that Thor; the dim mirror needed two fixes that only showed up there (Armada re-applies its saved bottom level every 2 s, and a dim left by a restart had to be recovered). Not done: the narrow sudo rule is untested, and what the bottom screen does across sleep is unconfirmed. The 0.2.0 additions have had little hands-on use: PS mode for Chiaki-NG has run in a short live PS5 stream, but its swipes, tap clicks and buttons have not each been confirmed on the PS5, the haptic buzz's strength and length are first guesses, and the key preview has been checked in renders of the real drawing code on the Thor, not on the glass. See the known issues. Nothing here is affiliated with AYN or Armada.

Features

  • Four modes: Trackpad; Keyboard (5-row thumb layout sending real Linux key codes through /dev/uinput, key repeat, modifier highlight); Split (trackpad above, keyboard below); Quick Controls (volume, top and bottom backlight, live ribbon of battery, CPU, GPU, RAM).
  • Trackpad gestures: acceleration, tap to click, two-finger scroll and right-click tap, optional long-press right click, three-finger middle click, three-finger navigation swipes, and momentum glide with adjustable friction. Middle click, swipes and long-press are off by default.
  • Pen mode: one pointer for a stylus (double-tap clicks, hold right-clicks, edge strips scroll), and Pen +, which also keeps Game Mode's pointer visible. See Usage.
  • PS mode for Chiaki-NG: while Chiaki-NG streams a PS5 on the top screen, the bottom screen is the PS5 touchpad (one finger: swipe, tap to click, press and hold to hold the click) with Create, PS, Options and Mic buttons, and a PS button in the header to come back to it; when Chiaki-NG loses focus it goes back to the previous mode. See Usage.
  • Haptic feedback: a short buzz from the Thor's vibration motor for every tap click, key, on-screen button and PS button, with an on/off switch in the Decky panel. See Usage.
  • AMOLED friendly: pure black UI; unlit pixels draw no power.
  • Opt-in: bottom screen follows Steam's idle dim. Steam only dims the top panel. Ratatoskr can read Steam's dim delay and dim the bottom panel the same way (docs/dim-mirror.md).
  • Diagnostics: numbered DBG-nnn codes, a log at /tmp/thor-input-debug.log and a Run Diagnostics button.

Quick start

git clone https://github.com/venatrix-ritz/Ratatoskr && cd Ratatoskr
./scripts/deploy.sh armada@<thor-ip>      # or set THOR_HOST / local/thor.env

Then open the Steam menu, Decky, Ratatoskr. Full steps, requirements and uninstall: docs/installation.md.

Documentation

Page What is in it
Installation requirements, deploy script, manual install, the optional sudo rule, uninstall
Usage the four modes, PS mode for Chiaki-NG, every gesture, the Decky panel, the manager
Configuration every config.json key with default and range
Architecture processes, touch path, virtual devices, the IPC protocol
Dim mirror why only the top screen dims, how the mirror works, limits
Troubleshooting symptoms, log reading, known issues
Development layout, tests, how to change things, release notes
Changelog · Credits history; who this builds on

Diagnostic codes

Range Meaning Examples
DBG-0xx lifecycle 000 OK, 001 starting, 002 ready, 004 stopped
DBG-1xx virtual input 100 uinput OK, 101 cannot open /dev/uinput
DBG-2xx digitizer 200 grabbed, 201 node missing, 203 EVIOCGRAB failed
DBG-3xx IPC socket 300 ready, 302 cannot connect, 303 bad request
DBG-4xx display 400 display OK, 401 cannot reach the bottom display
DBG-5xx gesture telemetry clicks, scroll, swipe, glide, key presses (521 is reserved: edge scrolling was removed)
DBG-6xx settings and controls 600 settings updated, 601 backlight, 602 volume, 610 dim mirror, 620 PS mode, 630 haptics
DBG-7xx hardware errors 701 backlight write failed, 702 wpctl failed

The full registry is debug_codes.py.

Credits and licence

Ratatoskr builds on the work of Project Barry (Barry Launcher), the Armada team and the Decky community; see CREDITS.md. MIT licence, see LICENSE.

About

Decky plugin and input driver that turns the AYN Thor's bottom screen into a trackpad, keyboard and quick-settings surface (Armada OS). Formerly Touch Master.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages