Subject: Re: Radeon 9600 XT dual head
To: Stephen Nelson <st3phen@paradise.net.nz>
From: john heasley <heas@shrubbery.net>
List: port-i386
Date: 05/24/2004 07:41:58
Tue, May 25, 2004 at 02:34:58AM +1200, Stephen Nelson:
> >
> >mknod /dev/ttyF0 c 90 256
> >mknod /dev/ttyFcfg 90 510
> >mknod /dev/ttyFstat 90 511
> >
> >cat /etc/rc.local
> >/usr/sbin/wsconscfg -f /dev/ttyFcfg -t sunffb 0
> >
> >substitute whatever is appropriate for your card as/in sunffb.
> > 
> >
> Thanks for your help, but these changes don't seem to have any effect - 
> first I tried the steps you gave explicitly, but I came up with several 
> errors -
> mknod /dev/ttyF{cfg,stat} ... requires an option from d, c, or p - I tried 
> this with c, as it was the only option that made sense for the values you 
> gave.

Sorry, they should all be 'c', character devices.  the values mimic those
for ttyE + 256, aka. the second wscons device.

> The unit sizes are also different to the "ttyE..." devices on my system - I 
> tried with the sizes you specified, and with the same sizes as "ttyE..."
> /usr/sbin/wsconscfg -f /dev/ttyFcfg -t radeon 0
> returns either: "wsconscfg: screen N is already configured" or "wsconscfg: 
> WSDISPLAYIO_ADDSCREEN: Device not configured"
> 
> The final thing I tried was to set the second "device" to /dev/ttyE1, but 
> no change to the display for any of these settings

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.