No description
  • C++ 92.1%
  • Meson 3.5%
  • C 3.2%
  • Shell 1.2%
Find a file
2023-04-05 21:29:50 +02:00
.github ci: Run clang-format and clang-tidy on every commit 2023-03-21 00:41:46 +01:00
debian pkg: Update package definitions with new dependencies 2023-03-18 22:28:00 +01:00
etc config: Add new option for tip-transmitter distance 2023-03-25 19:32:26 +01:00
scripts scripts: More fixes and refinemets 2023-03-21 00:20:45 +01:00
src accuracy patches 2023-04-05 21:29:50 +02:00
subprojects build: Update wrapped dependencies 2023-03-18 22:28:01 +01:00
.clang-format clang-format: Add seperate include blocks for dependencies and linux headers 2023-04-02 11:13:01 +02:00
.clang-tidy clang-tidy: Enable readability checks 2023-03-20 18:34:40 +01:00
.editorconfig build: Reformat meson files 2022-07-17 14:32:45 +02:00
.gitignore Ignore all hidden files, except some 2021-03-13 16:28:15 +01:00
iptsd.spec etc: Rename 50-ipts.rules to 50-iptsd.rules 2023-03-21 15:02:19 +01:00
LICENSE Initial commit 2020-05-06 21:26:17 +02:00
meson.build Bump version to 1.1.1 2023-02-18 21:20:22 +01:00
meson_options.txt debug: Add performance testing tool 2022-08-28 13:43:12 +02:00
PKGBUILD pkg: Update package definitions with new dependencies 2023-03-18 22:28:00 +01:00
README.md Add note about the support policy on Debian based distributions 2023-02-01 20:44:20 +01:00
rpkg.conf pkg: Fix Fedora build 2022-07-17 13:01:07 +02:00
rpkg.macros pkg: Fix Fedora build 2022-07-17 13:01:07 +02:00

IPTSD

This is the userspace touch processing daemon for Microsoft Surface devices using Intel Precise Touch technology.

The daemon will read incoming HID reports containing raw capacitive touch data, and create standard input events from it using uinput devices.

The following kernel drivers are supported:

  • ipts
  • ithc
  • spi-hid

At the moment, only systemd based distributions are properly supported. The daemon itself does not depend on the service manager in any ways, but it needs to know which hidraw device corresponds to the touchscreen. The easiest way to do this is with udev and a parameterized service file, which only systemd seems to support.

Installing

IPTSD is included in the linux-surface repository. This is the recommended way of installing it.

Important: Support on Debian based distributions only goes back to the latest LTS release (Debian 11 and Ubuntu 22.04).

If you want to try out changes that are not yet released, GitHub Actions builds Arch Linux, Debian and Fedora packages for every commit. You'll need to be signed-in to Github, then go to https://github.com/linux-surface/iptsd/actions, select the latest successful workflow and download the artifact named <your distro>-latest.

Building

To build IPTSD from source, you need to install the following dependencies:

  • A C and a C++ compiler
  • meson
  • ninja
  • CLI11
  • fmt
  • gsl
  • hidrd
  • inih
  • spdlog

To build the debugging tools you need to install a few more dependencies. The debugging tools will be enabled automatically when these are detected:

  • cairomm
  • SDL2

Most of the dependencies can be downloaded and included automatically by meson, should your distribution not include them.

$ git clone https://github.com/linux-surface/iptsd
$ cd iptsd
$ meson build
$ ninja -C build

To run iptsd, you need to determine the ID of the hidraw device of your touchscreen:

$ sudo ./etc/iptsd-find-hidraw

You can then run iptsd with the device path as a launch argument:

$ sudo ./build/src/daemon/iptsd /dev/hidrawN

Alternatively, you can install the files you just built to the system. After a reboot, iptsd will be automatically started by udev:

$ sudo ninja -C build install

On Fedora (or any other SELinux enabled distribution) you also need to fix the SELinux contexts:

$ sudo semanage fcontext -a -t systemd_unit_file_t -s system_u /usr/lib/systemd/system/iptsd@.service
$ sudo semanage fcontext -a -t usr_t -s system_u '/usr/local/bin/ipts.*'

$ sudo restorecon -vF /usr/lib/systemd/system/iptsd@.service
$ sudo restorecon -vF /usr/local/bin/ipts*

This is only neccessary when using ninja install. When you install one of the packages from GitHub Actions, or build your own package, everything will just work.