# Implement allow-sleep on Linux

**URL:** <https://forum.duplicati.com/t/implement-allow-sleep-on-linux/20823>\
**Category:** Features\
**Created:** [July 2, 2025, 9:49pm UTC](https://forum.duplicati.com/t/implement-allow-sleep-on-linux/20823 "2025-07-02T21:49:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ocrete](https://forum.duplicati.com/user_avatar/forum.duplicati.com/ocrete/32/11399_2.png) [@ocrete](https://forum.duplicati.com/u/ocrete)\
**Post date:** [July 2, 2025, 9:49pm UTC](https://forum.duplicati.com/t/implement-allow-sleep-on-linux/20823/1 "2025-07-02T21:49:44Z")

</div>

It would be great to implement allow-sleep on Linux. There are APIs for both the systemd mode and the desktop mode.

When running in desktop mode, one should use the Inhibit XDG portal D-Bus API:

> **[Inhibit](https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Inhibit.html)**
>
> Description: Portal for inhibiting session transitions This simple interface lets sandboxed applications inhibit the user session from ending, suspending, idling or getting switched away. This docu...

When running as a system, one should use systemd-inhibit -DBus API: [inhibit](https://www.freedesktop.org/wiki/Software/systemd/inhibit/)

Thanks for all the hard work!

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [July 7, 2025, 12:19pm UTC](https://forum.duplicati.com/t/implement-allow-sleep-on-linux/20823/2 "2025-07-07T12:19:38Z")

</div>

Hi @ocrete, welcome to the forum 👋

> [@ocrete](#):
>
> It would be great to implement allow-sleep on Linux

I agree, it seems this was never added.

I have [registered an issue for this](https://github.com/duplicati/duplicati/issues/6396).
