Tremulous Forum

General => Troubleshooting => Topic started by: David on August 06, 2006, 02:33:58 pm

Title: X ScreenSaver
Post by: David 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?
Title: X ScreenSaver
Post by: kevlarman 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
Title: X ScreenSaver
Post by: rasz_pl 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
Title: X ScreenSaver
Post by: David 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
Title: X ScreenSaver
Post by: James 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.
Title: X ScreenSaver
Post by: kevlarman 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
Title: X ScreenSaver
Post by: rasz_pl 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.