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:

ComponentNamePathNotes
Driverupdd/Library/Application Support/UPDD
Settings databaseupdd.db/Library/Preferences/updd/db
Bootstrap settingsupdd.ini/Library/Preferences/updd/Created manually as required
Calibration programUPDD Calibrate/Applications/Utilities
Test programUPDD Test/Applications/Utilities
CommanderUPDD Commander/Library/Application Support/UPDD
Commander presetsn/a/Library/Application Support/UPDD/commander presets
Daemon programUPDD Daemon/Library/Application Support/UPDD
UninstallUPDD Uninstall
UPDD Uninstall (link)
/Library/Application Support/UPDD
/Applications/Utilities
Command line interfaceupddutils (link)
upddutils
/usr/local/bin
/Library/Application Support/UPDD
USB librarylibusb-1.0.dylib/Library/Application Support/UPDD
Start up scriptupdd_start.sh/Library/Application Support/UPDD
UPDD API dynamic liblibupddapi.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 6libupddapi.1.0.0.dylib/Library/Application Support/UPDD
UPDD API dynamic lib - UPDD 7libupddapi.7.0.0.dylib/Library/Application Support/UPDD
UPDD API folder/Library/Application Support/UPDD/apiAPI files used for developing UPDD client applications
UPDD driver API headerupddapi.h/Library/Application Support/UPDDDriver API header file
UPDD gesture API headerTBGestureAnalysisTypes.h/Library/Application Support/UPDDGesture API header file
Qt folder/Library/Application Support/UPDD/qt
Qt configurationqt.conf/Library/Application Support/UPDD
Launch drivercom.touch-base.updd.plist/Library/LaunchDaemonsStart up item for the driver
Launch UPDD Daemoncom.touch-base.updddaemon.plist/Library/LaunchAgentsStart up item for the UPDD Daemon
Launch UPDD Commandercom.touch-base.upddcommander.plist/Library/LaunchAgentsStart up item for UPDD Commander
Kernel extensiontbupddmxhid.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 extensionUPDD System Extension.app
UPDD 6.0.686 and above, macOS 10.15 and above
/Applications/UtilitiesThis 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 managerupddprocesses
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:

InterfaceTypeDescription
simpletouchSingle touch mouse interfaceA 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_cgSingle touch mouse interfaceA basic touch interface implemented by the driver itself, using the newer Core Graphics interface to post 'mouse' messages into the system.
CommanderMulti-touch gesture interfaceInterfaces 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:

ProcessPurpose
upddThe driver and the API interface.
UPDD DaemonThe driver's daemon task, offering a number of functions relating to the driver and the user interface.
UPDD CommanderOffers 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>
OptionDescription
-h or --helpShow the help message and exit.
-i or --ignore-errorsAttempt to start or stop all specified processes; do not stop on errors.
ProcessesAll processes are affected by default. If one or more of these options are used, only the selected processes are affected.
-d or --driverStart/stop the driver. Superuser privileges are needed to stop or start the driver.
-c or --commanderStart/stop UPDD Commander.
-a or --daemonStart/stop the UPDD Daemon.
--all-usersStart or stop the user-session processes (UPDD Daemon and UPDD Commander) for all user accounts that are logged in. Requires superuser privileges.
--logLogging 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:

ProcessFile
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).