Skip to content

Latest commit

 

History

History
232 lines (121 loc) · 14 KB

FAQ.md

File metadata and controls

232 lines (121 loc) · 14 KB

General

What is NS2Bench?

A bench for a Nintendo Switch 2 on your desk. It shows the console's picture and sound on your computer and lets you, or an AI agent, press its buttons. You can record clips, read on-screen text, and run repeatable tests.

Who is it for?

Developers testing software on real hardware, people automating repetitive checks, accessibility experiments, and anyone who wants an AI agent to operate a console while they watch.

Does it modify my console?

No. NS2Bench only does what a TV and a wired controller do: it receives HDMI and presses buttons over USB. Nothing is installed on the console. It works with any Switch 2 as it comes out of the box, on any system version: no jailbreak, mods or homebrew needed. A jailbroken console works too.

Does the console go online?

No. NS2Bench never gives the console internet access. Capture and USB input need no network at all. The optional console network answers only the console's connectivity test and never forwards traffic. See Offline console network.

Is it free?

Yes. NS2Bench is free and open source under the GPL-3.0 license. You can use, change and share it. Whenever you pass it on, changed or not, keep the credit "NS2Bench, created by PhantomPtr" and the license; if you pass on a changed version, offer its source to the people who receive it and mark it as changed (see NOTICE). If it's useful, you can support it.

Is it affiliated with Nintendo?

No. NS2Bench is an independent project. Nintendo Switch is a trademark of Nintendo.

Setup

What do I need?

A capture card for video and sound (always), and one input device if you want to press buttons:

  • a Linux board with a USB device port (Luckfox Pico Pro/Max, Raspberry Pi Zero 2 W, Pi 4/5),
  • or a Raspberry Pi Pico plus a 3.3 V USB-to-UART adapter,
  • or a CH9329 module (keyboard and mouse only).

The setup guide has a diagram and steps for each.

What do I need to install on my computer?

  • macOS: nothing; just allow Camera, Microphone and Local Network. brew install ffmpeg if you want to save clips.
  • Windows: ffmpeg (winget install Gyan.FFmpeg), and a CH340/CP210x driver if your serial adapter needs one.
  • Linux: ffmpeg (the .deb installs it) and the video and dialout groups (sudo usermod -aG video,dialout $USER).

See Before you start.

Which input device should I pick?

If you want every button, including C, GL and GR, use a Linux board: its Pro mode shows the console a real Switch 2 Pro Controller. A Pico is the cheapest controller option (all buttons except C, GL and GR). A CH9329 gives only a keyboard and mouse. You can start with view only and add an input device later.

Do I need the dock?

The console needs a way to output HDMI, which normally means the dock. The input device plugs into one of the dock's USB ports.

Can I use it without an input device?

Yes. Choose View only in Settings → Devices. You can watch, listen, take screenshots, save clips and read on-screen text.

Where do I set the capture card?

In the Video panel on the right of the main window. It lists only the formats your card offers.

Where do I set the input device?

In Settings → Devices. Changes apply without restarting; the old connection releases every button first.

Can the app install the Bridge, the Pico firmware or the network helper?

Yes, in Settings → Install. Flash Pico puts the Bridge firmware on a Raspberry Pi Pico (hold BOOTSEL while you plug it in). Install on board sets up or updates the Bridge on a Linux board over SSH (set up key sign-in first). Install helper runs the offline network helper as a service on macOS or Linux. Downloads come from the release that matches the app and are checked before use.

How do I know it works?

The video pill in the top bar turns green with a frame rate, and the Bridge pill turns green when the console has accepted the input device. Diagnostics in the top bar copies a full status summary.

Capture and sound

Which capture cards work?

Any USB (UVC) HDMI capture card. 1080p60 is the goal. Tested: UGREEN 15389 (MS2130), at 1080p60 and 1440p30.

On Windows, internal (PCIe) cards such as the Elgato 4K Pro work too, if they show up in OBS as a Video Capture Device. Pick the card under Video → Device and its sound under Video → Sound (or leave Sound on automatic). NS2Bench asks the card for a size and frame rate it offers. If the card still refuses, NS2Bench falls back to the card's own default, as OBS does. If the colours look washed out, turn off HDR on the console, or turn off HDR output in the card's own software.

