Monitors: identify, bind, metrics and segments
UPDD supports both multi-monitor and multiple pointer device configurations. This means that UPDD can cater for a system that has more than one monitor or more than one pointer device, and any combination thereof.
A touch screen monitor is two totally independent devices, a video display and a touch screen, with no known relationship between the devices. When a touch screen monitor is connected to a system, two devices appear in the system: the video driver handles the display and UPDD handles the touch. In a multi-monitor system the driver therefore needs to be told which monitor each touch device belongs to.
This document describes how UPDD 6 and UPDD 7 see the monitor layout, how touch devices are associated with monitors, segments, screen rotation and the use of several controllers by one application. Windows specifics (the virtual HID devices) are in Multi-monitor on Windows and Linux specifics in Multi-monitor on Linux.
Multi-monitor configurations
There are a number of possible multi-monitor / multiple device configurations:
| Configuration | Description |
| Cloned | Identical displays on all monitors. In this case UPDD associates all the touch devices with the same monitor. |
| Extended | The desktop is extended across the monitors and each monitor is listed in the desktop properties. Each UPDD device is associated with an individual monitor: monitor 1, monitor 2 etc. or a specified monitor name. |
| Segmented | The desktop lists virtual monitor(s) in the desktop properties (e.g. as implemented by specialist hardware and a custom video driver) which may relate to two or more physical monitors. Each UPDD device is associated with the video segment of the virtual monitor that relates to its physical monitor. See Segments. |
| Stretched | As segmented, where a stretched video driver spreads one virtual monitor across two or more physical monitors. Each UPDD device is associated with a video segment. |
| Custom | The touch is to be restricted to an area of the monitor and does not cover the full display area; also handled with segments. |
| Span | A single touch device spans two or more physical monitors, as described in Virtual devices, Touch over IP and Touch Split. |
Limitations
UPDD supports up to 32 monitors but has no restriction on the number of devices it can handle. As long as the device can be connected via one of the supported hardware ports UPDD can be configured to support it.
This document refers to single user, multiple monitor configurations. Please contact Touch-Base if you are using multiple monitors in a multi-user / multi-seat environment.
Monitor metrics
The driver uses a cross-platform graphics function to retrieve the monitor layout. For successful multi-monitor operation this layout information must correctly reflect your monitor setup, so the driver can only support configurations that are identifiable by this function; in most cases we would expect it to handle most multi-monitor configurations.
It is important that the driver keeps a view of the system monitor layout so that it can direct the point of touch to the correct position. Given the driver process executes in a context where it might not have access to information about the monitor layout, this information is also held in the global setting monitorsetupmetrics, e.g.
monitorsetupmetrics=0:0:1439:4479:0:0:1439:2559:2560:0:1079:4479:
The first group is the co-ordinate basis range, being the bounding lower and upper co-ordinate range of all monitors. Thereafter each group of 4 colon separated numbers gives the left, top, bottom and right co-ordinates of a monitor: the second group is monitor 1 as seen by UPDD, the third is monitor 2, and so forth.
The monitor order as known by the driver can be seen with the command upddutils monitors:
C:\Program Files\UPDD>upddutils monitors
Monitor 1: DEL93D6
Left: 0
Top: 0
Right: 2559
Bottom: 1439
Monitor 2: Dell P2314T (HDMI2)
Left: 2560
Top: 0
Right: 4479
Bottom: 1079
Under Windows the monitor with the origin 0,0 is considered the primary monitor and any others secondary monitors.
By default monitorsetupmetrics is set automatically, but there are settings to define it manually or to request the driver to update it.
Automatic definition
The monitorsetupmetrics value is set by the UPDD software:
1) On Windows during execution of the setup program
2) During execution of the calibration program (all OS)
3) At system start-up by UPDD Daemon (all OS)
4) When the display settings change
The value can be retrieved with the TBApiGetSetting API call and seen using the command line interface, as in this 2 monitor system:
In multi-monitor configurations associations are made between a touch screen and a specific monitor, so it is important that once an association is made the reported monitor order remains the same. However, there have been cases where the reported monitor order changes over a reboot with the same physical setup, which can result in touches being directed to the wrong monitor, as in this example (before and after a reboot):
| Before | After |
| Monitor 1: RD@0001 Left: 0 Top: 0 Right: 1919 Bottom: 1079 Monitor 2: RD@0001 Left: 0 Top: 1080 Right: 1919 Bottom: 2159 Monitor 3: Default_Monitor Left: 0 Top: -480 Right: 639 Bottom: -1 | Monitor 1: Default_Monitor Left: 0 Top: -480 Right: 639 Bottom: -1 Monitor 2: RD@0001 Left: 0 Top: 0 Right: 1919 Bottom: 1079 Monitor 3: RD@0001 Left: 0 Top: 1080 Right: 1919 Bottom: 2159 |
To cater for this the global setting monitorsetupmetrics.sort (default 1) sorts the monitor layout on video co-ordinate location, left to right, top to bottom. It is supported on Windows and, from 7.1.57, on macOS. If it is changed after installation it only becomes effective after a material change to the monitor layout or a restart.
Manual definition
In some cases the system monitor layout set automatically in monitorsetupmetrics might not match the actual screen resolutions, which can lead to inaccurate touch, even after calibration. We have seen this in Linux systems using desktop scaling (xrandr --scale [option]).
In the following example xrandr reports that both monitors have a resolution of 1024 x 768 and the two desktops of 800 x 600 are scaled to this resolution.

