Skip to content

0026: One shared pad for Chromium apps

Status: Accepted (owner, 2026-11-24). Proposed (2026-11-17, after the handheld's pad was dead in YouTube)

Context

The handheld's pad did nothing in YouTube (VacuumTube, Electron) while a second pad was on the same screen. Chromium's UdevGamepadLinux::Create keys a pad by its parent's sysfs path cut before input. Every uinput pad lives under /sys/devices/virtual/input/inputN, so all of padd's virtual pads look like one device to Chromium, and it keeps only the node announced last. Seen on the host: replaying the "add" for player 1's nodes made VacuumTube drop player 2's and take player 1's. Any second pad on a screen (the TV joining a device, two local pads) leaves one of them dead in a Chromium app.

Decision

A recipe may say pads: one. padd then plugs a single virtual pad into that app and every real pad on the screen drives it; the last event wins, like sharing a remote. Player numbers stay as they are (other apps, Guide, joins); only the virtual pad they map to changes. Rumble goes to the real pad used last. VacuumTube sets it.

Not chosen: UHID pads (a distinct sysfs parent per pad, but inputtino has only a PS5 UHID pad and the whole hotplug path would change); re-announcing the last-used pad on each switch (an "add" per change of hands, latency, and Chromium loses the held state).

Consequences

Two people cannot play a two-player game in a Chromium app; none of ours needs that. Two pads used at once fight (a release on one lets go of the other's press). Other apps (Qt WebEngine in Plex and Jellyfin, Steam, ES-DE) keep a pad per player; if one of them shows the same symptom, it gets pads: one too.