openSUSE Forums > Archives > SF Archives > ARCHIVES - Sample Configuration Files » Xorg/xfree86 Config With 2 Screens

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Sample Configuration Files
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Sample Configuration Files Copies of commonly used configuration files in SUSE Linux
(Moderated - Please do not post questions here)

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 17-Jan-2005, 18:35
storm
Guest
 
Posts: n/a
Default

This is mine xorg.conf with 2 screen support (one crt and one tv) on one Xserver.
So you can easy launch e.g. a movie on the second screen with:
Code:
DISPLAY=:0.1 mplayer movie.avi
Also nice feature is if you add ~/.kde/share/apps/konqueror/servicemenus/mplayertv.desktop
Code:
[Desktop Entry]
Actions=PlayOnTV
Encoding=UTF-8
ServiceTypes=video/*

[Desktop Action PlayOnTV]
Exec=DISPLAY=:0.1 mplayer -fs %F
Name=Play this movie on TV
Icon=yast_tv
If you now right click on a movie and look by actions there is now the option "Play this movie on tv"

Code:
# **********************************************************************
# This loads the Type1 and FreeType font modules
# **********************************************************************

KNIP

# **********************************************************************
# Files section. *This allows default font and rgb paths to be set
# **********************************************************************

KNIP

# **********************************************************************
# Section ServerFlags
# **********************************************************************

Section "ServerFlags"
 *Option * * * "AllowMouseOpenFail"
EndSection

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"
 * *Driver * * * "keyboard"
 * *Identifier * "Keyboard[0]"
 * *Option * * * "Protocol" "Standard"
 * *Option * * * "XkbLayout" "us"
 * *Option * * * "XkbModel" "pc104"
 * *Option * * * "XkbRules" "xfree86"
EndSection

# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
# Mouse is a Logitech premium optical wheelmouse

Section "InputDevice"
 * *Driver * * * "mouse"
 * *Identifier * "Mouse[1]"
 * *Option * * * "Buttons" "5"
 * *Option * * * "Device" "/dev/input/mice"
 * *Option * * * "Name" "Autodetection"
 * *Option * * * "Protocol" "imps/2"
 * *Option * * * "Vendor" "Sysp"
 * *Option * * * "ZAxisMapping" "4 5"
EndSection

# **********************************************************************
# Monitor section
# **********************************************************************

Section "Monitor"
 * *DisplaySize *320 240
 * *HorizSync * *28-85
 * *Identifier * "Monitor[0]"
 * *ModelName * *"V700"
 * *Option * * * "DPMS"
 * *VendorName * "COMPAQ"
 * *VertRefresh *50-160
 * *UseModes * * "Modes[0]"
EndSection

Section "Monitor"
 * *Identifier "TV" 
 * *HorizSync 60
 * *VertRefresh 30-150
EndSection

# **********************************************************************
# Graphics device section
# **********************************************************************

Section "Device"
 * *BoardName * * "GeForce4 GTS"
 * *BusID * * * * "1:0:0"
 * *Driver * * * *"nvidia"
 * *Identifier * *"nvidia0"
 * *VendorName * *"NVidia"
 * *Screen * * * *0
 * *Option * * * *"NvAGP" "2"
EndSection

Section "Device"
 * *BoardName * * "GeForce4 GTS"
 * *BusId * * * * "1:0:0"
 * *Driver * * * *"nvidia"
 * *Identifier * *"nvidia1"
 * *VendorName * *"NVidia"
 * *Screen * * * *1
 * *Option * * * *"NvAGP" "2"
 * *Option "ConnectedMonitor" "CRT, TV"
EndSection

# **********************************************************************
# Screen sections
# **********************************************************************

Section "Screen"
 * *Identifier *"Screen0"
 * *Device * * *"nvidia0"
 * *Monitor * * "Monitor[0]"
 * *DefaultDepth 24
 * *Subsection "Display"
 * * * *Depth * * * 24
 * * * *Modes * * * "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
 * *EndSubsection
EndSection

Section "Screen"
 * *Identifier *"Screen TV"
 * *Device * * *"nvidia1"
 * *Monitor * * "TV"
 * *Option *"TVStandard" * *"PAL-B"
 * *Option *"TVOutFormat" * "SVIDEO"
 * *DefaultDepth 24
 * *Subsection "Display"
 * * * *Depth * * * 24
 * * * *Modes * * *"800x600"
 * * * *ViewPort *0 0
 * *EndSubsection
EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************

Section "ServerLayout"
 * *Identifier * "Simple Layout"
 * *Screen 0 "Screen0" 0 0
 * *Screen 1 "Screen TV" leftof "Screen0"

 * *InputDevice *"Keyboard[0]" "CoreKeyboard"
 * *InputDevice *"Mouse[1]" "CorePointer"
EndSection

# **********************************************************************
# DRI section.
# **********************************************************************

Section "DRI"
 * Group * * *"video"
 * Mode * * * 0660
EndSection

# **********************************************************************
# The End
# **********************************************************************
Also if you want bigger subtitles with mplayer (for better tv display) you can do this.
Download a font package (I use in this example the "Arial - Western (ISO 8859-1) (4 sizes)" package)and install it by:
tar -jxvf font-arial-iso-8859-1.tar.bz2
cd font-arial-iso-8859-1
cp -r font* /usr/local/share/mplayer/font (as root for system wide)
cd ~/.mplayer
e.g. (font choice)
ln -s /usr/local/share/mplayer/font/font-arial-28-iso-8859-1 font

You should now have big :blink: subtitles.
  #2 (permalink)  
Old 04-Aug-2006, 16:19
D0C
Guest
 
Posts: n/a
Default

This is exactly what I'm looking to do except my configuration needs to be slightly different and I can't seem to get it to work.

1) I'm using XGL which means I need to clone my screen instead of it being "LeftOf" because when my mouse goes to the left of the screen, it goes to the TV instead of the desktop to the left of the current.

2) when using TV-Out on my card, the display on the consoles (Ctrl-Alt-F1-F6) get all garbled and are completely unreadable, I'm not sure what causes this but It'd be really nice to figure it out.

So, if someone could give me some suggestions on how to configure the above xorg.conf to clone instead of being LeftOf that'd be great and any advice on keeping the integrity of the consoles would be extra helpful.

Thanks
Doc

here is a photo of what my consoles look like when using TV-Out:
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2