vlc does not prevent screen saver from starting

*nix specific usage questions
martygeek
New Cone
New Cone
Posts: 6
Joined: 10 Jun 2009 15:42

vlc does not prevent screen saver from starting

Postby martygeek » 30 May 2010 14:09

I'm running VLC version 1.0.6 goldeneye on a Fedora 13 system,

Whenever I try to watch a movie, the screen saver kicks in. This happens no matter if the movie is on
the main LCD monitor, the 2nd head, a samsung big screen TV, under either the nouveau or nvidia driver.

I know it's not a big deal as I can shut off the screensaver, but I don't have to do this on a windows
box with the same config.

Is there a setting I can set somewhere to make VLC shut off the screensaver?

Thanks,
marty

Rémi Denis-Courmont
Developer
Developer
Posts: 14998
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc does not prevent screen saver from starting

Postby Rémi Denis-Courmont » 30 May 2010 17:14

GNOME screensaver is broken in recent GNOME versions. There is not much to do about it, other than manually disabling the screensaver.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

profalbert
New Cone
New Cone
Posts: 1
Joined: 15 Jun 2010 14:40

Re: vlc does not prevent screen saver from starting

Postby profalbert » 15 Jun 2010 14:56

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";

titanium
New Cone
New Cone
Posts: 1
Joined: 28 Aug 2010 16:22

Re: vlc does not prevent screen saver from starting

Postby titanium » 28 Aug 2010 16:25

Hi,
Is this problem expected to be fixed any time soon?

Rémi Denis-Courmont
Developer
Developer
Posts: 14998
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc does not prevent screen saver from starting

Postby Rémi Denis-Courmont » 28 Aug 2010 20:16

There are two different known issues with screensavers.

The Xorg screensaver was not preempted in VLC 1.1.0-1.1.3 because it is indenpendent from the "desktop environment" screensaver. This should already be fixed in VLC 1.1.4 preversions.

Depending on your xdg-utils/xdg-screensaver installation, the desktop screensaver may not be preempted. To fix this, you need to update xdg-utils so that xdg-screensaver works with your desktop environment. This is not really a VLC issue.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 5 guests