Bugzilla – Bug 127499
Zapping does not block the screensaver
Last modified: 2006-05-03 14:49:03 UTC
The Zapping TV-Viewer application has a function to block the blanking of the screen by the screensaver while watching TV. This worked with XScreensaver on SuSE 9.3 Pro but it does not work anymore on SuSE 10.0. I assume the reason is the change from XScreensaver to gnome-screensaver in SuSE 10.0.
I believe that such apps typically call "xscreensaver-command -deactivate" at intervals, which is the software equivalent of jarring the mouse or pressing the shift key as far as xscreensaver is concerned. There's a "gnome-screensaver-command --deactivate" command that has the same effect. Presumably zapping needs to be patched to handle gnome-screensaver.
What happens if you install the xscreensaver package, does it work then?
It seems that the xscreensaver package is installed be default. --snip rpm -qa | grep xscreen xscreensaver-4.22-5 kdeartwork3-xscreensaver-3.4.2-6 --snap
If gnome-screensaver is also installed, its preferred by GNOME now. Rodrigo, we can probably either tweak the xscreensaver bits (preferred) or doing something similar to the kscreensaver hacks in the package.
Created attachment 56721 [details] Patch for Zapping to add screensaver blocking for gnome-screensaver Hi there, i've looked at the code of zapping and hacked together the screensaver-blocking for gnome-screensaver myself. Have at a look at the attached patch for information. Basically it queries the gnome-screensaver if it is running (but inactive) and calls gnome-screensaver-command --poke at some interval. It might not be a great solution but it works for me. Maybe you're interested in it.
Rodrigo, there is an actual patch here, can you review it?
Created attachment 81686 [details] Package with attached patch The patch looks good to me, just want some confirmation that it indeed works as expected before submitting to autobuild.
Works for me!
ok, package submitted then