Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th June 2010, 05:52 PM
errorxp's Avatar
errorxp Offline
Registered User
 
Join Date: Jul 2007
Posts: 371
linuxfedorafirefox
VLC doesn't disable gnome screensaver

I had this problem also in F12, now in F13. Is there a fix for this? It's kind of annoying.
Reply With Quote
  #2  
Old 6th June 2010, 07:10 PM
pkands Offline
Registered User
 
Join Date: Aug 2004
Posts: 136
linuxfedorafirefox
Re: VLC doesn't disable gnome screensaver

https://launchpad.net/caffeine

I use caffeine to inhibit the screensaver for vlc or anything else.
Reply With Quote
  #3  
Old 7th June 2010, 12:29 PM
bonedome's Avatar
bonedome Offline
Registered User
 
Join Date: Apr 2010
Location: uk
Posts: 726
linuxfirefox
Re: VLC doesn't disable gnome screensaver

Hi
alternatively use mplayer, it's had a disable gnome screensaver fix for a while
Reply With Quote
  #4  
Old 7th June 2010, 01:59 PM
BugRocks1's Avatar
BugRocks1 Offline
Registered User
 
Join Date: Jan 2010
Posts: 897
linuxfedorafirefox
Re: VLC doesn't disable gnome screensaver

Quote:
gnome-screensaver-command -r "playing video" -i -n vlc
That probably works at least it says it is working when querying with dbus-send.

dbus-send --print-reply --session --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.GetInhibitors

To see all methods for org.gnome.ScreenSaver

dbus-send --print-reply --session --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.freedesktop.DBus.Introspectable.Introspect string:"org.gnome.ScreenSaver"

---------- Post added at 04:54 AM CDT ---------- Previous post was at 04:51 AM CDT ----------

There are some more ways that I didn't try here.

http://bbs.archlinux.org/viewtopic.php?id=42814

Another suggestion is to end the screensaver process while running vlc and call it back after

---------- Post added at 04:59 AM CDT ---------- Previous post was at 04:54 AM CDT ----------

Scripting using dbus(old but gives a good idea of what one can do).

http://blog.fpmurphy.com/2009/02/dbus-scripting.html
Reply With Quote
  #5  
Old 7th June 2010, 05:38 PM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,103
linuxfedorafirefox
Re: VLC doesn't disable gnome screensaver

In VLC Tools menu, under Preferences, select Show All Settings, under Video there is a checkbox for Disable Screensaver.
Reply With Quote
  #6  
Old 7th June 2010, 05:45 PM
errorxp's Avatar
errorxp Offline
Registered User
 
Join Date: Jul 2007
Posts: 371
linuxopera
Re: VLC doesn't disable gnome screensaver

the option is checked but it doesn't have any effect for some reason.
Reply With Quote
  #7  
Old 7th June 2010, 05:58 PM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,103
linuxfedorafirefox
Re: VLC doesn't disable gnome screensaver

It was checked by default here, too, and it does stop my gnome screensaver. I would look elsewhere, possibly a BIOS setting or power management "feature".
Reply With Quote
  #8  
Old 17th June 2010, 11:55 AM
profalbert Offline
Registered User
 
Join Date: Jun 2010
Posts: 1
linuxfedorafirefox
Re: VLC doesn't disable gnome screensaver

I'm using this as a workaround:
Code:
#!/bin/sh
gnome-screensaver-command -i -n vlc -r "playing video" &
pid=$!

stop_inhibitor(){
	kill $pid
}

trap stop_inhibitor SIGINT SIGTERM
/usr/bin/vlc "$@"
stop_inhibitor
I saved this to /usr/local/bin/vlc and it worked perfectly.

There is one downside: The screensaver is inhibited while vlc is running not only while playing
Reply With Quote
  #9  
Old 17th June 2010, 12:04 PM
errorxp's Avatar
errorxp Offline
Registered User
 
Join Date: Jul 2007
Posts: 371
windows_xp_2003firefox
Re: VLC doesn't disable gnome screensaver

thanks i may try that
__________________
these command lines are like casino slot machines, every time I input commands NOTHING HAPPENS
Reply With Quote
  #10  
Old 6th March 2011, 07:10 AM
tantons Offline
Registered User
 
Join Date: Mar 2011
Posts: 1
linuxchrome
Re: VLC doesn't disable gnome screensaver

Hello,

Not sure if anyone is still looking for this but I have a script I am using to disable the screen saver anytime vlc, hulu, myth or anything else you might want to add should work.

It is very basic. all it does is monitor to see if any of these programs are running and if they are it stops the screen saver and screen blanking. I have tested to fedora 14 with gnome.

I named it media-screen and placed it in /usr/local/bin then as root run chmod +x /usr/local/bin/media-screen

You can put the script anywhere and call it from your startup applications in Gnome in the command you need to run with nohup /usr/local/bin/media-screen & this will start it in the background and run all the time. anytime you start one of the programs it will disable the screen saver with no intervention.

Place the following in the script....

#!/bin/bash

while true; do
sleep 60

vlc_val=`pgrep vlc`
hulu_val=`pgrep hulu`
myth_val=`pgrep myth`
mplay_val=`pgrep mplayer`


if [[ $vlc_val -lt 4 && $hulu_val -lt 4 && $myth_val -lt 4 && $mplay_val -lt 4]]; then
gconftool-2 -s /apps/gnome-screensaver/idle_activation_enabled --type bool true
xset -dpms s blank

else
gconftool-2 -s /apps/gnome-screensaver/idle_activation_enabled --type bool false
xset -dpms s noblank

fi
done
Reply With Quote
Reply

Tags
disable, gnome, screensaver, vlc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
disable screensaver while watching video kilgor Using Fedora 2 28th December 2008 11:10 AM
Adding the xscreensaver batch & customizing screensaver options in gnome-screensaver Firewing1 Guides & Solutions (No Questions) 27 14th July 2006 11:09 PM
how to disable screensaver in fc4 console? shams Using Fedora 2 16th January 2006 01:38 PM


Current GMT-time: 18:21 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat