#1474·harbor

[Feature/Bug] Prevent screen idle/sleep during video playback on Linux (Wayland)

Author: nemolivierCreated Sep 30, 2026Updated Sep 30, 2026
Labelsenhancementneeds-triage

Before submitting

  • I searched existing issues and did not find a duplicate.

Affected area

Other or not sure

Feature description

IA usage

I’m too bad at understanding linux, and to bad at speaking english to create this ussue alone. So I needed help from Gemini. I do have read the guidelines, i’ve search for other issue (with "sleep" or "idle") can’t find any.

Description

On Linux (specifically tested under Wayland compositors), the system screen saver, display timeout, and idle sleep are triggered while watching a video in Harbor.

Users currently have to manually prevent sleep (e.g. using systemd-inhibit or third-party idle-inhibitor tools) to watch content without the display turning off.

Expected Behavior

When video playback is active (playing), Harbor should inhibit the system idle state / screensaver. Once playback is paused, stopped, or finishes, the inhibition should be released.

Environment

  • OS: Linux CachyOS
  • Display Server: Wayland
  • WM / Shell Umbriel + Noctalia
  • Harbor Version: Latest beta from AUR 0.9.127

Use case

I could watch movies without my computer going to sleep mode ! Or needing a script to inhibit sleep mode.

Additional context

Technical Context & Suggested Solutions

Because Harbor embeds libmpv inside a Tauri/WebKitGTK container rather than managing a standalone top-level MPV window, mpv's native screensaver inhibition (stop-screensaver=yes) cannot directly negotiate the Wayland ext_idle_inhibit_manager_v1 or zwp_idle_inhibit_manager_v1 protocols.

Under modern Linux desktop environments, video players typically handle this by requesting an idle inhibition flag via D-Bus:

  1. XDG Desktop Portal (org.freedesktop.portal.Inhibit): The modern, cross-desktop standard that works seamlessly across Wayland compositors (GNOME, KDE, wlroots-based compositors, etc.).
  2. Freedesktop ScreenSaver API (org.freedesktop.ScreenSaver): A fallback commonly supported on traditional X11 desktops.

In the Tauri ecosystem, this can be implemented cleanly either by:

  • Integrating a community/native crate or plugin handling XDG idle inhibition during playback events.
  • Emitting D-Bus Inhibit calls from Rust when the player state changes between playing and paused/stopped.

Contribution

  • I would be willing to help implement or test this feature.