Repository navigation
[2.30] webos: only ask /sys/class/input about input nodes - #16
Conversation
/sys/class/input only lists evdev and js nodes, so wherever /sys/dev is missing (every production jail) it reported every hidraw node as absent. Let other names fall through to the open() probe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested on lk5900 (webOS 4.4.3) under Snapshot, pad plugged in: Snapshot, pad unplugged: every hidraw slot fails with Live hot-plug (
Only the 3.4.x build ran on the TV; the 2.30.x change has the same logic. 🤖 Generated with Claude Code |
/sys/class/inputonly lists evdev and js nodes, so wherever/sys/devis missing (every production jail) the presence probe reported every hidraw node as absent. Other names now fall through to theopen()probe. Backport of the same change on webOS-3.4.x.Verified: builds with the webOS toolchain (CI config), no warnings.
Untested on a device under a production (native/native_game) jail. The check: under
jailer -t nativewith a hidraw gamepad, unplugging it should be reported; and dead/dev/hidrawNslots should failopen()with ENODEV/ENXIO (EACCES would make them read as present).🤖 Generated with Claude Code