I'm no expert here, but it seems other media-players managed to get it working.
As I understand, vlc uses the "poke"-method to prevent the
screensaver from activating (i.e. It regularly pokes the
screensaver, to simulate activity)
"Poke" seems to be broken since
gnome-2.26, and I guess
GNOME wants rather deprecate it than fix it.
Other players register "inhibitors" with
gnome-
screensaver. Although it really sucks that
gnome leaves a broken API, maybe vlc could fix this annoying issue by using inhibitors like many other media-player do. Also I personally find it cleaner, because it's easier to keep track of what application is preventing the
screensaver from activating.
Like when playing a movie with totem:
Code: Select all
[profalbert@bender ~]$ gnome-screensaver-command -q
The screensaver is inactive
The screensaver is being inhibited by:
Application="Totem"; Since="2010-06-15T12:40:26.867726Z"; Reason="Playing a movie";
On a commandline one can register an inhibitor like that:
Code: Select all
gnome-screensaver-command -i -n vlc -r "playing video"
Code: Select all
[profalbert@bender ~]$ gnome-screensaver-command -q
The screensaver is inactive
The screensaver is being inhibited by:
Application="vlc"; Since="2010-06-15T12:54:10.390238Z"; Reason="playing video";