Author Topic: X ScreenSaver  (Read 4734 times)

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
X ScreenSaver
« on: August 06, 2006, 02:33:58 pm »
I'm using Fedora Core 5 with XFCE as the desktop, and the X Screen Saver keeps poping up during the game, so i had to disable it.  Anyone know how to fix this?
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
X ScreenSaver
« Reply #1 on: August 06, 2006, 09:16:36 pm »
disable the screensaver :D (in other words i don't know)
edit: since i feel bad about not posting anything useful, how about this:
if you know how to disable the screensaver from the command line (i don't know how and don't have the time to figure it out), you can create a small script to wrap tremulous. something like:
Code: [Select]

#!/bin/bash

#stick code here to disable screensaver
/usr/local/games/tremulous.x86 "$*"
#stick code here to enable screensaver
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

rasz_pl

  • Guest
X ScreenSaver
« Reply #2 on: August 07, 2006, 06:43:16 am »
cant do anything about it right now, same with DPMS blanking, you just have to disable it

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
X ScreenSaver
« Reply #3 on: August 07, 2006, 09:46:18 am »
Quote from: "kevlarman"
disable the screensaver :D (in other words i don't know)
edit: since i feel bad about not posting anything useful, how about this:
if you know how to disable the screensaver from the command line (i don't know how and don't have the time to figure it out), you can create a small script to wrap tremulous. something like:
Code: [Select]

#!/bin/bash

#stick code here to disable screensaver
/usr/local/games/tremulous.x86 "$*"
#stick code here to enable screensaver



in case anyone is wondering the code for xscreensave is:
Code: [Select]

#!/bin/bash
kill -s TERM `pidof xscreensaver`
/usr/local/games/tremulous.x86 "$*"
xscreensaver
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

James

  • Posts: 15
  • Turrets: +0/-0
X ScreenSaver
« Reply #4 on: August 07, 2006, 11:06:27 am »
This may help (or not) - the piece of code that needs to be disabling the screen-saver is SDL, since it's the abstraction that the non-Windows versions of ioq3 uses to talk to the window manager / server. When I run Trem under Linux, on an FC5 install, I have no problem with the screen saver activating (this is a very very plain FC5 install, no tweaks of any kind). Im surprised the normal mouse motion doesn't stop screen-saver activation in any case .... unless you're playing using only keys :)

SDL has various environment variables related to how it interacts with X11, perhaps Google can turn something up.
I am mad with the power' - Lenore

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
X ScreenSaver
« Reply #5 on: August 07, 2006, 05:08:00 pm »
Quote from: "David"

Code: [Select]

#!/bin/bash
kill -s TERM `pidof xscreensaver`
/usr/local/games/tremulous.x86 "$*"
xscreensaver

wow, my idea was enough of a hack, i was hoping there was a less hackish way to implement it. it's also worth noting that some people might have to replace xscreensaver with gnome-screensaver, or whatever the kscreensaver is called
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

rasz_pl

  • Guest
X ScreenSaver
« Reply #6 on: August 08, 2006, 08:54:29 am »
there is bug open in gnome bugzila about screensaver not recognizing SDL events, turns out Xscreensavers have same trouble, its about kernel input event handling, so like I said its broken by design right now, just disable it.