Can I use OBS at the same time?

On macOS, yes: NS2Bench shares the card with OBS and never takes it away. On Windows and Linux, ffmpeg usually needs the card for itself, so close other apps that hold it.

There's no picture.

Check the console is docked and on, the HDMI cable goes into the card's input, and the right card is selected in the Video panel. On macOS, allow Camera for NS2Bench in System Settings → Privacy & Security. Run Diagnostics for details.

There's no sound.

Click Sound off in the top bar to turn sound on. On macOS, allow Microphone for NS2Bench. If you have two identical capture cards, NS2Bench pairs the sound with the picture by USB position.

How much CPU does capture use?

On macOS, about 12% of one core at 1080p60 (hardware JPEG and H.264). On Linux, MJPEG cards are passed through without re-encoding.

Input devices

The Bridge pill stays red.

  • Linux board: check the board is powered and reachable at the address in Settings → Devices, and that the token file matches the board's token.
  • Pico: check the serial port and that the baud rate is 921600; TX and RX must cross (adapter TX → Pico GP1, adapter RX → Pico GP0) and GND must be connected.
  • CH9329: match the module's baud rate (usually 9600).

Then check the input device is plugged into the console's USB port and the console is awake.

Presses don't register.

The Switch 2 needs a press to last at least about 50 ms. NS2Bench holds every press for at least 75 ms. If the Bridge is green but nothing happens, the console may be asleep or showing a dimmed screen: the first press only wakes it.

How do I get C, GL and GR?

GL and GR are the two back buttons on the Nintendo Switch 2 Pro Controller; Joy-Con 2 don't have them. To use them (and C), use a Linux board and choose The console sees → Pro Controller in the Driving panel. The console then sees a Switch 2 Pro Controller. Otherwise C works as a GameChat shortcut.

Can I use my own gamepad?

Yes. Plug it into the computer; NS2Bench maps it by button position (the bottom face button is B).

Can I type with a keyboard?

Choose Your keyboard sends → Keyboard & mouse in the Driving panel. The console sees a real USB keyboard. This needs a Linux board or a Pico in standard mode, or a CH9329.

What happens when the console sleeps?

A board powered from the console's USB loses power and restarts when the console wakes. NS2Bench reconnects by itself. Presses made while the Bridge is offline are dropped, never replayed later.

Can NS2Bench wake the console from sleep?

Yes, with a little help. A dimmed screen wakes with any press, which NS2Bench does by itself. Sleep Mode, a crash or power-off need one of these, set in Settings → Devices → Power and wake:

  • HDMI-CEC (nothing mechanical): a USB-CEC adapter (for example Pulse-Eight) in the HDMI cable between the dock and the capture card sends the "power on" a TV would send. Turn on the console's System Settings → TV Output → Match TV Power State, and install libcec on the computer (brew install libcec on a Mac). It can also put the console to sleep.
  • A power-button command: for a button presser such as a SwitchBot, a Home Assistant webhook or a relay. This is the only way back from a crash or power-off.

Then Wake the console (in the no-picture screen, the search, the API POST /api/power, the power MCP tool and ns2bench power wake) tries CEC, then the power button if you allow it, then a press. The Switch 2 has no Wake-on-LAN, and a board powered from the console's USB port switches off about 7 seconds after Sleep Mode; it boots again when the console wakes, and NS2Bench reconnects by itself within about 30 seconds.

Offline console network

Do I need a network?

No. Capture and USB input work without any network. The console network is only for tools that talk to the console over a LAN.

How do I give the console a LAN without internet?

Connect the console's Ethernet (dock port or USB adapter) to a dedicated Ethernet adapter on your Mac or Linux computer and run ns2bench-netd. It hands out addresses and answers only the connectivity test. Or use a router, VLAN or Wi-Fi network with internet blocked. See the setup guide.

Can I turn internet blocking off?

No. It isn't a setting. NS2Bench never forwards, NATs or proxies console traffic and never asks an upstream DNS server.

I'm on Windows.

