Bug 127499 - Zapping does not block the screensaver
Summary: Zapping does not block the screensaver
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Final
Hardware: i686 All
: P5 - None : Normal
Target Milestone: ---
Assignee: Rodrigo Moya
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-11 08:16 UTC by Jens Siebert
Modified: 2006-05-03 14:49 UTC (History)
0 users

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Patch for Zapping to add screensaver blocking for gnome-screensaver (1004 bytes, patch)
2005-11-08 19:46 UTC, Jens Siebert
Details | Diff
Package with attached patch (940.93 KB, application/x-rpm)
2006-05-03 13:23 UTC, Rodrigo Moya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Siebert 2005-10-11 08:16:01 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.
Comment 1 Mark Gordon 2005-10-11 14:42:32 UTC
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.
Comment 2 Gerd Hoffmann 2005-10-17 08:17:25 UTC
What happens if you install the xscreensaver package, does it work then?
Comment 3 Jens Siebert 2005-10-17 11:32:51 UTC
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
Comment 4 JP Rosevear 2005-10-18 12:54:43 UTC
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.
Comment 5 Jens Siebert 2005-11-08 19:46:02 UTC
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.
Comment 6 JP Rosevear 2006-05-01 22:42:25 UTC
Rodrigo, there is an actual patch here, can you review it?
Comment 7 Rodrigo Moya 2006-05-03 13:23:23 UTC
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.
Comment 8 Jens Siebert 2006-05-03 14:42:20 UTC
Works for me!
Comment 9 Rodrigo Moya 2006-05-03 14:49:03 UTC
ok, package submitted then