Difference between revisions of "Xserver Issues"

From Blue-IT.org Wiki

(Modline generator)
Line 1: Line 1:
 +
==Ubuntu==
 +
There is now a nice program to configure the xserver. It's called xorg-edit and can be downloaded [http://forum.ubuntuusers.de/go.php?wikipage=xorg-edit here] or direct be downloaded at [http://sourceforge.net/project/downloading.php?group at sourceforge].
 +
 +
==SuSE==
 +
YaST and SaX2 are your toole!
 +
For older versions of SuSE it might be necessary to install manually the nvidia/ati driver and start ''sax2'' with the following (for nvidia):
 +
init 3
 +
sax2 -m 0=nvidia
 +
 
==Start a program in fullscreen X session==
 
==Start a program in fullscreen X session==
 
If you like to start a single program, e.g. ''mythfrontend'' on another screen - e.g. a TV or a second monitor, simple use the next line:
 
If you like to start a single program, e.g. ''mythfrontend'' on another screen - e.g. a TV or a second monitor, simple use the next line:

Revision as of 20:55, 26 July 2007

Ubuntu

There is now a nice program to configure the xserver. It's called xorg-edit and can be downloaded here or direct be downloaded at at sourceforge.

SuSE

YaST and SaX2 are your toole! For older versions of SuSE it might be necessary to install manually the nvidia/ati driver and start sax2 with the following (for nvidia):

init 3
sax2 -m 0=nvidia

Start a program in fullscreen X session

If you like to start a single program, e.g. mythfrontend on another screen - e.g. a TV or a second monitor, simple use the next line:

xinit /bin/sh -c "DISPLAY=:1 mythfrontend" -- /usr/bin/X :1 -ac

And from HowTo Setup MythTV

[...] I have this first script run at boot up time:

#!/bin/bash
cd /root
HOME='/root'
export HOME
xinit /root/xinitmyth -- :0 &

and the startup file /root/xinitmyth

xsetroot -solid gray &
mythfrontend

[...]

Modline generator

GTF is a modline generator.

linux: > gtf
usage: gtf x y refresh [-v|--verbose] [-f|--fbmode] [-x|--xorgmode]

           x : the desired horizontal resolution (required)
           y : the desired vertical resolution (required)
     refresh : the desired refresh rate (required)
-v|--verbose : enable verbose printouts (traces each step of the computation)
 -f|--fbmode : output an fbset(8)-style mode description
-x|--xorgmode : output an Xorg-style mode description (this is the default
               if no mode description is requested)

This gives me e.g.

linux: > gtf 768 576 50 -x

 # 768x576 @ 50.00 Hz (GTF) hsync: 29.65 kHz; pclk: 28.46 MHz
 Modeline "768x576_50.00"  28.46  768 784 864 960  576 577 580 593  -HSync +Vsync

for a modline used with a HTPC (Home theatre PC) for a PAL-M TV out resolution.

Remember to use it you have to add the following in the Monitor' section of yur xorg.conf:

Section "Monitor"
  UseModes     "MyModes"
  [...]
End Section

If not already there you have to create a Modes section:

Section "Modes"
 Identifier   "MyModes"
 Modeline      "768x576_50.00"  28.46  768 784 864 960  576 577 580 593  -HSync +Vsync
 [...]
End Section

And according to the fact, that the default depth will be 16 in our example here you schould add the new created mode in front of the other modes.

Section "Screen"
   Identifier      "Default Screen"
   [...]
   DefaultDepth    16
   SubSection "Display"
        Depth           16
        Modes           "768x576_50.00" "1024x768" "800x600" "640x480"
   EndSubSection
EndSection: