Bug 2993

Summary: VLC can't stop xscreensaver
Product: Fedora Reporter: piruthiviraj Natarajan <piruthiviraj>
Component: vlcAssignee: Nicolas Chauvet <kwizart>
Status: RESOLVED EXPIRED    
Severity: normal CC: lam
Priority: P5    
Version: 20   
Hardware: x86_64   
OS: GNU/Linux   
namespace:

Description piruthiviraj Natarajan 2013-10-14 14:53:05 CEST
I use VLC and xscreensaver in XFCE and MATE in fedora rawhide. VLC doesn't stop the screensaver from blanking whereas I have no issues with smplayer with the same xscreensaver.
Name        : vlc
Arch        : x86_64
Version     : 2.1.0
Release     : 1.fc20
Size        : 4.6 M

Name        : xscreensaver
Arch        : x86_64
Epoch       : 1
Version     : 5.22
Release     : 1.fc20.2


I would be happy to provide any more details if required.
Comment 1 Nicolas Chauvet 2014-04-12 06:20:08 CEST
Sorry for the lack of answear.
Can you reproduce the problem currently ?
Comment 2 piruthiviraj Natarajan 2014-04-12 07:41:03 CEST
Installed Packages
Name        : xscreensaver
Arch        : x86_64
Epoch       : 1
Version     : 5.26
Release     : 2.fc20

Installed Packages
Name        : vlc
Arch        : x86_64
Version     : 2.1.4
Release     : 1.fc20

Yes, I still have this bug. If I turn on display power management in xscreensaver, VLC screen blanks all the time. I filed a bug report against xscreensaver but I was told to report here since it happens only in VLC. smplayer is fine.

https://bugzilla.redhat.com/show_bug.cgi?id=1013364

The workaround I have suggested in my last post on the fedora bug report doesn't work either.
Comment 3 Leszek Matok 2014-06-17 21:45:19 CEST
I can also reproduce this still.

vlc-2.1.4-1.fc20.x86_64

xdg-utils-1.1.0-0.24.rc2.fc20.noarch


If I do:
xwininfo (point at VLC)
xdg-screensaver suspend <window id>
it does what I want. MPlayer works like it should etc.


I'm pretty sure the cause is: https://trac.videolan.org/vlc/ticket/9718 (this bugzilla prevents adding it with "Add Bug URL")
It does include some patch, maybe we could get it into RPMFusion's build?
Comment 4 Leszek Matok 2014-06-17 22:00:48 CEST
Ah, that patch is useless for me, it just adds XFCE (which I don't use) to the list of "supported" DEs.

But apparently VLC here isn't even using xdg-screensaver (to expose that bug with "reset" instead of "suspend") but instead tries to do some dbus magic:

[0x7f6444004318] main inhibit debug: looking for inhibit module matching "any": 2 candidates
[0x7f6444004318] dbus_screensaver inhibit debug: cannot find service org.freedesktop.ScreenSaver
[0x7f6444004318] dbus_screensaver inhibit debug: cannot find service org.freedesktop.PowerManagement.Inhibit
[0x7f6444004318] dbus_screensaver inhibit debug: found service org.mate.SessionManager
[0x7f6444004318] main inhibit debug: using inhibit module "dbus_screensaver"

Either way it does not work.
Comment 5 Leszek Matok 2014-06-28 20:18:04 CEST
Work-around as a one line script:

xdg-screensaver suspend `xwininfo -name vlc|grep 'Window id:'|sed -e 's/.*0x/0x/' -e 's/ .*//'`
Comment 6 Emmanuel Seyman 2015-06-25 09:44:55 CEST
RPMFusion is no longer releasing updates for this version of Fedora. This bug
will be set to RESOLVED:EXPIRED next week to reflect this.

If the problem persists after upgrading to the latest version of Fedora, please
update the version field of this bug (and re-open it if it has been closed).
Comment 7 Emmanuel Seyman 2015-07-03 16:36:05 CEST
Setting to RESOLVED:EXPIRED since RPMFusion is no longer releasing updates for
this version of Fedora.