STARTXGL.SH -------------------------------------------------------------------------------- #!/bin/bash echo ">Starting XGL at Display: $1" echo "========= XGL ============" if [ -f /usr/lib/fglrx/libGL.so.1.2.xlibmesa ]; then Xgl -fullscreen :$1 -ac -accel xv:pbuffer -accel glx:pbuffer & echo "fglrx driver detected" elif [ -f /usr/lib/nvidia/libGL.so.1.2.xlibmesa ]; then Xgl -fullscreen :$1 -ac -accel xv:fbo -accel glx:pbuffer & echo "nvidia driver detected" else Xgl -fullscreen :$1 -ac -accel xv:fbo -accel glx:fbo & echo "no propriaty driver detected" fi echo "======= COMPIZ ===========" DISPLAY=:$1 nohup beryl-manager --replace dbus csm & echo "====== DECORATIONS =======" DISPLAY=:$1 emerald --replace & echo "======= GNOME ============" xset -display :0 s off -dpms DISPLAY=:$1 gnome-session echo "======= LOGOUT ============" -------------------------------------------------------------------------------- ------------------------------------------------------------------------------ xorg.conf ------------------- Section "ServerLayout" Identifier "Default Layout" Screen 0 "aticonfig-Screen[0]" 0 0 InputDevice "Generic Keyboard" InputDevice "Configured Mouse" InputDevice "stylus" "SendCoreEvents" InputDevice "cursor" "SendCoreEvents" InputDevice "eraser" "SendCoreEvents" EndSection Section "Files" # path to defoma fonts FontPath "/usr/share/X11/fonts/misc" FontPath "/usr/share/X11/fonts/cyrillic" FontPath "/usr/share/X11/fonts/100dpi/:unscaled" FontPath "/usr/share/X11/fonts/75dpi/:unscaled" FontPath "/usr/share/X11/fonts/Type1" FontPath "/usr/share/X11/fonts/100dpi" FontPath "/usr/share/X11/fonts/75dpi" FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" EndSection Section "Module" Load "i2c" Load "bitmap" Load "ddc" Load "dri" Load "extmod" Load "freetype" Load "glx" Load "int10" Load "type1" Load "vbe" EndSection Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "fr" Option "XkbVariant" "latin9" EndSection Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "true" EndSection Section "InputDevice" # /dev/input/event # for USB Identifier "stylus" Driver "wacom" Option "Device" "/dev/wacom" # Change to Option "Type" "stylus" Option "ForceDevice" "ISDV4" # Tablet PC ONLY EndSection Section "InputDevice" # /dev/input/event # for USB Identifier "eraser" Driver "wacom" Option "Device" "/dev/wacom" # Change to Option "Type" "eraser" Option "ForceDevice" "ISDV4" # Tablet PC ONLY EndSection Section "InputDevice" # /dev/input/event # for USB Identifier "cursor" Driver "wacom" Option "Device" "/dev/wacom" # Change to Option "Type" "cursor" Option "ForceDevice" "ISDV4" # Tablet PC ONLY EndSection Section "Monitor" Identifier "e1770NSL/T" HorizSync 30.0 - 70.0 VertRefresh 50.0 - 160.0 Option "DPMS" EndSection Section "Monitor" Identifier "aticonfig-Monitor[0]" Option "VendorName" "ATI Proprietary Driver" Option "ModelName" "Generic Autodetecting Monitor" Option "DPMS" "true" EndSection Section "Device" Identifier "ATI Technologies, Inc. R420 JI [Radeon X800PRO]" Driver "fglrx" BusID "PCI:2:0:0" EndSection Section "Device" Identifier "aticonfig-Device[0]" Driver "fglrx" Option "DesktopSetup" "horizontal" EndSection Section "Screen" Identifier "Default Screen" Device "ATI Technologies, Inc. R420 JI [Radeon X800PRO]" Monitor "e1770NSL/T" DefaultDepth 24 SubSection "Display" Depth 1 Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480" EndSubSection SubSection "Display" Depth 4 Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480" EndSubSection SubSection "Display" Depth 8 Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480" EndSubSection SubSection "Display" Depth 15 Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480" EndSubSection SubSection "Display" Depth 16 Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480" EndSubSection SubSection "Display" Depth 24 Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480" EndSubSection EndSection Section "Screen" Identifier "aticonfig-Screen[0]" Device "aticonfig-Device[0]" Monitor "aticonfig-Monitor[0]" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection Section "Extensions" Option "Composite" "disable" EndSection Section "DRI" Mode 0666 EndSection