However, when queried programmatically (as seen via the upddutils monitors command) the screen resolutions are reported as the logical (unscaled) size, not the physical (scaled) size:

In this case monitorsetupmetrics must be set manually, based on the physical resolutions. Given the above, it is likely to be:
upddutils nodevice set monitorsetupmetrics 0:0:1023:767:0:0:1023:767:1024:0:2047:767
This is an unusual edge case, so it is difficult to give reliable and consistent guidance. However, if scaling is in use and calibration is inaccurate, this is a likely cause. Monitor co-ordinate ranges that are not contiguous are also a possible indicator, although non-contiguous ranges can be valid in some circumstances.
With a combination of the upddutils monitors command and the system commands that show the monitor layout you should be able to determine the values required:
When defining monitorsetupmetrics manually you need to stop UPDD setting it automatically, with the global setting monitorsetupmetrics.manual. If set to 1, monitorsetupmetrics will not be overwritten:
upddutils nodevice set monitorsetupmetrics.manual 1
Manually request update
On Windows the monitor setup procedure moves the cursor (see Virtual HID devices), so in some cases it might be desirable not to have the driver remap the monitor metrics each time the display layout changes, especially if the current setting already reflects the layout, such as when plugging a touch monitor into a system that previously had it connected.
From UPDD 7.1.43 the global setting monitor_setup_mode can be set to auto (the default) or manual. It can be preset in the driver package or set with upddutils, e.g. upddutils global set monitor_setup_mode manual
When set to manual the monitor setup is only run at the initial installation of the driver (to establish base settings); thereafter it needs to be invoked as required, such as when touch is directed to the wrong monitor after Identify has been run. When set to manual the UPDD Daemon menu lists the Setup Monitors option:
When selected, it runs the setup procedure if it determines a display change has occurred.
Monitor layout changes
The driver monitors the system for changes to the monitor layout or orientation after it has been configured, and handles them as follows:
| Change | Action |
| Rotate | On Windows the video orientation is catered for by the operating system (see Screen rotation); on macOS and Linux the touch calibration is adjusted accordingly. |
| Monitor layout | If the autoconfigure setting is enabled, Identify is run on the first touch following the change. If the setting is disabled, Identify will need to be run manually following the layout change. |
Associating a touch device with a monitor
When a touch device is initially discovered, there is no foolproof way for the driver to determine which monitor is associated with the touch screen. Until any of the association methods below is used, the touch screen is associated with monitor 1, as this always exists, so touching the screen results in some cursor movement. On a single monitor system the association will be correct, but in a multi-monitor layout it is likely to be incorrect until it is established by one of these methods:
- Identify, run manually or automatically;
- selecting the monitor in the UPDD Console, Touch page, or setting the monitor number;
- binding to the monitor name or monitor role, which is checked whenever the layout changes.
Most operating systems assign a unique number to each monitor - 1, 2, 3, 4 etc. The monitor layout is normally shown in the system's display dialog.
Identify
Identify should be run whenever touches are not reported accurately or appear on the wrong screen. This might occur after installation or when monitors have been added or removed.
The Identify option is available in the UPDD Daemon menu, as below, in the UPDD Console, Touch page, or by running the command UPDD\ Calibrate identify as described in Calibration:
| macOS | Windows | Linux |
![]() | See Linux: what is installed, start-up and processes |
In the descriptions below, it is important to be aware that:
- A touch device and the monitor (if any) it is attached to are two different things.
- As a touch device does not have to be attached to a screen there can be more touch devices than monitors (although this is uncommon; if you have this scenario you are likely to be aware of it).
- A single monitor system refers to the number of monitors, not the number of touch devices.
A touch device is said to be unidentified when it is connected and detected for the first time, and identified after Identify is run. It becomes unidentified again if the number or position of monitors on the system changes. What happens when Identify is run varies according to the machine state. Identify in turn invokes the calibration procedure as appropriate.
| Monitor setup | Description |
| Single - native | In a single monitor setup all connected touch devices that are currently unidentified are first assigned to "Monitor 1" in the driver's numbering system. This is to deal with the case where the number of monitors has been reduced to 1. Thereafter, if any touch devices are unidentified the standard calibration procedure is executed for each. If, on the other hand, all touch devices are already identified, the software takes this as an instruction that despite the system having been configured something is amiss, so a standard 4 point calibration is executed for each connected touch device. |
| Multi - native | In a multi-monitor system, if any connected touch device is unidentified the identify window is shown on each screen in turn. The user is asked to touch the single cross, or to click Next if the screen is not a touch screen. During this identify process the software checks whether the touched point is accurate. Touch might be accurate due to default data, e.g. as defined in the controller's report descriptor, or a previous calibration; in such a case the full calibration is unnecessary and is not invoked. If a touch device is found to be inaccurately calibrated, the standard calibration procedure is executed for it. If, on the other hand, all touch devices were already identified, the software takes this as an instruction that something is amiss, so a full configuration is executed: first the identify window is shown on each screen in turn, then the calibration procedure is executed for each connected touch device. |
| Segmented | Where the system lists fewer monitors than physically exist, UPDD is configured to support monitor segments and Identify identifies each segment. The identify text indicates the segment being configured with the notation 'Monitor N:S', where N is the monitor and S the segment, as in this example requesting the identification of the first segment of monitor 1: |
The identify screen, used to identify touch devices and associate them with a screen, is shown below:

