[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple local XFree users with a single Radeon 9600 card



Hello,

I have a Radeon 9600 card that I have been successfully using in what 
ATI describes as Dual Head mode. That is two independent screens 
controlled by the same Xfree86 server (:0.0 & :0.1), side by side, 
which gnome 2.8.3 handles wonderfully.

I am a happy Debian SID user using the latest Xfree debian package 
(4.3.0.dfsg.1-13) and the latest  ATI driver (8.12.10-2.1) from:
http://www.stanchina.net/~flavio/debian/fglrx-installer.html

I decided to try my hand at "Multiple Local Xfree Users" as I have
two keyboards and mice. Luckily the debian patched Xfree already has
evdev applied so it can easily handle the extra USB mice and keyboard
 - a very pleasant surprise.

I had some trouble getting two Xservers work simultaneously with
the radeon card. The attached XF86Config-left-4 & XF86Config-right-4
are the result of my efforts. A diff of them both shows the relevant
differences. I ended up having to use:

  Option "MonitorLayout"              "TMDS, NONE"

and:

  Option "MonitorLayout"              "NONE, CRT"

so that both servers' device sections could use 'Screen 0' otherwise
the second server would not enter.

I configured gdm to use them both:

....
[servers]
0=Left
1=Right
....
[server-Left]
name=Left server
command=/usr/X11R6/bin/X -audit 0 -xf86config /etc/X11/XF86Config-left-4
flexible=true
[server-Right]
name=Right server
command=/usr/X11R6/bin/X -audit 0
-xf86config /etc/X11/XF86Config-right-4
flexible=true
....

So, I can login and use both screens with the proper keyboard and mouse
associated BUT they are on different VTs. One on vt7 Ctrl+Alt+F7 and
the other on vt8 Ctrl+Alt+F8.... I can't use them simultaneously
- Highly frustrating !

The debian xserver allows you to start more that one xserver on the same
VT but the setup fails and leaves the console unusable..... requiring a
reset.

I've tried just about every variable I can possibly think of including
patching an Xserver using the relevant VT parts of:
http://cambuca.ldhs.cetuc.puc-rio.br/multiuser/

This time it failed, and the console was corrupted but at least I could
type a "shutdown -r now".

Has anyone tried to do this before ? Is my approach completely flawed ?
Is there an easier way to accomplish this ?

Any help would be greatly appreciated.

TIA

Mike

============================= XF86Config-left-4
=============================

Section "dri"
  Mode 0666
EndSection

Section "Module"
    Load     "dbe"
  SubSection "extmod"
    Option   "omit XFree86-DGA"
  EndSubSection
    Load     "type1"
    Load     "freetype"
    Load     "GLcore"
    Load     "glx"
    Load     "dri"
    Load     "freetype"
    Load     "type1"
EndSection

Section "Files"
  RgbPath    "/usr/X11R6/lib/X11/rgb"
  FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
  FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
  FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
  FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
  FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
  FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "ServerFlags"
EndSection

Section "InputDevice"
  Identifier "Keyboard1"
  Driver     "kbd"
  Option     "AutoRepeat"    "250 30"
  Option     "Protocol"      "evdev"
  Option     "Dev Name"      "ORTEK USB Hub/Keyboard"
  Option     "Dev Phys"      "usb-*/input0"
  Option     "XkbRules"      "xfree86"
  Option     "XkbModel"      "pc101"
  Option     "XkbLayout"     "us"
EndSection

Section "InputDevice"
  Identifier "Mouse1"
  Driver     "mouse"
  Option     "Protocol"      "evdev"
  Option     "Dev Name"      "ARROW STRONG USB 3D Mouse"
  Option     "Dev Phys"      "usb-*/input0"
  Option     "ZAxisMapping"  "4 5"
EndSection

Section "Monitor"
  Identifier  "Monitor0"
  HorizSync   30-61
  VertRefresh 56-75
  Option      "DPMS"
EndSection

Section "Device"
  Identifier                          "ATI Graphics Adapter connector 0"
  Driver                              "fglrx"
  Option "no_accel"                   "no"
  Option "no_dri"                     "no"
  Option "mtrr"                       "off"
  Option "DesktopSetup"               "0x00000000"
  Option "MonitorLayout"              "TMDS, NONE"
  Option "IgnoreEDID"                 "off"
  Option "HSync2"                     "30-61" 
  Option "VRefresh2"                  "56-75" 
  Option "ScreenOverlap"              "0" 
  Option "NoTV"                       "yes"     
  Option "TVStandard"                 "NTSC-M"     
  Option "TVHSizeAdj"                 "0"     
  Option "TVVSizeAdj"                 "0"     
  Option "TVHPosAdj"                  "0"     
  Option "TVVPosAdj"                  "0"     
  Option "TVHStartAdj"                "0"     
  Option "TVColorAdj"                 "0"     
  Option "GammaCorrectionI"           "0x00000000"
  Option "GammaCorrectionII"          "0x00000000"
  Option "Capabilities"               "0x00000000"
  Option "VideoOverlay"               "on"
  Option "OpenGLOverlay"              "off"
  Option "CenterMode"                 "off"
  Option "PseudoColorVisuals"         "off"
  Option "Stereo"                     "off"
  Option "StereoSyncEnable"           "1"
  Option "FSAAEnable"                 "no"
  Option "FSAAScale"                  "1"
  Option "FSAADisableGamma"           "no"
  Option "FSAACustomizeMSPos"         "no"
  Option "FSAAMSPosX0"                "0.000000"
  Option "FSAAMSPosY0"                "0.000000"
  Option "FSAAMSPosX1"                "0.000000"
  Option "FSAAMSPosY1"                "0.000000"
  Option "FSAAMSPosX2"                "0.000000"
  Option "FSAAMSPosY2"                "0.000000"
  Option "FSAAMSPosX3"                "0.000000"
  Option "FSAAMSPosY3"                "0.000000"
  Option "FSAAMSPosX4"                "0.000000"
  Option "FSAAMSPosY4"                "0.000000"
  Option "FSAAMSPosX5"                "0.000000"
  Option "FSAAMSPosY5"                "0.000000"
  Option "UseFastTLS"                 "0"
  Option "BlockSignalsOnLock"         "on"
  Option "UseInternalAGPGART"         "yes"
  Option "ForceGenericCPU"            "no"
  BusID  "PCI:1:0:0"
  Screen 0
EndSection

Section "Screen"
  Identifier   "Screen0"
  Device       "ATI Graphics Adapter connector 0"
  Monitor      "Monitor0"
  DefaultDepth 24
  Subsection "Display"
    Depth      24
    Modes      "1024x768" "800x600" "640x480"
  EndSubsection
EndSection

Section "ServerLayout"
  Identifier  "Layout0"
  Screen "Screen0"
  InputDevice "Mouse1"    "CorePointer"
  InputDevice "Keyboard1" "CoreKeyboard"
  Option      "SingleCard" "true"
EndSection

============================= XF86Config-right-4
=============================

Section "dri"
  Mode 0666
EndSection

Section "Module"
    Load     "dbe"
  SubSection "extmod"
    Option   "omit XFree86-DGA"
  EndSubSection
    Load     "type1"
    Load     "freetype"
    Load     "GLcore"
    Load     "glx"
    Load     "dri"
    Load     "freetype"
    Load     "type1"
EndSection

Section "Files"
  RgbPath    "/usr/X11R6/lib/X11/rgb"
  FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
  FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
  FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
  FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
  FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
  FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "ServerFlags"
EndSection

Section "InputDevice"
  Identifier "Keyboard1"
  Driver     "keyboard"
  Option     "CoreKeyboard"
  Option     "XkbRules"      "xfree86"
  Option     "XkbModel"      "pc101"
  Option     "XkbLayout"     "us"
EndSection

Section "InputDevice"
  Identifier "Mouse1"
  Driver     "mouse"
  Option     "Protocol"      "evdev"
  Option     "Dev Name"      "USB Mouse STD.  "
  Option     "Dev Phys"      "usb-*/input0"
  Option     "ZAxisMapping"  "4 5"
EndSection

Section "Monitor"
  Identifier  "Monitor1"
  HorizSync   30-61
  VertRefresh 56-75
  Option      "DPMS"
EndSection

Section "Device"
  Identifier                          "ATI Graphics Adapter connector 1"
  Driver                              "fglrx"
  Option "no_accel"                   "no"
  Option "no_dri"                     "no"
  Option "mtrr"                       "off"
  Option "DesktopSetup"               "0x00000000"
  Option "MonitorLayout"              "NONE, CRT"
  Option "IgnoreEDID"                 "off"
  Option "HSync2"                     "30-61" 
  Option "VRefresh2"                  "56-75" 
  Option "ScreenOverlap"              "0" 
  Option "NoTV"                       "yes"     
  Option "TVStandard"                 "NTSC-M"     
  Option "TVHSizeAdj"                 "0"     
  Option "TVVSizeAdj"                 "0"     
  Option "TVHPosAdj"                  "0"     
  Option "TVVPosAdj"                  "0"     
  Option "TVHStartAdj"                "0"     
  Option "TVColorAdj"                 "0"     
  Option "GammaCorrectionI"           "0x00000000"
  Option "GammaCorrectionII"          "0x00000000"
  Option "Capabilities"               "0x00000000"
  Option "VideoOverlay"               "on"
  Option "OpenGLOverlay"              "off"
  Option "CenterMode"                 "off"
  Option "PseudoColorVisuals"         "off"
  Option "Stereo"                     "off"
  Option "StereoSyncEnable"           "1"
  Option "FSAAEnable"                 "no"
  Option "FSAAScale"                  "1"
  Option "FSAADisableGamma"           "no"
  Option "FSAACustomizeMSPos"         "no"
  Option "FSAAMSPosX0"                "0.000000"
  Option "FSAAMSPosY0"                "0.000000"
  Option "FSAAMSPosX1"                "0.000000"
  Option "FSAAMSPosY1"                "0.000000"
  Option "FSAAMSPosX2"                "0.000000"
  Option "FSAAMSPosY2"                "0.000000"
  Option "FSAAMSPosX3"                "0.000000"
  Option "FSAAMSPosY3"                "0.000000"
  Option "FSAAMSPosX4"                "0.000000"
  Option "FSAAMSPosY4"                "0.000000"
  Option "FSAAMSPosX5"                "0.000000"
  Option "FSAAMSPosY5"                "0.000000"
  Option "UseFastTLS"                 "0"
  Option "BlockSignalsOnLock"         "on"
  Option "UseInternalAGPGART"         "yes"
  Option "ForceGenericCPU"            "no"
  BusID  "PCI:1:0:0"
  Screen 0
EndSection

Section "Screen"
  Identifier   "Screen1"
  Device       "ATI Graphics Adapter connector 1"
  Monitor      "Monitor1"
  DefaultDepth 24
  Subsection "Display"
    Depth      24
    Modes      "1024x768" "800x600" "640x480"
  EndSubsection
EndSection

Section "ServerLayout"
  Identifier  "Layout1"
  Screen "Screen1"
  InputDevice "Mouse1"    "CorePointer"
  InputDevice "Keyboard1" "CoreKeyboard"
  Option      "SingleCard" "true"
EndSection

===============diff  XF86Config-left-4 XF86Config-right-4
=============================

34,38c34,35
<   Driver     "kbd"
<   Option     "AutoRepeat"    "250 30"
<   Option     "Protocol"      "evdev"
<   Option     "Dev Name"      "ORTEK USB Hub/Keyboard"
<   Option     "Dev Phys"      "usb-*/input0"
---
  Driver     "keyboard"
  Option     "CoreKeyboard"
48c45
<   Option     "Dev Name"      "ARROW STRONG USB 3D Mouse"
---
  Option     "Dev Name"      "USB Mouse STD.  "
54c51
<   Identifier  "Monitor0"
---
  Identifier  "Monitor1"
61c58
<   Identifier                          "ATI Graphics Adapter connector
0"
---
  Identifier                          "ATI Graphics Adapter connector
1"
67c64
<   Option "MonitorLayout"              "TMDS, NONE"
---
  Option "MonitorLayout"              "NONE, CRT"
114,116c111,113
<   Identifier   "Screen0"
<   Device       "ATI Graphics Adapter connector 0"
<   Monitor      "Monitor0"
---
  Identifier   "Screen1"
  Device       "ATI Graphics Adapter connector 1"
  Monitor      "Monitor1"
125,126c122,123
<   Identifier  "Layout0"
<   Screen "Screen0"
---
  Identifier  "Layout1"
  Screen "Screen1"

-- 
Mike Leddy <mike dot leddy at hotpop dot com>