You are not logged in.

#1 2006-10-05 21:34:26

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Xgl: OpenGL Games

Alright, I've tried a few different things to try and get games to work on Xgl.

I've tried xlaunch script which some ubuntu user wrote.
I also tried xinit -r <game> -- :0 -ac -br

I get this when trying to xinit:

X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: UNKNOWN 
Current Operating System: Linux gizmo 2.6.18-ARCH #1 SMP PREEMPT Thu Oct 5 10:19:43 CEST 2006 i686
Build Date: 19 September 2006
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct  5 17:31:41 2006
(==) Using config file: "/etc/X11/xorg.conf"

waiting for X server to shut down FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1; fixing.

All they do is flash the screen black and then crash.
Has anyone goten opengl games to work while using Xgl? It's annoying editing my script and restarting just to play a game >.>

Offline

#2 2006-10-06 09:48:02

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

Re: Xgl: OpenGL Games

Ah, I don't have the problem here tongue

Try change "X :2" to "X :2 -ac" (disable access control)

Offline

#3 2006-10-06 13:20:29

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Re: Xgl: OpenGL Games

aquila_deus wrote:
#!/bin/bash
if [ -e /tmp/.X2-lock ]; then
  echo "/tmp/.X2-lock" already exists
else
  X :2 &
  DISPLAY=:2 xterm &
fi

Run this from console and use the x server for games. Crash may happen if you start opengl apps from non-current x server.

Well that starts up X server on display 2, so thanks for that. I am one step closer. But Xterm does not come up afterwards, so I have no way to exec anything. I do have xterm installed, any suggestions?

Offline

#4 2006-10-06 15:07:25

detto
Member
Registered: 2006-01-23
Posts: 510

Re: Xgl: OpenGL Games

Mh, same here :?
edit: here's some output

detto@myBox ~ $ AUDIT: Fri Oct  6 17:14:44 2006: 5489 X: client 1 rejected from local host
Xlib: connection to ":2.0" refused by server
Xlib: No protocol specified

xterm Xt error: Can't open display: :2

Offline

#5 2006-10-06 15:34:30

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

Re: Xgl: OpenGL Games

Try

#!/bin/bash
if [ -e /tmp/.X2-lock ]; then
  echo "/tmp/.X2-lock" already exists
else
  X :2 -ac &
  DISPLAY=:2 xterm &
fi

Offline

#6 2006-10-07 01:53:11

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Re: Xgl: OpenGL Games

alright, will do.

edit
Well, that does work. But I am now having another issue, shortly after running this script GDM logs me out of my session forcing my screen to switch back to 1, when I switch back to screen 2, xterm is gone.

Offline

#7 2006-10-07 11:33:32

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Xgl: OpenGL Games

use aiglx if you can. you can run games straight from it fine.

or just ditch xgl, you're kidding yourself if you *need* any of the fancy stuff -- it's hardly saving you time, or making you any more productive if you have to waste time to do something simple like playing a game.

James

Offline

Board footer

Powered by FluxBB