The global setting configure.invokes_calibrate controls whether Identify goes on to calibrate:
auto - the default; calibration is invoked where the touch showed calibration is inaccurate, or where Identify does not change the monitor assignments (i.e. a second run)
never - calibration is never invoked, so Identify only sets the touch screen and monitor associations
always - calibration is always invoked
Automatic configuration
Identify can be run manually, as above, or automatically. Either mode can be set as the default in a supplied driver package, so from the user's perspective only the predefined option is relevant.
In automatic mode Identify runs following a touch whilst any device is unidentified. In practice this means that Identify executes following the first touch after installation, or after any change to the video geometry (except rotation, which is catered for by the driver or by the OS) or number of monitors. The user only needs to follow the on-screen prompts. The UPDD Daemon process must be running for the automatic function to work.
The mode is determined by the global setting autoconfigure: 0 (the default) indicates manual, 1 indicates automatic. It can be seen and set in the UPDD Console, Advanced, Settings tab under General, or via the command line interface:
upddutils nodevice get autoconfigureupddutils nodevice set autoconfigure n (n = 0 or 1)
The default is manual because, in practice, automatic mode invoked the identify screen unnecessarily in a few cases, especially after a reboot when the monitor geometry changed to reflect the layout.
Identify notification
If the driver determines that Identify should be run, UPDD Daemon issues the notification 'Please run Identify'. It does so if all of the following are true:
- autoconfigure is not enabled
- it is a multi-monitor system
- the device has not been identified (the device setting 'identified' is 0 or is not set)
The setting 'identified' is:
- cleared when the calibration data is set up for the first time (e.g. set from the HID report descriptor values)
- cleared when a change in the HID report descriptor is detected
- set when a monitor is identified (by touching the centre cross on the identify screen)
- set when a monitor is bound automatically (using the monitor name defined in the setting monitor_bind.display_name)
Monitor number
The monitor number can be predefined with the device setting monitor_number. For example, if a touch screen monitor is to be connected to a system such that it will always be the second monitor, setting this value to 2 associates the touch device with monitor 2. With upddutils you can also give the monitor's origin instead of its number, see Working with settings.
Monitor name binding
It can be useful to bind a touch device to a monitor so that the relationship is retained even if the monitor metrics change, such as when a new monitor is added to the system or the monitor layout is reported differently over a reboot.
Modern monitors use Extended Display Identification Data (EDID) to identify themselves to the OS, which allows the OS to list the name of the monitor. Where the name is taken from the monitor it is a specific identifier, whereas a name taken from the video driver can be generic, such as 'Generic PnP monitor'. Both are shown below, as taken from the Windows display properties:
| Monitor name | Generic name |
UPDD shows the most useful monitor name available. Where the OS holds a unique monitor identifier, this is shown; where the monitor is listed under a generic name the driver shows the manufacturer id from the EDID data, as in this example related to the two monitors above:
Here is a macOS example showing the screen name in the Mac display dialog and in UPDD:
Where the monitor is listed with a unique name, the name can be preset against the touch device in the device setting monitor_bind.display_name, so that the driver associates the touch device with the named monitor whenever it is discovered on the system. For example, a Lenovo ThinkVision LT1423 touch monitor is listed in the Mac display properties as LEN LT1423pwC, so this name is set in the setting. When the monitor and touch screen are plugged in to a Mac, the touch device is associated with the correct monitor - in this example monitor 2:
| Display properties | UPDD |
![]() |
The value is a display name substring: the device associates itself with a screen whose name contains that value. The matching is case insensitive, e.g. if the value is 'XYZ' and a display named 'XYZ Multi touch' is found, it will be used. Several values can be given, separated by a semicolon (e.g. 14T;DEL); if any matches, it is a match. A value can also be a screen resolution in the form widthxheight (e.g. 1024x768); resolution values are checked if no display name matches.
The binding is checked every time there is a setting change notification, so it is dynamic and tracks monitor layout changes.
In some cases the name of a monitor as reported by the OS to the driver differs from that seen in system tools, so set the name as listed by UPDD. To see the names as known by UPDD use the command upddutils nodevice get "monitorsetupname*", or the upddutils devices or monitors commands. Monitor name binding is supported on Windows and macOS.
The bind name can be viewed and set in the UPDD Console, Advanced, Settings tab. Type in the name seen in the Monitor drop down of the Touch page; a partial name is acceptable:


