Linux Desktop

Tactility also runs on 64-bit Linux computers, such as a Raspberry Pi. It runs in a window or full screen on the desktop, or as the only program on the screen without a desktop (kiosk mode).

It's the same Tactility, with the hardware of the computer:

  • Wi-Fi and Bluetooth through the computer's NetworkManager and BlueZ
  • the battery of a laptop, if there is one
  • the GPIO header of a Raspberry Pi
  • sound through PipeWire, PulseAudio or ALSA

Requirements

  • A 64-bit Linux, for ARM64 (aarch64, e.g. Raspberry Pi 3 or newer with a 64-bit OS) or x86-64.
  • glibc 2.36 or newer: Debian 12 (bookworm), Raspberry Pi OS bookworm and newer, Ubuntu 23.04 and newer, or Fedora. Ubuntu 22.04 is too old.
  • libdbus-1, which desktop distributions have installed already.
  • NetworkManager and BlueZ for Wi-Fi and Bluetooth. Tactility works without them, but has no Wi-Fi or Bluetooth then.

Downloading

Download the zip for your computer. The Release is the latest official version, and the Beta is the latest development version.

  • ARM64 (Raspberry Pi 3 and newer, with a 64-bit OS)
  • x86-64 (most PCs and laptops)

The links need JavaScript. Without it, the zips are in https://cdn.tactilityproject.org/firmware/stable/ (and snapshot/ for the Beta), named in linux-desktop-aarch64.json and linux-desktop-x86_64.json.

To try Tactility on Linux or macOS with imitated hardware instead, download the Simulator.

Installing

Extract the zip of your architecture. It contains a folder with:

File Purpose
Tactility The program
install.sh Adds Tactility to the application menu, and sets up kiosk mode
icon.png The icon of the application menu entry
data/ The files of Tactility: settings, installed apps and the app data. It stays next to the program

Run it from the folder, from any working directory:

./Tactility

Tactility covers the whole screen and uses the resolution of the screen. Close it with Alt+F4 or with the power button in the system menu.

Options

Option Purpose
--windowed Run in a window instead of full screen
--kiosk Run without a desktop, see Kiosk mode
--dpi <number> The pixel density that the UI is laid out for, see UI size

Application menu

install.sh adds Tactility to the application menu of your desktop:

./install.sh

With --autostart, Tactility also starts when you log in to the desktop:

./install.sh --autostart

Add --dpi <number> to either command to set the UI size.

UI size

Tactility lays out its UI for a pixel density in dots per inch (DPI), and picks the size of its text to match. It's the density of a device that has the same layout: 143 DPI gives a font size of 14 pixels, and 187 DPI gives 18.

  • On a desktop, Tactility chooses a size from the resolution of the screen.
  • In kiosk mode, it also uses the physical size of the screen, when the screen reports it. Many small panels don't.

If the UI looks too small or too large, set the DPI yourself with --dpi. The DPI of a screen is the length of its diagonal in pixels divided by its diagonal in inches. For example, a 5-inch 800x480 panel has about 187 DPI, and a 7-inch one about 133.

Kiosk mode

In kiosk mode, Tactility is the whole UI of the computer. It draws on the screen itself, through the kernel's DRM interface, and reads the keyboard, mouse and touchscreen itself. There is no desktop, so Linux programs with a window can't run next to it. The power button of Tactility shuts down the computer.

Set it up on a Raspberry Pi OS computer with:

./install.sh --kiosk

This makes the computer boot to the console with an automatic login, and starts Tactility there when the user logs in on the first console. Add --dpi <number> for the UI size. Reboot to apply it.

To go back to the desktop:

./install.sh --desktop

Reboot to apply it.

On other distributions, install.sh can't change the boot target for you ("raspi-config not found"). Make the computer boot to the console with an automatic login on the first console, and install.sh --kiosk adds the start of Tactility to the user's ~/.profile. install.sh --desktop removes it again.

Things to know:

  • The user must be in the video and input groups, which the default user of Raspberry Pi OS is. A user that is also in the gpio group can use the GPIO header.
  • Shutting down only works for the user of the active console session, so Tactility has to start from the login, as install.sh --kiosk sets up. Started from elsewhere (e.g. through ssh), the power button exits Tactility instead.
  • To try it without rebooting, stop the display manager (e.g. sudo systemctl stop lightdm), switch to a console, and run ./Tactility --kiosk.
  • Stop Tactility from another session with pkill -x Tactility (SIGTERM). It gives the screen back to the console.
  • A keyboard or mouse that connects later (e.g. a Bluetooth keyboard) is picked up within a few seconds. While a keyboard is connected, Tactility doesn't show its on-screen keyboard.
  • The keyboard layout is US.

Hardware

Behaviour
Wi-Fi The Wi-Fi of NetworkManager: scan, connect, disconnect, radio on and off. NetworkManager keeps the saved networks, so the desktop and Tactility share them. Connecting with new credentials replaces the saved network once it connects. The access point (hotspot) isn't supported
Bluetooth The adapter of BlueZ: scan, pair, connect and disconnect, for keyboards and mice. Devices that need a passkey show it in the log only. Tactility can't act as a Bluetooth keyboard, serial port or MIDI device
Battery The first battery of the computer in /sys/class/power_supply. Batteries of peripherals, such as a mouse, don't count. The charge level, voltage and charging state show in the status bar and Power app
GPIO The pins of the Raspberry Pi header (BCM numbers 0 to 27) on /dev/gpiochip0. They need no extra permissions for a user in the gpio group. Interrupts aren't supported
Brightness 100% by default. In a desktop window, lower values dim the window. Kiosk mode doesn't control the backlight

Hardware that the computer doesn't have, or that the user can't access, is left out: Tactility starts without Wi-Fi, Bluetooth or GPIO.

Apps

Apps from the App Hub run when their package has a binary for your platform: linux-aarch64 or linux-x86_64. When it doesn't, the install is refused with "Not compatible with this device". Developers add the platform to their app, see The tt Tool.