NextWindow 1950 touchscreen on a Raspberry Pi

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'

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.

● position comes through   ● no position (dead zone)
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

GestureResultSetting in nw_touchfilter.py
Short tapLeft click where the finger landedMIN_TAP 0.02 s
Moving the fingerDrag with left button, smoothedDEADZONE 1.5% of width, SMOOTH 0.35
Holding stillRight clickLONGPRESS 0.9 s
Contact briefly lostBridged, doesn’t count as a releaseRELEASE_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:

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:

BytesDirectionMeaning
43 01 <id>to screenRead 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 01to screenStart 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 screen4 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 screenCalculated position as two float32 BE, once per touch on touch-down. Also when out of range (negative or above 32767).
45 01 1dfrom screenPosition out of range; repeats as long as the finger stays down. No digitizer report is sent.
45 01 fffrom screenUnknown command
54 <len> textfrom screenText 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.


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.