This feature is especially useful when the value is preset in the driver package delivered to the end user, so that the touch / desktop association is made correctly when the device is connected.
monitor_bind.display_name.v7
UPDD 7 also has the setting monitor_bind.display_name.v7, which works in the same way with additional rules: several tokens separated by ";" on one line must all match for that line to match, and several lines can be given, a complete match on any line being a match, e.g.
14T;disp=secondary
DEL;disp=secondary
or, for a simple case with several monitor types, one name per line.
If monitor name binding is used and two monitors of the same name are connected, the binding is likely to be incorrect. In this situation Identify should assign the touch / desktop association correctly.
The monitor name shown by UPDD for a touch device is that of the monitor currently associated with it, not necessarily the monitor the touch screen is physically part of. The display reflects whatever association has been configured, not what is correct.
Monitor role
Under Windows one monitor is designated the primary monitor; in a two monitor system the other is the secondary monitor. You can bind a touch screen to the role of a monitor:
upddutils device <A> set monitor_bind.display_name disp=primaryupddutils device <B> set monitor_bind.display_name disp=secondary
where <A> and <B> are the UPDD device handles of the devices to be associated with the primary / secondary monitors.
A primary monitor is defined as that having its origin at 0,0. A secondary monitor is defined as the first not having its origin at 0,0. A secondary monitor binding is only useful in a two monitor system.
Hardware port binding
In a multi-monitor / multi-touch device environment it is important that the association between a touch device and a monitor or desktop segment is retained over a reboot and, as far as possible, if devices switch ports or additional similar devices are added.
Each USB device handled by the driver is allocated a connection key. The format of this key depends on the characteristics of the controller, the port or hub to which it is physically connected and other settings, as seen in these two examples:
The device setting bindmode is a bit mask that indicates the components used to construct the key. The default is 5 (BIND_VIDPID and BIND_USB_LOCATION):
BIND_VIDPID 0x01 - vendor and product id (for an i2c device, the vendor / device tags)
BIND_USB_SERIAL 0x02 - USB serial number; not used for HID connected devices
BIND_USB_LOCATION 0x04 - USB location; not used in UPDD 7
For USB devices the device / desktop binding depends on the number of devices in use and the characteristics of the devices:
Single device
The binding between the controller and the desktop is maintained based on the USB vendor and product id.
Unique devices
Where the USB device holds a unique serial number the binding is maintained based on the USB vendor id, product id and the serial number.
Multiple devices
The main issue arises when the USB devices are identical, in that they share the same vendor and product id and have no unique serial number. In this case, as long as each device remains in the same port, the desktop and device association will be retained. This cannot be guaranteed if, for whatever reason, the port number changes.
Segments
In normal configurations a touch device is associated with one monitor and covers the entire screen. However, in some cases there are more physical monitors than are listed by the operating system, e.g. 1 listed, 2 physical, or 3 listed, 9 physical. This is the case, for example, with specialist graphics hardware such as Matrox eXpansion cards, Eyefinity and NVIDIA Mosaic, whose custom video drivers connect several physical monitors that the OS sees as one logical monitor. For each logical monitor you need to tell the driver the relationship between the logical monitor and the physical monitors.
This relationship is defined in the global setting monitor_segment_map (default 1x1). As a global setting it needs 'nodevice' or 'global' in the set command, e.g. upddutils global set monitor_segment_map 3x1 (3 horizontal x 1 vertical). monitor_segment_map.N applies the layout to logical monitor N only; if no .N setting is defined, the layout applies to all logical monitors.
The setting has these formats:
| Value | Description |
| HxV | The first number is the horizontal layout and the second the vertical layout. Each segment is numbered, starting at one for the top left segment and increasing to the right and then down. Taking 2x2 as an example the segments are numbered: This layout can be set in the UPDD Console, Advanced, General tab. |
| x:n:[l,t,r,b] | Custom segmentation, allowing unusual size / shape segments. x = extended, n = number of segments, then left, top, right and bottom of each segment, based on the internal video mapping range of 65535 decimal / FFFF hex. Example: monitor_segment_map=x:2:0,0,5555,ffff:5556,0,ffff,ffff defines 2 segments side by side. |
Examples
A Windows system has 3 logical monitors listed in the desktop properties but 9 physical monitors. Each logical monitor is associated with 3 physical monitors in a horizontal layout, so monitor_segment_map is set to 3x1 for all logical monitors:
A multi-monitor system has a number of logical monitors, the second of which supports 4 physical touch monitors:
Segment / device association
Once the logical / physical relationship is defined, Identify is used to set up the desktop / device association. It sets the device setting monitor_segment for each device, such as these settings for a 1 logical / 3 physical layout with touch device 1 associated with the 3rd segment, device 2 with the 1st and device 3 with the 2nd:
upddutils nodevice set monitor_segment_map 3x1 - set manually to define the segment layout
upddutils device 1 set monitor_segment 3 - set by Identify
upddutils device 2 set monitor_segment 1 - set by Identify
upddutils device 3 set monitor_segment 2 - set by Identify
The above configuration is listed by UPDD as follows:
With some unusual desktop layouts, such as the task bar on the side, the calibration window can be offset when displayed in a segmented configuration, giving inaccurate calibration on one axis. In this case it may be necessary to change the calibration.force_geometry setting.
Segmenting a single monitor
Segments can also be used to segment a single monitor where only part of the monitor is to be calibrated and used, as in these two examples.
Example 1 - Using a touch device where only the top half of the video display is actually on display
In the normal configuration the calibration screen covered the full display area, so the bottom crosses were not visible as they were effectively off the bottom of the screen. Monitor 1 was therefore configured as two horizontal segments (upddutils nodevice set monitor_segment_map.1 1x2) so that only the top segment was associated with the touch screen during Identify, as seen below, and the subsequent calibration. The bottom segment's identify text is not seen (it is off the bottom of the screen), so press Return on the keyboard to complete Identify, or wait for it to time out:

