Results 1 to 3 of 3

Thread: Disabling screensaver during mplayer for Xubuntu

  1. #1
    Join Date
    Mar 2008
    Beans
    216

    Disabling screensaver during mplayer for Xubuntu

    Hi, I'd like to disable the screensaver from coming on when I use mplayer, since obviously I don't want movies to be interrupted by it. Of course I can always manually adjust the screensaver timings before and after watching a movie, but that's super lame.

    There are basically two options available in mplayer for doing something like I want:

    1). The -stop-xscreensaver: I passed this to mplayer on Xubuntu and it didn't fix it, so presumably the commands embedded in that aren't compatible with the environment on Xubuntu.
    2). The other option is the heartbeat-cmd, which is supposed to be used like so (says the man page):
    Code:
                  EXAMPLE   for  xscreensaver:  mplayer  -heartbeat-cmd  "xscreen‐
                  saver-command -deactivate" file
    
                  EXAMPLE   for   GNOME   screensaver:   mplayer    -heartbeat-cmd
                  "gnome-screensaver-command -p" file
    so it looks like to try this option I have to know either the xscreen-saver-command or the gnome-screensaver-command? How do I find out which one I am using, and what the proper command is? Is Xubuntu even using one of these two, or is it something different?

    Thanks for the help!

  2. #2
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Disabling screensaver during mplayer for Xubuntu


  3. #3
    Join Date
    Mar 2008
    Beans
    216

    Re: Disabling screensaver during mplayer for Xubuntu

    Quote Originally Posted by Toz View Post
    Thank you Toz. I used the following mplayer command and it worked just fine. I didn't realized that "xscreensaver-command" was literally the command I was supposed to use and not some placeholder.

    Code:
    mplayer -xineramascreen 1 -heartbeat-cmd "xscreensaver-command -deactivate" -fs

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •