Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Looking for a program to inhibit the screensaver

  1. #1
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Looking for a program to inhibit the screensaver

    Hi,

    I'm using 13.1 and XFCE (test partition).

    While playing a game (Vega Strike) I was surprised by the screen saver popping in every while. It
    does not detect my keypresses during the game, apparently.

    The game goes then totally black. I press a key, and I get the game in a smaller window, and the
    screensaver dialog asking for my password.

    Weird.

    I'd like to know if we know of a way to inhibit the screensaver (xscreensaver, actually), by running
    a program. I know how to configure the desktop to disable it, but I was hopping not having to do it.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" (Elessar))

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: Looking for a program to inhibit the screensaver

    AFAIK (was looking for this a while ago, to avoid to have daughter to switch of screensaver before starting a game, found nothing) not directly possible through some option. You could think of starting the game through a bash script that stops the screensaver on startup, then starts the game and on exit restarts the screensaver. Or something like that.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Looking for a program to inhibit the screensaver

    On 2013-12-22 15:56, Knurpht wrote:
    >
    > AFAIK (was looking for this a while ago, to avoid to have daughter to
    > switch of screensaver before starting a game, found nothing) not
    > directly possible through some option. You could think of starting the
    > game through a bash script that stops the screensaver on startup, then
    > starts the game and on exit restarts the screensaver. Or something like
    > that.


    Mmm... yes, I could kill xscreensaver, start game, start xscreensaver.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" (Elessar))

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Looking for a program to inhibit the screensaver

    What about just editing the .desktop entry if one exists and add the
    xset commands
    Code:
    xset s off; [original entry]; xset s on
    --
    PC: oS 13.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.11 | GTX 650 Ti
    ThinkPad E320: oS 13.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.11 | HD 3000
    HTPC: oS 13.1 x86_64 | Celeron@1.8GHz | 2GB | Gnome 3.10 | HD 2500

  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: Looking for a program to inhibit the screensaver

    Quote Originally Posted by martin_helm View Post
    Code:
    xset s off; [original entry]; xset s on
    Cheers, why indeed put this in a script.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Looking for a program to inhibit the screensaver

    On 2013-12-22 16:35, Martin Helm wrote:
    > What about just editing the .desktop entry if one exists and add the
    > xset commands
    >
    Code:
    > xset s off; [original entry]; xset s on
    >


    Interesting.
    But it does not work...

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" (Elessar))

  7. #7
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Looking for a program to inhibit the screensaver

    Am 22.12.2013 18:33, schrieb Carlos E. R.:
    > Interesting.
    > But it does not work...
    >


    Is it really the screensafer? Maybe you also need to disable powersafe
    "xset -dpms" in addition.

    --
    PC: oS 13.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.11 | GTX 650 Ti
    ThinkPad E320: oS 13.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.11 | HD 3000
    HTPC: oS 13.1 x86_64 | Celeron@1.8GHz | 2GB | Gnome 3.10 | HD 2500

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Looking for a program to inhibit the screensaver

    On 2013-12-22 18:33, Carlos E. R. wrote:
    > On 2013-12-22 16:35, Martin Helm wrote:
    >> What about just editing the .desktop entry if one exists and add the
    >> xset commands
    >>
    Code:
    >> xset s off; [original entry]; xset s on
    >>

    >
    > Interesting.
    > But it does not work...


    No, it does not work. In order to verify that the game was not interfering, I tried on a terminal,
    did the xset thing, and waited. When I came back, the screensaver was running.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" (Elessar))

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Looking for a program to inhibit the screensaver

    On 2013-12-22 18:59, Martin Helm wrote:
    > Am 22.12.2013 18:33, schrieb Carlos E. R.:
    >> Interesting.
    >> But it does not work...
    >>

    >
    > Is it really the screensafer? Maybe you also need to disable powersafe
    > "xset -dpms" in addition.


    Sure. It is the xscreensaver with the "GLMatrix" program.

    I have been also reading the xscreensaver manual. There is a program named "xscreensaver-command"
    with this option:

    Code:
    -deactivate
    This  tells xscreensaver to pretend that there has just been
    user activity.  This means that if the screensaver is active
    (the  screen  is  blanked), then this command will cause the
    screen to un-blank as if there had been  keyboard  or  mouse
    activity.  If the screen is locked, then the password dialog
    will pop up first, as usual.  If the screen is not  blanked,
    then  this  simulated user activity will re-start the count-
    down (so, issuing the -deactivate  command  periodically  is
    one way to prevent the screen from blanking.)
    I might run a loop in a script, with an out condition, calling this every five minutes or so. Or
    look in the source code, and create another program that does just that, do whatever it needs every
    little while.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" (Elessar))

  10. #10
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Looking for a program to inhibit the screensaver

    Am 22.12.2013 19:02, schrieb Carlos E. R.:
    > No, it does not work. In order to verify that the game was not
    > interfering, I tried on a terminal, did the xset thing, and waited. When
    > I came back, the screensaver was running.
    >

    Hmm, starnge that xset does not work, just for fun I made once upon a
    time a small script which essentially consists of a while loop which
    every 10 seconds moves the mouse by zero pixels (and used it, so i know
    it worked)
    Code:
    while :
    do
    xvkbd -no-keypad -text "\x+0" 2>/dev/null
    sleep 10
    done
    --
    PC: oS 13.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.11 | GTX 650 Ti
    ThinkPad E320: oS 13.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.11 | HD 3000
    HTPC: oS 13.1 x86_64 | Celeron@1.8GHz | 2GB | Gnome 3.10 | HD 2500

Page 1 of 2 12 LastLast

Posting Permissions

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