What UPDD installs on macOS
This document lists the components UPDD 7 installs on macOS, how the driver and its processes are started by launchd, the interfaces used to post touch into the system, and how to stop, start and quit the UPDD processes. UPDD 6 differences are noted where relevant.
Installed components
The following components are installed under macOS:
| Component | Name | Path | Notes |
| Driver | updd | /Library/Application Support/UPDD | |
| Settings database | updd.db | /Library/Preferences/updd/db | |
| Bootstrap settings | updd.ini | /Library/Preferences/updd/ | Created manually as required |
| Calibration program | UPDD Calibrate | /Applications/Utilities | |
| Test program | UPDD Test | /Applications/Utilities | |
| Commander | UPDD Commander | /Library/Application Support/UPDD | |
| Commander presets | n/a | /Library/Application Support/UPDD/commander presets | |
| Daemon program | UPDD Daemon | /Library/Application Support/UPDD | |
| Uninstall | UPDD Uninstall UPDD Uninstall (link) | /Library/Application Support/UPDD /Applications/Utilities | |
| Command line interface | upddutils (link) upddutils | /usr/local/bin /Library/Application Support/UPDD | |
| USB library | libusb-1.0.dylib | /Library/Application Support/UPDD | |
| Start up script | updd_start.sh | /Library/Application Support/UPDD | |
| UPDD API dynamic lib | libupddapi.1.*.dylib, libupddapi.7.*.dylib (links) | /usr/local/lib (symbolic links to the libraries below) | API library used for developing UPDD client applications |
| UPDD API dynamic lib - UPDD 6 | libupddapi.1.0.0.dylib | /Library/Application Support/UPDD | |
| UPDD API dynamic lib - UPDD 7 | libupddapi.7.0.0.dylib | /Library/Application Support/UPDD | |
| UPDD API folder | /Library/Application Support/UPDD/api | API files used for developing UPDD client applications | |
| UPDD driver API header | upddapi.h | /Library/Application Support/UPDD | Driver API header file |
| UPDD gesture API header | TBGestureAnalysisTypes.h | /Library/Application Support/UPDD | Gesture API header file |
| Qt folder | /Library/Application Support/UPDD/qt | ||
| Qt configuration | qt.conf | /Library/Application Support/UPDD | |
| Launch driver | com.touch-base.updd.plist | /Library/LaunchDaemons | Start up item for the driver |
| Launch UPDD Daemon | com.touch-base.updddaemon.plist | /Library/LaunchAgents | Start up item for the UPDD Daemon |
| Launch UPDD Commander | com.touch-base.upddcommander.plist | /Library/LaunchAgents | Start up item for UPDD Commander |
| Kernel extension | tbupddmxhid.kext macOS 10.7 - 10.14 10.15 - 11 before UPDD 6.0.686 | /System/Library/Extensions (10.7, 10.8) /Library/Extensions (10.9 and above) | A codeless kext with no running code, so it is not listed by any kext utilities. Its purpose is to define the USB devices supported by UPDD and prevent HID class drivers being installed for them. |
| System extension | UPDD System Extension.app UPDD 6.0.686 and above, macOS 10.15 and above | /Applications/Utilities | This extension (dext) is contained within an application and is used instead of the kext above in macOS 10.15 and above, performing the same role. |
| Process manager | upddprocesses upddprocesses (link) | /Library/Application Support/UPDD /usr/local/bin | Used to stop and start UPDD components; see below. |
From UPDD 7.1.230, a package that supports only HID touch devices installs neither the kernel extension nor the system extension; a package that also supports non-HID USB devices installs an extension for those devices only.
/usr/local
The UPDD files live in /Library/Application Support/UPDD. The installer also creates symbolic links in /usr/local/bin (upddprocesses, upddutils, qt.conf) and /usr/local/lib (the libupddapi.1.* and libupddapi.7.* links) that point to them, and the uninstaller removes those links.
The /usr/local directory is generally used to contain files installed by the user or administrator, or by programs that share data with each other. Queries have been raised about the use of this location, but it is valid for application software such as UPDD to place important files here. With the latest versions of macOS there are few other places for shared files, as other locations in the file system are locked down by System Integrity Protection, and Apple's own documentation says to place such files in /usr/local. Some have suggested that on Unix-like systems /opt should be used, but by default the /opt directory does not exist on macOS.
Some users share the /usr/local directory across multiple systems. If this is the case, ensure other users do not delete shared resources such as the UPDD API files.
In general it is best to keep shared resources inside the /Library directory, as this is more "Mac-like" and less likely to be interfered with by users or other processes, and this has been done to a great extent. However, with the UPDD API implemented as a dynamic library (a dylib file) rather than a Mac framework (.framework), it has to go in /usr/local/lib. Problems with /usr/local permissions are covered in macOS: /usr/local permissions.
How the driver is configured
A codeless kernel extension (tbupddmxhid.kext) or system extension (UPDD System Extension.app) is used to specify the hardware to be supported. It contains the list of USB vendor and product ids supported by the driver, and its purpose is to register the driver for the supported USB device(s) so that UPDD can take control. This also prevents HID taking control of HID devices that are to be supported by UPDD. Approving the extension is described in macOS: allowing the UPDD driver extension.
The three permanently active UPDD components are the driver, the UPDD Daemon and UPDD Commander. The driver is started by a launch daemon, and UPDD Commander and the UPDD Daemon by launch agents, so that, should they fail, they are automatically relaunched. Launch agents and launch daemons are managed by launchd, which is macOS's system for running processes automatically, especially background processes.
If required the components can be started from a Terminal window, especially to see whether any errors are being issued that prevent them running, such as this command to launch the driver:
sudo /Library/Application\ Support/UPDD/updd.app/Contents/MacOS/updd -e
The driver uses TCP/IP port 4146 to communicate with the other components using the API; see What UPDD is.
Interfaces
The driver uses a number of system interfaces to post co-ordinate data into the system:
| Interface | Type | Description |
| simpletouch | Single touch mouse interface | A basic touch interface implemented by the driver itself, using the older IOHID interface to post 'mouse' messages into the system. Uses an old API that may be deprecated in future releases of macOS. |
| simpletouch_cg | Single touch mouse interface | A basic touch interface implemented by the driver itself, using the newer Core Graphics interface to post 'mouse' messages into the system. |
| Commander | Multi-touch gesture interface | Interfaces with the gesture capability of macOS and gesture aware applications. This is particularly useful for dual and multi-touch devices, as it allows common gestures to be performed via the touch screen. |
When UPDD Commander is loaded its interface into the system takes precedence over the simple touch interface. If Commander is quit, the simple touch interface becomes active.
For review
Which simple touch interface is the default in UPDD 7 is unresolved. The original article (50355) says simpletouch (IOHID) is the default; in the 7.1 source, a blank active_touch_interface takes the Core Graphics branch (daemon/simpletouch.cpp:341), and that code is in the UPDD Daemon, while the original 50245 says the driver (UPDD.app) handles mouse emulation since 6.0.591. Confirm the default and which process posts the simple touch events, and correct the table.
Processes
In normal circumstances, once installation has completed, a number of processes are enabled and running. The number depends on the components held in the installer. The core driver uses two processes: updd (the user mode driver) and UPDD Daemon (the background task). If UPDD Commander is installed it is also running. Transitional applications, like UPDD Test, Calibration and Identify, are listed in the Activity Monitor only while they are running; the core UPDD applications are permanently listed once they are running:
| Process | Purpose |
| updd | The driver and the API interface. |
| UPDD Daemon | The driver's daemon task, offering a number of functions relating to the driver and the user interface. |
| UPDD Commander | Offers full macOS gesture support at an individual application level and an enhanced gesture API interface. Includes the TUIO interface. |
If any of the processes are disabled, or reported as disabled when using the upddprocesses command to start them, they need to be enabled as described in macOS: UPDD processes not running.
Stopping and starting UPDD processes
In some cases you may wish to start and stop UPDD related processes so that they are only running when required. The utility upddprocesses starts and stops the various processes. It can be used from the command line, a script or a process:
[sudo] upddprocesses start
[sudo] upddprocesses stop
upddprocesses must be run as root (precede the command with sudo; your password is required) to stop or start the driver.
Command line arguments can be passed to ignore errors and to specify particular UPDD processes:
Usage: upddprocesses start|stop <options>
| Option | Description |
| -h or --help | Show the help message and exit. |
| -i or --ignore-errors | Attempt to start or stop all specified processes; do not stop on errors. |
| Processes | All processes are affected by default. If one or more of these options are used, only the selected processes are affected. |
| -d or --driver | Start/stop the driver. Superuser privileges are needed to stop or start the driver. |
| -c or --commander | Start/stop UPDD Commander. |
| -a or --daemon | Start/stop the UPDD Daemon. |
| --all-users | Start or stop the user-session processes (UPDD Daemon and UPDD Commander) for all user accounts that are logged in. Requires superuser privileges. |
| --log | Logging level: info, warning, critical or debug. |
Restarting the driver after sleep
With some devices touch is lost after return from deep sleep. In our investigations there was an outstanding read on the device, but no data was being sent. Stopping and starting the driver at this point (which in turn performs the driver's start-up USB communications) restarted the device and touch resumed.
To automate the restart of the driver, set power.stop_after_wake, in the UPDD Console Advanced settings (see UPDD Console) or with the command upddutils set power.stop_after_wake 1. The power settings are described in Sleep, wake and touch after resume.
Quitting UPDD processes
The UPDD Daemon and UPDD Commander run as launch agent processes, so that should they fail they are automatically restarted. The launch agent mechanism is also used to start the processes at system start-up.
Should you want to quit one of these processes so that it does not run at start-up, move, delete or rename the appropriate file:
| Process | File |
| UPDD (driver) | /Library/LaunchDaemons/com.touch-base.updd.plist |
| UPDD Daemon | /Library/LaunchAgents/com.touch-base.updddaemon.plist |
| UPDD Commander | /Library/LaunchAgents/com.touch-base.upddcommander.plist |
Installation receipts
The UPDD installation creates package receipts under /var/db/receipts, including com.touch-base.pkg.updd. UPDD 6 also creates a receipt for the driver subpackage it installed: com.touch-base.pkg.updddriversigned on 10.9 and later, or com.touch-base.pkg.updddriverunsigned on 10.7 and 10.8.
For review
The receipt identifiers come from the UPDD 6 article (50245) and were not found in the 7.1 source or the TBA packaging tree. Confirm the receipts a current UPDD 7 package creates (pkgutil --pkgs | grep touch-base on an installed Mac).