This document describes how to install, update and remove Sailhand. Check the requirements first. Sailhand is young software; the note in the README applies to every build.
The releases page offers two builds:
| Build | Content | Update channel |
|---|---|---|
| Release | A tagged state of main (vX.Y.0). Few updates. |
stable |
| Pre-release | The latest main (vX.Y.Z), replaced by every merged change. |
beta |
Every change reaches main through a reviewed pull request with green checks (tests, builds and packages for all
targets), and a release was the pre-release before. Testing on real printers is limited to the printers listed in
Tested setups.
Every open pull request is built as well. Its packages (packages-<target>) are listed under Artifacts on the page of
its CI run; downloading them needs a GitHub login. Install such a zip by hand. Moonraker
does not offer pull request builds as updates; the next pre-release (beta) or release (stable) replaces it.
Sailhand runs on the printer host, starts fullscreen on the display at boot and is updated by Moonraker's update
manager. One build per architecture (aarch64, armv7, x86_64) runs on every system with glibc 2.35 or newer and
the packages cage and seatd:
| System | Status |
|---|---|
| Debian 12 Bookworm, 13 Trixie | supported |
| Raspberry Pi OS Bookworm or newer | supported (32-bit and 64-bit) |
| Ubuntu 22.04, 24.04 and Armbian on them | supported; cage and seatd come from universe |
| Armbian Bookworm or Trixie | supported |
| Debian 11 Bullseye and images based on it | not supported: no cage and no seatd |
Run as the user that runs Klipper and Moonraker:
curl -fsSLO https://github.com/freakydude/sailhand/releases/latest/download/get-sailhand.sh
bash get-sailhand.sh -m http://127.0.0.1:7125The script downloads the zip for the architecture of the host and runs its install.sh with the given options. The
installer checks glibc, architecture and packages first and stops with a message if something does not fit.
| Option | Meaning |
|---|---|
-m <url> |
Moonraker address |
-d <folder> |
printer_data folder. The default is ~/printer_data. |
-c stable|beta |
Update channel. The default is stable. |
-r 0|90|180|270 |
Turn the display clockwise. |
Run again, the installer keeps the Moonraker address and the printer_data folder of the existing installation
unless they are given. In a terminal it asks for the rotation, Enter keeps the current one.
The installer:
- installs the packages listed in
system-dependencies.json, among them the kiosk compositorcage; - copies the program to
~/sailhand; - creates the systemd service
sailhand: fullscreen ontty1throughcage, or the framebuffer fallback on a system without a DRM/KMS device; - installs the udev rule
70-sailhand-backlight.rulesfor brightness and standby and the polkit rule50-sailhand.rulesfor the network settings, and adds the user to the groupsvideo,input,render,i2candnetdev; - adds
[update_manager sailhand]tomoonraker.confandsailhandtomoonraker.asvc, then restarts Moonraker.
Run the installer again after changing the display.
Files of an installation:
| Path | Content |
|---|---|
~/sailhand |
The program. Moonraker replaces this folder on an update. |
printer_data/config/sailhand.conf |
Settings |
printer_data/logs/sailhand.log |
Log |
~/.config/sailhand/credentials.json |
Moonraker login and trusted certificates |
Download sailhand-<target>.zip for the architecture from the
releases, then:
unzip sailhand-aarch64-unknown-linux-gnu.zip -d sailhand-setup
cd sailhand-setup && ./install.sh -m http://127.0.0.1:7125The options are the same as above. The folder sailhand-setup can be deleted afterwards.
For a display mounted upside down (180) or a panel that is upright by nature (90 or 270), run the installer again with the rotation clockwise, or answer its question:
~/sailhand/install.sh -r 180It stores the value as rotation in sailhand.conf and turns picture and touch together:
- Under
cagethe compositor turns the picture: cage 0.1.4 (Bookworm) with its option-r, newer versions throughwlr-randr, which the installer adds then. The touch is turned by a libinput matrix in/etc/udev/rules.d/71-sailhand-touch-rotation.rules. Sailhand keeps drawing on the GPU. - In the framebuffer fallback Sailhand turns both itself.
Updates through Moonraker keep the rotation. The .deb and the Arch package do not turn the display yet. The kernel
option video=…,rotate= and display_rotate in config.txt do not help: the first turns only the text console,
the second does not work with the KMS driver of current Raspberry Pi OS.
cage needs a DRM/KMS device (/dev/dri/card*). Small displays with only a framebuffer driver (SPI, fbtft, e.g.
fb_st7796s) have none. On such a system the installer sets up the service with --framebuffer: Sailhand draws to
/dev/fbN with software rendering, and the text console is detached from the framebuffer while it runs. HDMI and DSI
displays use cage.
Leave the display driver at rotate=0 and turn the display with Sailhand instead, so that
picture and touch turn together. Here rotation in sailhand.conf can also be changed by hand; restart Sailhand
afterwards.
A resistive touch panel (ADS7846, TSC2007 and similar) that was never calibrated reports taps beside the finger, often pulled towards the middle of the screen. Buttons then light up but do not react, the narrow ones at the edges most of all. Calibrate it once:
sudo bash ~/sailhand/touch-calibrate.sh # zip installer
sudo bash /usr/share/sailhand/touch-calibrate.sh # .deb or Arch packageThe script stops Sailhand and shows five crosshairs; tap their centres (a fingernail is more precise). It stores the
result as libinput calibration matrix in /etc/udev/rules.d/99-touch-calibration.rules and starts Sailhand again. It
installs tslib's tools (libts-bin, on Arch tslib) if they are missing.
The rule belongs to the display and stays when Sailhand is removed. To undo the calibration, delete the file, run the following and restart Sailhand:
sudo udevadm control --reload && sudo udevadm triggerEach release contains sailhand_<version>_<arch>.deb for amd64, arm64 and armhf. apt installs the dependencies;
Moonraker does not update the package. Use either the installer or a package, not both: both want tty1.
sudo apt install ./sailhand_<version>_arm64.deb
sudo systemctl disable getty@tty1 # free tty1 for the kiosk
sudo usermod -aG video,i2c,netdev $USER # brightness, DDC/CI monitors, Wi-Fi
sudo systemctl enable --now sailhand@$USER # fullscreen on tty1 as this userTo remove it:
sudo apt remove sailhand && sudo systemctl enable getty@tty1Each release contains sailhand-<version>-1-<arch>.pkg.tar.zst for x86_64, aarch64 and armv7h (Arch Linux
ARM), built from the same binary as the .deb with the same service. It has had little testing. There is no
repository; update by installing the next file.
sudo pacman -U sailhand-<version>-1-x86_64.pkg.tar.zst
sudo systemctl disable getty@tty1
sudo systemctl enable --now sailhand@$USERTo remove it:
sudo pacman -R sailhand && sudo systemctl enable getty@tty1An Android phone or tablet near the printer can serve as touch screen. It needs Android 7.0 or newer on a 64-bit ARM device and a Moonraker reachable over the network. It has been tried in the emulator and on one phone.
- Download
sailhand-<version>-arm64-v8a-prod-release.apkfrom the latest pre-release and open it on the device. Allow installing from unknown sources when Android asks. - Updates: Sailhand looks for a newer release once a day and shows it on System → Settings → About. Download
opens the APK in the browser; open the finished download to install the update. The channel there follows the first
installed build (release:
stable, pre-release:beta) and can be changed or turned off. Alternatively add the repositoryfreakydude/sailhandto Obtainium (with pre-releases forbeta).
To check the signature, run:
apksigner verify --print-certs sailhand-<version>-arm64-v8a-prod-release.apkThe output must contain:
Signer #1 certificate SHA-256 digest: bd3c83f2cd1096bc1eee5b43ad452781b0888510297b474c842a1b5e255aea16
For a bug report, Settings → Export log writes the log of the last days to one text file, with addresses, host
names, uuids and user names replaced. It lands in Download/Sailhand (Android 10 and newer) or in
Android/data/de.freakydu.sailhand/files/Download (Android 7 to 9).
The APK of a pull request (…-dev-release.apk) installs as a separate app, Sailhand Dev, with its own settings.
On a desktop Sailhand opens as a window and connects to any Moonraker on the network.
- Debian and Ubuntu: install the
.debwithout thesystemctllines, then startsailhandfrom the application menu or a terminal. - Windows: unpack
sailhand-x86_64-pc-windows-msvc.zipand runsailhand.exe. There is no installer yet.
Choose the printer on System → Printers, or start with -m <url>. System → Settings → Display → Fullscreen fills the
screen and keeps the mouse pointer; -f is the kiosk mode for touch screens and hides it (see
Command line).
Without Moonraker's update manager, Sailhand looks for a newer release on GitHub once a day in the background, as on Android; System → Settings → About shows it with the channel and a Download button for the release page.
Sailhand appears in the update list of Mainsail, Fluidd and its own System page. Moonraker downloads the zip of the
new version, replaces ~/sailhand and restarts the service. The installer writes this section to moonraker.conf;
add it by hand if moonraker.conf lives elsewhere:
[update_manager sailhand]
type: zip
channel: stable
repo: freakydude/sailhand
path: ~/sailhand
managed_services: sailhand
system_dependencies: system-dependencies.json| Channel | Updates |
|---|---|
stable |
Releases vX.Y.0 only |
beta |
Releases and the pre-release of every change on main |
To change the channel, edit channel: and restart Moonraker:
sudo systemctl restart moonrakerThe installer writes the section only once; -c beta does not change an existing channel: line.
An update replaces only the program folder. When a version needs more outside of it (service options, udev or polkit rules, groups), System → Updates says so. Then run the installer once; it keeps address, folder and settings:
~/sailhand/install.shThe Debian package brings everything along with each version.
Sailhand was called FreakyMate until v0.6.x. Service, folder, settings file and update entry have new names, so FreakyMate does not update to Sailhand. Switch once by hand:
-
Remove FreakyMate. The Sailhand installer refuses to run while parts of it are left.
~/freakymate/uninstall.sh # installed with the installer sudo apt remove freakymate # installed as package
If Update was pressed for FreakyMate after the rename, Moonraker has emptied
~/freakymate,uninstall.shis gone and the screen stays dark. Remove it by hand (adjust~/printer_dataif needed):sudo systemctl disable --now freakymate.service sudo rm -f /etc/systemd/system/freakymate.service /etc/polkit-1/rules.d/50-freakymate.rules \ /etc/udev/rules.d/70-freakymate-backlight.rules sudo rm -rf /etc/freakymate sudo systemctl daemon-reload sudo systemctl enable getty@tty1.service sed -i '/^freakymate$/d' ~/printer_data/moonraker.asvc rm -rf ~/freakymate
Then delete the section
[update_manager freakymate]frommoonraker.confand restart Moonraker. -
Copy the settings before the first start of Sailhand, which would create the file with defaults. The options are the same:
cp ~/printer_data/config/freakymate.conf ~/printer_data/config/sailhand.conf
A
freakymate.json(up to 0.3.8) is not read; take over changed values by hand. -
Install Sailhand as described in Installing on the printer host or as package.
Installed with the installer (add -d <folder> if printer_data is not ~/printer_data):
~/sailhand/uninstall.shThe script removes the service, the udev and polkit rules, ~/sailhand, the section [update_manager sailhand] and
the entry in moonraker.asvc, restarts Moonraker and gives tty1 back to the login console. It keeps the system
packages (cage, seatd, …), sailhand.conf, the log and ~/.config/sailhand/credentials.json.
Installed as package, see Debian package or Arch Linux package.