|
||||||||||||
|
|
4. XFree86 and YouIf you're going to game under X, it's crucial that you know a bit about X. The "X Window User HOWTO", and especially "man XF86Config" are required reading. Don't short change yourself; read them. They have an extremely high "information to space" ratio. Many problems can be fixed easily if you know your way around XF86Config (or XF86Config-4). 4.1. Getting information about your X systemWhether you're trying to diagnose an X problem or requesting help from a mailing list or Usenet newsgroup, you'll want to have as much information available as possible. These are a set of tools you can use to obtain that information. 4.1.1. ProbeonlyOne of the best diagnostic tools and sources of information about your X system is probeonly output. To use it, kill X if it's already running and from a console, type:
Yes, that's a single dash; so much for standards. The output of X goes to stderr, so we have to redirect stderr with "2>" to a file named X.out. This file will have almost everything there is to know about your X system. It's crucial that you know the difference between the various markers you'll see in probeonly output:
Here's an example of some information I gleaned from my output: I'm running at 16 bpp color:
X has detected what my videocard chipset and videoram are:
4.1.2. Getting info about your setup: xvidtunexvidtune is your friend when your X screen is shifted a little bit too far to the right, or if the vertical length is too small to fit on your monitor. However, it's a great diagnostic tool also. It'll give you:
4.1.3. Getting info about your setup: xwininfoxwininfo tells you all sorts of information about X windows. And actually, your "background" or "root" window is considered a window too. So when xwininfo asks you to click on the window you want the information on, click on your background. It'll tell you things like screen and window resolution, color depth, window gravity state (which gives a hint to the window manager about where to place new windows), backing store usage and more. 4.2. Playing Games In X Without a Window ManagerWhen playing a game under X, you should consider starting X without a window manager (wm). Heavy weight wm's, like Enlightenment, may produce a noticeable slow down. Even light weight wm's, like twm, rob your CPU of clock cycles (and in twm's case, even full screen games will have a frame around the window). To run a game without a wm, modify .xinitrc, which tells X what to run upon starting, in your home directory. Here is what my .xinitrc looks like:
You'll usually see a window or desktop manager being executed from this file (GNOME or KDE). Comment out the lines containing the wm or desktop manager with a pound sign (#) and place your game on a new line with any command line arguments you want to pass. If the game is not located in your $PATH, give its full path name. Note that this is for people who use `startx' to start X. I never use things like gdm or run-level 5 (so I'm not positive here), but I suspect that if you do, you'll need to do things a bit differently. My best guess is to go to single user mode (run-level 1) by:
then edit .xinitrc, then go back to run-level 5 by
Then when you stop playing, go to run-level 1, modify .xinitrc then go back to run-level 5. I don't use this stuff, so I'm not sure, but you may need to kill gdm. I'd appreciate some feedback on this. | |||||||||||
|
||||||||||||