Pebble watch support for SailfishOS.
Rockpool combines a Sailfish Silica app with a background watch service and native Sailfish integration. It handles pairing, apps and watchfaces, notifications, and the phone services that make a Pebble useful day to day.
Community discussion · OpenRepos listing
Install a rockpool RPM built for your device architecture and SailfishOS
release, using the device package manager so runtime dependencies are resolved.
The current source build produces AArch64 packages. The UI, watch daemon and
Sailfish provider ship together in one RPM.
Enable Bluetooth, open Rockpool, and use watch discovery to pair your Pebble. Rockpool can also import existing Bluetooth bonds. Sign in to Rebble for account-backed services. The background service maintains watch integration independently of the app window.
Available workflows include:
- Watch discovery, pairing, connection management and screenshots.
- Watch battery percentage and configurable low-battery notifications.
- Apps and watchfaces, app configuration, and firmware and language installation.
- Notification forwarding, supported actions and message replies.
- Call and media controls, contacts, and favorite-contact Send Text actions.
- Calendar integration, timeline settings and saved-location weather forecasts. The primary weather location supplies sunrise and sunset timeline pins for today and the next two days. These pins are enabled by default and can be switched off in Settings under Timeline.
- Health history and settings, Quiet Time, profile switching and developer tools.
Availability depends on the watch, transport and healthy platform services. Health history and several settings are shared across the account; they do not represent independent per-watch data. App installation, removal and ordering currently require exactly one paired watch; independent ordering for multiple watches remains pending. Message replies are restricted to supported Sailfish Messages notifications; an arbitrary application's notification does not automatically support replies.
The watch page shows its battery percentage when available from Bluetooth or the watch library. In each watch's Settings, Low battery warning selects a warning threshold (10% by default) or Off. The background service warns at or below that level even with the app closed. A warning is not repeated on reconnect or service restart. Disabling warnings or a reported level above the threshold withdraws a tracked warning and re-arms it. Warnings remain dismissible; charging state is not currently available. Watches that do not report a battery level do not display a percentage or trigger warnings.
In Settings → Quiet Time, Follow phone privacy mode optionally enables manual Quiet Time while Sailfish privacy mode is active. It is off by default and disabled on phones where the Sailfish privacy-mode API is unavailable. Rockpool saves the previous manual setting and restores it when privacy mode or this option is turned off, including after a daemon restart. Schedules and calendar settings are unchanged. Like other Quiet Time settings, this applies to all watches and requires watch settings synchronization. Changes made while disconnected sync when the watch reconnects. Leave Bluetooth enabled in the phone's privacy-mode settings so the watch can receive the change immediately.
Scheduled Quiet Time enables or disables both schedules and hides their controls when off. Turning it back on restores the saved weekday/weekend selection; the time ranges are retained. Manual Quiet Time and calendar events remain independent of this switch.
Choose Rebble (the default) or Core Devices under Settings → Appstore. In Apps or Watchfaces, Add New opens that store for browsing, search and installation without signing in. Rockpool checks installed store apps against the selected catalogue by app UUID. When it has a newer compatible release, you can upgrade in place. Cross-store upgrades identify the destination store. If both versions are equal, the installed app details offer an explicit build switch with confirmation. A store switch alone keeps the installed PBW and its data.
For a classic PebbleKit Android companion, choose Install Droidpool in AppSupport in the watch's Settings. Turn on Enable Droidpool to start the bridge and allow AppSupport to start it in the background. Choose Open Droidpool, copy the pairing code, then paste it in Rockpool and choose Pair this watch. Install the Android companion separately. Open its watch app and allow Connect to legacy companion apps if prompted. Turning the switch off stops the bridge and keeps its pairing. To remove the helper, open the menu beside Open Droidpool and choose Uninstall Droidpool.
The selected store also supplies the active cloud locker when signed in. Locker sync keeps existing installed builds, even if a UUID is missing from the selected locker or its saved build comes from another store. In Settings, Check for missing apps previews eligible installed apps missing from that locker, even when Sync Apps from Cloud is off. Confirm the store and count to add their entries. Core can record both Core and Rebble sources. Rebble can accept Rebble builds. Apps without a confirmed source are skipped. The watchapp account identifier is independent of the store selection.
Settings shows the sign-in status for the selected store. Tap the account row to sign in. Core Devices opens the Pebble sign-in page in your browser. Return to Rockpool after signing in to see your account name or email. You can stay signed in to both stores and switch between them. Choose Logout on the account row to sign out of that store. On an app or watchface listing, tap the heart to add or remove your vote using that store’s account.
The background service checks installed store apps and watchfaces for updates every six hours, including with the app window closed. Each available version is announced once per app; restarting the service does not repeat the alert. Tap the notification to open the app's details with its Upgrade button. Failed store checks are retried after 15 minutes. Unlinked sideloaded apps and system apps are excluded.
Notification colours use explicit per-app choices first, then built-in defaults. For other apps, Rockpool derives a default from the installed app icon and maps it to the watch's colour palette. Transparent, near-white, near-black and neutral pixels are ignored. Derived colours remain defaults: Use default colour restores them, and they do not add a custom-choice marker. The background service caches results while running, refreshes changed icon names, and periodically rechecks unchanged icons. Missing or unsuitable icons retain the watch default.
Image previews require the notification producer to supply
x-nemo-image-preview-path or x-nemo-image-preview-data. App icons and large
icons are not treated as preview images. Images are bounded and forwarded only
where the watch supports them; text notifications remain available otherwise.
The functional parity matrix records implemented workflows and remaining gaps. The capability registry describes how clients discover availability at runtime.
Since version 2.0, the bundled libpebble3d service owns watch communication.
It embeds the Kotlin libpebble3 library and is compiled to a native executable
with GraalVM; the phone does not need a Java runtime.
The Silica UI talks to the daemon's private org.rockpool compatibility
interface. The daemon also exposes the generic io.rebble.libpebble3 session-bus
API. Sailfish integration lives in Rockpool's platform provider and isolated
helper, including notifications, contacts, calendars, calls, location, phone
activity, privacy mode, profile switching, pairing dispatch and app-icon colour
extraction. Icon decoding uses a bounded worker in that existing helper;
no separate icon-colour executable or service is installed.
| Source | Purpose |
|---|---|
| ui/ | Silica UI and its C++ D-Bus client |
| libpebble3d/daemon/ | Daemon, public API and Rockpool compatibility layer |
| libpebble3d/mobileapp/ | Pinned libpebble3 submodule |
| platform-sailfish/ | Sailfish provider, helper and launcher |
| libpebble3d/api/ | Public D-Bus contract and capabilities |
| libpebble3d/README.md#sailfish-platform-launcher-and-host-wire-protocols | Provider/helper protocol |
| rpm/rockpool.spec | Unified package, dependencies and SDK checks |
See the daemon documentation for native build internals and platform ABI details. Sailfish C++ and QML must remain compatible with Qt 5.6.
There are two build stages:
- Normal host: build the AArch64 daemon and JNI loader using Gradle and the repository's Docker/GraalVM builder.
- Sailfish Platform SDK: compile the UI and Sailfish provider, run their
checks, and package everything in a single
rockpoolRPM.
Native Image cannot cross-compile. On an x86-64 host, the first stage therefore requires working ARM64 container emulation. GraalVM does not belong inside the Sailfish SDK target.
Initialize the pinned library checkout from the repository root:
git submodule update --init libpebble3d/mobileappInstall these prerequisites:
- JDK 17 for the host Gradle build.
- An Android SDK with the platform selected by the pinned version catalog (currently API 37) and accepted SDK licenses. The shared project's Android Gradle plugin is configured even for JVM builds.
- Docker with permission to use its daemon and an AArch64 container runtime. On x86-64, configure QEMU/binfmt support before building.
- Git and standard build utilities, including
awk,sed,find,tar,xz,sha256sumandfile. Initial dependency downloads need network access.
Allow at least 8 GiB of memory for Docker, preferably 12 GiB, and about 15 GiB
of free disk space. Emulated Native Image builds can take well over an hour.
The build defaults to four compiler workers; NI_THREADS overrides that count.
More workers can increase memory use.
Run on the normal host, from the repository root:
export JAVA_HOME=/path/to/jdk-17
export ANDROID_HOME=/path/to/Android/Sdk
./build-libpebble3d.shThe script builds native output in libpebble3d/out/, verifies it, and stages
it under rpm/native/ with a .build-provenance manifest. Both output
directories are generated build inputs, not packages to install on a phone.
The builder and native dependencies are defined in
libpebble3d/Dockerfile.
Run ./droidpool/build-apk.sh with Android SDK platform 35 and build-tools
35.0.0 installed. It stages the signed APK in rpm/droidpool/. Tag builds
in GitHub Actions use the Droidpool release key. Local release RPMs and source
archives use the signing environment described in Droidpool.
Use a current Sailfish Platform SDK with a dedicated, disposable AArch64 target
for the intended Sailfish release. Keep SDK base and shared targets pristine;
resolve project dependencies in the project target. The authoritative
BuildRequires and runtime dependencies are in
rpm/rockpool.spec.
Open the same checkout inside the SDK and run:
mb2 -t TARGET --no-fix-version buildReplace TARGET with your project target's exact name. --no-fix-version
preserves the version in the spec rather than deriving one from older Git tags.
The resulting RPM is written below RPMS/. Install that RPM through the device
package manager before testing the packaged application.
| Changed code | Required build |
|---|---|
| Daemon Kotlin, libpebble3, JNI loader or native build inputs | Native stage, then SDK RPM |
| Sailfish UI or provider implementation, with unchanged ABI | SDK RPM using compatible staged native output |
| Provider ABI or wire contract | Rebuild both stages together |
| Documentation only | No runtime rebuild |
To restage a previously completed native build:
./build-libpebble3d.sh --reuse--reuse verifies and copies existing output; it does not compile source
changes. Use it only when that native build is still appropriate for the
changes being packaged. Never use it to pick up new Kotlin or JNI code.
Commit any source changes that should be included first. The release build snapshots Rockpool HEAD and its pinned mobileapp commit; uncommitted changes are excluded. On the normal host:
./build-libpebble3d.sh --releaseThis validates and builds the captured source snapshot, recording source
commits, builder identity, ABI versions, the output inventory and SHA-256
digests. Later checkout edits or commits do not invalidate the native build.
Then run the same SDK mb2 command above.
Development native output cannot substitute for release-verified artifacts.
To create a source archive containing verified release native inputs, use the version from the spec; for the current version:
rpm/create-source-archive.sh 2.1.0The archive step requires clean release sources, the submodule at its committed revision, and staged native output whose recorded commits match the checkout.
RPM builds compile the checked-in translation catalogues without updating them.
After changing UI text, refresh them from the repository root with Qt's lupdate:
lupdate ui/*.cpp ui/*.h ui/qml -recursive -extensions qml,js,cpp,h -ts ui/translations/*.tsReview and commit the catalogue changes so Weblate can expose new strings to translators once they are published.
From the repository root, check the public contract and build-artifact rules:
sh libpebble3d/tests/check-contract-artifacts.shAdd --require-committed when validating committed release source. For daemon
JVM tests, with the same JDK and Android SDK environment as the build:
cd libpebble3d/daemon
./gradlew testThe SDK RPM build runs the provider's Qt tests in its %check section. Host
JVM tests do not replace an AArch64 Native Image build or device testing.
After installing an RPM, exercise pairing/reconnection, notification delivery,
and whichever platform workflows changed.
Run these commands as the logged-in Sailfish user to inspect the daemon:
systemctl --user status libpebble3d.serviceIn Developer Tools → Report problem, Send service logs exports recent
libpebble3d messages from the current daemon session to
~/Downloads/libpebble3d.log. Capture follows the selected log level and retains
at most 512 Ki characters, with each entry limited to 16 Ki characters. Older
entries are discarded; restarting the daemon clears the buffer. Enable
Debug logging before reproducing an issue to include debug messages.
Send watch logs separately retrieves the watch firmware logs into
~/Downloads/pebble.log. Both actions open the system share chooser and send
files as attachments, including when sharing to Android applications.
The packaged launcher discards daemon stdout/stderr, so the system journal is not a substitute for the service-log export. Platform-helper diagnostics may still appear there; reading the journal requires appropriate device privileges.
For reports, include the installed RPM version, SailfishOS version, watch and firmware, transport, reproduction steps and relevant log excerpt. Remove personal notification, contact and account information before sharing logs.
If a native build stops with exec format error, check ARM64 container
emulation. If packaging rejects staged artifacts, inspect the provenance error
and rebuild the required stage; do not bypass artifact verification.
- JPlexer - Getting libpebble3 building and working with Sailfish OS. And the awesome watchface.
- Ruslan N. Marchenko - Original Sailfish UI, Developer mode and much more
- Javispedro - Contributor to Pebbled, author of Saltoq and libwatchfish.
- Michael Zanetti - Author of RockWork
- Tomasz Sterna - Author of Pebbled
- Brian Douglass - RockWork contributor
- Katharine Berry - Old Pebble authority
- Robert Meijers, Philipp Andreas - Hints and tips
- Christopher Frost, Kristjan Räts, István Hovai, Allan Nordhøy, Omar Anwar Aglan, J Li, Nathan Follens, Olexandr Nesterenko, ssantos, Jakob Jespersen - Translators
The Pebble 2 Duo, Time 2 and Round 2 frames are rendered from the public CAD models in Core Devices' hardware repository. Source models: copyright Core Devices 2025; usage terms are in that repository.
The frame renderer uses NumPy and Pillow to generate the images with transparent openings for live screenshots.
The Build Sailfish RPM workflow runs on every branch or tag push and can also be manually
triggered from the Actions tab.
Leave native_run_id empty for a full build.
For a packaging retry, enter a completed run ID to reuse its sealed native
artifact. Reuse requires identical source outside this workflow, its Sailfish
packaging script and this README. Artifact hashes and the original source commit
remain verified; expired artifacts require a full build.
It builds the selected committed revision and its pinned libpebble3d/mobileapp
submodule; uncommitted local changes are not included. The workflow must be on
the default branch before GitHub exposes its manual trigger.
The Native Image job uses ubuntu-24.04-arm to avoid ARM emulation. It installs
JDK 17 and Android command-line tools for Gradle configuration, limits Gradle to
two workers and a 6 GB heap, and uses in-process Kotlin compilation with no
persistent Gradle daemon. The daemon build passes
-PenableAndroidNativeBuild=false to avoid configuring the unused Android CMake
build and downloading its NDK. Normal Android builds keep native builds enabled.
Native Image uses four workers and its existing 75%
memory limit. The first hosted run still needs to establish actual memory,
disk usage and duration.
Only the sealed native artifacts cross into the Sailfish job, in a tarball that
preserves executable modes and .build-provenance. The second job verifies the
manifest, hashes, architecture and source revisions before packaging. It runs
on a fresh x86-64 runner with the public Sailfish 5.2.0.15 SDK image pinned by
digest, using an isolated rockpool target snapshot and the spec's version.
It runs the RPM's %check suites. This is separate from the local live SDK.
Separate jobs reclaim all native-job Docker layers, Gradle files and temporary
source snapshots before the SDK build. Each job also removes explicitly listed
unused preinstalled toolchains on its disposable GitHub-hosted runner. The
packaging job removes Android tools and its downloaded native tarball after
verification; it never cleans rpm/native with a wildcard for shared libraries.
Download the rockpool-aarch64-<commit> artifact for the RPM. Native inputs and
diagnostic logs are retained for seven days, and RPMs for fourteen days. The
build jobs have read-only repository permissions and do not deploy to devices.
Successful tag-push builds publish RPMs only when the tagged commit is in
master history. Tags on unmerged development branches build artifacts without
publishing. The destination is ${repository_owner}/repo on its master branch,
matching the zypp repository used by the other apps. Set
Rockpool's PUBLISH_REPO_TOKEN Actions secret to a fine-grained token with
Contents read/write access to that package repository. Missing credentials skip
publication with a warning; configured but invalid credentials fail the job.
Publication replaces only matching Rockpool packages in aarch64/, updates
metadata with createrepo_c, and uses a normal Git push so concurrent updates
cannot be overwritten. Manual runs, including artifact-reuse retries, only build
and upload artifacts. This workflow does not create GitHub releases.