Example 2 - Touch screen on a monitor with a resolution of 1920 x 285 that is seen by the system (in this case macOS) as 1920 x 1080
Here the default calibration is inaccurate because the touch device is mapped to 1920 x 1080 and the calibration points are drawn in the wrong place. A segment map of 1x2, 1x3 or 1x4 is only useful if the segment is 50%, 33% or 25% of the video area, so a custom segment is needed: upddutils nodevice set monitor_segment_map x:1:0,0,ffff,438e
meaning x = extended, 1 = 1 segment, then left = 0, top = 0, right = ffff, and the bottom calculated as
((top + height of segment) / height of screen) * 65535
= ((0 + 285) / 1080) * 65535
= 17294 (decimal)
= 438E (hex)
Now, when the device is calibrated the calibration crosses are placed within the segment, allowing correct calibration.
Finding segment boundaries
Where segmentation gives unpredictable results, i.e. a calculated monitor_segment_map does not work as expected, UPDD Calibrate can be used to determine the correct values. In this example we determine the right side boundary of a segment in a horizontal layout. Run these commands (within C:\Program Files\UPDD on Windows):
upddutils set calibration_margin 0upddutils set calibration_margin.next 0upddutils set calibration_points 4upddutils global set monitor_segment_map "x:1:0,0,ffff,7fff"upddutils set monitor_segment 1
In this mode, when you run calibrate an arrow is shown in each corner of the segment, which you can use to check whether the segment is defined correctly. The procedure below determines the right boundary (the 7fff value above); you can adapt it for the other boundaries. Repeat these steps until the arrow points exactly to the edge of the target monitor:
- Run
"UPDD Calibrate.exe" device=1. - Touch the calibration screen twice so that the third calibration point is shown:

