Bug 473113 - Slideshow should prevent the monitor from powering off during the slideshow
Summary: Slideshow should prevent the monitor from powering off during the slideshow
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-SlideShow (show other bugs)
Version: 8.1.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-07 14:21 UTC by Jared Van Leeuwen
Modified: 2023-08-07 19:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Van Leeuwen 2023-08-07 14:21:03 UTC
SUMMARY
***
I will start the slideshow, but after two minutes the monitor powers off due to lack of user activity. Instead of messing with my power settings every time I want to play a slideshow, digiKam should call win32 SetThreadExecutionState(ES_DISPLAY_REQUIRED | ES_CONTINUOUS); every minute the slideshow is playing.
***


STEPS TO REPRODUCE
1. Set monitor to power off after a short period of time (2 minutes)
2. Start a digiKam slideshow that will last longer than the monitor power off.
3. 

OBSERVED RESULT
Monitor power's off before the end of the slideshow.

EXPECTED RESULT
Slideshow reaches the end before monitor powers off.

SOFTWARE/OS VERSIONS
Windows: 11
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2023-08-07 17:20:43 UTC
Git commit 89c99dd90b128d498cd6a920a9dd5962b17e3ab0 by Maik Qualmann.
Committed on 07/08/2023 at 19:20.
Pushed by mqualmann into branch 'master'.

try prevent the monitor from powering off

M  +14   -2    core/dplugins/generic/view/slideshow/common/slideshowloader.cpp

https://invent.kde.org/graphics/digikam/-/commit/89c99dd90b128d498cd6a920a9dd5962b17e3ab0
Comment 2 Maik Qualmann 2023-08-07 19:53:16 UTC
Thanks for pointing out the Windows API function.

Maik