Bug 473113

Summary: Slideshow should prevent the monitor from powering off during the slideshow
Product: [Applications] digikam Reporter: Jared Van Leeuwen <jader3rd>
Component: Plugin-Generic-SlideShowAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 8.1.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 8.2.0
Sentry Crash Report:

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