Subject: Re: Radeon 9600 XT dual head
To: <>
From: Stephen Nelson <st3phen@paradise.net.nz>
List: port-i386
Date: 05/25/2004 19:36:16
>
>I forgot a change;
>
>sys/dev/wscons/wsdisplay.c:
>
>@@ -995,30 +1029,46 @@
>        }
> #endif
>        inp = sc->sc_input;
>+#ifdef 0
>+       http://mail-index.netbsd.org/port-alpha/2002/05/03/0002.html
>        if (inp == NULL)
>                return (ENXIO);
>        error = wsevsrc_display_ioctl(inp, cmd, data, flag, p);
>        if (error != EPASSTHROUGH)
>                return (error);
>+#else
>+       if (inp != NULL) {
>+               error = wsevsrc_display_ioctl(inp, cmd, data, flag, p);
>+               if (error != EPASSTHROUGH)
>+                       return (error);
>+       }
>+#endif
>
>you'll have to build a new kernel.
>
>
>  
>
Thanks for your help, I haven't compiled a kernel yet, as I'm not sure
that it will provide what I want - my understanding is that it will
provide an independent device for my second screen. However - I am
wanting one of two things - to be able to run a second X on my second
screen, or to be able to use something like Xinerama to have a wide screen.

Thanks to other posts, I have managed to get Xinerama running - I have
both monitors working now, although my mouse doesn't render properly on
the second - I think this is probably a hardware pointer problem. How do
I go about running two X's - one on each screen?

My XF86Config is now:

Section "ServerLayout"
        Identifier     "XFree86 Configured"
        Option         "Xinerama" "true"
        Screen         "Screen0"
        Screen         "Screen1" RightOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
        Load  "extmod"
        Load  "glx"
        Load  "dbe"
        Load  "record"
        Load  "xtrap"
        Load  "type1"
        Load  "speedo"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option      "XkbRules" "xfree86"
        Option      "XkbModel" "hp2505"
        Option      "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "wsmouse"
        Option      "Device" "/dev/wsmouse"
        Option      "Buttons" "5"
        Option      "Z_Axis_Mapping" "4 5"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "PHL"
        ModelName    "PHILIPS 109E5"
        HorizSync       30-92
        VertRefresh    50-160
        Option       "DPMS"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "PHL"
        ModelName    "PHILIPS 105S"
        HorizSync    30-61
        VertRefresh     50-120
        Option       "DPMS"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "radeon"
        VendorName  "ATI Technologies Inc"
        BoardName   "RV350 AR [Radeon 9600]"
        BusID       "PCI:1:0:0"
        Option      "CloneDisplay" "1"
        Screen      0
EndSection

Section "Device"
        Identifier  "Card1"
        Driver      "radeon"
        VendorName  "ATI Technologies Inc"
        BoardName   "RV350 AR [Radeon 9600]"
        BusID       "PCI:1:0:0"
        Screen      1
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Viewport   0 0
                Modes "1280x1024" "1024x768"
                Depth     24
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "Card1"
        Monitor    "Monitor1"
        DefaultDepth 24
        SubSection "Display"
                Viewport   0 0
                Modes "1024x768"
                Depth   24
        EndSubSection
EndSection