It can be difficult to get touch to react at the corner of the screen, but for this exercise you can touch anywhere: the aim is only to advance to the calibration point, not to calibrate accurately. - Note the position of the arrow relative to the edge of the target monitor, in this case the right edge.
- Choose a new value for the boundary: if the arrow was to the right of the target monitor edge, choose a value half way between the lowest previously chosen value (0 on the first pass) and the current value; if it was to the left, half way between the highest previously chosen value (ffff on the first pass) and the current value.
- Set this value, e.g.
upddutils global set monitor_segment_map "x:1:0,0,ffff,3fff", and repeat the test.
Following this sequence determines the correct value in a few iterations.
Screen rotation
Desktops can be displayed in landscape or portrait orientation. Within the system display settings each monitor can be rotated by 0, 90, 180 or 270 degrees:
| Windows | macOS |
![]() | ![]() |
When UPDD Daemon runs at start-up it notifies the driver of the monitor metrics, including the rotation angle, and thereafter informs the driver of any display changes; the driver adjusts calibration accordingly. These settings relate to rotation:
| Setting | Level | OS | Description |
| use_native_screen_rotation | Global | Windows 10 / 11 | Windows HID supports rotation directly, so when a monitor is rotated it is not normally necessary for UPDD to adjust the co-ordinates delivered to HID, and the setting is 1 (the default). However, some third party video drivers behave differently and require UPDD to implement the co-ordinate mapping for rotation; setting use_native_screen_rotation to 0 enables this. Currently this only has an effect when the UPDD touch / pointer interface (virtual HID) is used. If a rotated virtual monitor (e.g. NVIDIA Mosaic) touches inaccurately, set:cd "\program files\updd"upddutils global set use_native_screen_rotation 0We have observed that this is needed for the NVIDIA driver. |
| override.screen_rotation.angle | Device | All | Provides an override for the setting private.screen_rotation.angle, allowing a user to define a rotation angle and ignore that from the OS. |
| private.screen_rotation.angle | Device | All | Holds the current screen rotation angle, set by UPDD Daemon. Where UPDD Daemon is not running on a system with a fixed non-zero rotation angle and pre-calibrated data, the rotation can be predefined using this setting. |
Multiple controllers in one application
In some cases it is desirable to have a single application span several physical touch monitors. Where the monitors are configured as one large virtual monitor (such as NVIDIA Mosaic) this is handled with segments; where they are individual monitors on Windows, see Unified pointer injection.
From UPDD 7.1.220 the global setting merge_contact_ids makes each touch contact's id unique across all connected controllers. By default each controller numbers its own contacts independently, so two controllers can both report contact "0", "1", … at once; an application (or the virtual HID) that receives contacts from more than one controller then sees colliding ids. With merge_contact_ids on, every live contact gets a distinct id, no matter which controller produced it:
- Ids are 0-based and recycled: an id is allocated (lowest free) when a contact goes down and released when it lifts, so ids stay compact.
- It applies to every consumer of the contact id - the virtual HID, the unified pointer injection interface and UPDD API clients - with no API change.
You can enable this setting with upddutils or a UPDD API call:
upddutils global set merge_contact_ids 1 - enableupddutils global set merge_contact_ids 0 - disableTBApiSetSetting(0, "merge_contact_ids", "1", false);
The setting merge_contact_ids.max_contacts can optionally define an upper limit on the number of simultaneous merged ids (ids 0 to max-1); the default is 256. Because ids are allocated lowest-free you normally do not need to set it. In particular the virtual HID (whose contact id field holds 0-31) works at the default: with up to 32 simultaneous contacts the merged ids stay in range, and more than 32 exceeds the virtual HID's own capacity anyway. Set max_contacts only for a consumer that needs a specific upper limit.
merge_contact_ids is for a single application, or the virtual HID, receiving touches from several controllers (video walls, multi-station tables) that tracks contacts by id, and for any integration needing globally unique contact ids across controllers.
Note: while enabled, the contact id no longer reflects a controller's raw per-device contact number. A consumer that specifically needs the raw per-device number should leave merge_contact_ids off.
macOS
For Mac systems that support more than one monitor, the arrangement is shown in System Settings, Displays (System Preferences, Displays, Arrangement on earlier macOS):