The network service runs on macOS and Linux. On Windows, run it on a Linux board or PC that owns the console's Ethernet port and control it from the Network tab (remote helper), or use a router with internet blocked.

Agents and API

Which agents work?

Any MCP client: Claude Code, Codex, opencode and others. Settings → API & MCP shows a ready-to-copy configuration.

Can I stop an agent?

Yes. Block agents (manual only) in the Driving panel stops agent input immediately. Only you, from the NS2Bench window, can turn it off again.

Is the API safe on my network?

The engine listens only on 127.0.0.1 by default. Listening on another address requires a token. Web pages from other sites can't send it commands.

Where is the API documented?

In docs/REFERENCE.md.

App and updates

How do updates work?

NS2Bench checks GitHub releases at start, every 6 hours and when you open Settings → Updates. It downloads a new version in the background and installs it when you close NS2Bench (or right away with Restart now). Every download is checked against the release's SHA-256, and on macOS against NS2Bench's signature, before it installs. Each part can be turned off in Settings → Updates. A Linux .deb is updated by downloading the new .deb.

macOS says the app is damaged or can't be checked.

Messages like "Apple could not verify "NS2Bench-….dmg" is free of malware", "NS2Bench is damaged" or "cannot be opened because Apple cannot check it". NS2Bench is signed but not notarized by Apple (that needs a paid Apple Developer ID), so macOS blocks it when it's downloaded in a browser. Allow it once:

  • Before opening the .dmg, in Terminal: xattr -dr com.apple.quarantine ~/Downloads/NS2Bench-*.dmg, then open it and drag NS2Bench to Applications.
  • If it's already in Applications: xattr -dr com.apple.quarantine /Applications/NS2Bench.app
  • Without Terminal: click Done, open System Settings → Privacy & Security, scroll down, click Open Anyway next to NS2Bench and open it again (for the .dmg, and once more for the app if asked).

Updates from inside the app (Settings → Updates) don't trigger this, so you only do it for the first install.

Windows says it protected my PC.

Choose More info → Run anyway. The installer isn't signed with a paid certificate yet.

macOS asks for Camera or Microphone again after an update.

From 0.0.3 on, every NS2Bench build carries the same signature, so macOS asks once and remembers, across restarts and updates. Updating from 0.0.2 or older, it asks one last time.

How do I change the theme or language?

Settings → Appearance. The moon button in the top bar switches between light and dark.

Where are my clips, screenshots and logs?

In ~/.ns2bench/: clips, test reports, and a log file per day in ~/.ns2bench/logs (kept 7 days). Screenshots go to your Downloads folder. Nothing is uploaded anywhere.

Can NS2Bench notify me?

Yes. Settings → Notifications turns on desktop notifications for when the Bridge or the picture drops, tests and clips finish, an agent starts driving, or an update is ready. By default they only show while NS2Bench is in the background.

How do I install the command line tool?

Settings → Install → Install command line tool puts ns2bench on your PATH (macOS may ask for your password once; the Linux .deb installs it already). Then run ns2bench --help. It can do everything the API and MCP can.

Troubleshooting

How do I report a bug?

Click Help in the top bar, then Save bug report (a zip of logs, status and a screenshot; no tokens), and attach it to a GitHub issue.

If NS2Bench closes as soon as it opens, make the report without the window: run ns2bench report (or ns2bench-app report; on Windows "%LOCALAPPDATA%\NS2Bench\ns2bench-app.exe" report). It's saved to Downloads and includes crash reports (crash-….txt in ~/.ns2bench/logs) and startup traces. To get the window up when a device makes it crash, start it with --safe: no capture, input or sound.

What do the log colours mean?

Blue lines are normal activity, amber lines are warnings that may fix themselves, and red lines need you. For problems NS2Bench recognises, a blue box under the line says what happened and what to do. Problems in the Logs panel shows only warnings and errors; Everything adds detail such as each API call.

What does the doctor do?

Help → Run the check in the app (or ns2bench doctor) checks video, the console picture, OCR, the Bridge, USB state, calibration and network isolation, and says which part is broken and what to do. --probe also presses RIGHT and LEFT on the HOME menu to test input end to end.

Where can I ask for help?

On UndefinedLab Discord.