Mplayer doesn't stop gnome screensaver

Hi !
I'm using the option stop-xscreensave="yes" in mplayer config but after about 5 minutes of playing the movie the screen fades away and i have to login in order to get to mplayer again
How can i stop this from happening ?
Thanks a lot !

Here's my tv watching script.. 
#!/bin/sh
# inhibit the screensaver and output to the tv (display 0.2)
# gnome-screensaver-command -i -r "Watching Videos" &
xscreensaver-command -exit
DISPLAY=:0.2 mplayer -fs "$@"
# killall gnome-screensaver-command
xscreensaver -no-splash &
You'ld probably want something more like
#!/bin/sh
# inhibit the screensaver and output to the tv
gnome-screensaver-command -i -r "Watching Videos" &
mplayer -fs "$@"
killall gnome-screensaver-command
Not sure if it is the most efficient way, but I believe it worked.
You would just copy that to a file named tv.sh (or tv or watch or foo), make the file executable (chmod 755 tv.sh), put it in your path somewhere (/usr/local/bin if that's in your path), and then type tv.sh filename  to start watching  (but I imagine you already knew all that).
If you use a graphical player.  I dunno.  The player might have an option?  Or else just run the `gnome-screensaver-command -i -r "Watching Videos"` part in a term and kill it when your done.  Or run it from an Alt-F2 dialog with & and kill it when your done might work.  Something to tinker with..

Similar Messages

  • Gnome-screensaver versus xscreensaver

    Some where along the line, I think when Gnome was updated to 2.22, gnome-screensaver was installed in addition to the existing xscreensaver.  From what I have read on the internet, it seems that gnome-screensaver is a replacement for xscreensaver and that gnome-screensaver is not dependent upon xscreensaver.  Correct?
    When I select "System" --> "Preferences" --> "Screensaver", it brings up the preferences dialog for gnome-screensaver.  However, when I do a ps -e command, it lists xscreensaver as running and doesn't list gnome-screensaver.  So it appears as though only xscreensaver is running.
    What is the recommendation on this?  Should I be running one or the other and un-install the one not being used?
    I have been experiencing random hard lock ups which just started recently.  I always notice these lock ups after the screensaver kicks in and I am trying to go back to the active mode.  At this point I have a totally black screen and the computer is locked up.  Can't ssh into it, can't use Ctrl-Alt-F1 to get to a console screen or anything.  The only thing I can do is hit the reset button.  Could this be a conflict between gnome-screensaver and xscreensaver?   I know other threads have suggested that these lock ups are kernel releated, but could this be part of the problem also?
    Any guidance here would be appreciated.
    Thanks
    Pudge

    They are separate screensavers now, not related to each other.
    I would say that if you are running gnome, go with gnome-screensaver, it is integreated to gnome quite well nowdays.
    If running with other DE or window manager, stick with xscreensaver and ditch gnome-screensaver. You can keep both installed, but running both in same time would cause problems. If you have only one running, that should not cause problems.
    Try to configure xscreensaver to use only blank screen and see if it still crashes?

  • Mplayer and gnome-screensaver

    How do I disable gnome-screensaver while mplayer is running?  I did a google search and found  http://bugs.archlinux.org/task/5371 which says it should be happening already...

    Yeah, that annoys me, too. I just looked arround  after reading you post and found in ~/.mplayer/gui.conf to set
    stopxscreensaver = "yes"
    seems fixed it half. The screensaver doesn't start, but before not starting he fades out anyway
    But i don't want to disable the fadeout, because i find it useful on other occasions.
    Edit: some collateral Damage -- the screensaver doesn't start anymore although mplayer isn't running anymore (but it still fades out ). Perhaps X restart fixes this, will try later.
    Last edited by kakTuZ (2007-11-14 21:01:16)

  • Gnome-screensaver doesn't autolock the screen in gnome 2.26 in testing

    Under gnome 2.26 in testing, gnome screensaver no longer auto locks the screen after the specified time. The screensaver doesn't even come up either. I have to manually switch off the monitor.
    Anyone else seeing this bug? How can I find out what's going wrong?
    Last edited by hussam (2009-03-31 04:46:48)

    Just start gnome-screensaver on a terminal (it starts up in daemon mode by default).
    That's it.For a test you can set screensaver time to 1 min.
    A random discovery I am happy for
    Last edited by nema.arpit (2010-01-11 17:28:09)

  • Gnome-screensaver Fade Stopped Working

    Hey guys,
    Just did a pacman upgrade (after about two months without net access!), and one of the funny things I've noticed is that gnome-screensaver no longer fades to black when locking the screen. After a couple of seconds it just goes black. I think it's the same issue that's been listed for Ubuntu here: https://bugs.launchpad.net/ubuntu/+sour … bug/522806, however on that bug report it says the problem was fixed in version 2.29.90-0ubuntu2 (presumably an Ubuntu-specific fix), while I'm running 2.30.0-1. I am running nVidia drivers, so it fits in with the bug description though.
    Has anyone else come across this problem? Is there a fix for it yet that we can use?
    'Shady

    Ooops, wrong link to AUR, my bad
    As gnome-screensaver is still running after the update,
    it must be restarted so that new program is loaded in memory;
    a "killall gnome-screensaver && gnome-screensaver" do the job, no need to restart X or the system
    The xscreensaver dependency is not weird, you need it to build the package,
    it is only an optional dependency for the binary/pre-built package.
    You can remove xscreensaver after yaourt.

  • Inhibit gnome-screensaver

    I want to inhibit gnome-screensaver from starting while I run mplayer.   There is a command "gnome-screensaver-command --inhibit" which should work but even with that running I still have gnome-screensaver starting.  I also can't get any dbus based commands/scripts to stop it. 
    I am running XFCE.  Does that command work other XFCE users? How about GNOME users?

    Allan wrote:
    I want to inhibit gnome-screensaver from starting while I run mplayer.   There is a command "gnome-screensaver-command --inhibit" which should work but even with that running I still have gnome-screensaver starting.  I also can't get any dbus based commands/scripts to stop it. 
    I am running XFCE.  Does that command work other XFCE users? How about GNOME users?
    Though I use xscreensaver, I just installed gnome-screensaver to see what was up. I tested your python DBUS script, and it seems to work fine here. The inhibit cookie is being created (I threw in a print statement just to see the value), and it is being observed until the selected video finishes. As soon as the video finishes, mplayer exits and the screensaver kicks in as expected.
    I'm not sure why you are getting different results, but you can run this from the command line or in a script as it might be helpful for testing:
    dbus-send --session --dest=org.gnome.ScreenSaver --type=method_call --print-reply --reply-timeout=20000 /org/gnome/ScreenSaver org.gnome.ScreenSaver.Inhibit string:"MPlayer" string:"Watching video"
    It's pretty much the command-line version of what you have in your python DBUS-object code.
    By the way, I only passed the 'file' argument to the script when testing, meaning I did not pass mplayer any other options via the python script. I don't know if that is relevant or not.
    The gnome-screensaver command-line worked as well:
    gnome-screensaver-command -i -n mplayer -r test
    MPlayer used to have a command that simulated activity (−heartbeat−cmd) but it doesn't seem to be available anymore (at least not in the Arch version). Also, if you used xscreensaver, MPlayer's '-stop-xscreensaver' command is available.
    Of course other alternatives could include simply killing gnome-screensaver and then restarting it via a script, though that may not be as elegant as using built-in commands or DBUS signals.
    Edit:
    Tested with gnome + openbox here. I only have XFCE-WM4 installed (not the full XFCE desktop) and I didn't test that yet.
    Last edited by MrWeatherbee (2008-01-24 15:06:25)

  • Gnome-screensaver 2.30.0-1 : Can't unlock the screen

    Starting about two weeks ago, I haven't been able to unlock my screen after the screensaver kicks in.  When I move the mouse, the desktop background image flashes for a split second, the mouse cursor is visible, and then the screensaver resumes: the prompt to unlock the screen never appears.  The only way to get back to the desktop is to kill gnome-screensaver.  I've tried re-installing it, and all of it's dependancies (with the exception of libgl as it conflicts with the nvidia package).  As I expected, no luck there, but I didn't know what else to do...
    Here's the output of "gnome-screensaver --no-daemon --debug"
    http://pastebin.com/1B4UZaDj
    I don't know if this helps, but here's some interesting output from LD_DEBUG=libs gnome-screensaver:
    7559: /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so: error: symbol lookup error: undefined symbol: g_module_unload (fatal)
    7559: /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so: error: symbol lookup error: undefined symbol: gtk_module_display_init (fatal)
    7559: /usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so: error: symbol lookup error: undefined symbol: g_module_unload (fatal)
    7559: /usr/lib/gio/modules/libgvfsdbus.so: error: symbol lookup error: undefined symbol: g_module_check_init (fatal)
    7559: /usr/lib/gio/modules/libgvfsdbus.so: error: symbol lookup error: undefined symbol: g_module_unload (fatal)
    I hope that doesn't steer anyone in the wrong direction; I just learned about LD_DEBUG last night so I don't know if it's of any help. 
    Any help will be appreciated.

    My gtk2 was already up to date (gtk2 2.20.1-2).  I tried removing it, re-installing it, and then running ldconfig, but the issue is still present.

  • Gnome-screensaver ignores input when fading to black

    Hi,
    I'm experiencing the following bug:
    https://bugzilla.gnome.org/show_bug.cgi?id=594082
    It looks like it's now fixed in Fedora. Anyone having the same problem?
    Thanks.

    Fair enough but it's not clear from that if it got fixed by a Fedora dev or upstream... either way, bug reports should go to gnome-screensaver bugzilla.
    Also see this:
    https://bugzilla.redhat.com/show_bug.cgi?id=629419
    https://bugzilla.redhat.com/show_bug.cgi?id=626472
    Would be nice to know if Fedora applied any patches in F11, but I don't get where to look that up atm (stopped here.
    Something else, what graphics are you using? nvidia proprietary here.
    typo
    Last edited by hokasch (2010-09-03 13:34:12)

  • Fglrx-utils is a dep. of gnome-screensaver ?!

    Hey There,
    I'm trying to upgrade to GNOME 2.20 but it requires installing fglrx-utils since gnome-screensaver's dependencies require it.. I'm a nVidia user by the way.. :S

    scj wrote:Is it possible to use to query which packages provide package X?
    Hm, not directly, but if you do a search for the provision:
    $ pacman -Ss ^libgl$
    extra/fglrx-utils 8.40.4-1
    Proprietary AMD/ATI userspace tools and libraries for Radeon brand cards.
    extra/libgl-dri 6.5.2-1
    Mesa DRI OpenGL library and drivers
    extra/nvidia-71xx-utils 1.0.7185-1
    NVIDIA legacy drivers utilities and libraries, 71xx branch.
    extra/nvidia-96xx-utils 1.0.9639-1
    NVIDIA legacy drivers utilities and libraries, 96xx branch.
    extra/nvidia-utils 100.14.11-1
    NVIDIA drivers utilities and libraries.
    Everything that provides libgl shows up, but it doesn't really explain why.  I think a bit of extra info in the search results was planned (I remember a thread about it...)

  • [SOLVED]Gnome-screensaver not kicking in

    Hi, since the recent update gnome-screensaver hasn't been kicking in.
    I can lock my screen with gnome-screensaver-command -l manually and I see that the gnome-screensaver process is running but it just won't activate itself after 5 minutes. I can leave my computer on for an hour and the screensaver doesn't kick in.
    Does anyone else experience this ?
    Last edited by moljac024 (2009-01-28 13:41:20)

    I have ocassional locks when trying to unlock the screensaver. The solution for me is to kill this application.
    It seems that the application has problems with libgnomekdbui. Having a look at /var/log/everything.log shows me lines like this:
    Dec 3 17:32:01 t23 gnome-screensav[16328]: segfault at 11 ip b7d679c6 sp bfc329f0 error 4 in libgnomekbdui.so.3.0.0[b7d61000+f000]
    Dec 3 17:32:02 t23 gnome-screensav[16329]: segfault at 19 ip b7d4a9c6 sp bf814dd0 error 4 in libgnomekbdui.so.3.0.0[b7d44000+f000]
    Dec 3 17:32:04 t23 gnome-screensav[16330]: segfault at 19 ip b7d3a9c6 sp bfe053c0 error 4 in libgnomekbdui.so.3.0.0[b7d34000+f000]
    Dec 3 17:32:04 t23 gnome-screensav[16333]: segfault at 19 ip b7ea29c6 sp bf86f630 error 4 in libgnomekbdui.so.3.0.0[b7e9c000+f000]
    Dec 3 17:32:05 t23 gnome-screensav[16334]: segfault at 19 ip b7e4e9c6 sp bfe1bbe0 error 4 in libgnomekbdui.so.3.0.0[b7e48000+f000]
    Dec 3 17:32:06 t23 gnome-screensav[16335]: segfault at 11 ip b7e529c6 sp bfe1fbe0 error 4 in libgnomekbdui.so.3.0.0[b7e4c000+f000]
    Dec 3 17:32:06 t23 gnome-screensav[16336]: segfault at 19 ip b7e979c6 sp bfb64120 error 4 in libgnomekbdui.so.3.0.0[b7e91000+f000]
    Dec 3 17:32:07 t23 gnome-screensav[16337]: segfault at 19 ip b7f2d9c6 sp bfcf8ac0 error 4 in libgnomekbdui.so.3.0.0[b7f27000+f000]
    Dec 3 17:32:07 t23 gnome-screensav[16338]: segfault at 19 ip b7d399c6 sp bf8045c0 error 4 in libgnomekbdui.so.3.0.0[b7d33000+f000]
    Dec 3 17:32:08 t23 gnome-screensav[16339]: segfault at 19 ip b7f009c6 sp bfccda90 error 4 in libgnomekbdui.so.3.0.0[b7efa000+f000]
    Do you maybe have something similar?
    Last edited by ss2 (2008-12-03 17:21:07)

  • I am having a painful problem with itunes 10, everytime I go into the itunes store to search for a song, even if I type one letter in it will instantly launch into search mode and doesn't stop, so I'm unable to find

    I am having a painful problem with itunes 10, everytime I go everytime I go into the itunes store to search for a song, even if I type one letter Itunes will instantly launch into search mode and doesn't stop, so because I can never get past putting in the first letter or two, I'm unable to search and download any songs. I am on the latest Imac Intel core i7 Mac OS X, can anybody help?
    Thankyou.
    Beckyg.

    Having this problem too: IT'S REALLY REALLY ANNOYING!!! Anyone have an idea how to sort this?

  • Since itunes 2.0.4 has been downloaded. My ipod doesn't synchronize properly/ at all.The LED screen shows  "copy 1 or 2 from 101" and it will remain like that. It looks like sync but there's nothing to happen. It doesn't stop by it self. How to solve?

    Since itunes 2.0.4 has been downloaded my ipod doesn't synchronize properly/ at all. The LED screen shows çopying 1 or 2 from 101' and itt will remain like that.
    It looks like sync but nothing is happening. The sync doesn't stop by itself. Is there anybody to solve this problem? In previous versions never a problem.

    I have exactly the same issues with my new 80G iPOD. I have found that when connecting to my PC, the iPOD does not start iTUNES 7. This can be resolved by stopping the iPOD Service in Computer Management, connecting the iPOD and then starting it again. Then when you start iTUNES it finds the iPOD. - http://docs.info.apple.com/article.html?artnum=93716
    Seems like a stupid long-winded way to do things, but at least you can get some stuff on to your iPOD.
    As far as using Restore goes - I just get the restoring iPOD message you described, which it blatantly isn't :((
    DELL   Windows XP Pro  

  • Stop gnome 3.2 from trying to adjust brightness [SOLVED]

    I see this error a lot in my .xsession.errors:
    (gnome-settings-daemon:1207): power-plugin-WARNING **: failed to restore backlight to 100: out of brightness range: 100, has to be 8 -> 0
    This is probably because I have samsung-tools and easy-slow-down-manager installed from AUR to get the backlight controls of my samsung laptop to work.
    Does anybody know how I get rid of this error?
    I looked in org.gnome.settings-daemon.plugins.power but did not find a way to stop gnome from trying to adjust the brightness. I tried disabling the power plugin altogether by setting 'active' to false, but this made it impossible to switch brightness manually.
    Last edited by berz_ (2011-10-16 15:54:18)

    I managed to solve the issue by applying this patch: https://bugzilla.gnome.org/show_bug.cgi?id=661287.
    Still wondering why it didn't show up in google searches though.

  • I unplug my MacBook Pro from power and external speaker and I hear incremental beeps and sounds as if email being sent. Doesn't' stop until I close email

    I unplug my MacBook Pro from power and external speaker and I hear  incremental beeps and sounds as if email being sent. Doesn't' stop until I close email.   Not sure what is happening our what if any emails are being sent.

    You can install Temperature Monitor and have a look if the CPU oder GPU oder something else went to hot. The processor has a built in safety mechanism to shut down the computer before taking damage.

  • I changed from IE to Firefox. When I click on a shortcut in an email, I get the message "an error occurred in sending the command to the application" in Outlook. It doesn't stop Firefox opening and going to the site, but is annoying.

    I changed from IE to Firefox. When I click on a shortcut in an email, I get the message "an error occurred in sending the command to the application" in Outlook. It doesn't stop Firefox opening and going to the site, but is annoying.

    See:
    *http://kb.mozillazine.org/Windows_error_opening_Internet_shortcut_or_local_HTML_file_-_Firefox

Maybe you are looking for

  • Variable Substitution for Source Directory

    Hello, I have seen several threads about using a UDF and variable substitution for dynamically determining the Target Directory. Is anyone familiar with (or had to implement) a solution where the Source Directory is dynamically determined. My challen

  • Connect Software won't connect to router after resetting router on any of my computers

    I had to do a reset of the router. I have done it with the button on back and through the web based interface. I have followed all directions on uninstalling connect after restarting the router. I get an error that says it does not know if it is conn

  • Wap/wep?

    Hi! I can connect to my network with no problems with my new computer (macbook pro - INTEL - 10.5.8). However, I am trying to connect with my old one (POWERBOOK G4 - 10.4.11) and it says that the password is incorrect. I think it might have to do wit

  • CJS-30151 Java process ERROR

    Hi Everyone, I was trying to install NW 2004's(ABAP+JAVA,BI,EP,EP Core),getting following error,eventhough VM settings changed  to 1024(total 4GB). Error is : CJS-30150  Java processes of instance ECC/DVEBMGS04 [ABAP: ACTIVE, Java: UNKNOWN] did not r

  • Modifying of material type

    Hi, I have created one material in MM01. Selected material type is Rawmaterial,but I need to change this into finished goods type. How to change the material type and aswell as valuation class for that particular material.