In this setup Identify associates each touch device with a monitor: Monitor 1, Monitor 2 etc. UPDD shows the association between the touch device and the monitor:

In the example above the second monitor has two UPDD controlled devices, touch and pen, associated with the same monitor.
External multiple head devices
External video extenders are available for the Mac such that a single video port, typically on a Mac mini, can be extended across two or more monitors. One such device, DualHead2Go or TripleHead2Go, allows two or three screens to be connected to a single video connector. To the Mac it looks like one wide screen but it is actually two or three separate physical panels, so one logical monitor represents two physical monitors.
Before using Identify to make the desktop / touch screen association, define the logical / physical relationship with the monitor_segment_map setting, e.g. upddutils nodevice set monitor_segment_map 2x1.
Linux
Linux supports two touch interfaces, uinput (the default) and xtouch, and its multi-monitor set-up depends on the interface and on the display configuration. The steps - check the layout with upddutils monitors, set monitor_segment_map where the number of monitors listed does not match the number connected, then run Identify - are described in Multi-monitor on Linux.
Interlock and the API
When several touch devices are used on a desktop designed for a single user, the driver has to cater for simultaneous touches on different devices and ensure a clean switch between one device and another. The driver implements an interlock feature for this, described in Disabling and prioritising touch.
When using the UPDD API in a multi-monitor environment you may need to associate received touch data with the source monitor, using the monitor metrics described above; see UPDD API overview.
For review
monitor_setup_mode: 50387 gave the values "automatic" and "manual". The driver accepts "auto" and "manual" (07_01 daemon/mymainwindow.cpp:745-751, daemon/mytrayicon.cpp:852-858; setting definition default "auto"); the page uses auto.
bindmode: 50347 gave the default as 32767 (7FFF, all components). The settings file defines 5, and its help text says BIND_USB_LOCATION is not used in UPDD 7; the page uses that. The UPDD 7-only bits in the help text (BIND_USB_BCD 0x8000, BIND_USB_INDEX 0x4000, BIND_HID_PARENT 0x20000) are not added; please say whether they should be.
The external multi-head example used "upddutils set monitor_segment_map 2x1"; monitor_segment_map is a global setting, so nodevice has been added.
The "Custom" row of the 50347 association table said only "To follow"; it is folded into the configurations table, pointing to segments. Screenshots of the UPDD Status dialog (StatusNativeMac, StatusDisplayName, SegmentStatus3x1, MonUPDDStsNamea) show the UPDD 6 Status dialog, which UPDD 7 replaced with the Console device list; new screenshots would help.
Left out: the 6.0.277, 6.0.381, 6.0.393, 6.0.632 and 7.0.82 build references where the feature is in every current build; the XP / 7 / 8 rotation table rows; the 50347 sentence on interlock in the withdrawn gesture application.



