Workshop manual · USB ffff:7fff · Raspberry Pi OS
How to get a NextWindow 1950 (Fermi) touch frame working on a Raspberry Pi with the labwc desktop: a filter that turns touches into a mouse, a guided 77-point calibration, and what to expect from the result.
Who this is for
This guide was written on a Raspberry Pi 3B+ running Raspberry Pi OS (Debian 13 trixie, labwc), with a 1920×1080 HDMI display and a NextWindow 1950 touch frame connected over USB. First check which mode your screen reports itself in:
lsusb | grep -iE 'ffff|1926'
- ffff:7fff — this guide. The screen shows up as a plain HID device, “NextWindow Touchscreen”, with three interfaces: keyboard, a vendor channel and a mouse/digitizer (X/Y 0–32767). No driver needed.
- 1926:0086 — the original “Fermi” mode. This needs the
nw_fermikernel module and the NextWindow daemon. The daemon only exists for i386 and could not send commands to the screen on the Pi; we never got that route working. Along the way our screen switched to ffff:7fff by itself (firmware 0x0275), probably after repeated reload commands during undervoltage. That is not something we can safely recommend.
What to expect
In ffff:7fff mode the screen calculates the position incorrectly: the axes are off and the error is strongly non-linear. A simple matrix or formula won’t fix that. That’s why you measure 77 points, and the filter maps each cell of that grid back to the real position.
- Works: the pointer follows your finger without jitter; tap, drag, and right-click by long-press. Perfectly usable for an app with buttons in the middle of the screen.
- Works poorly: the edges. In a few spots the screen sends no position at all, because its own calculation falls out of range there (error message
45 01 1d). Sometimes it works anyway.
Measured on our screen after calibration: the strip along the left edge up to about 5% of the width, the left side around 9% at half height, and the right edge in the bottom third give no position. Your screen may differ.
Installation
Step 1 — Packages
The filter and the measuring tools use Python with evdev (input devices) and Tk (measuring screen).
sudo apt install python3-evdev python3-tk
Step 2 — Put the files in place
Download the kit at the bottom of this page and unzip it in your home directory. The tools belong in ~/nwtouch; the service expects them there.
cd ~ && unzip nwtouch-kit.zip # creates ~/nwtouch/
Step 3 — Access without sudo
The udev rule gives the input group access to /dev/uinput (to create the mouse) and to the screen’s hidraw channels (for measuring and calibrating). Add yourself to that group and reboot.
sudo cp ~/nwtouch/99-nextwindow-ffff7fff.rules /etc/udev/rules.d/
sudo usermod -aG input $USER
sudo reboot
Check after the reboot: ls -l /dev/uinput /dev/hidraw* should show root input with crw-rw----.
Calibration
Step 1 — Optional: the screen’s built-in calibration
The screen has its own 4-point calibration. On our screen it was still at the factory default. After this step the direction of the axes was correct and most of the screen was within range; the grid measurement takes care of the rest. Touch the four crosses (hold for 1 s, then release). Esc cancels.
python3 -I ~/nwtouch/nw_fwkal.py # run from a terminal on the desktop
⚠ Writes to the screen. This stores new calibration points in the touch frame. There is no command to undo it; you can only calibrate again. Running it a second time gives practically the same values.
Step 2 — Grid measurement (77 points)
You’ll see 11 columns × 7 rows of crosses, closer together on the left side. Grey = wait, green = touch, orange = registered. Hold for about a second, then release. Keys: s skip, b redo previous point, Esc stop. A point with no response moves on by itself after 15 s; that’s normal in a dead zone. Takes 5 to 7 minutes. The tool only reads.
systemctl --user stop nw-touchfilter 2>/dev/null # the filter must not be reading along
python3 -I ~/nwtouch/nw_raster.py
# stopped at point 55? resume with: nw_raster.py 54
Step 3 — Build the grid
This turns the measurement into ~/.config/nw_touch_grid.json. If you pass several logs (for example after resuming), the last one wins for each point. The test maps the measured points back; a few dozen pixels off in a corner is normal.
python3 -I ~/nwtouch/nw_grid.py bouw ~/nwtouch/raster_*.log
python3 -I ~/nwtouch/nw_grid.py test ~/.config/nw_touch_grid.json
(bouw is the tool’s command for “build”.)
Step 4 — Test run
The filter grabs the digitizer exclusively, so the desktop only sees the filtered mouse, named “NextWindow Touch gefilterd”. With --debug you can see what it does for each touch. Ctrl+C stops the filter and hands the screen back.
python3 -I ~/nwtouch/nw_touchfilter.py --debug
# expected: "rasterkalibratie geladen: … 41 vakjes" (grid calibration loaded: … 41 cells)
Step 5 — Start automatically
A systemd user service starts the filter after login and restarts it within 3 s if the screen briefly drops out.
mkdir -p ~/.config/systemd/user
cp ~/nwtouch/nw-touchfilter.service ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable --now nw-touchfilter
journalctl --user -u nw-touchfilter -f # follow the log
How the filter handles touches
| Gesture | Result | Setting in nw_touchfilter.py |
|---|---|---|
| Short tap | Left click where the finger landed | MIN_TAP 0.02 s |
| Moving the finger | Drag with left button, smoothed | DEADZONE 1.5% of width, SMOOTH 0.35 |
| Holding still | Right click | LONGPRESS 0.9 s |
| Contact briefly lost | Bridged, doesn’t count as a release | RELEASE_GAP 0.08 s |
Without ~/.config/nw_touch_grid.json the filter falls back to a fixed matrix taken from our screen. That almost certainly won’t match yours, so always calibrate first.
Don’t do this
⛔ This is where the Pi locked up:
- A USB reset of the screen (
USBDEVFS_RESET) and unloading thenw_fermimodule (rmmod). Both made the Pi hang; the USB controller (dwc_otg) logged a kernel warning. - Undervoltage.
vcgencmd get_throttledshows whether the power supply is falling short (anything other than0x0). The touch frame draws power over USB; use a good 5 V/2.5 A supply or a powered USB hub. - Series of reload commands to the screen. Afterwards our screen switched mode and firmware, and we couldn’t get it back.
Technical background
The vendor channel (interface 1, hidraw) only has an IN endpoint; commands are sent as a 64-byte HID report with report ID 0. What we observed in this mode:
| Bytes | Direction | Meaning |
|---|---|---|
43 01 <id> | to screen | Read a value. Reply 43 <len> <id> …. Seen: 10 model, 11 firmware, 12 serial number, 20 hardware, 21 calibration mode, 32 report mode, 43 target points, 44 measured points, 45 orientation, 50 nearfield, 60 duo |
43 02 21 01 | to screen | Start the built-in 4-point calibration; after the fourth point the screen reports 45 01 21, CAM0 sync, CAM1 sync |
43 21 43/44 … | from screen | 4 points as big-endian float32 (x, y). Target points 3000/4900, 29767/4900, 29767/27167, 3000/27167. Writing with this command is ignored. |
44 08 <x> <y> | from screen | Calculated position as two float32 BE, once per touch on touch-down. Also when out of range (negative or above 32767). |
45 01 1d | from screen | Position out of range; repeats as long as the finger stays down. No digitizer report is sent. |
45 01 ff | from screen | Unknown command |
54 <len> text | from screen | Text message, e.g. Unknown S in response to the settings command 53 72 41. Firmware 0x0275 doesn’t know that settings tree. |
Diagnostics without changing anything: python3 -I ~/nwtouch/nw_lees.py c43:11 2 reads the firmware version. The tool refuses anything that isn’t on its read list.
Possible improvement: in the dead zones the 44 08 message does come through. A filter that also reads the vendor channel could pass a tap through as a click there. Dragging remains impossible in those zones, because that message is only sent once per touch.
Files
Download nwtouch-kit.zip — tools, udev rule, service and an example grid, about 15 kB.
LEESMIJ.txt— short summary of the steps (in Dutch)nw_touchfilter.py— filter: digitizer to filtered absolute mousenw_grid.py— grid mapping;bouw(build) andtestnw_raster.py— guided grid measurement, 77 points, read-onlynw_fwkal.py— built-in screen calibration, writes to the screennw_lees.py— diagnostics: one read command from a fixed list99-nextwindow-ffff7fff.rules— udev rule for uinput and hidrawnw-touchfilter.service— systemd user service for autostart
Written on 12 November 2026 after a week of trial and error on a Raspberry Pi 3B+. Values and dead zones apply to our unit; always measure your own screen.