Tap the touchscreen from --input-script

The input script pressed POWER and the volume buttons only, so touch-
driven payloads - Nyx above all - could not be driven headless.

`<ms> TAP <x> <y> [hold_ms]` touches the screen at (x, y) in the
1280x720 picture bdk's touch driver reports, inverted through its
15..1264 / 15..704 scaling to the FTS4 panel's raw coordinates, and
lifts after hold_ms. The press and release go through the same event
queue as a mouse click in the window.

This is how Nyx's Tools > USB Tools > SD Card is reached headless:
"12000 TAP 516 531, 15000 TAP 640 32, 17000 TAP 640 423,
19000 TAP 850 420, 22000 TAP 170 202" on hekate 6.5.3. The README now
documents --input-script, which it did not mention before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YYewwDPujjo5B2xRyC5Grb
This commit is contained in:
Claude committed 2026-09-26 10:24:10 +00:00
1 parent f31175f19a
commit 66600dafc1
3 files changed
+60 -5

No files matched your search

+3 -1
View File
@@ -28,7 +28,8 @@ slow or destructive.
[CCPLEX CPU0](#ccplex-cpu0).
- Replay deterministic button sequences via `--auto-pin-recovery` or
`--auto-te-script`, so a payload flow can be exercised from a CI run or a
one-shot script.
one-shot script. `--input-script` scripts buttons and touchscreen taps for
any payload.
- Tweak emulated hardware live (battery, charger, thermal, USB-PD, PMIC,
fuses, SD insertion) from a side window. See [Live hardware tweaks](#live-hardware-tweaks).
- Inspect each Tegra UART port (TX history) and inject keystrokes into the
@@ -278,6 +279,7 @@ needed.
| `--oem` | `erista` \| `mariko` | Switch SoC generation. Drives `APB_MISC_GP_HIDREV` so Hekate's `h_cfg.t210b01` matches and pkg1 identification skips the right OEM header. Default `erista`. |
| `--bt-radio` | `healthy` \| `faulty` \| `absent` | Broadcom CYW4356 behaviour on UART-D. `healthy` powers up on the `BT_REG_ON` edge, holds `BT_HOST_WAKE` high, asserts `RTS_N` and answers HCI; `faulty` reproduces the 2110-1118 console (module fitted, never leaves POR); `absent` additionally leaves `BT_UART_RXD` in a break condition. Overrides `[bluetooth] radio` in the ini. Default `healthy`. |
| `--wifi-radio` | `healthy` \| `faulty` \| `absent` | The WLAN half of the same CYW4356: a PCI Express endpoint on root port 1, reachable only from CPU0 (the BPMP reads all ones, as on silicon). `healthy` trains the link, enumerates as `14E4:43EC` and answers a ChipCommon ChipID read with `0x4356`; `faulty` still trains and enumerates but reads all ones on the backplane (live PCIe front-end, dead radio die); `absent` never leaves detect. The model also enforces the datasheet's power-up ordering, so a payload that releases PERST# too early gets a link that stays down and a `[pcie]` line naming the reason. Overrides `[wifi] radio` in the ini. Default `healthy`. |
| `--input-script` | file or spec | Scripted input keyed to emulated time: `<ms> P\|U\|D [hold_ms]` presses POWER / VOL+ / VOL-, `<ms> TAP <x> <y> [hold_ms]` taps the touchscreen at (x, y) in the 1280x720 picture, `+N` times an event N ms after the previous one. Events are separated by `,`, `;` or newlines. |
| `--auto-pin-recovery` | (none) | Drive the Lockpick PIN-recovery menu without user input. |
| `--auto-te-script` | (none) | Drive `recover_pin.te` in TegraExplorer without input. |