Touch on the wrong screen, or none
When a touch screen is used with several monitors, the monitors may be laid out in a row or stacked or any combination; the desktop may be extended across all of them or mirrored; and the operating system may see the same number of monitors as are connected, or fewer logical monitors than physical ones. Whatever the layout, when the driver posts a touch into the operating system the position must land at the point of touch on the right monitor.
This document describes what to check when touch appears on the wrong monitor, or when one touch screen of several does not respond. It applies to UPDD 7 on Windows, macOS and Linux.
Start with Identify
Where the operating system sees the same monitors as are physically connected, UPDD's Identify and monitor configuration usually forms the correct association between each touch screen and its monitor: run it whenever touch lands on the wrong monitor. For other layouts (mirrored desktops, monitors driven as one, segmented displays) the monitor configuration and segmentation may need to be defined by hand first, as described in Monitors: identify, bind, metrics and segments.
On Linux, multiple monitor definitions can be complex: see Multi-monitor on Linux. If touch is lost, or moves to another monitor, after the computer wakes from sleep, see Sleep, wake and touch after resume.
Windows: UPDD's monitor mapping
On Windows, UPDD itself maps each touch screen to a monitor: it writes the map in the registry key that the Windows Tablet PC Settings would write (HKLM\Software\Microsoft\Wisp\Pen\Digimon). How the mapping works, and when it runs, is described in Multi-monitor on Windows. With the default monitor.mapping_event setting, redoing UPDD's own mapping, not the Windows Tablet PC Settings 'Setup', is the fix.
The cursor movement or 'ghost touches' you may see in a top corner of each monitor while the driver initialises are this mapping at work, and are expected.
Forcing UPDD to redo the mapping
The UPDD Daemon's Setup Monitors option does not on its own redo the mapping on a system whose monitors are already set up: it redoes it the first time, or when a virtual touch device has been added. A real change in the monitor layout does force a full remap:
- Open Windows Settings > System > Display.
- Drag the second monitor to the other side of the first, and select Apply.
- Wait about a minute, then test the touch.
- Put the monitors back where they were, if required, and wait again.
Unplugging a monitor works only if it stays disconnected long enough for the change to be noticed (the Daemon checks the layout every 10 seconds and waits for the change to persist).
Screens swapped after imaging or a new graphics card
If the touches of two touch screens are swapped although the mapping is right, the swap survives restarts, and the machine was imaged from another (a cloned disk) or has had its graphics card replaced, the monitor positions UPDD stored belong to the old graphics adapter. UPDD then falls back to opening its virtual touch devices in the order Windows lists them, which can swap the screens. To rewrite the positions for the current adapter, either:
- At the machine, with all screens switched on, open an administrator command prompt in the logged-on session and run:
"C:\Program Files\UPDD\updd.exe" -digimon_map_monitors
then restart the computer. Run over SSH or any other session without a desktop, it does nothing. - Or, remotely or across many machines, run:
"C:\Program Files\UPDD\upddutils" nodevice set monitorsetupmetrics.was x
then restart the computer. At logon the Daemon sees a layout that does not match and the monitors are detected again in the logged-on session. On a machine that was already correct this only remaps.
If we ask for them, these registry exports from an affected machine (and from a working one) show the stored map and positions:
reg export "HKLM\SOFTWARE\Microsoft\Wisp\Pen\Digimon" digimon.reg
reg export "HKLM\SYSTEM\CurrentControlSet\Services\upddvhid\Monitors" monitors.reg
together with the file digimon.log from the UPDD log folder (C:\ProgramData\updd\log). Exporting registry keys with Regedit is described in Windows helper notes; put the files in a .zip and attach it to your ticket at https://www.touch-base.com/contact.
Identical touch screens seen as one (UPDD 6 on macOS)
UPDD 6 on some Macs (M1 systems; macOS Monterey 12.4) saw two identical USB touch screens on the same bus as one device, because the system reported the same USB port for both:
2022/05/22-11:44:09: TRC: VID:0x28e1 PID:0xb006 BCD:0x801 is supported by this UPDD package
2022/05/22-11:44:09: TRC: USB location bus:0014-port:0001
2022/05/22-11:44:09: TRC: Location already connected
UPDD 7 references the USB port differently and has been proven to work in this situation. With UPDD 6 there are two workarounds: plug the touch screens into different buses (for example one on a USB 2 port and one through a USB-C hub), or bind the touch screens in the order the system reports them, with the command upddutils setall bindmode 16385, then stop and start the driver or restart. Binding by order relies on the system always finding the devices in the same order.
For review
- The Windows remap and stale-position procedures are taken from the updd-diagnostic skill's windows-mapping reference (#400424, #720076, #832595) and checked against the source: Setup Monitors gate in updd/win32/osconnectorw32.cpp:2022-2062, -digimon_map_monitors in updd/amf.cpp:117-120 and 258-261, registry keys in updd/win32/digimon.cpp:98 and 757, monitorsetupmetrics.was in daemon/mymainwindow.cpp:611. The display-drag remap is confirmed on one ticket (#400424), the monitorsetupmetrics.was method on one cabinet (#832595). Reconciled with windows-multi-monitor: how the mapping works is kept there, the remap and stale-position fixes here, and each links to the other. Please confirm whether
upddutils monitorbind, like Setup Monitors, skips the remap on a system that is already set up; windows-multi-monitor says both run the mapping on request. The 'never the fix' sentence is now limited to the default monitor.mapping_event, since windows-multi-monitor gives Tablet PC Settings as the method when mapping_event is 0. - The remote method relies on the Daemon's monitor watcher; it does not run when
periodic_monitor_watcheris set ton(daemon/mymainwindow.cpp:600-604). - 50790's UPDD 6 workaround gave bindmode 16385 and said the default is 5; the review (E12) found V7 defaults of 65541/32767 and no USB-location bit, so the block is limited to UPDD 6. Delete it if UPDD 6 on macOS 12+ is no longer supported.