Version: 1.2.0 (using KDE 3.4.2, Gentoo) Compiler: gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6) OS: Linux (i686) release 2.6.12-gentoo-r6 When slide show mode is on, Gwenview does not turn off screensaver and DPMS, and this results in a bit annoying screen blanking. This problem is pretty easy to solve, and below I will attach a small patch. The solution is taken from Kaffeine. Gwenview will just simulate a key press in a minute interval via XTest extension, if it's available.
Created attachment 12410 [details] a patch which solves screensaver and DPMS issues The patch is created against release 1.2.0. I have no possibility to check out latest CVS or SVN version, but I hope it could be applied...
Do they really do that? That's a horrible hack.
Yes. I have copied it almost letter by letter. I think, this is a solution. We can turn off KDE screen saver and DPMS using API, but we can not guarantee that it will work in eny environment. For example, MPlayer tries to turn off KDE screensaver and X screensaver, and turn off DPMS while playing. I have no idea if it will work in Gnome, for example. If the program is to be used in any environment, emulating a keypress seems to be an universal solution.
This problem isn't solved in gwenview 1.4.0 If the hack is too horrible, maybe the use of the KDE API (I don't know if this one exists) could be an acceptable solution. In any way, a slideshow, which is stopped after 5 minutes because of screensaver, is not very useful.
Confirmed for gwenview 1.4.1 / KDE 3.5.6.
JFI: in KDE 4 KPresentationControls should get used to fix this.
Tested with KDE 4.3rc2 : During a slideshow, the screen doesn't standby. But it still suspends.
Since KDE 4.3, Gwenview uses KNotificationRestrictions [1] to block the screensaver. Therefore I reassign the bug to kdelibs. [1]: http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKNotificationRestrictions.html
knotificationrestrictions.cpp seems to be maintained by Aaron, re-assigning. (and indeed the file doesn't mention DPMS anywhere)
*** Bug 181585 has been marked as a duplicate of this bug. ***
Hi, kdelibs (version 4 and earlier) is no longer maintained since a few years. KDE Frameworks 5 or 6 might already have implemented this wish. If not, please re-open against the matching framework if feasible or against the application that shows the issue. We then can still dispatch it to the right Bugzilla product or component. Greetings Christoph Cullmann