Author Topic: Compiz-fusion and tremulous.  (Read 2404 times)

storma

  • Posts: 30
  • Turrets: +1/-0
Compiz-fusion and tremulous.
« on: March 21, 2008, 07:21:23 am »
While doing a search, I found that a number of people using linux and compiz-fusion had forgotten to disable compiz or were told not to use it. A simple work around solves the problem. Create 3 small scripts and tweak them to your preferences.

cfoff:
Code: [Select]
#!/bin/sh
kill `pidof compiz.real`
xfwm4 &

cfon:
Code: [Select]
#!/bin/sh
kill `pidof xfwm4`
compiz --replace &
gtk-window-decorator &

trem-start:
Code: [Select]
#!/bin/sh
cfoff
tremulous
cfon

amn - Beyond Any Mortal Notion
http://bamnclan.com

Broken Ass Monkey Nutz

Amanieu

  • Posts: 647
  • Turrets: +135/-83
    • Amanieu
Re: Compiz-fusion and tremulous.
« Reply #1 on: March 21, 2008, 02:50:44 pm »
I just keep compiz-fusion enabled while I play. There is some lag, and alt+tab doesn't work properly, but I've got a good computer 8)
The thing I don't like about enabling/disabling compiz-fusion is that all my windows get stacked into my first desktop, and I have to sort them out all over again.
Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P

tuple

  • Posts: 833
  • Turrets: +97/-80
Re: Compiz-fusion and tremulous.
« Reply #2 on: March 22, 2008, 08:07:07 pm »
My laptop, with an ATI card, cannot play tremulous with compiz enabled, and I've always been told that it won't work.
My desktop, a much more powerful machine with an nvidia card, plays compiz and tremulous without lag, slowdown, or any issues whatsoever.

My laptop cannot play tremulous even without compiz.  I need to restart the X server without xgl enabled at all.  To do that, I run a simple little script,

Code: [Select]
touch ~/.config/xserver-xgl/disable

When the xserver restarts, it automatically looks for that file and, if it finds it, disables all of the xgl extensions (or whatever they are called)
I then logout, and into fluxbox to play opengl games.  really, I need to integrate my script into the session startup files so xgl is disabled/enabled as needed, depending on which desktop I logon to.  I haven't bothered with that though.

Code: [Select]
#!/bin/bash

INPUT=$*

case "$INPUT" in
enable)
rm -f ~/.config/xserver-xgl/disable
echo "You must log out, and then back in"
echo "if XGL is not already enabled"
echo "and you want to enable it"
;;
disable)
touch ~/.config/xserver-xgl/disable
echo "You must log out, and then back in"
echo "if XGL is enabled and you want to"
echo "disable it"
;;
*)
echo "To use this script, type in"
echo "\"xglswitch enable\" to enable XGL"
echo "on your next logon"
echo "or"
echo "\"xglswitch disable\" to disable XGL"
echo "on your next logon"
;;
esac

Its really a simple script, to say the least.  It works for me though, and I haven't had the time to play enough games to carry it further.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Compiz-fusion and tremulous.
« Reply #3 on: March 22, 2008, 08:11:56 pm »
the new versions of fglrx should support aiglx, you shouldn't be using xgl anymore.
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| #
|.@.-##
-----