Bug 500615 - Rendering a project doesn't block automatic sleep
Summary: Rendering a project doesn't block automatic sleep
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (other bugs)
Version First Reported In: 24.12.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-23 11:22 UTC by l1ttleofficial
Modified: 2025-07-09 06:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 25.08.0
Sentry Crash Report:


Attachments
The Power Management applet opened alongside a Job Queue list (41.49 KB, image/png)
2025-02-23 11:22 UTC, l1ttleofficial
Details

Note You need to log in before you can comment on or make changes to this bug.
Description l1ttleofficial 2025-02-23 11:22:36 UTC
Created attachment 178765 [details]
The Power Management applet opened alongside a Job Queue list

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
When there's an active rendering job, automatic screen locking & sleep are not blocked. This can cause the computer to go to sleep while a project is still being rendered.

STEPS TO REPRODUCE
1. Open a new project in Kdenlive
2. Add some footage and start rendering the project
3. Open the Power Management applet on the Plasma panel

OBSERVED RESULT
Sleep and Screen Locking after Inactivity: Automatic [Manually Block]

EXPECTED RESULT
Sleep and Screen Locking after Inactivity: Blocked by kdenlive (rendering project)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux 6.13.2-zen1-1-zen
KDE Plasma Version: 6.3.0 (Wayland)
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Comment 1 Bug Janitor Service 2025-03-28 21:56:35 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/kdenlive/-/merge_requests/607
Comment 2 Tyler Riddle 2025-04-23 04:05:18 UTC
I wanted to add myself as an interested party for this feature. I have a workaround I use which is possible because kdenlive nicely allows the user to configure the path to the melt binary. On my Debian box I use a wrapper shell script that invokes melt with the arguments passed to the script and executes the installed melt using systemd-inhibit which gets a sleep inhibit token from logind. It works well for me but obviously this is not portable to even all Linux distros let alone everywhere that kdenlive can be used.
Comment 3 Jean-Baptiste Mardelle 2025-07-08 14:43:16 UTC
Git commit e08f673ebf13426319230dabfa5d0ea4a505ab5d by Jean-Baptiste Mardelle.
Committed on 08/07/2025 at 14:43.
Pushed by mardelle into branch 'master'.

Add powermanagement to disable sleep while rendering and playing

Add powermanagement to disable sleep while rendering
FIXED-IN: 25.08.0

M  +1    -1    renderer/kdenlive_render.cpp
M  +3    -2    renderer/renderjob.cpp
M  +1    -0    src/CMakeLists.txt
M  +1    -1    src/abstractmodel/abstracttreemodel.cpp
M  +0    -1    src/bin/model/subtitlemodel.cpp
M  +31   -2    src/dialogs/renderwidget.cpp
M  +6    -0    src/dialogs/renderwidget.h
M  +34   -0    src/dialogs/settings/kdenlivesettingsdialog.cpp
M  +7    -5    src/doc/documentvalidator.cpp
M  +4    -8    src/effects/effectstack/view/effectstackview.cpp
M  +6    -1    src/kdenlivesettings.kcfg
M  +11   -2    src/mainwindow.cpp
M  +10   -0    src/mainwindow.h
M  +24   -0    src/monitor/monitor.cpp
M  +3    -0    src/monitor/monitor.h
A  +411  -0    src/powermanagementinterface.cpp     [License: LGPL(v3.0+)]
A  +92   -0    src/powermanagementinterface.h     [License: LGPL(v3.0+)]
M  +3    -0    src/timeline2/view/timelinewidget.cpp
M  +8    -1    src/ui/configenv_ui.ui

https://invent.kde.org/multimedia/kdenlive/-/commit/e08f673ebf13426319230dabfa5d0ea4a505ab5d
Comment 4 Jean-Baptiste Mardelle 2025-07-09 06:36:02 UTC
Git commit 326dd275f14f5e0773de1db9b3c1a8a358dc7f2f by Jean-Baptiste Mardelle.
Committed on 09/07/2025 at 06:35.
Pushed by mardelle into branch 'release/25.08'.

Add powermanagement to disable sleep while rendering and playing

Add powermanagement to disable sleep while rendering
FIXED-IN: 25.08.0

M  +1    -1    renderer/kdenlive_render.cpp
M  +3    -2    renderer/renderjob.cpp
M  +1    -0    src/CMakeLists.txt
M  +1    -1    src/abstractmodel/abstracttreemodel.cpp
M  +0    -1    src/bin/model/subtitlemodel.cpp
M  +31   -2    src/dialogs/renderwidget.cpp
M  +6    -0    src/dialogs/renderwidget.h
M  +34   -0    src/dialogs/settings/kdenlivesettingsdialog.cpp
M  +7    -5    src/doc/documentvalidator.cpp
M  +4    -8    src/effects/effectstack/view/effectstackview.cpp
M  +6    -1    src/kdenlivesettings.kcfg
M  +11   -2    src/mainwindow.cpp
M  +10   -0    src/mainwindow.h
M  +24   -0    src/monitor/monitor.cpp
M  +3    -0    src/monitor/monitor.h
A  +411  -0    src/powermanagementinterface.cpp     [License: LGPL(v3.0+)]
A  +92   -0    src/powermanagementinterface.h     [License: LGPL(v3.0+)]
M  +3    -0    src/timeline2/view/timelinewidget.cpp
M  +8    -1    src/ui/configenv_ui.ui

https://invent.kde.org/multimedia/kdenlive/-/commit/326dd275f14f5e0773de1db9b3c1a8a358dc7f2f