diff --git a/README.md b/README.md index b7523e0..c149538 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,11 @@ Connect the [`bluez`](https://snapcraft.io/docs/bluez-interface) interface for d sudo snap connect chip-tool:bluez ``` +Connect the [`process-control`](https://snapcraft.io/docs/process-control-interface) interface for system-wide process management. This is needed to grant Chip Tool access to make [sched_setattr](https://man7.org/linux/man-pages/man2/sched_setattr.2.html) system calls. This may improve the reliability of the operations (see https://github.com/canonical/chip-tool-snap/issues/8). +```bash +sudo snap connect chip-tool:process-control +``` + > **Note** > On **Ubuntu Core**, the `avahi-control` and `bluez` interfaces are not provided by the system. > diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 4b9da36..02f498b 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -127,6 +127,7 @@ apps: - network - bluez - avahi-observe + - process-control environment: # Replace the path for chip-tool configuration files TMPDIR: "/mnt"